Merge tag 'v3.3.7' into 3.3/master
[zen-stable.git] / drivers / staging / nvec / nvec-keytable.h
blob1dc22cb8812a2c73ee9e3cde1d79d75aa811bbed
1 /*
2 * drivers/input/keyboard/tegra-nvec.c
4 * Keyboard class input driver for keyboards connected to an NvEc compliant
5 * embedded controller
7 * Copyright (c) 2009, NVIDIA Corporation.
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
14 * This program is distributed in the hope that it will be useful, but WITHOUT
15 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
16 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
17 * more details.
19 * You should have received a copy of the GNU General Public License along
20 * with this program; if not, write to the Free Software Foundation, Inc.,
21 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
24 static unsigned short code_tab_102us[] = {
25 /* 0x00 */
26 KEY_GRAVE,
27 KEY_ESC,
28 KEY_1,
29 KEY_2,
30 KEY_3,
31 KEY_4,
32 KEY_5,
33 KEY_6,
34 KEY_7,
35 KEY_8,
36 KEY_9,
37 KEY_0,
38 KEY_MINUS,
39 KEY_EQUAL,
40 KEY_BACKSPACE,
41 KEY_TAB,
42 /* 0x10 */
43 KEY_Q,
44 KEY_W,
45 KEY_E,
46 KEY_R,
47 KEY_T,
48 KEY_Y,
49 KEY_U,
50 KEY_I,
51 KEY_O,
52 KEY_P,
53 KEY_LEFTBRACE,
54 KEY_RIGHTBRACE,
55 KEY_ENTER,
56 KEY_LEFTCTRL,
57 KEY_A,
58 KEY_S,
59 /* 0x20 */
60 KEY_D,
61 KEY_F,
62 KEY_G,
63 KEY_H,
64 KEY_J,
65 KEY_K,
66 KEY_L,
67 KEY_SEMICOLON,
68 KEY_APOSTROPHE,
69 KEY_GRAVE,
70 KEY_LEFTSHIFT,
71 KEY_BACKSLASH,
72 KEY_Z,
73 KEY_X,
74 KEY_C,
75 KEY_V,
76 /* 0x30 */
77 KEY_B,
78 KEY_N,
79 KEY_M,
80 KEY_COMMA,
81 KEY_DOT,
82 KEY_SLASH,
83 KEY_RIGHTSHIFT,
84 KEY_KPASTERISK,
85 KEY_LEFTALT,
86 KEY_SPACE,
87 KEY_CAPSLOCK,
88 KEY_F1,
89 KEY_F2,
90 KEY_F3,
91 KEY_F4,
92 KEY_F5,
93 /* 0x40 */
94 KEY_F6,
95 KEY_F7,
96 KEY_F8,
97 KEY_F9,
98 KEY_F10,
99 KEY_FN,
100 /* VK_SCROLL */
102 KEY_KP7,
103 KEY_KP8,
104 KEY_KP9,
105 KEY_KPMINUS,
106 KEY_KP4,
107 KEY_KP5,
108 KEY_KP6,
109 KEY_KPPLUS,
110 KEY_KP1,
111 /* 0x50 */
112 KEY_KP2,
113 KEY_KP3,
114 KEY_KP0,
115 KEY_KPDOT,
116 /* VK_SNAPSHOT */
117 KEY_MENU,
118 KEY_POWER,
119 /* VK_OEM_102 */
120 KEY_102ND,
121 KEY_F11,
122 KEY_F12,
130 /* 0x60 */
134 KEY_SEARCH,
147 /* 0x70 */
151 KEY_KP5,
161 KEY_KP9,
164 static unsigned short extcode_tab_us102[] = {
181 /* 0x10 */
191 /* VK_MEDIA_NEXT_TRACK */
195 /* VK_RETURN */
197 KEY_RIGHTCTRL,
200 /* 0x20 */
201 KEY_MUTE,
202 /* VK_LAUNCH_APP1 */
204 /* VK_MEDIA_PLAY_PAUSE */
207 /* VK_MEDIA_STOP */
220 /* 0x30 */
221 KEY_VOLUMEUP,
223 /* VK_BROWSER_HOME */
227 /* VK_DIVIDE */
228 KEY_KPSLASH,
230 /* VK_SNAPSHOT */
231 KEY_SYSRQ,
232 /* VK_RMENU */
233 KEY_RIGHTALT,
234 /* VK_OEM_NV_BACKLIGHT_UP */
236 /* VK_OEM_NV_BACKLIGHT_DN */
238 /* VK_OEM_NV_BACKLIGHT_AUTOTOGGLE */
240 /* VK_OEM_NV_POWER_INFO */
242 /* VK_OEM_NV_WIFI_TOGGLE */
244 /* VK_OEM_NV_DISPLAY_SELECT */
246 /* VK_OEM_NV_AIRPLANE_TOGGLE */
248 /* 0x40 */
250 KEY_LEFT,
255 KEY_CANCEL,
256 KEY_HOME,
257 KEY_UP,
258 KEY_PAGEUP,
260 KEY_LEFT,
262 KEY_RIGHT,
264 KEY_END,
265 /* 0x50 */
266 KEY_DOWN,
267 KEY_PAGEDOWN,
268 KEY_INSERT,
269 KEY_DELETE,
277 KEY_LEFTMETA,
279 KEY_ESC,
280 KEY_KPMINUS,
287 /* VK_BROWSER_SEARCH */
289 /* VK_BROWSER_FAVORITES */
291 /* VK_BROWSER_REFRESH */
293 /* VK_BROWSER_STOP */
295 /* VK_BROWSER_FORWARD */
297 /* VK_BROWSER_BACK */
299 /* VK_LAUNCH_APP2 */
301 /* VK_LAUNCH_MAIL */
303 /* VK_LAUNCH_MEDIA_SELECT */
307 static unsigned short *code_tabs[] = { code_tab_102us, extcode_tab_us102 };