From d2aebee488b71e6f28b8728e7473b63f412ca897 Mon Sep 17 00:00:00 2001 From: Alex AUVOLAT Date: Thu, 11 Jul 2013 22:38:20 +0200 Subject: Added direct acces to video memory from userland. Next : same for keyboard ; move VT handling to userland. Consequence : a foreground app has total control over I/O. Next : implement sockets & a userland console multiplexer. --- src/include/tce/syscalls.h | 1 + src/include/tce/vfs.h | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'src/include') diff --git a/src/include/tce/syscalls.h b/src/include/tce/syscalls.h index f32c225..983e89d 100644 --- a/src/include/tce/syscalls.h +++ b/src/include/tce/syscalls.h @@ -28,6 +28,7 @@ #define SC_READ 26 #define SC_WRITE 27 #define SC_LINK 28 +#define SC_DEVCONTROL 29 #define EX_PAGEFAULT 4000 #define EX_EXCEPTION 4001 diff --git a/src/include/tce/vfs.h b/src/include/tce/vfs.h index 36e391f..58e67f5 100644 --- a/src/include/tce/vfs.h +++ b/src/include/tce/vfs.h @@ -33,7 +33,10 @@ typedef struct _file_info { // device types #define DT_BLOCK 1 -#define DT_KEYBOARD 2 -#define DT_DISPLAY 3 +#define DT_PCKBD 2 +#define DT_VGATXT 3 +#define DT_VESAFB 4 + +#define DEV_CONTROL 0xB0057ED1 // hack, see doc/vfs.txt #endif -- cgit v1.2.3