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