diff options
author | Alex AUVOLAT <alexis211@gmail.com> | 2013-07-11 22:38:20 +0200 |
---|---|---|
committer | Alex AUVOLAT <alexis211@gmail.com> | 2013-07-11 22:38:20 +0200 |
commit | d2aebee488b71e6f28b8728e7473b63f412ca897 (patch) | |
tree | fbe432590bfcf0b77b189a3db99762fb4f104f39 /src/include | |
parent | 78d7ffce4861dea5624ff29ceb39f1643dff8235 (diff) | |
download | TCE-d2aebee488b71e6f28b8728e7473b63f412ca897.tar.gz TCE-d2aebee488b71e6f28b8728e7473b63f412ca897.zip |
Added direct acces to video memory from userland.std_c_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.
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/tce/syscalls.h | 1 | ||||
-rw-r--r-- | src/include/tce/vfs.h | 7 |
2 files changed, 6 insertions, 2 deletions
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 |