From 4d4e784770b576199b18f22100689125a18bfd9a Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Thu, 15 Apr 2021 22:47:54 +0200 Subject: Basic block/unblock --- kernel/inc/io.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'kernel/inc') diff --git a/kernel/inc/io.h b/kernel/inc/io.h index 5176bd3..3291bfc 100644 --- a/kernel/inc/io.h +++ b/kernel/inc/io.h @@ -5,6 +5,8 @@ #include #include +#include +#include #include struct io_dev { @@ -22,4 +24,7 @@ res io_write(enum io_type io, void *buf, u32 offset, u32 count); res io_read(enum io_type io, void *buf, u32 offset, u32 count); res io_poll(u32 *devs) NONNULL; +void io_block(enum io_type io, struct proc *proc, struct regs *r) NONNULL; +void io_unblock(enum io_type io); + #endif -- cgit v1.2.3