2 * drivers/input/keyboard/tegra-nvec.c
4 * Keyboard class input driver for keyboards connected to an NvEc compliant
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
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
[] = {
109 KEY_MENU
, //VK_SNAPSHOT
111 KEY_102ND
, //VK_OEM_102 henry+ 0x2B (43) BACKSLASH have been used,change to use 0X56 (86)
124 KEY_SEARCH
, // add search key map
140 KEY_KP5
, //73 for JP keyboard '\' key, report 0x4c
150 KEY_KP9
, //7d for JP keyboard '|' key, report 0x49
153 static unsigned short extcode_tab_us102
[] = {
179 0, //VK_MEDIA_NEXT_TRACK,
183 KEY_RIGHTCTRL
, //VK_RCONTROL,
186 KEY_MUTE
, // 0xE0 0x20
188 0, //VK_MEDIA_PLAY_PAUSE
202 KEY_VOLUMEUP
, // 0xE0 0x30
207 KEY_KPSLASH
, //VK_DIVIDE
209 KEY_SYSRQ
, //VK_SNAPSHOT
210 KEY_RIGHTALT
, //VK_RMENU
211 0, //VK_OEM_NV_BACKLIGHT_UP
212 0, //VK_OEM_NV_BACKLIGHT_DN
213 0, //VK_OEM_NV_BACKLIGHT_AUTOTOGGLE
214 0, //VK_OEM_NV_POWER_INFO
215 0, //VK_OEM_NV_WIFI_TOGGLE
216 0, //VK_OEM_NV_DISPLAY_SELECT
217 0, //VK_OEM_NV_AIRPLANE_TOGGLE
219 KEY_LEFT
, //VK_OEM_NV_RESERVED henry+ for JP keyboard
220 0, //VK_OEM_NV_RESERVED
221 0, //VK_OEM_NV_RESERVED
222 0, //VK_OEM_NV_RESERVED
223 0, //VK_OEM_NV_RESERVED
227 KEY_PAGEUP
, //VK_PRIOR
234 KEY_DOWN
, // 0xE0 0x50
235 KEY_PAGEDOWN
, //VK_NEXT
245 KEY_LEFTMETA
, //VK_LWIN
248 KEY_KPMINUS
, //for power button workaround
255 0, //VK_BROWSER_SEARCH
256 0, //VK_BROWSER_FAVORITES
257 0, //VK_BROWSER_REFRESH
259 0, //VK_BROWSER_FORWARD
263 0, //VK_LAUNCH_MEDIA_SELECT
266 static unsigned short* code_tabs
[] = {code_tab_102us
, extcode_tab_us102
};