2 * linux/include/asm-arm/arch-ti926/keyboard.h
4 * Copyright (C) 2000 RidgeRun, Inc.
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_ARCH_CPE_KEYBOARD_H
13 #define __ASM_ARM_ARCH_CPE_KEYBOARD_H
15 #define kbd_request_region()
17 #define aux_request_irq
20 #ifdef CONFIG_FARADAY_KMI /// ¦³ keyboard
21 ///#define kbd_setkeycode fkmi_setkeycode
22 ///#define kbd_getkeycode fkmi_getkeycode
23 ///#define kbd_translate fkmi_translate
24 ///#define kbd_unexpected_up fkmi_unexpected_up
25 #define kbd_leds fkmi_leds
26 ///#define kbd_init_hw fkmi_init_hw
27 #define kbd_enable_irq()
28 #define kbd_disable_irq()
30 #define kbd_setkeycode(sc,kc) (-EINVAL)
31 #define kbd_getkeycode(sc) (-EINVAL)
32 #define kbd_translate(sc,kcp,rm) ({ *(kcp) = (sc); 1; })
33 #define kbd_unexpected_up(kc) (0200)
34 #define kbd_leds(leds)
36 #define kbd_enable_irq()
37 #define kbd_disable_irq()
40 /* add by Charles Tsai for keyboard output process */
41 typedef struct StructFaradayLEDS
{
42 unsigned int LEDS
; /* final LED state */
43 unsigned int LEDSState
[3]; /* 0: up 1:down*/
44 unsigned int LEDSOnOff
[3]; /* 0:off, 1:on*/
45 unsigned int update
; /* 1: need update, 0: no need*/
47 #define FA_SCROLL_LOCK 0x46
48 #define FA_NUM_LOCK 0x45
49 #define FA_CAP_LOCK 0x3a
50 #define FA_KMI_ACK 0xfa
53 #endif /* __ASM_ARM_ARCH_TI925_KEYBOARD_H */