3 #include "../net/net.h"
6 /* Takes over the i8042... oh well. If we ever fully emulate the i8042,
7 * then we'll patch into that.
10 #define KEYBOARD_PORT 0x60
11 #define KEYB_STATUS_PORT 0x64
17 unsigned char scancode;
19 /* Ignore accesses -- XXX hack */
25 while (!(inb(KEYB_STATUS_PORT) & KEYB_OBF))
28 scancode = inb(KEYBOARD_PORT);
29 outputf("scancode: %02x", scancode);
30 key = process_scancode(scancode);
31 } while (!KH_HASDATA(key) || !KH_ISMAKE(key));
38 return KH_GETCHAR(key);