From 740ae2e69995df37c44fe61f57642ee642982ca2 Mon Sep 17 00:00:00 2001 From: Miguel Date: Sun, 16 Sep 2018 11:39:36 +0200 Subject: cleanup and starting improve mounts and file access (pipes, sysfiles, ext2) --- driver/keyboard.c | 6 ++---- driver/keyboard.h | 7 +++++++ 2 files changed, 9 insertions(+), 4 deletions(-) (limited to 'driver') diff --git a/driver/keyboard.c b/driver/keyboard.c index f188cfc..d276f51 100644 --- a/driver/keyboard.c +++ b/driver/keyboard.c @@ -1,10 +1,7 @@ -/// idiots keyboard driver //// -// http://www.computer-engineering.org/ps2keyboard/scancodes1.html - - #include "asm_x86.h" #include "keyboard.h" #include "syscalls.h" +#include "log.h" #include @@ -17,6 +14,7 @@ static uint32_t kb_stream; static void put(uint8_t c) { + klog("%c",c); syscall_write(kb_stream,(char *)&c,1); } diff --git a/driver/keyboard.h b/driver/keyboard.h index 03462f3..0e746ba 100644 --- a/driver/keyboard.h +++ b/driver/keyboard.h @@ -1,2 +1,9 @@ +/** + * @file + * +/// idiots keyboard driver //// +// http://www.computer-engineering.org/ps2keyboard/scancodes1.html +// */ + void keyboard_init(uint32_t s); void keyboard_handle(uint8_t in); -- cgit v1.2.3