From 212582f69dea4c99c292081b15ea526014b9ad44 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Wed, 14 Apr 2021 13:39:42 +0200 Subject: Even more I/O - started new PS/2 driver --- libs/libc/inc/sys.h | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'libs/libc/inc/sys.h') diff --git a/libs/libc/inc/sys.h b/libs/libc/inc/sys.h index e7acc49..c181a64 100644 --- a/libs/libc/inc/sys.h +++ b/libs/libc/inc/sys.h @@ -21,10 +21,10 @@ enum sys { SYS_STAT, // Get file information SYS_READ, // Read file (non-blocking) SYS_WRITE, // Write to file - SYS_IOCTL, // Interact with an I/O device SYS_IOPOLL, // Block proc until I/O device is ready SYS_IOREAD, // Read data from I/O device (blocking) SYS_IOWRITE, // Write data to I/O device + SYS_IOCONTROL, // Interact with an I/O device SYS_EXEC, // Execute path SYS_EXIT, // Exit current process SYS_BOOT, // Boot functions (e.g. reboot/shutdown) @@ -36,6 +36,17 @@ enum sys { /* SYS_NET_RECEIVE, // Receive data from socket */ }; +enum io_type { + IO_MIN, + IO_FRAMEBUFFER, + IO_NETWORK, + IO_KEYBOARD, + IO_MOUSE, + IO_TIMER, + IO_BUS, + IO_MAX, +}; + struct event_keyboard { u32 magic; u32 scancode; -- cgit v1.2.3