gpio: rcar: Fix runtime PM imbalance on error
[linux/fpc-iii.git] / drivers / staging / nvec / nvec-keytable.h
blobac58e87e6a4ebcf4d2a2583b00ddb2837e0cb752
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3 * drivers/input/keyboard/tegra-nvec.c
5 * Keyboard class input driver for keyboards connected to an NvEc compliant
6 * embedded controller
8 * Copyright (c) 2009, NVIDIA Corporation.
9 */
11 static unsigned short code_tab_102us[] = {
12 /* 0x00 */
13 KEY_GRAVE,
14 KEY_ESC,
15 KEY_1,
16 KEY_2,
17 KEY_3,
18 KEY_4,
19 KEY_5,
20 KEY_6,
21 KEY_7,
22 KEY_8,
23 KEY_9,
24 KEY_0,
25 KEY_MINUS,
26 KEY_EQUAL,
27 KEY_BACKSPACE,
28 KEY_TAB,
29 /* 0x10 */
30 KEY_Q,
31 KEY_W,
32 KEY_E,
33 KEY_R,
34 KEY_T,
35 KEY_Y,
36 KEY_U,
37 KEY_I,
38 KEY_O,
39 KEY_P,
40 KEY_LEFTBRACE,
41 KEY_RIGHTBRACE,
42 KEY_ENTER,
43 KEY_LEFTCTRL,
44 KEY_A,
45 KEY_S,
46 /* 0x20 */
47 KEY_D,
48 KEY_F,
49 KEY_G,
50 KEY_H,
51 KEY_J,
52 KEY_K,
53 KEY_L,
54 KEY_SEMICOLON,
55 KEY_APOSTROPHE,
56 KEY_GRAVE,
57 KEY_LEFTSHIFT,
58 KEY_BACKSLASH,
59 KEY_Z,
60 KEY_X,
61 KEY_C,
62 KEY_V,
63 /* 0x30 */
64 KEY_B,
65 KEY_N,
66 KEY_M,
67 KEY_COMMA,
68 KEY_DOT,
69 KEY_SLASH,
70 KEY_RIGHTSHIFT,
71 KEY_KPASTERISK,
72 KEY_LEFTALT,
73 KEY_SPACE,
74 KEY_CAPSLOCK,
75 KEY_F1,
76 KEY_F2,
77 KEY_F3,
78 KEY_F4,
79 KEY_F5,
80 /* 0x40 */
81 KEY_F6,
82 KEY_F7,
83 KEY_F8,
84 KEY_F9,
85 KEY_F10,
86 KEY_FN,
87 /* VK_SCROLL */
89 KEY_KP7,
90 KEY_KP8,
91 KEY_KP9,
92 KEY_KPMINUS,
93 KEY_KP4,
94 KEY_KP5,
95 KEY_KP6,
96 KEY_KPPLUS,
97 KEY_KP1,
98 /* 0x50 */
99 KEY_KP2,
100 KEY_KP3,
101 KEY_KP0,
102 KEY_KPDOT,
103 /* VK_SNAPSHOT */
104 KEY_MENU,
105 KEY_POWER,
106 /* VK_OEM_102 */
107 KEY_102ND,
108 KEY_F11,
109 KEY_F12,
117 /* 0x60 */
121 KEY_SEARCH,
134 /* 0x70 */
138 KEY_KP5,
148 KEY_KP9,
151 static unsigned short extcode_tab_us102[] = {
168 /* 0x10 */
178 /* VK_MEDIA_NEXT_TRACK */
182 /* VK_RETURN */
184 KEY_RIGHTCTRL,
187 /* 0x20 */
188 KEY_MUTE,
189 /* VK_LAUNCH_APP1 */
191 /* VK_MEDIA_PLAY_PAUSE */
194 /* VK_MEDIA_STOP */
207 /* 0x30 */
208 KEY_VOLUMEUP,
210 /* VK_BROWSER_HOME */
214 /* VK_DIVIDE */
215 KEY_KPSLASH,
217 /* VK_SNAPSHOT */
218 KEY_SYSRQ,
219 /* VK_RMENU */
220 KEY_RIGHTALT,
221 /* VK_OEM_NV_BACKLIGHT_UP */
223 /* VK_OEM_NV_BACKLIGHT_DN */
225 /* VK_OEM_NV_BACKLIGHT_AUTOTOGGLE */
227 /* VK_OEM_NV_POWER_INFO */
229 /* VK_OEM_NV_WIFI_TOGGLE */
231 /* VK_OEM_NV_DISPLAY_SELECT */
233 /* VK_OEM_NV_AIRPLANE_TOGGLE */
235 /* 0x40 */
237 KEY_LEFT,
242 KEY_CANCEL,
243 KEY_HOME,
244 KEY_UP,
245 KEY_PAGEUP,
247 KEY_LEFT,
249 KEY_RIGHT,
251 KEY_END,
252 /* 0x50 */
253 KEY_DOWN,
254 KEY_PAGEDOWN,
255 KEY_INSERT,
256 KEY_DELETE,
264 KEY_LEFTMETA,
266 KEY_ESC,
267 KEY_KPMINUS,
274 /* VK_BROWSER_SEARCH */
276 /* VK_BROWSER_FAVORITES */
278 /* VK_BROWSER_REFRESH */
280 /* VK_BROWSER_STOP */
282 /* VK_BROWSER_FORWARD */
284 /* VK_BROWSER_BACK */
286 /* VK_LAUNCH_APP2 */
288 /* VK_LAUNCH_MAIL */
290 /* VK_LAUNCH_MEDIA_SELECT */
294 static unsigned short *code_tabs[] = { code_tab_102us, extcode_tab_us102 };