2
0

010-dt-sync-files-with-kernel.patch 41 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403
  1. From 4bb656e9dde2019cb42ac4c27b3a114a801ad127 Mon Sep 17 00:00:00 2001
  2. From: Hans de Goede <hdegoede@redhat.com>
  3. Date: Wed, 16 Mar 2016 13:41:23 +0100
  4. Subject: [PATCH] include/dt-bindings: Sync some files with the kernel
  5. This commit syncs the dt-bindings/input/* headers with the kernel (v4.5)
  6. and adds dt-bindings/clock/sun4i-a10-pll2.h, both are necessary for newer
  7. sunxi dts files to build.
  8. Signed-off-by: Hans de Goede <hdegoede@redhat.com>
  9. Reviewed-by: Tom Rini <trini@konsulko.com>
  10. Acked-by: Ian Campbell <ijc@hellion.org.uk>
  11. ---
  12. include/dt-bindings/clock/sun4i-a10-pll2.h | 53 ++
  13. include/dt-bindings/input/input.h | 510 +---------------
  14. include/dt-bindings/input/linux-event-codes.h | 805 ++++++++++++++++++++++++++
  15. 3 files changed, 859 insertions(+), 509 deletions(-)
  16. create mode 100644 include/dt-bindings/clock/sun4i-a10-pll2.h
  17. create mode 100644 include/dt-bindings/input/linux-event-codes.h
  18. --- /dev/null
  19. +++ b/include/dt-bindings/clock/sun4i-a10-pll2.h
  20. @@ -0,0 +1,53 @@
  21. +/*
  22. + * Copyright 2015 Maxime Ripard
  23. + *
  24. + * Maxime Ripard <maxime.ripard@free-electrons.com>
  25. + *
  26. + * This file is dual-licensed: you can use it either under the terms
  27. + * of the GPL or the X11 license, at your option. Note that this dual
  28. + * licensing only applies to this file, and not this project as a
  29. + * whole.
  30. + *
  31. + * a) This file is free software; you can redistribute it and/or
  32. + * modify it under the terms of the GNU General Public License as
  33. + * published by the Free Software Foundation; either version 2 of the
  34. + * License, or (at your option) any later version.
  35. + *
  36. + * This file is distributed in the hope that it will be useful,
  37. + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  38. + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  39. + * GNU General Public License for more details.
  40. + *
  41. + * Or, alternatively,
  42. + *
  43. + * b) Permission is hereby granted, free of charge, to any person
  44. + * obtaining a copy of this software and associated documentation
  45. + * files (the "Software"), to deal in the Software without
  46. + * restriction, including without limitation the rights to use,
  47. + * copy, modify, merge, publish, distribute, sublicense, and/or
  48. + * sell copies of the Software, and to permit persons to whom the
  49. + * Software is furnished to do so, subject to the following
  50. + * conditions:
  51. + *
  52. + * The above copyright notice and this permission notice shall be
  53. + * included in all copies or substantial portions of the Software.
  54. + *
  55. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  56. + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
  57. + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  58. + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
  59. + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
  60. + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  61. + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  62. + * OTHER DEALINGS IN THE SOFTWARE.
  63. + */
  64. +
  65. +#ifndef __DT_BINDINGS_CLOCK_SUN4I_A10_PLL2_H_
  66. +#define __DT_BINDINGS_CLOCK_SUN4I_A10_PLL2_H_
  67. +
  68. +#define SUN4I_A10_PLL2_1X 0
  69. +#define SUN4I_A10_PLL2_2X 1
  70. +#define SUN4I_A10_PLL2_4X 2
  71. +#define SUN4I_A10_PLL2_8X 3
  72. +
  73. +#endif /* __DT_BINDINGS_CLOCK_SUN4I_A10_PLL2_H_ */
  74. --- a/include/dt-bindings/input/input.h
  75. +++ b/include/dt-bindings/input/input.h
  76. @@ -9,515 +9,7 @@
  77. #ifndef _DT_BINDINGS_INPUT_INPUT_H
  78. #define _DT_BINDINGS_INPUT_INPUT_H
  79. -#define KEY_RESERVED 0
  80. -#define KEY_ESC 1
  81. -#define KEY_1 2
  82. -#define KEY_2 3
  83. -#define KEY_3 4
  84. -#define KEY_4 5
  85. -#define KEY_5 6
  86. -#define KEY_6 7
  87. -#define KEY_7 8
  88. -#define KEY_8 9
  89. -#define KEY_9 10
  90. -#define KEY_0 11
  91. -#define KEY_MINUS 12
  92. -#define KEY_EQUAL 13
  93. -#define KEY_BACKSPACE 14
  94. -#define KEY_TAB 15
  95. -#define KEY_Q 16
  96. -#define KEY_W 17
  97. -#define KEY_E 18
  98. -#define KEY_R 19
  99. -#define KEY_T 20
  100. -#define KEY_Y 21
  101. -#define KEY_U 22
  102. -#define KEY_I 23
  103. -#define KEY_O 24
  104. -#define KEY_P 25
  105. -#define KEY_LEFTBRACE 26
  106. -#define KEY_RIGHTBRACE 27
  107. -#define KEY_ENTER 28
  108. -#define KEY_LEFTCTRL 29
  109. -#define KEY_A 30
  110. -#define KEY_S 31
  111. -#define KEY_D 32
  112. -#define KEY_F 33
  113. -#define KEY_G 34
  114. -#define KEY_H 35
  115. -#define KEY_J 36
  116. -#define KEY_K 37
  117. -#define KEY_L 38
  118. -#define KEY_SEMICOLON 39
  119. -#define KEY_APOSTROPHE 40
  120. -#define KEY_GRAVE 41
  121. -#define KEY_LEFTSHIFT 42
  122. -#define KEY_BACKSLASH 43
  123. -#define KEY_Z 44
  124. -#define KEY_X 45
  125. -#define KEY_C 46
  126. -#define KEY_V 47
  127. -#define KEY_B 48
  128. -#define KEY_N 49
  129. -#define KEY_M 50
  130. -#define KEY_COMMA 51
  131. -#define KEY_DOT 52
  132. -#define KEY_SLASH 53
  133. -#define KEY_RIGHTSHIFT 54
  134. -#define KEY_KPASTERISK 55
  135. -#define KEY_LEFTALT 56
  136. -#define KEY_SPACE 57
  137. -#define KEY_CAPSLOCK 58
  138. -#define KEY_F1 59
  139. -#define KEY_F2 60
  140. -#define KEY_F3 61
  141. -#define KEY_F4 62
  142. -#define KEY_F5 63
  143. -#define KEY_F6 64
  144. -#define KEY_F7 65
  145. -#define KEY_F8 66
  146. -#define KEY_F9 67
  147. -#define KEY_F10 68
  148. -#define KEY_NUMLOCK 69
  149. -#define KEY_SCROLLLOCK 70
  150. -#define KEY_KP7 71
  151. -#define KEY_KP8 72
  152. -#define KEY_KP9 73
  153. -#define KEY_KPMINUS 74
  154. -#define KEY_KP4 75
  155. -#define KEY_KP5 76
  156. -#define KEY_KP6 77
  157. -#define KEY_KPPLUS 78
  158. -#define KEY_KP1 79
  159. -#define KEY_KP2 80
  160. -#define KEY_KP3 81
  161. -#define KEY_KP0 82
  162. -#define KEY_KPDOT 83
  163. -
  164. -#define KEY_ZENKAKUHANKAKU 85
  165. -#define KEY_102ND 86
  166. -#define KEY_F11 87
  167. -#define KEY_F12 88
  168. -#define KEY_RO 89
  169. -#define KEY_KATAKANA 90
  170. -#define KEY_HIRAGANA 91
  171. -#define KEY_HENKAN 92
  172. -#define KEY_KATAKANAHIRAGANA 93
  173. -#define KEY_MUHENKAN 94
  174. -#define KEY_KPJPCOMMA 95
  175. -#define KEY_KPENTER 96
  176. -#define KEY_RIGHTCTRL 97
  177. -#define KEY_KPSLASH 98
  178. -#define KEY_SYSRQ 99
  179. -#define KEY_RIGHTALT 100
  180. -#define KEY_LINEFEED 101
  181. -#define KEY_HOME 102
  182. -#define KEY_UP 103
  183. -#define KEY_PAGEUP 104
  184. -#define KEY_LEFT 105
  185. -#define KEY_RIGHT 106
  186. -#define KEY_END 107
  187. -#define KEY_DOWN 108
  188. -#define KEY_PAGEDOWN 109
  189. -#define KEY_INSERT 110
  190. -#define KEY_DELETE 111
  191. -#define KEY_MACRO 112
  192. -#define KEY_MUTE 113
  193. -#define KEY_VOLUMEDOWN 114
  194. -#define KEY_VOLUMEUP 115
  195. -#define KEY_POWER 116 /* SC System Power Down */
  196. -#define KEY_KPEQUAL 117
  197. -#define KEY_KPPLUSMINUS 118
  198. -#define KEY_PAUSE 119
  199. -#define KEY_SCALE 120 /* AL Compiz Scale (Expose) */
  200. -
  201. -#define KEY_KPCOMMA 121
  202. -#define KEY_HANGEUL 122
  203. -#define KEY_HANGUEL KEY_HANGEUL
  204. -#define KEY_HANJA 123
  205. -#define KEY_YEN 124
  206. -#define KEY_LEFTMETA 125
  207. -#define KEY_RIGHTMETA 126
  208. -#define KEY_COMPOSE 127
  209. -
  210. -#define KEY_STOP 128 /* AC Stop */
  211. -#define KEY_AGAIN 129
  212. -#define KEY_PROPS 130 /* AC Properties */
  213. -#define KEY_UNDO 131 /* AC Undo */
  214. -#define KEY_FRONT 132
  215. -#define KEY_COPY 133 /* AC Copy */
  216. -#define KEY_OPEN 134 /* AC Open */
  217. -#define KEY_PASTE 135 /* AC Paste */
  218. -#define KEY_FIND 136 /* AC Search */
  219. -#define KEY_CUT 137 /* AC Cut */
  220. -#define KEY_HELP 138 /* AL Integrated Help Center */
  221. -#define KEY_MENU 139 /* Menu (show menu) */
  222. -#define KEY_CALC 140 /* AL Calculator */
  223. -#define KEY_SETUP 141
  224. -#define KEY_SLEEP 142 /* SC System Sleep */
  225. -#define KEY_WAKEUP 143 /* System Wake Up */
  226. -#define KEY_FILE 144 /* AL Local Machine Browser */
  227. -#define KEY_SENDFILE 145
  228. -#define KEY_DELETEFILE 146
  229. -#define KEY_XFER 147
  230. -#define KEY_PROG1 148
  231. -#define KEY_PROG2 149
  232. -#define KEY_WWW 150 /* AL Internet Browser */
  233. -#define KEY_MSDOS 151
  234. -#define KEY_COFFEE 152 /* AL Terminal Lock/Screensaver */
  235. -#define KEY_SCREENLOCK KEY_COFFEE
  236. -#define KEY_DIRECTION 153
  237. -#define KEY_CYCLEWINDOWS 154
  238. -#define KEY_MAIL 155
  239. -#define KEY_BOOKMARKS 156 /* AC Bookmarks */
  240. -#define KEY_COMPUTER 157
  241. -#define KEY_BACK 158 /* AC Back */
  242. -#define KEY_FORWARD 159 /* AC Forward */
  243. -#define KEY_CLOSECD 160
  244. -#define KEY_EJECTCD 161
  245. -#define KEY_EJECTCLOSECD 162
  246. -#define KEY_NEXTSONG 163
  247. -#define KEY_PLAYPAUSE 164
  248. -#define KEY_PREVIOUSSONG 165
  249. -#define KEY_STOPCD 166
  250. -#define KEY_RECORD 167
  251. -#define KEY_REWIND 168
  252. -#define KEY_PHONE 169 /* Media Select Telephone */
  253. -#define KEY_ISO 170
  254. -#define KEY_CONFIG 171 /* AL Consumer Control Configuration */
  255. -#define KEY_HOMEPAGE 172 /* AC Home */
  256. -#define KEY_REFRESH 173 /* AC Refresh */
  257. -#define KEY_EXIT 174 /* AC Exit */
  258. -#define KEY_MOVE 175
  259. -#define KEY_EDIT 176
  260. -#define KEY_SCROLLUP 177
  261. -#define KEY_SCROLLDOWN 178
  262. -#define KEY_KPLEFTPAREN 179
  263. -#define KEY_KPRIGHTPAREN 180
  264. -#define KEY_NEW 181 /* AC New */
  265. -#define KEY_REDO 182 /* AC Redo/Repeat */
  266. -
  267. -#define KEY_F13 183
  268. -#define KEY_F14 184
  269. -#define KEY_F15 185
  270. -#define KEY_F16 186
  271. -#define KEY_F17 187
  272. -#define KEY_F18 188
  273. -#define KEY_F19 189
  274. -#define KEY_F20 190
  275. -#define KEY_F21 191
  276. -#define KEY_F22 192
  277. -#define KEY_F23 193
  278. -#define KEY_F24 194
  279. -
  280. -#define KEY_PLAYCD 200
  281. -#define KEY_PAUSECD 201
  282. -#define KEY_PROG3 202
  283. -#define KEY_PROG4 203
  284. -#define KEY_DASHBOARD 204 /* AL Dashboard */
  285. -#define KEY_SUSPEND 205
  286. -#define KEY_CLOSE 206 /* AC Close */
  287. -#define KEY_PLAY 207
  288. -#define KEY_FASTFORWARD 208
  289. -#define KEY_BASSBOOST 209
  290. -#define KEY_PRINT 210 /* AC Print */
  291. -#define KEY_HP 211
  292. -#define KEY_CAMERA 212
  293. -#define KEY_SOUND 213
  294. -#define KEY_QUESTION 214
  295. -#define KEY_EMAIL 215
  296. -#define KEY_CHAT 216
  297. -#define KEY_SEARCH 217
  298. -#define KEY_CONNECT 218
  299. -#define KEY_FINANCE 219 /* AL Checkbook/Finance */
  300. -#define KEY_SPORT 220
  301. -#define KEY_SHOP 221
  302. -#define KEY_ALTERASE 222
  303. -#define KEY_CANCEL 223 /* AC Cancel */
  304. -#define KEY_BRIGHTNESSDOWN 224
  305. -#define KEY_BRIGHTNESSUP 225
  306. -#define KEY_MEDIA 226
  307. -
  308. -#define KEY_SWITCHVIDEOMODE 227 /* Cycle between available video
  309. - outputs (Monitor/LCD/TV-out/etc) */
  310. -#define KEY_KBDILLUMTOGGLE 228
  311. -#define KEY_KBDILLUMDOWN 229
  312. -#define KEY_KBDILLUMUP 230
  313. -
  314. -#define KEY_SEND 231 /* AC Send */
  315. -#define KEY_REPLY 232 /* AC Reply */
  316. -#define KEY_FORWARDMAIL 233 /* AC Forward Msg */
  317. -#define KEY_SAVE 234 /* AC Save */
  318. -#define KEY_DOCUMENTS 235
  319. -
  320. -#define KEY_BATTERY 236
  321. -
  322. -#define KEY_BLUETOOTH 237
  323. -#define KEY_WLAN 238
  324. -#define KEY_UWB 239
  325. -
  326. -#define KEY_UNKNOWN 240
  327. -
  328. -#define KEY_VIDEO_NEXT 241 /* drive next video source */
  329. -#define KEY_VIDEO_PREV 242 /* drive previous video source */
  330. -#define KEY_BRIGHTNESS_CYCLE 243 /* brightness up, after max is min */
  331. -#define KEY_BRIGHTNESS_ZERO 244 /* brightness off, use ambient */
  332. -#define KEY_DISPLAY_OFF 245 /* display device to off state */
  333. -
  334. -#define KEY_WIMAX 246
  335. -#define KEY_RFKILL 247 /* Key that controls all radios */
  336. -
  337. -#define KEY_MICMUTE 248 /* Mute / unmute the microphone */
  338. -
  339. -/* Code 255 is reserved for special needs of AT keyboard driver */
  340. -
  341. -#define BTN_MISC 0x100
  342. -#define BTN_0 0x100
  343. -#define BTN_1 0x101
  344. -#define BTN_2 0x102
  345. -#define BTN_3 0x103
  346. -#define BTN_4 0x104
  347. -#define BTN_5 0x105
  348. -#define BTN_6 0x106
  349. -#define BTN_7 0x107
  350. -#define BTN_8 0x108
  351. -#define BTN_9 0x109
  352. -
  353. -#define BTN_MOUSE 0x110
  354. -#define BTN_LEFT 0x110
  355. -#define BTN_RIGHT 0x111
  356. -#define BTN_MIDDLE 0x112
  357. -#define BTN_SIDE 0x113
  358. -#define BTN_EXTRA 0x114
  359. -#define BTN_FORWARD 0x115
  360. -#define BTN_BACK 0x116
  361. -#define BTN_TASK 0x117
  362. -
  363. -#define BTN_JOYSTICK 0x120
  364. -#define BTN_TRIGGER 0x120
  365. -#define BTN_THUMB 0x121
  366. -#define BTN_THUMB2 0x122
  367. -#define BTN_TOP 0x123
  368. -#define BTN_TOP2 0x124
  369. -#define BTN_PINKIE 0x125
  370. -#define BTN_BASE 0x126
  371. -#define BTN_BASE2 0x127
  372. -#define BTN_BASE3 0x128
  373. -#define BTN_BASE4 0x129
  374. -#define BTN_BASE5 0x12a
  375. -#define BTN_BASE6 0x12b
  376. -#define BTN_DEAD 0x12f
  377. -
  378. -#define BTN_GAMEPAD 0x130
  379. -#define BTN_SOUTH 0x130
  380. -#define BTN_A BTN_SOUTH
  381. -#define BTN_EAST 0x131
  382. -#define BTN_B BTN_EAST
  383. -#define BTN_C 0x132
  384. -#define BTN_NORTH 0x133
  385. -#define BTN_X BTN_NORTH
  386. -#define BTN_WEST 0x134
  387. -#define BTN_Y BTN_WEST
  388. -#define BTN_Z 0x135
  389. -#define BTN_TL 0x136
  390. -#define BTN_TR 0x137
  391. -#define BTN_TL2 0x138
  392. -#define BTN_TR2 0x139
  393. -#define BTN_SELECT 0x13a
  394. -#define BTN_START 0x13b
  395. -#define BTN_MODE 0x13c
  396. -#define BTN_THUMBL 0x13d
  397. -#define BTN_THUMBR 0x13e
  398. -
  399. -#define BTN_DIGI 0x140
  400. -#define BTN_TOOL_PEN 0x140
  401. -#define BTN_TOOL_RUBBER 0x141
  402. -#define BTN_TOOL_BRUSH 0x142
  403. -#define BTN_TOOL_PENCIL 0x143
  404. -#define BTN_TOOL_AIRBRUSH 0x144
  405. -#define BTN_TOOL_FINGER 0x145
  406. -#define BTN_TOOL_MOUSE 0x146
  407. -#define BTN_TOOL_LENS 0x147
  408. -#define BTN_TOOL_QUINTTAP 0x148 /* Five fingers on trackpad */
  409. -#define BTN_TOUCH 0x14a
  410. -#define BTN_STYLUS 0x14b
  411. -#define BTN_STYLUS2 0x14c
  412. -#define BTN_TOOL_DOUBLETAP 0x14d
  413. -#define BTN_TOOL_TRIPLETAP 0x14e
  414. -#define BTN_TOOL_QUADTAP 0x14f /* Four fingers on trackpad */
  415. -
  416. -#define BTN_WHEEL 0x150
  417. -#define BTN_GEAR_DOWN 0x150
  418. -#define BTN_GEAR_UP 0x151
  419. -
  420. -#define KEY_OK 0x160
  421. -#define KEY_SELECT 0x161
  422. -#define KEY_GOTO 0x162
  423. -#define KEY_CLEAR 0x163
  424. -#define KEY_POWER2 0x164
  425. -#define KEY_OPTION 0x165
  426. -#define KEY_INFO 0x166 /* AL OEM Features/Tips/Tutorial */
  427. -#define KEY_TIME 0x167
  428. -#define KEY_VENDOR 0x168
  429. -#define KEY_ARCHIVE 0x169
  430. -#define KEY_PROGRAM 0x16a /* Media Select Program Guide */
  431. -#define KEY_CHANNEL 0x16b
  432. -#define KEY_FAVORITES 0x16c
  433. -#define KEY_EPG 0x16d
  434. -#define KEY_PVR 0x16e /* Media Select Home */
  435. -#define KEY_MHP 0x16f
  436. -#define KEY_LANGUAGE 0x170
  437. -#define KEY_TITLE 0x171
  438. -#define KEY_SUBTITLE 0x172
  439. -#define KEY_ANGLE 0x173
  440. -#define KEY_ZOOM 0x174
  441. -#define KEY_MODE 0x175
  442. -#define KEY_KEYBOARD 0x176
  443. -#define KEY_SCREEN 0x177
  444. -#define KEY_PC 0x178 /* Media Select Computer */
  445. -#define KEY_TV 0x179 /* Media Select TV */
  446. -#define KEY_TV2 0x17a /* Media Select Cable */
  447. -#define KEY_VCR 0x17b /* Media Select VCR */
  448. -#define KEY_VCR2 0x17c /* VCR Plus */
  449. -#define KEY_SAT 0x17d /* Media Select Satellite */
  450. -#define KEY_SAT2 0x17e
  451. -#define KEY_CD 0x17f /* Media Select CD */
  452. -#define KEY_TAPE 0x180 /* Media Select Tape */
  453. -#define KEY_RADIO 0x181
  454. -#define KEY_TUNER 0x182 /* Media Select Tuner */
  455. -#define KEY_PLAYER 0x183
  456. -#define KEY_TEXT 0x184
  457. -#define KEY_DVD 0x185 /* Media Select DVD */
  458. -#define KEY_AUX 0x186
  459. -#define KEY_MP3 0x187
  460. -#define KEY_AUDIO 0x188 /* AL Audio Browser */
  461. -#define KEY_VIDEO 0x189 /* AL Movie Browser */
  462. -#define KEY_DIRECTORY 0x18a
  463. -#define KEY_LIST 0x18b
  464. -#define KEY_MEMO 0x18c /* Media Select Messages */
  465. -#define KEY_CALENDAR 0x18d
  466. -#define KEY_RED 0x18e
  467. -#define KEY_GREEN 0x18f
  468. -#define KEY_YELLOW 0x190
  469. -#define KEY_BLUE 0x191
  470. -#define KEY_CHANNELUP 0x192 /* Channel Increment */
  471. -#define KEY_CHANNELDOWN 0x193 /* Channel Decrement */
  472. -#define KEY_FIRST 0x194
  473. -#define KEY_LAST 0x195 /* Recall Last */
  474. -#define KEY_AB 0x196
  475. -#define KEY_NEXT 0x197
  476. -#define KEY_RESTART 0x198
  477. -#define KEY_SLOW 0x199
  478. -#define KEY_SHUFFLE 0x19a
  479. -#define KEY_BREAK 0x19b
  480. -#define KEY_PREVIOUS 0x19c
  481. -#define KEY_DIGITS 0x19d
  482. -#define KEY_TEEN 0x19e
  483. -#define KEY_TWEN 0x19f
  484. -#define KEY_VIDEOPHONE 0x1a0 /* Media Select Video Phone */
  485. -#define KEY_GAMES 0x1a1 /* Media Select Games */
  486. -#define KEY_ZOOMIN 0x1a2 /* AC Zoom In */
  487. -#define KEY_ZOOMOUT 0x1a3 /* AC Zoom Out */
  488. -#define KEY_ZOOMRESET 0x1a4 /* AC Zoom */
  489. -#define KEY_WORDPROCESSOR 0x1a5 /* AL Word Processor */
  490. -#define KEY_EDITOR 0x1a6 /* AL Text Editor */
  491. -#define KEY_SPREADSHEET 0x1a7 /* AL Spreadsheet */
  492. -#define KEY_GRAPHICSEDITOR 0x1a8 /* AL Graphics Editor */
  493. -#define KEY_PRESENTATION 0x1a9 /* AL Presentation App */
  494. -#define KEY_DATABASE 0x1aa /* AL Database App */
  495. -#define KEY_NEWS 0x1ab /* AL Newsreader */
  496. -#define KEY_VOICEMAIL 0x1ac /* AL Voicemail */
  497. -#define KEY_ADDRESSBOOK 0x1ad /* AL Contacts/Address Book */
  498. -#define KEY_MESSENGER 0x1ae /* AL Instant Messaging */
  499. -#define KEY_DISPLAYTOGGLE 0x1af /* Turn display (LCD) on and off */
  500. -#define KEY_SPELLCHECK 0x1b0 /* AL Spell Check */
  501. -#define KEY_LOGOFF 0x1b1 /* AL Logoff */
  502. -
  503. -#define KEY_DOLLAR 0x1b2
  504. -#define KEY_EURO 0x1b3
  505. -
  506. -#define KEY_FRAMEBACK 0x1b4 /* Consumer - transport controls */
  507. -#define KEY_FRAMEFORWARD 0x1b5
  508. -#define KEY_CONTEXT_MENU 0x1b6 /* GenDesc - system context menu */
  509. -#define KEY_MEDIA_REPEAT 0x1b7 /* Consumer - transport control */
  510. -#define KEY_10CHANNELSUP 0x1b8 /* 10 channels up (10+) */
  511. -#define KEY_10CHANNELSDOWN 0x1b9 /* 10 channels down (10-) */
  512. -#define KEY_IMAGES 0x1ba /* AL Image Browser */
  513. -
  514. -#define KEY_DEL_EOL 0x1c0
  515. -#define KEY_DEL_EOS 0x1c1
  516. -#define KEY_INS_LINE 0x1c2
  517. -#define KEY_DEL_LINE 0x1c3
  518. -
  519. -#define KEY_FN 0x1d0
  520. -#define KEY_FN_ESC 0x1d1
  521. -#define KEY_FN_F1 0x1d2
  522. -#define KEY_FN_F2 0x1d3
  523. -#define KEY_FN_F3 0x1d4
  524. -#define KEY_FN_F4 0x1d5
  525. -#define KEY_FN_F5 0x1d6
  526. -#define KEY_FN_F6 0x1d7
  527. -#define KEY_FN_F7 0x1d8
  528. -#define KEY_FN_F8 0x1d9
  529. -#define KEY_FN_F9 0x1da
  530. -#define KEY_FN_F10 0x1db
  531. -#define KEY_FN_F11 0x1dc
  532. -#define KEY_FN_F12 0x1dd
  533. -#define KEY_FN_1 0x1de
  534. -#define KEY_FN_2 0x1df
  535. -#define KEY_FN_D 0x1e0
  536. -#define KEY_FN_E 0x1e1
  537. -#define KEY_FN_F 0x1e2
  538. -#define KEY_FN_S 0x1e3
  539. -#define KEY_FN_B 0x1e4
  540. -
  541. -#define KEY_BRL_DOT1 0x1f1
  542. -#define KEY_BRL_DOT2 0x1f2
  543. -#define KEY_BRL_DOT3 0x1f3
  544. -#define KEY_BRL_DOT4 0x1f4
  545. -#define KEY_BRL_DOT5 0x1f5
  546. -#define KEY_BRL_DOT6 0x1f6
  547. -#define KEY_BRL_DOT7 0x1f7
  548. -#define KEY_BRL_DOT8 0x1f8
  549. -#define KEY_BRL_DOT9 0x1f9
  550. -#define KEY_BRL_DOT10 0x1fa
  551. -
  552. -#define KEY_NUMERIC_0 0x200 /* used by phones, remote controls, */
  553. -#define KEY_NUMERIC_1 0x201 /* and other keypads */
  554. -#define KEY_NUMERIC_2 0x202
  555. -#define KEY_NUMERIC_3 0x203
  556. -#define KEY_NUMERIC_4 0x204
  557. -#define KEY_NUMERIC_5 0x205
  558. -#define KEY_NUMERIC_6 0x206
  559. -#define KEY_NUMERIC_7 0x207
  560. -#define KEY_NUMERIC_8 0x208
  561. -#define KEY_NUMERIC_9 0x209
  562. -#define KEY_NUMERIC_STAR 0x20a
  563. -#define KEY_NUMERIC_POUND 0x20b
  564. -
  565. -#define KEY_CAMERA_FOCUS 0x210
  566. -#define KEY_WPS_BUTTON 0x211 /* WiFi Protected Setup key */
  567. -
  568. -#define KEY_TOUCHPAD_TOGGLE 0x212 /* Request switch touchpad on or off */
  569. -#define KEY_TOUCHPAD_ON 0x213
  570. -#define KEY_TOUCHPAD_OFF 0x214
  571. -
  572. -#define KEY_CAMERA_ZOOMIN 0x215
  573. -#define KEY_CAMERA_ZOOMOUT 0x216
  574. -#define KEY_CAMERA_UP 0x217
  575. -#define KEY_CAMERA_DOWN 0x218
  576. -#define KEY_CAMERA_LEFT 0x219
  577. -#define KEY_CAMERA_RIGHT 0x21a
  578. -
  579. -#define KEY_ATTENDANT_ON 0x21b
  580. -#define KEY_ATTENDANT_OFF 0x21c
  581. -#define KEY_ATTENDANT_TOGGLE 0x21d /* Attendant call on or off */
  582. -#define KEY_LIGHTS_TOGGLE 0x21e /* Reading light on or off */
  583. -
  584. -#define BTN_DPAD_UP 0x220
  585. -#define BTN_DPAD_DOWN 0x221
  586. -#define BTN_DPAD_LEFT 0x222
  587. -#define BTN_DPAD_RIGHT 0x223
  588. +#include "linux-event-codes.h"
  589. #define MATRIX_KEY(row, col, code) \
  590. ((((row) & 0xFF) << 24) | (((col) & 0xFF) << 16) | ((code) & 0xFFFF))
  591. --- /dev/null
  592. +++ b/include/dt-bindings/input/linux-event-codes.h
  593. @@ -0,0 +1,805 @@
  594. +/*
  595. + * Input event codes
  596. + *
  597. + * *** IMPORTANT ***
  598. + * This file is not only included from C-code but also from devicetree source
  599. + * files. As such this file MUST only contain comments and defines.
  600. + *
  601. + * Copyright (c) 1999-2002 Vojtech Pavlik
  602. + * Copyright (c) 2015 Hans de Goede <hdegoede@redhat.com>
  603. + *
  604. + * This program is free software; you can redistribute it and/or modify it
  605. + * under the terms of the GNU General Public License version 2 as published by
  606. + * the Free Software Foundation.
  607. + */
  608. +#ifndef _UAPI_INPUT_EVENT_CODES_H
  609. +#define _UAPI_INPUT_EVENT_CODES_H
  610. +
  611. +/*
  612. + * Device properties and quirks
  613. + */
  614. +
  615. +#define INPUT_PROP_POINTER 0x00 /* needs a pointer */
  616. +#define INPUT_PROP_DIRECT 0x01 /* direct input devices */
  617. +#define INPUT_PROP_BUTTONPAD 0x02 /* has button(s) under pad */
  618. +#define INPUT_PROP_SEMI_MT 0x03 /* touch rectangle only */
  619. +#define INPUT_PROP_TOPBUTTONPAD 0x04 /* softbuttons at top of pad */
  620. +#define INPUT_PROP_POINTING_STICK 0x05 /* is a pointing stick */
  621. +#define INPUT_PROP_ACCELEROMETER 0x06 /* has accelerometer */
  622. +
  623. +#define INPUT_PROP_MAX 0x1f
  624. +#define INPUT_PROP_CNT (INPUT_PROP_MAX + 1)
  625. +
  626. +/*
  627. + * Event types
  628. + */
  629. +
  630. +#define EV_SYN 0x00
  631. +#define EV_KEY 0x01
  632. +#define EV_REL 0x02
  633. +#define EV_ABS 0x03
  634. +#define EV_MSC 0x04
  635. +#define EV_SW 0x05
  636. +#define EV_LED 0x11
  637. +#define EV_SND 0x12
  638. +#define EV_REP 0x14
  639. +#define EV_FF 0x15
  640. +#define EV_PWR 0x16
  641. +#define EV_FF_STATUS 0x17
  642. +#define EV_MAX 0x1f
  643. +#define EV_CNT (EV_MAX+1)
  644. +
  645. +/*
  646. + * Synchronization events.
  647. + */
  648. +
  649. +#define SYN_REPORT 0
  650. +#define SYN_CONFIG 1
  651. +#define SYN_MT_REPORT 2
  652. +#define SYN_DROPPED 3
  653. +#define SYN_MAX 0xf
  654. +#define SYN_CNT (SYN_MAX+1)
  655. +
  656. +/*
  657. + * Keys and buttons
  658. + *
  659. + * Most of the keys/buttons are modeled after USB HUT 1.12
  660. + * (see http://www.usb.org/developers/hidpage).
  661. + * Abbreviations in the comments:
  662. + * AC - Application Control
  663. + * AL - Application Launch Button
  664. + * SC - System Control
  665. + */
  666. +
  667. +#define KEY_RESERVED 0
  668. +#define KEY_ESC 1
  669. +#define KEY_1 2
  670. +#define KEY_2 3
  671. +#define KEY_3 4
  672. +#define KEY_4 5
  673. +#define KEY_5 6
  674. +#define KEY_6 7
  675. +#define KEY_7 8
  676. +#define KEY_8 9
  677. +#define KEY_9 10
  678. +#define KEY_0 11
  679. +#define KEY_MINUS 12
  680. +#define KEY_EQUAL 13
  681. +#define KEY_BACKSPACE 14
  682. +#define KEY_TAB 15
  683. +#define KEY_Q 16
  684. +#define KEY_W 17
  685. +#define KEY_E 18
  686. +#define KEY_R 19
  687. +#define KEY_T 20
  688. +#define KEY_Y 21
  689. +#define KEY_U 22
  690. +#define KEY_I 23
  691. +#define KEY_O 24
  692. +#define KEY_P 25
  693. +#define KEY_LEFTBRACE 26
  694. +#define KEY_RIGHTBRACE 27
  695. +#define KEY_ENTER 28
  696. +#define KEY_LEFTCTRL 29
  697. +#define KEY_A 30
  698. +#define KEY_S 31
  699. +#define KEY_D 32
  700. +#define KEY_F 33
  701. +#define KEY_G 34
  702. +#define KEY_H 35
  703. +#define KEY_J 36
  704. +#define KEY_K 37
  705. +#define KEY_L 38
  706. +#define KEY_SEMICOLON 39
  707. +#define KEY_APOSTROPHE 40
  708. +#define KEY_GRAVE 41
  709. +#define KEY_LEFTSHIFT 42
  710. +#define KEY_BACKSLASH 43
  711. +#define KEY_Z 44
  712. +#define KEY_X 45
  713. +#define KEY_C 46
  714. +#define KEY_V 47
  715. +#define KEY_B 48
  716. +#define KEY_N 49
  717. +#define KEY_M 50
  718. +#define KEY_COMMA 51
  719. +#define KEY_DOT 52
  720. +#define KEY_SLASH 53
  721. +#define KEY_RIGHTSHIFT 54
  722. +#define KEY_KPASTERISK 55
  723. +#define KEY_LEFTALT 56
  724. +#define KEY_SPACE 57
  725. +#define KEY_CAPSLOCK 58
  726. +#define KEY_F1 59
  727. +#define KEY_F2 60
  728. +#define KEY_F3 61
  729. +#define KEY_F4 62
  730. +#define KEY_F5 63
  731. +#define KEY_F6 64
  732. +#define KEY_F7 65
  733. +#define KEY_F8 66
  734. +#define KEY_F9 67
  735. +#define KEY_F10 68
  736. +#define KEY_NUMLOCK 69
  737. +#define KEY_SCROLLLOCK 70
  738. +#define KEY_KP7 71
  739. +#define KEY_KP8 72
  740. +#define KEY_KP9 73
  741. +#define KEY_KPMINUS 74
  742. +#define KEY_KP4 75
  743. +#define KEY_KP5 76
  744. +#define KEY_KP6 77
  745. +#define KEY_KPPLUS 78
  746. +#define KEY_KP1 79
  747. +#define KEY_KP2 80
  748. +#define KEY_KP3 81
  749. +#define KEY_KP0 82
  750. +#define KEY_KPDOT 83
  751. +
  752. +#define KEY_ZENKAKUHANKAKU 85
  753. +#define KEY_102ND 86
  754. +#define KEY_F11 87
  755. +#define KEY_F12 88
  756. +#define KEY_RO 89
  757. +#define KEY_KATAKANA 90
  758. +#define KEY_HIRAGANA 91
  759. +#define KEY_HENKAN 92
  760. +#define KEY_KATAKANAHIRAGANA 93
  761. +#define KEY_MUHENKAN 94
  762. +#define KEY_KPJPCOMMA 95
  763. +#define KEY_KPENTER 96
  764. +#define KEY_RIGHTCTRL 97
  765. +#define KEY_KPSLASH 98
  766. +#define KEY_SYSRQ 99
  767. +#define KEY_RIGHTALT 100
  768. +#define KEY_LINEFEED 101
  769. +#define KEY_HOME 102
  770. +#define KEY_UP 103
  771. +#define KEY_PAGEUP 104
  772. +#define KEY_LEFT 105
  773. +#define KEY_RIGHT 106
  774. +#define KEY_END 107
  775. +#define KEY_DOWN 108
  776. +#define KEY_PAGEDOWN 109
  777. +#define KEY_INSERT 110
  778. +#define KEY_DELETE 111
  779. +#define KEY_MACRO 112
  780. +#define KEY_MUTE 113
  781. +#define KEY_VOLUMEDOWN 114
  782. +#define KEY_VOLUMEUP 115
  783. +#define KEY_POWER 116 /* SC System Power Down */
  784. +#define KEY_KPEQUAL 117
  785. +#define KEY_KPPLUSMINUS 118
  786. +#define KEY_PAUSE 119
  787. +#define KEY_SCALE 120 /* AL Compiz Scale (Expose) */
  788. +
  789. +#define KEY_KPCOMMA 121
  790. +#define KEY_HANGEUL 122
  791. +#define KEY_HANGUEL KEY_HANGEUL
  792. +#define KEY_HANJA 123
  793. +#define KEY_YEN 124
  794. +#define KEY_LEFTMETA 125
  795. +#define KEY_RIGHTMETA 126
  796. +#define KEY_COMPOSE 127
  797. +
  798. +#define KEY_STOP 128 /* AC Stop */
  799. +#define KEY_AGAIN 129
  800. +#define KEY_PROPS 130 /* AC Properties */
  801. +#define KEY_UNDO 131 /* AC Undo */
  802. +#define KEY_FRONT 132
  803. +#define KEY_COPY 133 /* AC Copy */
  804. +#define KEY_OPEN 134 /* AC Open */
  805. +#define KEY_PASTE 135 /* AC Paste */
  806. +#define KEY_FIND 136 /* AC Search */
  807. +#define KEY_CUT 137 /* AC Cut */
  808. +#define KEY_HELP 138 /* AL Integrated Help Center */
  809. +#define KEY_MENU 139 /* Menu (show menu) */
  810. +#define KEY_CALC 140 /* AL Calculator */
  811. +#define KEY_SETUP 141
  812. +#define KEY_SLEEP 142 /* SC System Sleep */
  813. +#define KEY_WAKEUP 143 /* System Wake Up */
  814. +#define KEY_FILE 144 /* AL Local Machine Browser */
  815. +#define KEY_SENDFILE 145
  816. +#define KEY_DELETEFILE 146
  817. +#define KEY_XFER 147
  818. +#define KEY_PROG1 148
  819. +#define KEY_PROG2 149
  820. +#define KEY_WWW 150 /* AL Internet Browser */
  821. +#define KEY_MSDOS 151
  822. +#define KEY_COFFEE 152 /* AL Terminal Lock/Screensaver */
  823. +#define KEY_SCREENLOCK KEY_COFFEE
  824. +#define KEY_ROTATE_DISPLAY 153 /* Display orientation for e.g. tablets */
  825. +#define KEY_DIRECTION KEY_ROTATE_DISPLAY
  826. +#define KEY_CYCLEWINDOWS 154
  827. +#define KEY_MAIL 155
  828. +#define KEY_BOOKMARKS 156 /* AC Bookmarks */
  829. +#define KEY_COMPUTER 157
  830. +#define KEY_BACK 158 /* AC Back */
  831. +#define KEY_FORWARD 159 /* AC Forward */
  832. +#define KEY_CLOSECD 160
  833. +#define KEY_EJECTCD 161
  834. +#define KEY_EJECTCLOSECD 162
  835. +#define KEY_NEXTSONG 163
  836. +#define KEY_PLAYPAUSE 164
  837. +#define KEY_PREVIOUSSONG 165
  838. +#define KEY_STOPCD 166
  839. +#define KEY_RECORD 167
  840. +#define KEY_REWIND 168
  841. +#define KEY_PHONE 169 /* Media Select Telephone */
  842. +#define KEY_ISO 170
  843. +#define KEY_CONFIG 171 /* AL Consumer Control Configuration */
  844. +#define KEY_HOMEPAGE 172 /* AC Home */
  845. +#define KEY_REFRESH 173 /* AC Refresh */
  846. +#define KEY_EXIT 174 /* AC Exit */
  847. +#define KEY_MOVE 175
  848. +#define KEY_EDIT 176
  849. +#define KEY_SCROLLUP 177
  850. +#define KEY_SCROLLDOWN 178
  851. +#define KEY_KPLEFTPAREN 179
  852. +#define KEY_KPRIGHTPAREN 180
  853. +#define KEY_NEW 181 /* AC New */
  854. +#define KEY_REDO 182 /* AC Redo/Repeat */
  855. +
  856. +#define KEY_F13 183
  857. +#define KEY_F14 184
  858. +#define KEY_F15 185
  859. +#define KEY_F16 186
  860. +#define KEY_F17 187
  861. +#define KEY_F18 188
  862. +#define KEY_F19 189
  863. +#define KEY_F20 190
  864. +#define KEY_F21 191
  865. +#define KEY_F22 192
  866. +#define KEY_F23 193
  867. +#define KEY_F24 194
  868. +
  869. +#define KEY_PLAYCD 200
  870. +#define KEY_PAUSECD 201
  871. +#define KEY_PROG3 202
  872. +#define KEY_PROG4 203
  873. +#define KEY_DASHBOARD 204 /* AL Dashboard */
  874. +#define KEY_SUSPEND 205
  875. +#define KEY_CLOSE 206 /* AC Close */
  876. +#define KEY_PLAY 207
  877. +#define KEY_FASTFORWARD 208
  878. +#define KEY_BASSBOOST 209
  879. +#define KEY_PRINT 210 /* AC Print */
  880. +#define KEY_HP 211
  881. +#define KEY_CAMERA 212
  882. +#define KEY_SOUND 213
  883. +#define KEY_QUESTION 214
  884. +#define KEY_EMAIL 215
  885. +#define KEY_CHAT 216
  886. +#define KEY_SEARCH 217
  887. +#define KEY_CONNECT 218
  888. +#define KEY_FINANCE 219 /* AL Checkbook/Finance */
  889. +#define KEY_SPORT 220
  890. +#define KEY_SHOP 221
  891. +#define KEY_ALTERASE 222
  892. +#define KEY_CANCEL 223 /* AC Cancel */
  893. +#define KEY_BRIGHTNESSDOWN 224
  894. +#define KEY_BRIGHTNESSUP 225
  895. +#define KEY_MEDIA 226
  896. +
  897. +#define KEY_SWITCHVIDEOMODE 227 /* Cycle between available video
  898. + outputs (Monitor/LCD/TV-out/etc) */
  899. +#define KEY_KBDILLUMTOGGLE 228
  900. +#define KEY_KBDILLUMDOWN 229
  901. +#define KEY_KBDILLUMUP 230
  902. +
  903. +#define KEY_SEND 231 /* AC Send */
  904. +#define KEY_REPLY 232 /* AC Reply */
  905. +#define KEY_FORWARDMAIL 233 /* AC Forward Msg */
  906. +#define KEY_SAVE 234 /* AC Save */
  907. +#define KEY_DOCUMENTS 235
  908. +
  909. +#define KEY_BATTERY 236
  910. +
  911. +#define KEY_BLUETOOTH 237
  912. +#define KEY_WLAN 238
  913. +#define KEY_UWB 239
  914. +
  915. +#define KEY_UNKNOWN 240
  916. +
  917. +#define KEY_VIDEO_NEXT 241 /* drive next video source */
  918. +#define KEY_VIDEO_PREV 242 /* drive previous video source */
  919. +#define KEY_BRIGHTNESS_CYCLE 243 /* brightness up, after max is min */
  920. +#define KEY_BRIGHTNESS_AUTO 244 /* Set Auto Brightness: manual
  921. + brightness control is off,
  922. + rely on ambient */
  923. +#define KEY_BRIGHTNESS_ZERO KEY_BRIGHTNESS_AUTO
  924. +#define KEY_DISPLAY_OFF 245 /* display device to off state */
  925. +
  926. +#define KEY_WWAN 246 /* Wireless WAN (LTE, UMTS, GSM, etc.) */
  927. +#define KEY_WIMAX KEY_WWAN
  928. +#define KEY_RFKILL 247 /* Key that controls all radios */
  929. +
  930. +#define KEY_MICMUTE 248 /* Mute / unmute the microphone */
  931. +
  932. +/* Code 255 is reserved for special needs of AT keyboard driver */
  933. +
  934. +#define BTN_MISC 0x100
  935. +#define BTN_0 0x100
  936. +#define BTN_1 0x101
  937. +#define BTN_2 0x102
  938. +#define BTN_3 0x103
  939. +#define BTN_4 0x104
  940. +#define BTN_5 0x105
  941. +#define BTN_6 0x106
  942. +#define BTN_7 0x107
  943. +#define BTN_8 0x108
  944. +#define BTN_9 0x109
  945. +
  946. +#define BTN_MOUSE 0x110
  947. +#define BTN_LEFT 0x110
  948. +#define BTN_RIGHT 0x111
  949. +#define BTN_MIDDLE 0x112
  950. +#define BTN_SIDE 0x113
  951. +#define BTN_EXTRA 0x114
  952. +#define BTN_FORWARD 0x115
  953. +#define BTN_BACK 0x116
  954. +#define BTN_TASK 0x117
  955. +
  956. +#define BTN_JOYSTICK 0x120
  957. +#define BTN_TRIGGER 0x120
  958. +#define BTN_THUMB 0x121
  959. +#define BTN_THUMB2 0x122
  960. +#define BTN_TOP 0x123
  961. +#define BTN_TOP2 0x124
  962. +#define BTN_PINKIE 0x125
  963. +#define BTN_BASE 0x126
  964. +#define BTN_BASE2 0x127
  965. +#define BTN_BASE3 0x128
  966. +#define BTN_BASE4 0x129
  967. +#define BTN_BASE5 0x12a
  968. +#define BTN_BASE6 0x12b
  969. +#define BTN_DEAD 0x12f
  970. +
  971. +#define BTN_GAMEPAD 0x130
  972. +#define BTN_SOUTH 0x130
  973. +#define BTN_A BTN_SOUTH
  974. +#define BTN_EAST 0x131
  975. +#define BTN_B BTN_EAST
  976. +#define BTN_C 0x132
  977. +#define BTN_NORTH 0x133
  978. +#define BTN_X BTN_NORTH
  979. +#define BTN_WEST 0x134
  980. +#define BTN_Y BTN_WEST
  981. +#define BTN_Z 0x135
  982. +#define BTN_TL 0x136
  983. +#define BTN_TR 0x137
  984. +#define BTN_TL2 0x138
  985. +#define BTN_TR2 0x139
  986. +#define BTN_SELECT 0x13a
  987. +#define BTN_START 0x13b
  988. +#define BTN_MODE 0x13c
  989. +#define BTN_THUMBL 0x13d
  990. +#define BTN_THUMBR 0x13e
  991. +
  992. +#define BTN_DIGI 0x140
  993. +#define BTN_TOOL_PEN 0x140
  994. +#define BTN_TOOL_RUBBER 0x141
  995. +#define BTN_TOOL_BRUSH 0x142
  996. +#define BTN_TOOL_PENCIL 0x143
  997. +#define BTN_TOOL_AIRBRUSH 0x144
  998. +#define BTN_TOOL_FINGER 0x145
  999. +#define BTN_TOOL_MOUSE 0x146
  1000. +#define BTN_TOOL_LENS 0x147
  1001. +#define BTN_TOOL_QUINTTAP 0x148 /* Five fingers on trackpad */
  1002. +#define BTN_TOUCH 0x14a
  1003. +#define BTN_STYLUS 0x14b
  1004. +#define BTN_STYLUS2 0x14c
  1005. +#define BTN_TOOL_DOUBLETAP 0x14d
  1006. +#define BTN_TOOL_TRIPLETAP 0x14e
  1007. +#define BTN_TOOL_QUADTAP 0x14f /* Four fingers on trackpad */
  1008. +
  1009. +#define BTN_WHEEL 0x150
  1010. +#define BTN_GEAR_DOWN 0x150
  1011. +#define BTN_GEAR_UP 0x151
  1012. +
  1013. +#define KEY_OK 0x160
  1014. +#define KEY_SELECT 0x161
  1015. +#define KEY_GOTO 0x162
  1016. +#define KEY_CLEAR 0x163
  1017. +#define KEY_POWER2 0x164
  1018. +#define KEY_OPTION 0x165
  1019. +#define KEY_INFO 0x166 /* AL OEM Features/Tips/Tutorial */
  1020. +#define KEY_TIME 0x167
  1021. +#define KEY_VENDOR 0x168
  1022. +#define KEY_ARCHIVE 0x169
  1023. +#define KEY_PROGRAM 0x16a /* Media Select Program Guide */
  1024. +#define KEY_CHANNEL 0x16b
  1025. +#define KEY_FAVORITES 0x16c
  1026. +#define KEY_EPG 0x16d
  1027. +#define KEY_PVR 0x16e /* Media Select Home */
  1028. +#define KEY_MHP 0x16f
  1029. +#define KEY_LANGUAGE 0x170
  1030. +#define KEY_TITLE 0x171
  1031. +#define KEY_SUBTITLE 0x172
  1032. +#define KEY_ANGLE 0x173
  1033. +#define KEY_ZOOM 0x174
  1034. +#define KEY_MODE 0x175
  1035. +#define KEY_KEYBOARD 0x176
  1036. +#define KEY_SCREEN 0x177
  1037. +#define KEY_PC 0x178 /* Media Select Computer */
  1038. +#define KEY_TV 0x179 /* Media Select TV */
  1039. +#define KEY_TV2 0x17a /* Media Select Cable */
  1040. +#define KEY_VCR 0x17b /* Media Select VCR */
  1041. +#define KEY_VCR2 0x17c /* VCR Plus */
  1042. +#define KEY_SAT 0x17d /* Media Select Satellite */
  1043. +#define KEY_SAT2 0x17e
  1044. +#define KEY_CD 0x17f /* Media Select CD */
  1045. +#define KEY_TAPE 0x180 /* Media Select Tape */
  1046. +#define KEY_RADIO 0x181
  1047. +#define KEY_TUNER 0x182 /* Media Select Tuner */
  1048. +#define KEY_PLAYER 0x183
  1049. +#define KEY_TEXT 0x184
  1050. +#define KEY_DVD 0x185 /* Media Select DVD */
  1051. +#define KEY_AUX 0x186
  1052. +#define KEY_MP3 0x187
  1053. +#define KEY_AUDIO 0x188 /* AL Audio Browser */
  1054. +#define KEY_VIDEO 0x189 /* AL Movie Browser */
  1055. +#define KEY_DIRECTORY 0x18a
  1056. +#define KEY_LIST 0x18b
  1057. +#define KEY_MEMO 0x18c /* Media Select Messages */
  1058. +#define KEY_CALENDAR 0x18d
  1059. +#define KEY_RED 0x18e
  1060. +#define KEY_GREEN 0x18f
  1061. +#define KEY_YELLOW 0x190
  1062. +#define KEY_BLUE 0x191
  1063. +#define KEY_CHANNELUP 0x192 /* Channel Increment */
  1064. +#define KEY_CHANNELDOWN 0x193 /* Channel Decrement */
  1065. +#define KEY_FIRST 0x194
  1066. +#define KEY_LAST 0x195 /* Recall Last */
  1067. +#define KEY_AB 0x196
  1068. +#define KEY_NEXT 0x197
  1069. +#define KEY_RESTART 0x198
  1070. +#define KEY_SLOW 0x199
  1071. +#define KEY_SHUFFLE 0x19a
  1072. +#define KEY_BREAK 0x19b
  1073. +#define KEY_PREVIOUS 0x19c
  1074. +#define KEY_DIGITS 0x19d
  1075. +#define KEY_TEEN 0x19e
  1076. +#define KEY_TWEN 0x19f
  1077. +#define KEY_VIDEOPHONE 0x1a0 /* Media Select Video Phone */
  1078. +#define KEY_GAMES 0x1a1 /* Media Select Games */
  1079. +#define KEY_ZOOMIN 0x1a2 /* AC Zoom In */
  1080. +#define KEY_ZOOMOUT 0x1a3 /* AC Zoom Out */
  1081. +#define KEY_ZOOMRESET 0x1a4 /* AC Zoom */
  1082. +#define KEY_WORDPROCESSOR 0x1a5 /* AL Word Processor */
  1083. +#define KEY_EDITOR 0x1a6 /* AL Text Editor */
  1084. +#define KEY_SPREADSHEET 0x1a7 /* AL Spreadsheet */
  1085. +#define KEY_GRAPHICSEDITOR 0x1a8 /* AL Graphics Editor */
  1086. +#define KEY_PRESENTATION 0x1a9 /* AL Presentation App */
  1087. +#define KEY_DATABASE 0x1aa /* AL Database App */
  1088. +#define KEY_NEWS 0x1ab /* AL Newsreader */
  1089. +#define KEY_VOICEMAIL 0x1ac /* AL Voicemail */
  1090. +#define KEY_ADDRESSBOOK 0x1ad /* AL Contacts/Address Book */
  1091. +#define KEY_MESSENGER 0x1ae /* AL Instant Messaging */
  1092. +#define KEY_DISPLAYTOGGLE 0x1af /* Turn display (LCD) on and off */
  1093. +#define KEY_BRIGHTNESS_TOGGLE KEY_DISPLAYTOGGLE
  1094. +#define KEY_SPELLCHECK 0x1b0 /* AL Spell Check */
  1095. +#define KEY_LOGOFF 0x1b1 /* AL Logoff */
  1096. +
  1097. +#define KEY_DOLLAR 0x1b2
  1098. +#define KEY_EURO 0x1b3
  1099. +
  1100. +#define KEY_FRAMEBACK 0x1b4 /* Consumer - transport controls */
  1101. +#define KEY_FRAMEFORWARD 0x1b5
  1102. +#define KEY_CONTEXT_MENU 0x1b6 /* GenDesc - system context menu */
  1103. +#define KEY_MEDIA_REPEAT 0x1b7 /* Consumer - transport control */
  1104. +#define KEY_10CHANNELSUP 0x1b8 /* 10 channels up (10+) */
  1105. +#define KEY_10CHANNELSDOWN 0x1b9 /* 10 channels down (10-) */
  1106. +#define KEY_IMAGES 0x1ba /* AL Image Browser */
  1107. +
  1108. +#define KEY_DEL_EOL 0x1c0
  1109. +#define KEY_DEL_EOS 0x1c1
  1110. +#define KEY_INS_LINE 0x1c2
  1111. +#define KEY_DEL_LINE 0x1c3
  1112. +
  1113. +#define KEY_FN 0x1d0
  1114. +#define KEY_FN_ESC 0x1d1
  1115. +#define KEY_FN_F1 0x1d2
  1116. +#define KEY_FN_F2 0x1d3
  1117. +#define KEY_FN_F3 0x1d4
  1118. +#define KEY_FN_F4 0x1d5
  1119. +#define KEY_FN_F5 0x1d6
  1120. +#define KEY_FN_F6 0x1d7
  1121. +#define KEY_FN_F7 0x1d8
  1122. +#define KEY_FN_F8 0x1d9
  1123. +#define KEY_FN_F9 0x1da
  1124. +#define KEY_FN_F10 0x1db
  1125. +#define KEY_FN_F11 0x1dc
  1126. +#define KEY_FN_F12 0x1dd
  1127. +#define KEY_FN_1 0x1de
  1128. +#define KEY_FN_2 0x1df
  1129. +#define KEY_FN_D 0x1e0
  1130. +#define KEY_FN_E 0x1e1
  1131. +#define KEY_FN_F 0x1e2
  1132. +#define KEY_FN_S 0x1e3
  1133. +#define KEY_FN_B 0x1e4
  1134. +
  1135. +#define KEY_BRL_DOT1 0x1f1
  1136. +#define KEY_BRL_DOT2 0x1f2
  1137. +#define KEY_BRL_DOT3 0x1f3
  1138. +#define KEY_BRL_DOT4 0x1f4
  1139. +#define KEY_BRL_DOT5 0x1f5
  1140. +#define KEY_BRL_DOT6 0x1f6
  1141. +#define KEY_BRL_DOT7 0x1f7
  1142. +#define KEY_BRL_DOT8 0x1f8
  1143. +#define KEY_BRL_DOT9 0x1f9
  1144. +#define KEY_BRL_DOT10 0x1fa
  1145. +
  1146. +#define KEY_NUMERIC_0 0x200 /* used by phones, remote controls, */
  1147. +#define KEY_NUMERIC_1 0x201 /* and other keypads */
  1148. +#define KEY_NUMERIC_2 0x202
  1149. +#define KEY_NUMERIC_3 0x203
  1150. +#define KEY_NUMERIC_4 0x204
  1151. +#define KEY_NUMERIC_5 0x205
  1152. +#define KEY_NUMERIC_6 0x206
  1153. +#define KEY_NUMERIC_7 0x207
  1154. +#define KEY_NUMERIC_8 0x208
  1155. +#define KEY_NUMERIC_9 0x209
  1156. +#define KEY_NUMERIC_STAR 0x20a
  1157. +#define KEY_NUMERIC_POUND 0x20b
  1158. +#define KEY_NUMERIC_A 0x20c /* Phone key A - HUT Telephony 0xb9 */
  1159. +#define KEY_NUMERIC_B 0x20d
  1160. +#define KEY_NUMERIC_C 0x20e
  1161. +#define KEY_NUMERIC_D 0x20f
  1162. +
  1163. +#define KEY_CAMERA_FOCUS 0x210
  1164. +#define KEY_WPS_BUTTON 0x211 /* WiFi Protected Setup key */
  1165. +
  1166. +#define KEY_TOUCHPAD_TOGGLE 0x212 /* Request switch touchpad on or off */
  1167. +#define KEY_TOUCHPAD_ON 0x213
  1168. +#define KEY_TOUCHPAD_OFF 0x214
  1169. +
  1170. +#define KEY_CAMERA_ZOOMIN 0x215
  1171. +#define KEY_CAMERA_ZOOMOUT 0x216
  1172. +#define KEY_CAMERA_UP 0x217
  1173. +#define KEY_CAMERA_DOWN 0x218
  1174. +#define KEY_CAMERA_LEFT 0x219
  1175. +#define KEY_CAMERA_RIGHT 0x21a
  1176. +
  1177. +#define KEY_ATTENDANT_ON 0x21b
  1178. +#define KEY_ATTENDANT_OFF 0x21c
  1179. +#define KEY_ATTENDANT_TOGGLE 0x21d /* Attendant call on or off */
  1180. +#define KEY_LIGHTS_TOGGLE 0x21e /* Reading light on or off */
  1181. +
  1182. +#define BTN_DPAD_UP 0x220
  1183. +#define BTN_DPAD_DOWN 0x221
  1184. +#define BTN_DPAD_LEFT 0x222
  1185. +#define BTN_DPAD_RIGHT 0x223
  1186. +
  1187. +#define KEY_ALS_TOGGLE 0x230 /* Ambient light sensor */
  1188. +
  1189. +#define KEY_BUTTONCONFIG 0x240 /* AL Button Configuration */
  1190. +#define KEY_TASKMANAGER 0x241 /* AL Task/Project Manager */
  1191. +#define KEY_JOURNAL 0x242 /* AL Log/Journal/Timecard */
  1192. +#define KEY_CONTROLPANEL 0x243 /* AL Control Panel */
  1193. +#define KEY_APPSELECT 0x244 /* AL Select Task/Application */
  1194. +#define KEY_SCREENSAVER 0x245 /* AL Screen Saver */
  1195. +#define KEY_VOICECOMMAND 0x246 /* Listening Voice Command */
  1196. +
  1197. +#define KEY_BRIGHTNESS_MIN 0x250 /* Set Brightness to Minimum */
  1198. +#define KEY_BRIGHTNESS_MAX 0x251 /* Set Brightness to Maximum */
  1199. +
  1200. +#define KEY_KBDINPUTASSIST_PREV 0x260
  1201. +#define KEY_KBDINPUTASSIST_NEXT 0x261
  1202. +#define KEY_KBDINPUTASSIST_PREVGROUP 0x262
  1203. +#define KEY_KBDINPUTASSIST_NEXTGROUP 0x263
  1204. +#define KEY_KBDINPUTASSIST_ACCEPT 0x264
  1205. +#define KEY_KBDINPUTASSIST_CANCEL 0x265
  1206. +
  1207. +#define BTN_TRIGGER_HAPPY 0x2c0
  1208. +#define BTN_TRIGGER_HAPPY1 0x2c0
  1209. +#define BTN_TRIGGER_HAPPY2 0x2c1
  1210. +#define BTN_TRIGGER_HAPPY3 0x2c2
  1211. +#define BTN_TRIGGER_HAPPY4 0x2c3
  1212. +#define BTN_TRIGGER_HAPPY5 0x2c4
  1213. +#define BTN_TRIGGER_HAPPY6 0x2c5
  1214. +#define BTN_TRIGGER_HAPPY7 0x2c6
  1215. +#define BTN_TRIGGER_HAPPY8 0x2c7
  1216. +#define BTN_TRIGGER_HAPPY9 0x2c8
  1217. +#define BTN_TRIGGER_HAPPY10 0x2c9
  1218. +#define BTN_TRIGGER_HAPPY11 0x2ca
  1219. +#define BTN_TRIGGER_HAPPY12 0x2cb
  1220. +#define BTN_TRIGGER_HAPPY13 0x2cc
  1221. +#define BTN_TRIGGER_HAPPY14 0x2cd
  1222. +#define BTN_TRIGGER_HAPPY15 0x2ce
  1223. +#define BTN_TRIGGER_HAPPY16 0x2cf
  1224. +#define BTN_TRIGGER_HAPPY17 0x2d0
  1225. +#define BTN_TRIGGER_HAPPY18 0x2d1
  1226. +#define BTN_TRIGGER_HAPPY19 0x2d2
  1227. +#define BTN_TRIGGER_HAPPY20 0x2d3
  1228. +#define BTN_TRIGGER_HAPPY21 0x2d4
  1229. +#define BTN_TRIGGER_HAPPY22 0x2d5
  1230. +#define BTN_TRIGGER_HAPPY23 0x2d6
  1231. +#define BTN_TRIGGER_HAPPY24 0x2d7
  1232. +#define BTN_TRIGGER_HAPPY25 0x2d8
  1233. +#define BTN_TRIGGER_HAPPY26 0x2d9
  1234. +#define BTN_TRIGGER_HAPPY27 0x2da
  1235. +#define BTN_TRIGGER_HAPPY28 0x2db
  1236. +#define BTN_TRIGGER_HAPPY29 0x2dc
  1237. +#define BTN_TRIGGER_HAPPY30 0x2dd
  1238. +#define BTN_TRIGGER_HAPPY31 0x2de
  1239. +#define BTN_TRIGGER_HAPPY32 0x2df
  1240. +#define BTN_TRIGGER_HAPPY33 0x2e0
  1241. +#define BTN_TRIGGER_HAPPY34 0x2e1
  1242. +#define BTN_TRIGGER_HAPPY35 0x2e2
  1243. +#define BTN_TRIGGER_HAPPY36 0x2e3
  1244. +#define BTN_TRIGGER_HAPPY37 0x2e4
  1245. +#define BTN_TRIGGER_HAPPY38 0x2e5
  1246. +#define BTN_TRIGGER_HAPPY39 0x2e6
  1247. +#define BTN_TRIGGER_HAPPY40 0x2e7
  1248. +
  1249. +/* We avoid low common keys in module aliases so they don't get huge. */
  1250. +#define KEY_MIN_INTERESTING KEY_MUTE
  1251. +#define KEY_MAX 0x2ff
  1252. +#define KEY_CNT (KEY_MAX+1)
  1253. +
  1254. +/*
  1255. + * Relative axes
  1256. + */
  1257. +
  1258. +#define REL_X 0x00
  1259. +#define REL_Y 0x01
  1260. +#define REL_Z 0x02
  1261. +#define REL_RX 0x03
  1262. +#define REL_RY 0x04
  1263. +#define REL_RZ 0x05
  1264. +#define REL_HWHEEL 0x06
  1265. +#define REL_DIAL 0x07
  1266. +#define REL_WHEEL 0x08
  1267. +#define REL_MISC 0x09
  1268. +#define REL_MAX 0x0f
  1269. +#define REL_CNT (REL_MAX+1)
  1270. +
  1271. +/*
  1272. + * Absolute axes
  1273. + */
  1274. +
  1275. +#define ABS_X 0x00
  1276. +#define ABS_Y 0x01
  1277. +#define ABS_Z 0x02
  1278. +#define ABS_RX 0x03
  1279. +#define ABS_RY 0x04
  1280. +#define ABS_RZ 0x05
  1281. +#define ABS_THROTTLE 0x06
  1282. +#define ABS_RUDDER 0x07
  1283. +#define ABS_WHEEL 0x08
  1284. +#define ABS_GAS 0x09
  1285. +#define ABS_BRAKE 0x0a
  1286. +#define ABS_HAT0X 0x10
  1287. +#define ABS_HAT0Y 0x11
  1288. +#define ABS_HAT1X 0x12
  1289. +#define ABS_HAT1Y 0x13
  1290. +#define ABS_HAT2X 0x14
  1291. +#define ABS_HAT2Y 0x15
  1292. +#define ABS_HAT3X 0x16
  1293. +#define ABS_HAT3Y 0x17
  1294. +#define ABS_PRESSURE 0x18
  1295. +#define ABS_DISTANCE 0x19
  1296. +#define ABS_TILT_X 0x1a
  1297. +#define ABS_TILT_Y 0x1b
  1298. +#define ABS_TOOL_WIDTH 0x1c
  1299. +
  1300. +#define ABS_VOLUME 0x20
  1301. +
  1302. +#define ABS_MISC 0x28
  1303. +
  1304. +#define ABS_MT_SLOT 0x2f /* MT slot being modified */
  1305. +#define ABS_MT_TOUCH_MAJOR 0x30 /* Major axis of touching ellipse */
  1306. +#define ABS_MT_TOUCH_MINOR 0x31 /* Minor axis (omit if circular) */
  1307. +#define ABS_MT_WIDTH_MAJOR 0x32 /* Major axis of approaching ellipse */
  1308. +#define ABS_MT_WIDTH_MINOR 0x33 /* Minor axis (omit if circular) */
  1309. +#define ABS_MT_ORIENTATION 0x34 /* Ellipse orientation */
  1310. +#define ABS_MT_POSITION_X 0x35 /* Center X touch position */
  1311. +#define ABS_MT_POSITION_Y 0x36 /* Center Y touch position */
  1312. +#define ABS_MT_TOOL_TYPE 0x37 /* Type of touching device */
  1313. +#define ABS_MT_BLOB_ID 0x38 /* Group a set of packets as a blob */
  1314. +#define ABS_MT_TRACKING_ID 0x39 /* Unique ID of initiated contact */
  1315. +#define ABS_MT_PRESSURE 0x3a /* Pressure on contact area */
  1316. +#define ABS_MT_DISTANCE 0x3b /* Contact hover distance */
  1317. +#define ABS_MT_TOOL_X 0x3c /* Center X tool position */
  1318. +#define ABS_MT_TOOL_Y 0x3d /* Center Y tool position */
  1319. +
  1320. +
  1321. +#define ABS_MAX 0x3f
  1322. +#define ABS_CNT (ABS_MAX+1)
  1323. +
  1324. +/*
  1325. + * Switch events
  1326. + */
  1327. +
  1328. +#define SW_LID 0x00 /* set = lid shut */
  1329. +#define SW_TABLET_MODE 0x01 /* set = tablet mode */
  1330. +#define SW_HEADPHONE_INSERT 0x02 /* set = inserted */
  1331. +#define SW_RFKILL_ALL 0x03 /* rfkill master switch, type "any"
  1332. + set = radio enabled */
  1333. +#define SW_RADIO SW_RFKILL_ALL /* deprecated */
  1334. +#define SW_MICROPHONE_INSERT 0x04 /* set = inserted */
  1335. +#define SW_DOCK 0x05 /* set = plugged into dock */
  1336. +#define SW_LINEOUT_INSERT 0x06 /* set = inserted */
  1337. +#define SW_JACK_PHYSICAL_INSERT 0x07 /* set = mechanical switch set */
  1338. +#define SW_VIDEOOUT_INSERT 0x08 /* set = inserted */
  1339. +#define SW_CAMERA_LENS_COVER 0x09 /* set = lens covered */
  1340. +#define SW_KEYPAD_SLIDE 0x0a /* set = keypad slide out */
  1341. +#define SW_FRONT_PROXIMITY 0x0b /* set = front proximity sensor active */
  1342. +#define SW_ROTATE_LOCK 0x0c /* set = rotate locked/disabled */
  1343. +#define SW_LINEIN_INSERT 0x0d /* set = inserted */
  1344. +#define SW_MUTE_DEVICE 0x0e /* set = device disabled */
  1345. +#define SW_MAX 0x0f
  1346. +#define SW_CNT (SW_MAX+1)
  1347. +
  1348. +/*
  1349. + * Misc events
  1350. + */
  1351. +
  1352. +#define MSC_SERIAL 0x00
  1353. +#define MSC_PULSELED 0x01
  1354. +#define MSC_GESTURE 0x02
  1355. +#define MSC_RAW 0x03
  1356. +#define MSC_SCAN 0x04
  1357. +#define MSC_TIMESTAMP 0x05
  1358. +#define MSC_MAX 0x07
  1359. +#define MSC_CNT (MSC_MAX+1)
  1360. +
  1361. +/*
  1362. + * LEDs
  1363. + */
  1364. +
  1365. +#define LED_NUML 0x00
  1366. +#define LED_CAPSL 0x01
  1367. +#define LED_SCROLLL 0x02
  1368. +#define LED_COMPOSE 0x03
  1369. +#define LED_KANA 0x04
  1370. +#define LED_SLEEP 0x05
  1371. +#define LED_SUSPEND 0x06
  1372. +#define LED_MUTE 0x07
  1373. +#define LED_MISC 0x08
  1374. +#define LED_MAIL 0x09
  1375. +#define LED_CHARGING 0x0a
  1376. +#define LED_MAX 0x0f
  1377. +#define LED_CNT (LED_MAX+1)
  1378. +
  1379. +/*
  1380. + * Autorepeat values
  1381. + */
  1382. +
  1383. +#define REP_DELAY 0x00
  1384. +#define REP_PERIOD 0x01
  1385. +#define REP_MAX 0x01
  1386. +#define REP_CNT (REP_MAX+1)
  1387. +
  1388. +/*
  1389. + * Sounds
  1390. + */
  1391. +
  1392. +#define SND_CLICK 0x00
  1393. +#define SND_BELL 0x01
  1394. +#define SND_TONE 0x02
  1395. +#define SND_MAX 0x07
  1396. +#define SND_CNT (SND_MAX+1)
  1397. +
  1398. +#endif