2 * linux/include/asm-arm/keyboard.h
4 * Copyright (C) 1998 Russell King
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
10 * Keyboard driver definitions for ARM
12 #ifndef __ASM_ARM_KEYBOARD_H
13 #define __ASM_ARM_KEYBOARD_H
19 * We provide a unified keyboard interface when in VC_MEDIUMRAW
20 * mode. This means that all keycodes must be common between
21 * all supported keyboards. This unfortunately puts us at odds
22 * with the PC keyboard interface chip... but we can't do anything
27 extern int (*k_setkeycode)(unsigned int, unsigned int);
28 extern int (*k_getkeycode)(unsigned int);
29 extern int (*k_translate)(unsigned char, unsigned char *, char);
30 extern char (*k_unexpected_up)(unsigned char);
31 extern void (*k_leds)(unsigned char);
34 static inline int kbd_setkeycode(unsigned int sc, unsigned int kc)
39 ret = k_setkeycode(sc, kc);
44 static inline int kbd_getkeycode(unsigned int sc)
49 ret = k_getkeycode(sc);
54 static inline void kbd_leds(unsigned char leds)
60 extern int k_sysrq_key;
61 extern unsigned char *k_sysrq_xlate;
63 #define SYSRQ_KEY k_sysrq_key
64 #define kbd_sysrq_xlate k_sysrq_xlate
65 #define kbd_translate k_translate
66 #define kbd_unexpected_up k_unexpected_up
68 #include <asm/arch/keyboard.h>
70 #endif /* __KERNEL__ */
72 #endif /* __ASM_ARM_KEYBOARD_H */