Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
hpps2atkbd.h
Go to the documentation of this file.
1 /*
2  * drivers/input/keyboard/hpps2atkbd.h
3  *
4  * Copyright (c) 2004 Helge Deller <[email protected]>
5  * Copyright (c) 2002 Laurent Canet <[email protected]>
6  * Copyright (c) 2002 Thibaut Varene <[email protected]>
7  * Copyright (c) 2000 Xavier Debacker <[email protected]>
8  *
9  * HP PS/2 AT-compatible Keyboard, found in PA/RISC Workstations & Laptops
10  *
11  * This file is subject to the terms and conditions of the GNU General Public
12  * License. See the file "COPYING" in the main directory of this archive
13  * for more details.
14  */
15 
16 
17 /* Is the keyboard an RDI PrecisionBook? */
18 #ifndef CONFIG_KEYBOARD_ATKBD_RDI_KEYCODES
19 # define CONFLICT(x,y) x
20 #else
21 # define CONFLICT(x,y) y
22 #endif
23 
24 /* sadly RDI (Tadpole) decided to ship a different keyboard layout
25  than HP for their PS/2 laptop keyboard which leads to conflicting
26  keycodes between a normal HP PS/2 keyboard and a RDI Precisionbook.
27  HP: RDI: */
28 #define C_07 CONFLICT( KEY_F12, KEY_F1 )
29 #define C_11 CONFLICT( KEY_LEFTALT, KEY_LEFTCTRL )
30 #define C_14 CONFLICT( KEY_LEFTCTRL, KEY_CAPSLOCK )
31 #define C_58 CONFLICT( KEY_CAPSLOCK, KEY_RIGHTCTRL )
32 #define C_61 CONFLICT( KEY_102ND, KEY_LEFT )
33 
34 /* Raw SET 2 scancode table */
35 
68 
69 /* These are offset for escaped keycodes: */
70 
103 
104 #undef CONFLICT
105 #undef C_07
106 #undef C_11
107 #undef C_14
108 #undef C_58
109 #undef C_61
110