2 * linux/include/asm-m68k/keyboard.h
4 * Created 3 Nov 1996 by Geert Uytterhoeven
8 * This file contains the m68k architecture specific keyboard definitions
11 #ifndef __M68K_KEYBOARD_H
12 #define __M68K_KEYBOARD_H
16 #include <linux/config.h>
18 #include <asm/machdep.h>
21 #include <asm/q40_keyboard.h>
24 static __inline__ int kbd_setkeycode(unsigned int scancode,
29 return q40kbd_setkeycode(scancode,keycode);
34 static __inline__ int kbd_getkeycode(unsigned int scancode)
38 return q40kbd_getkeycode(scancode);
40 return scancode > 127 ? -EINVAL : scancode;
43 static __inline__ char kbd_unexpected_up(unsigned char keycode)
47 return q40kbd_unexpected_up(keycode);
52 static __inline__ void kbd_leds(unsigned char leds)
58 #define kbd_init_hw mach_keyb_init
59 #define kbd_translate mach_kbd_translate
60 #define kbd_rate mach_kbdrate
62 #define kbd_sysrq_xlate mach_sysrq_xlate
64 /* resource allocation */
65 #define kbd_request_region()
66 #define kbd_request_irq(handler)
68 extern unsigned int SYSRQ_KEY;
70 #endif /* __KERNEL__ */
72 #endif /* __M68K_KEYBOARD_H */