2 * linux/include/asm-ppc/keyboard.h
4 * Created 3 Nov 1996 by Geert Uytterhoeven
5 * Modified for Power Macintosh by Paul Mackerras
9 * This file contains the ppc architecture specific keyboard definitions -
10 * like the intel pc for prep systems, different for power macs.
13 #ifndef __ASMPPC_KEYBOARD_H
14 #define __ASMPPC_KEYBOARD_H
18 #include <linux/config.h>
20 #include <asm/machdep.h>
22 #include <asm-m68k/keyboard.h>
25 #define KEYBOARD_IRQ 1
26 #define DISABLE_KBD_DURING_INTERRUPTS 0
29 static inline int kbd_setkeycode(unsigned int scancode
, unsigned int keycode
)
31 if ( ppc_md
.kbd_setkeycode
)
32 return ppc_md
.kbd_setkeycode(scancode
, keycode
);
37 static inline int kbd_getkeycode(unsigned int scancode
)
39 if ( ppc_md
.kbd_getkeycode
)
40 return ppc_md
.kbd_getkeycode(scancode
);
45 static inline int kbd_translate(unsigned char keycode
, unsigned char *keycodep
,
48 if ( ppc_md
.kbd_translate
)
49 return ppc_md
.kbd_translate(keycode
, keycodep
, raw_mode
);
54 static inline int kbd_unexpected_up(unsigned char keycode
)
56 if ( ppc_md
.kbd_unexpected_up
)
57 return ppc_md
.kbd_unexpected_up(keycode
);
62 static inline void kbd_leds(unsigned char leds
)
64 if ( ppc_md
.kbd_leds
)
65 ppc_md
.kbd_leds(leds
);
68 static inline void kbd_init_hw(void)
70 if ( ppc_md
.kbd_init_hw
)
74 #define kbd_sysrq_xlate (ppc_md.ppc_kbd_sysrq_xlate)
76 extern unsigned long SYSRQ_KEY
;
78 #endif /* CONFIG_APUS */
80 #endif /* __KERNEL__ */
82 #endif /* __ASMPPC_KEYBOARD_H */