summaryrefslogtreecommitdiff
path: root/driver
diff options
context:
space:
mode:
authorMiguel <m.i@gmx.at>2018-09-16 11:39:36 +0200
committerMiguel <m.i@gmx.at>2018-09-16 11:39:36 +0200
commit740ae2e69995df37c44fe61f57642ee642982ca2 (patch)
treeb84ec79e9243fd0fe103fab1c1acc1e91e60f53d /driver
parente0449c5adc89eec9f378cb40a56762bf314a80ea (diff)
cleanup and starting improve mounts and file access (pipes, sysfiles, ext2)
Diffstat (limited to 'driver')
-rw-r--r--driver/keyboard.c6
-rw-r--r--driver/keyboard.h7
2 files changed, 9 insertions, 4 deletions
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 <stdbool.h>
@@ -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);