diff options
author | Marvin Borner | 2021-04-17 22:59:57 +0200 |
---|---|---|
committer | Marvin Borner | 2021-04-17 22:59:57 +0200 |
commit | cdf029471736f43776452930b7195a06ab143654 (patch) | |
tree | f8ab7dee26c589ff3666194b814d9457482ec02c /libs/libc/inc/sys.h | |
parent | 89b5b9acf6037fc1a87f9e85c64831187a47ba94 (diff) |
Added I/O bus implementation for efficient IPC
This was a nice coding session. See ya tomorrow!
Diffstat (limited to 'libs/libc/inc/sys.h')
-rw-r--r-- | libs/libc/inc/sys.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libs/libc/inc/sys.h b/libs/libc/inc/sys.h index 461db2e..72a8029 100644 --- a/libs/libc/inc/sys.h +++ b/libs/libc/inc/sys.h @@ -42,6 +42,11 @@ enum io_type { IO_MAX, }; +// I/O control declarations +#define IOCTL_FB_GET 0 +#define IOCTL_BUS_CONNECT 0 +#define IOCTL_BUS_REGISTER 1 + struct event_keyboard { u32 magic; u32 scancode; @@ -77,7 +82,7 @@ res write(const char *path, const void *buf, u32 offset, u32 count) NONNULL; res stat(const char *path, struct stat *buf) NONNULL; res exec(const char *path, ...) ATTR((nonnull(1))) SENTINEL; -res io_poll(u32 *devs) NONNULL; +res io_poll(enum io_type *devs) NONNULL; res io_read(enum io_type io, void *buf, u32 offset, u32 count) NONNULL; res io_write(enum io_type io, void *buf, u32 offset, u32 count) NONNULL; res io_control(enum io_type io, ...); |