aboutsummaryrefslogtreecommitdiff
path: root/kernel/inc/io.h
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/inc/io.h')
-rw-r--r--kernel/inc/io.h5
1 files changed, 5 insertions, 0 deletions
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 <boot.h>
#include <def.h>
+#include <interrupts.h>
+#include <proc.h>
#include <sys.h>
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