summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/asm-mips/keyboard.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/asm-mips/keyboard.h b/include/asm-mips/keyboard.h
index 303f98958..7bd351a4c 100644
--- a/include/asm-mips/keyboard.h
+++ b/include/asm-mips/keyboard.h
@@ -13,10 +13,13 @@
#include <linux/delay.h>
#include <linux/ioport.h>
+#include <linux/config.h>
#include <asm/bootinfo.h>
#define DISABLE_KBD_DURING_INTERRUPTS 0
+#ifdef CONFIG_PC_KEYB
+
extern int pckbd_setkeycode(unsigned int scancode, unsigned int keycode);
extern int pckbd_getkeycode(unsigned int scancode);
extern int pckbd_translate(unsigned char scancode, unsigned char *keycode,
@@ -35,6 +38,18 @@ extern void kbd_forward_char (int ch);
#define kbd_init_hw pckbd_init_hw
#define kbd_sysrq_xlate pckbd_sysrq_xlate
+#else
+
+extern int kbd_setkeycode(unsigned int scancode, unsigned int keycode);
+extern int kbd_getkeycode(unsigned int scancode);
+extern int kbd_translate(unsigned char scancode, unsigned char *keycode,
+ char raw_mode);
+extern char kbd_unexpected_up(unsigned char keycode);
+extern void kbd_leds(unsigned char leds);
+extern void kbd_init_hw(void);
+
+#endif
+
#define SYSRQ_KEY 0x54
/* Some stoneage hardware needs delays after some operations. */