summaryrefslogtreecommitdiffstats
path: root/include/asm-m68k/keyboard.h
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>1999-06-13 16:29:25 +0000
committerRalf Baechle <ralf@linux-mips.org>1999-06-13 16:29:25 +0000
commitdb7d4daea91e105e3859cf461d7e53b9b77454b2 (patch)
tree9bb65b95440af09e8aca63abe56970dd3360cc57 /include/asm-m68k/keyboard.h
parent9c1c01ead627bdda9211c9abd5b758d6c687d8ac (diff)
Merge with Linux 2.2.8.
Diffstat (limited to 'include/asm-m68k/keyboard.h')
-rw-r--r--include/asm-m68k/keyboard.h25
1 files changed, 20 insertions, 5 deletions
diff --git a/include/asm-m68k/keyboard.h b/include/asm-m68k/keyboard.h
index eccadf2e3..555ef68ec 100644
--- a/include/asm-m68k/keyboard.h
+++ b/include/asm-m68k/keyboard.h
@@ -16,31 +16,46 @@
#include <asm/machdep.h>
+#ifdef CONFIG_Q40
+#include <asm/q40_keyboard.h>
+#endif
+
static __inline__ int kbd_setkeycode(unsigned int scancode,
unsigned int keycode)
{
+#ifdef CONFIG_Q40
+ if (MACH_IS_Q40)
+ return q40kbd_setkeycode(scancode,keycode);
+#endif
return -EOPNOTSUPP;
}
static __inline__ int kbd_getkeycode(unsigned int scancode)
{
+#ifdef CONFIG_Q40
+ if (MACH_IS_Q40)
+ return q40kbd_getkeycode(scancode);
+#endif
return scancode > 127 ? -EINVAL : scancode;
}
-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)
{
+#ifdef CONFIG_Q40
+ if (MACH_IS_Q40)
+ return q40kbd_translate(scancode,keycode,raw_mode);
+#endif
*keycode = scancode;
return 1;
}
static __inline__ char kbd_unexpected_up(unsigned char keycode)
{
+#ifdef CONFIG_Q40
+ if (MACH_IS_Q40)
+ return q40kbd_unexpected_up(keycode);
+#endif
return 0200;
}