summaryrefslogtreecommitdiff
path: root/driver/keyboard.c
diff options
context:
space:
mode:
Diffstat (limited to 'driver/keyboard.c')
-rw-r--r--driver/keyboard.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/driver/keyboard.c b/driver/keyboard.c
index d201882..b9a1dad 100644
--- a/driver/keyboard.c
+++ b/driver/keyboard.c
@@ -7,6 +7,8 @@
#include <stdbool.h>
+#include "inet.h"
+
static bool ctrl_l=false;
static bool shift_l=false;
static bool shift_r=false;
@@ -21,8 +23,11 @@ int hex_to_dec(char c)
return c+10-'a';
}
+
+extern struct netdev e1000_dev;
static void put(uint8_t c)
{
+ if(c=='p')net_packet(&e1000_dev);
syscall_generic(SYSCALL_WRITE,kb_stream, (char *)&c , 1, 0);
}