Ok. I didn't make 2.4.0 in 2000. Tough. I tried, but we had some
[davej-history.git] / include / asm-m68k / keyboard.h
blob4129be7011e6614fc9f05a163d83fac7596a960f
1 /*
2 * linux/include/asm-m68k/keyboard.h
4 * Created 3 Nov 1996 by Geert Uytterhoeven
5 */
7 /*
8 * This file contains the m68k architecture specific keyboard definitions
9 */
11 #ifndef __M68K_KEYBOARD_H
12 #define __M68K_KEYBOARD_H
14 #ifdef __KERNEL__
16 #include <linux/config.h>
17 #include <asm/machdep.h>
19 #ifdef CONFIG_Q40
20 #include <asm/q40_keyboard.h>
21 #endif
23 static __inline__ int kbd_setkeycode(unsigned int scancode,
24 unsigned int keycode)
26 #ifdef CONFIG_Q40
27 if (MACH_IS_Q40)
28 return q40kbd_setkeycode(scancode,keycode);
29 #endif
30 return -EOPNOTSUPP;
33 static __inline__ int kbd_getkeycode(unsigned int scancode)
35 #ifdef CONFIG_Q40
36 if (MACH_IS_Q40)
37 return q40kbd_getkeycode(scancode);
38 #endif
39 return scancode > 127 ? -EINVAL : scancode;
42 static __inline__ char kbd_unexpected_up(unsigned char keycode)
44 #ifdef CONFIG_Q40
45 if (MACH_IS_Q40)
46 return q40kbd_unexpected_up(keycode);
47 #endif
48 return 0200;
51 static __inline__ void kbd_leds(unsigned char leds)
53 if (mach_kbd_leds)
54 mach_kbd_leds(leds);
57 #define kbd_init_hw mach_keyb_init
58 #define kbd_translate mach_kbd_translate
60 #define kbd_sysrq_xlate mach_sysrq_xlate
62 /* resource allocation */
63 #define kbd_request_region()
64 #define kbd_request_irq(handler)
66 extern unsigned int SYSRQ_KEY;
68 #endif /* __KERNEL__ */
70 #endif /* __M68K_KEYBOARD_H */