1 /*
2 * linux/include/asm-m68k/keyboard.h
3 *
4 * Created 3 Nov 1996 by Geert Uytterhoeven
5 */
6
7 /*
8 * This file contains the m68k architecture specific keyboard definitions
9 */
10
11 #ifndef __M68K_KEYBOARD_H
12 #define __M68K_KEYBOARD_H
13
14 #ifdef __KERNEL__
15
16 #include <linux/config.h>
17 #include <asm/machdep.h>
18
19 #ifdef CONFIG_Q40
20 #include <asm/q40_keyboard.h>
21 #endif
22
23 static __inline__ int kbd_setkeycode(unsigned int scancode,
24 unsigned int keycode)
25 {
26 #ifdef CONFIG_Q40
27 if (MACH_IS_Q40)
28 return q40kbd_setkeycode(scancode,keycode);
29 #endif
30 return -EOPNOTSUPP;
31 }
32
33 static __inline__ int kbd_getkeycode(unsigned int scancode)
34 {
35 #ifdef CONFIG_Q40
36 if (MACH_IS_Q40)
37 return q40kbd_getkeycode(scancode);
38 #endif
39 return scancode > 127 ? -EINVAL : scancode;
40 }
41
42 static __inline__ char kbd_unexpected_up(unsigned char keycode)
43 {
44 #ifdef CONFIG_Q40
45 if (MACH_IS_Q40)
46 return q40kbd_unexpected_up(keycode);
47 #endif
48 return 0200;
49 }
50
51 static __inline__ void kbd_leds(unsigned char leds)
52 {
53 if (mach_kbd_leds)
54 mach_kbd_leds(leds);
55 }
56
57 #define kbd_init_hw mach_keyb_init
58 #define kbd_translate mach_kbd_translate
59
60 #define kbd_sysrq_xlate mach_sysrq_xlate
61
62 /* resource allocation */
63 #define kbd_request_region()
64 #define kbd_request_irq(handler)
65
66 extern unsigned int SYSRQ_KEY;
67
68 #endif /* __KERNEL__ */
69
70 #endif /* __M68K_KEYBOARD_H */
71
This page was automatically generated by the
LXR engine.
Visit the LXR main site for more
information.