1 /****************************************************************************
2 ****************************************************************************
4 *** This header was automatically generated from a Linux kernel header
5 *** of the same name, to make information necessary for userspace to
6 *** call into the kernel available to libc. It contains only constants,
7 *** structures, and macros generated from the original header, and thus,
8 *** contains no copyrightable information.
10 ****************************************************************************
11 ****************************************************************************/
16 #include <sys/ioctl.h>
17 #include <sys/types.h>
18 #include <asm/types.h>
27 #define EV_VERSION 0x010000
36 struct input_absinfo {
44 #define EVIOCGVERSION _IOR('E', 0x01, int)
45 #define EVIOCGID _IOR('E', 0x02, struct input_id)
46 #define EVIOCGREP _IOR('E', 0x03, int[2])
47 #define EVIOCSREP _IOW('E', 0x03, int[2])
48 #define EVIOCGKEYCODE _IOR('E', 0x04, int[2])
49 #define EVIOCSKEYCODE _IOW('E', 0x04, int[2])
51 #define EVIOCGNAME(len) _IOC(_IOC_READ, 'E', 0x06, len)
52 #define EVIOCGPHYS(len) _IOC(_IOC_READ, 'E', 0x07, len)
53 #define EVIOCGUNIQ(len) _IOC(_IOC_READ, 'E', 0x08, len)
55 #define EVIOCGKEY(len) _IOC(_IOC_READ, 'E', 0x18, len)
56 #define EVIOCGLED(len) _IOC(_IOC_READ, 'E', 0x19, len)
57 #define EVIOCGSND(len) _IOC(_IOC_READ, 'E', 0x1a, len)
58 #define EVIOCGSW(len) _IOC(_IOC_READ, 'E', 0x1b, len)
60 #define EVIOCGBIT(ev,len) _IOC(_IOC_READ, 'E', 0x20 + ev, len)
61 #define EVIOCGABS(abs) _IOR('E', 0x40 + abs, struct input_absinfo)
62 #define EVIOCSABS(abs) _IOW('E', 0xc0 + abs, struct input_absinfo)
64 #define EVIOCSFF _IOC(_IOC_WRITE, 'E', 0x80, sizeof(struct ff_effect))
65 #define EVIOCRMFF _IOW('E', 0x81, int)
66 #define EVIOCGEFFECTS _IOR('E', 0x84, int)
68 #define EVIOCGRAB _IOW('E', 0x90, int)
81 #define EV_FF_STATUS 0x17
87 #define KEY_RESERVED 0
101 #define KEY_BACKSPACE 14
113 #define KEY_LEFTBRACE 26
114 #define KEY_RIGHTBRACE 27
116 #define KEY_LEFTCTRL 29
126 #define KEY_SEMICOLON 39
127 #define KEY_APOSTROPHE 40
129 #define KEY_LEFTSHIFT 42
130 #define KEY_BACKSLASH 43
141 #define KEY_RIGHTSHIFT 54
142 #define KEY_KPASTERISK 55
143 #define KEY_LEFTALT 56
145 #define KEY_CAPSLOCK 58
156 #define KEY_NUMLOCK 69
157 #define KEY_SCROLLLOCK 70
161 #define KEY_KPMINUS 74
165 #define KEY_KPPLUS 78
172 #define KEY_ZENKAKUHANKAKU 85
177 #define KEY_KATAKANA 90
178 #define KEY_HIRAGANA 91
179 #define KEY_HENKAN 92
180 #define KEY_KATAKANAHIRAGANA 93
181 #define KEY_MUHENKAN 94
182 #define KEY_KPJPCOMMA 95
183 #define KEY_KPENTER 96
184 #define KEY_RIGHTCTRL 97
185 #define KEY_KPSLASH 98
187 #define KEY_RIGHTALT 100
188 #define KEY_LINEFEED 101
191 #define KEY_PAGEUP 104
193 #define KEY_RIGHT 106
196 #define KEY_PAGEDOWN 109
197 #define KEY_INSERT 110
198 #define KEY_DELETE 111
199 #define KEY_MACRO 112
201 #define KEY_VOLUMEDOWN 114
202 #define KEY_VOLUMEUP 115
203 #define KEY_POWER 116
204 #define KEY_KPEQUAL 117
205 #define KEY_KPPLUSMINUS 118
206 #define KEY_PAUSE 119
208 #define KEY_KPCOMMA 121
209 #define KEY_HANGEUL 122
210 #define KEY_HANGUEL KEY_HANGEUL
211 #define KEY_HANJA 123
213 #define KEY_LEFTMETA 125
214 #define KEY_RIGHTMETA 126
215 #define KEY_COMPOSE 127
218 #define KEY_AGAIN 129
219 #define KEY_PROPS 130
221 #define KEY_FRONT 132
224 #define KEY_PASTE 135
230 #define KEY_SETUP 141
231 #define KEY_SLEEP 142
232 #define KEY_WAKEUP 143
234 #define KEY_SENDFILE 145
235 #define KEY_DELETEFILE 146
237 #define KEY_PROG1 148
238 #define KEY_PROG2 149
240 #define KEY_MSDOS 151
241 #define KEY_COFFEE 152
242 #define KEY_DIRECTION 153
243 #define KEY_CYCLEWINDOWS 154
245 #define KEY_BOOKMARKS 156
246 #define KEY_COMPUTER 157
248 #define KEY_FORWARD 159
249 #define KEY_CLOSECD 160
250 #define KEY_EJECTCD 161
251 #define KEY_EJECTCLOSECD 162
252 #define KEY_NEXTSONG 163
253 #define KEY_PLAYPAUSE 164
254 #define KEY_PREVIOUSSONG 165
255 #define KEY_STOPCD 166
256 #define KEY_RECORD 167
257 #define KEY_REWIND 168
258 #define KEY_PHONE 169
260 #define KEY_CONFIG 171
261 #define KEY_HOMEPAGE 172
262 #define KEY_REFRESH 173
266 #define KEY_SCROLLUP 177
267 #define KEY_SCROLLDOWN 178
268 #define KEY_KPLEFTPAREN 179
269 #define KEY_KPRIGHTPAREN 180
286 #define KEY_PLAYCD 200
287 #define KEY_PAUSECD 201
288 #define KEY_PROG3 202
289 #define KEY_PROG4 203
290 #define KEY_SUSPEND 205
291 #define KEY_CLOSE 206
293 #define KEY_FASTFORWARD 208
294 #define KEY_BASSBOOST 209
295 #define KEY_PRINT 210
297 #define KEY_CAMERA 212
298 #define KEY_SOUND 213
299 #define KEY_QUESTION 214
300 #define KEY_EMAIL 215
302 #define KEY_SEARCH 217
303 #define KEY_CONNECT 218
304 #define KEY_FINANCE 219
305 #define KEY_SPORT 220
307 #define KEY_ALTERASE 222
308 #define KEY_CANCEL 223
309 #define KEY_BRIGHTNESSDOWN 224
310 #define KEY_BRIGHTNESSUP 225
311 #define KEY_MEDIA 226
314 #define KEY_SHARP 228
315 #define KEY_SOFT1 229
316 #define KEY_SOFT2 230
318 #define KEY_CENTER 232
319 #define KEY_HEADSETHOOK 233
323 #define KEY_SWITCHVIDEOMODE 236
324 #define KEY_KBDILLUMTOGGLE 237
325 #define KEY_KBDILLUMDOWN 238
326 #define KEY_KBDILLUMUP 239
329 #define KEY_REPLY 232
330 #define KEY_FORWARDMAIL 233
332 #define KEY_DOCUMENTS 235
334 #define KEY_BATTERY 236
336 #define KEY_UNKNOWN 240
338 #define BTN_MISC 0x100
350 #define BTN_MOUSE 0x110
351 #define BTN_LEFT 0x110
352 #define BTN_RIGHT 0x111
353 #define BTN_MIDDLE 0x112
354 #define BTN_SIDE 0x113
355 #define BTN_EXTRA 0x114
356 #define BTN_FORWARD 0x115
357 #define BTN_BACK 0x116
358 #define BTN_TASK 0x117
360 #define BTN_JOYSTICK 0x120
361 #define BTN_TRIGGER 0x120
362 #define BTN_THUMB 0x121
363 #define BTN_THUMB2 0x122
364 #define BTN_TOP 0x123
365 #define BTN_TOP2 0x124
366 #define BTN_PINKIE 0x125
367 #define BTN_BASE 0x126
368 #define BTN_BASE2 0x127
369 #define BTN_BASE3 0x128
370 #define BTN_BASE4 0x129
371 #define BTN_BASE5 0x12a
372 #define BTN_BASE6 0x12b
373 #define BTN_DEAD 0x12f
375 #define BTN_GAMEPAD 0x130
384 #define BTN_TL2 0x138
385 #define BTN_TR2 0x139
386 #define BTN_SELECT 0x13a
387 #define BTN_START 0x13b
388 #define BTN_MODE 0x13c
389 #define BTN_THUMBL 0x13d
390 #define BTN_THUMBR 0x13e
392 #define BTN_DIGI 0x140
393 #define BTN_TOOL_PEN 0x140
394 #define BTN_TOOL_RUBBER 0x141
395 #define BTN_TOOL_BRUSH 0x142
396 #define BTN_TOOL_PENCIL 0x143
397 #define BTN_TOOL_AIRBRUSH 0x144
398 #define BTN_TOOL_FINGER 0x145
399 #define BTN_TOOL_MOUSE 0x146
400 #define BTN_TOOL_LENS 0x147
401 #define BTN_TOUCH 0x14a
402 #define BTN_STYLUS 0x14b
403 #define BTN_STYLUS2 0x14c
404 #define BTN_TOOL_DOUBLETAP 0x14d
405 #define BTN_TOOL_TRIPLETAP 0x14e
407 #define BTN_WHEEL 0x150
408 #define BTN_GEAR_DOWN 0x150
409 #define BTN_GEAR_UP 0x151
412 #define KEY_SELECT 0x161
413 #define KEY_GOTO 0x162
414 #define KEY_CLEAR 0x163
415 #define KEY_POWER2 0x164
416 #define KEY_OPTION 0x165
417 #define KEY_INFO 0x166
418 #define KEY_TIME 0x167
419 #define KEY_VENDOR 0x168
420 #define KEY_ARCHIVE 0x169
421 #define KEY_PROGRAM 0x16a
422 #define KEY_CHANNEL 0x16b
423 #define KEY_FAVORITES 0x16c
424 #define KEY_EPG 0x16d
425 #define KEY_PVR 0x16e
426 #define KEY_MHP 0x16f
427 #define KEY_LANGUAGE 0x170
428 #define KEY_TITLE 0x171
429 #define KEY_SUBTITLE 0x172
430 #define KEY_ANGLE 0x173
431 #define KEY_ZOOM 0x174
432 #define KEY_MODE 0x175
433 #define KEY_KEYBOARD 0x176
434 #define KEY_SCREEN 0x177
437 #define KEY_TV2 0x17a
438 #define KEY_VCR 0x17b
439 #define KEY_VCR2 0x17c
440 #define KEY_SAT 0x17d
441 #define KEY_SAT2 0x17e
443 #define KEY_TAPE 0x180
444 #define KEY_RADIO 0x181
445 #define KEY_TUNER 0x182
446 #define KEY_PLAYER 0x183
447 #define KEY_TEXT 0x184
448 #define KEY_DVD 0x185
449 #define KEY_AUX 0x186
450 #define KEY_MP3 0x187
451 #define KEY_AUDIO 0x188
452 #define KEY_VIDEO 0x189
453 #define KEY_DIRECTORY 0x18a
454 #define KEY_LIST 0x18b
455 #define KEY_MEMO 0x18c
456 #define KEY_CALENDAR 0x18d
457 #define KEY_RED 0x18e
458 #define KEY_GREEN 0x18f
459 #define KEY_YELLOW 0x190
460 #define KEY_BLUE 0x191
461 #define KEY_CHANNELUP 0x192
462 #define KEY_CHANNELDOWN 0x193
463 #define KEY_FIRST 0x194
464 #define KEY_LAST 0x195
466 #define KEY_NEXT 0x197
467 #define KEY_RESTART 0x198
468 #define KEY_SLOW 0x199
469 #define KEY_SHUFFLE 0x19a
470 #define KEY_BREAK 0x19b
471 #define KEY_PREVIOUS 0x19c
472 #define KEY_DIGITS 0x19d
473 #define KEY_TEEN 0x19e
474 #define KEY_TWEN 0x19f
476 #define KEY_DEL_EOL 0x1c0
477 #define KEY_DEL_EOS 0x1c1
478 #define KEY_INS_LINE 0x1c2
479 #define KEY_DEL_LINE 0x1c3
482 #define KEY_FN_ESC 0x1d1
483 #define KEY_FN_F1 0x1d2
484 #define KEY_FN_F2 0x1d3
485 #define KEY_FN_F3 0x1d4
486 #define KEY_FN_F4 0x1d5
487 #define KEY_FN_F5 0x1d6
488 #define KEY_FN_F6 0x1d7
489 #define KEY_FN_F7 0x1d8
490 #define KEY_FN_F8 0x1d9
491 #define KEY_FN_F9 0x1da
492 #define KEY_FN_F10 0x1db
493 #define KEY_FN_F11 0x1dc
494 #define KEY_FN_F12 0x1dd
495 #define KEY_FN_1 0x1de
496 #define KEY_FN_2 0x1df
497 #define KEY_FN_D 0x1e0
498 #define KEY_FN_E 0x1e1
499 #define KEY_FN_F 0x1e2
500 #define KEY_FN_S 0x1e3
501 #define KEY_FN_B 0x1e4
503 #define KEY_BRL_DOT1 0x1f1
504 #define KEY_BRL_DOT2 0x1f2
505 #define KEY_BRL_DOT3 0x1f3
506 #define KEY_BRL_DOT4 0x1f4
507 #define KEY_BRL_DOT5 0x1f5
508 #define KEY_BRL_DOT6 0x1f6
509 #define KEY_BRL_DOT7 0x1f7
510 #define KEY_BRL_DOT8 0x1f8
512 #define KEY_MIN_INTERESTING KEY_MUTE
513 #define KEY_MAX 0x1ff
521 #define REL_HWHEEL 0x06
522 #define REL_DIAL 0x07
523 #define REL_WHEEL 0x08
524 #define REL_MISC 0x09
533 #define ABS_THROTTLE 0x06
534 #define ABS_RUDDER 0x07
535 #define ABS_WHEEL 0x08
537 #define ABS_BRAKE 0x0a
538 #define ABS_HAT0X 0x10
539 #define ABS_HAT0Y 0x11
540 #define ABS_HAT1X 0x12
541 #define ABS_HAT1Y 0x13
542 #define ABS_HAT2X 0x14
543 #define ABS_HAT2Y 0x15
544 #define ABS_HAT3X 0x16
545 #define ABS_HAT3Y 0x17
546 #define ABS_PRESSURE 0x18
547 #define ABS_DISTANCE 0x19
548 #define ABS_TILT_X 0x1a
549 #define ABS_TILT_Y 0x1b
550 #define ABS_TOOL_WIDTH 0x1c
551 #define ABS_VOLUME 0x20
552 #define ABS_MISC 0x28
556 #define SW_TABLET_MODE 0x01
557 #define SW_HEADPHONE_INSERT 0x02
560 #define MSC_SERIAL 0x00
561 #define MSC_PULSELED 0x01
562 #define MSC_GESTURE 0x02
564 #define MSC_SCAN 0x04
567 #define LED_NUML 0x00
568 #define LED_CAPSL 0x01
569 #define LED_SCROLLL 0x02
570 #define LED_COMPOSE 0x03
571 #define LED_KANA 0x04
572 #define LED_SLEEP 0x05
573 #define LED_SUSPEND 0x06
574 #define LED_MUTE 0x07
575 #define LED_MISC 0x08
576 #define LED_MAIL 0x09
577 #define LED_CHARGING 0x0a
580 #define REP_DELAY 0x00
581 #define REP_PERIOD 0x01
584 #define SND_CLICK 0x00
585 #define SND_BELL 0x01
586 #define SND_TONE 0x02
595 #define BUS_ISAPNP 0x02
598 #define BUS_BLUETOOTH 0x05
601 #define BUS_I8042 0x11
602 #define BUS_XTKBD 0x12
603 #define BUS_RS232 0x13
604 #define BUS_GAMEPORT 0x14
605 #define BUS_PARPORT 0x15
606 #define BUS_AMIGA 0x16
609 #define BUS_HOST 0x19
612 #define FF_STATUS_STOPPED 0x00
613 #define FF_STATUS_PLAYING 0x01
614 #define FF_STATUS_MAX 0x01
633 struct ff_constant_effect {
635 struct ff_envelope envelope;
638 struct ff_ramp_effect {
641 struct ff_envelope envelope;
644 struct ff_condition_effect {
645 __u16 right_saturation;
646 __u16 left_saturation;
656 struct ff_periodic_effect {
663 struct ff_envelope envelope;
670 struct ff_rumble_effect {
671 __u16 strong_magnitude;
672 __u16 weak_magnitude;
682 struct ff_trigger trigger;
683 struct ff_replay replay;
686 struct ff_constant_effect constant;
687 struct ff_ramp_effect ramp;
688 struct ff_periodic_effect periodic;
689 struct ff_condition_effect condition[2];
690 struct ff_rumble_effect rumble;
694 #define FF_RUMBLE 0x50
695 #define FF_PERIODIC 0x51
696 #define FF_CONSTANT 0x52
697 #define FF_SPRING 0x53
698 #define FF_FRICTION 0x54
699 #define FF_DAMPER 0x55
700 #define FF_INERTIA 0x56
703 #define FF_SQUARE 0x58
704 #define FF_TRIANGLE 0x59
706 #define FF_SAW_UP 0x5b
707 #define FF_SAW_DOWN 0x5c
708 #define FF_CUSTOM 0x5d
711 #define FF_AUTOCENTER 0x61