summaryrefslogtreecommitdiffstats
path: root/include/asm-mips
diff options
context:
space:
mode:
authorHarald Koerfgen <hkoerfg@web.de>2000-12-30 15:55:57 +0000
committerHarald Koerfgen <hkoerfg@web.de>2000-12-30 15:55:57 +0000
commit5ffede5ab53ed46d1fe59f902062ba06bde59bbd (patch)
tree5ecd8d67d3f1f6c5896e3feff2bda63b1538a338 /include/asm-mips
parent2cb8ea0ed322d8fdf15bfb726dd0d684b9eafdaf (diff)
LK201 keyboard and PMAG-BA framebuffer driver for DECstations
Diffstat (limited to 'include/asm-mips')
-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. */