summaryrefslogtreecommitdiffstats
path: root/include/asm-m68k/keyboard.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-m68k/keyboard.h')
-rw-r--r--include/asm-m68k/keyboard.h38
1 files changed, 36 insertions, 2 deletions
diff --git a/include/asm-m68k/keyboard.h b/include/asm-m68k/keyboard.h
index 6c8c0abff..e4c602263 100644
--- a/include/asm-m68k/keyboard.h
+++ b/include/asm-m68k/keyboard.h
@@ -13,10 +13,44 @@
#ifdef __KERNEL__
-#define TRANSLATE_SCANCODES 0
-#define USE_MACHDEP_ABSTRACTION 1
#include <asm/machdep.h>
+static __inline__ int kbd_setkeycode(unsigned int scancode,
+ unsigned int keycode)
+{
+ return -EOPNOTSUPP;
+}
+
+static __inline__ int kbd_getkeycode(unsigned int scancode)
+{
+ return -EOPNOTSUPP;
+}
+
+static __inline__ int kbd_pretranslate(unsigned char scancode, char raw_mode)
+{
+ return 1;
+}
+
+static __inline__ int kbd_translate(unsigned char scancode,
+ unsigned char *keycode, char raw_mode)
+{
+ *keycode = scancode;
+ return 1;
+}
+
+static __inline__ char kbd_unexpected_up(unsigned char keycode)
+{
+ return 0200;
+}
+
+static __inline__ void kbd_leds(unsigned char leds)
+{
+ if (mach_kbd_leds)
+ mach_kbd_leds(leds);
+}
+
+#define kbd_init_hw mach_keyb_init
+
#endif /* __KERNEL__ */
#endif /* __ASMm68k_KEYBOARD_H */