projects
/
seabios.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
grml...
[seabios.git]
/
src
/
kbd.c
diff --git
a/src/kbd.c
b/src/kbd.c
index 36c89fca2a928c748e58288e2a2566db172b3b13..1977c5d018c72ff87da3a8e90882090d97a3b356 100644
(file)
--- a/
src/kbd.c
+++ b/
src/kbd.c
@@
-9,7
+9,8
@@
#include "util.h" // debug_enter
#include "config.h" // CONFIG_*
#include "bregs.h" // struct bregs
#include "util.h" // debug_enter
#include "config.h" // CONFIG_*
#include "bregs.h" // struct bregs
-#include "ps2port.h" // kbd_command
+#include "ps2port.h" // ps2_kbd_command
+#include "usb-hid.h" // usb_kbd_command
// Bit definitions for BDA kbd_flag[012]
#define KF0_RSHIFT (1<<0)
// Bit definitions for BDA kbd_flag[012]
#define KF0_RSHIFT (1<<0)
@@
-109,6
+110,14
@@
dequeue_key(struct bregs *regs, int incr, int extended)
SET_BDA(kbd_buf_head, buffer_head);
}
SET_BDA(kbd_buf_head, buffer_head);
}
+static inline int
+kbd_command(int command, u8 *param)
+{
+ if (usb_kbd_active())
+ return usb_kbd_command(command, param);
+ return ps2_kbd_command(command, param);
+}
+
// read keyboard input
static void
handle_1600(struct bregs *regs)
// read keyboard input
static void
handle_1600(struct bregs *regs)