| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 1 | /**************************************************************************** | 
|  | 2 | **************************************************************************** | 
|  | 3 | *** | 
|  | 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. | 
|  | 9 | *** | 
|  | 10 | ***   To edit the content of this header, modify the corresponding | 
|  | 11 | ***   source file (e.g. under external/kernel-headers/original/) then | 
|  | 12 | ***   run bionic/libc/kernel/tools/update_all.py | 
|  | 13 | *** | 
|  | 14 | ***   Any manual change here will be lost the next time this script will | 
|  | 15 | ***   be run. You've been warned! | 
|  | 16 | *** | 
|  | 17 | **************************************************************************** | 
|  | 18 | ****************************************************************************/ | 
|  | 19 | #ifndef _UAPI_LINUX_JOYSTICK_H | 
|  | 20 | #define _UAPI_LINUX_JOYSTICK_H | 
|  | 21 | #include <linux/types.h> | 
|  | 22 | #include <linux/input.h> | 
|  | 23 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ | 
|  | 24 | #define JS_VERSION 0x020100 | 
|  | 25 | #define JS_EVENT_BUTTON 0x01 | 
|  | 26 | #define JS_EVENT_AXIS 0x02 | 
|  | 27 | #define JS_EVENT_INIT 0x80 | 
|  | 28 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ | 
|  | 29 | struct js_event { | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 30 | __u32 time; | 
|  | 31 | __s16 value; | 
|  | 32 | __u8 type; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 33 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 34 | __u8 number; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 35 | }; | 
|  | 36 | #define JSIOCGVERSION _IOR('j', 0x01, __u32) | 
|  | 37 | #define JSIOCGAXES _IOR('j', 0x11, __u8) | 
|  | 38 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ | 
|  | 39 | #define JSIOCGBUTTONS _IOR('j', 0x12, __u8) | 
|  | 40 | #define JSIOCGNAME(len) _IOC(_IOC_READ, 'j', 0x13, len) | 
|  | 41 | #define JSIOCSCORR _IOW('j', 0x21, struct js_corr) | 
|  | 42 | #define JSIOCGCORR _IOR('j', 0x22, struct js_corr) | 
|  | 43 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ | 
|  | 44 | #define JSIOCSAXMAP _IOW('j', 0x31, __u8[ABS_CNT]) | 
|  | 45 | #define JSIOCGAXMAP _IOR('j', 0x32, __u8[ABS_CNT]) | 
|  | 46 | #define JSIOCSBTNMAP _IOW('j', 0x33, __u16[KEY_MAX - BTN_MISC + 1]) | 
|  | 47 | #define JSIOCGBTNMAP _IOR('j', 0x34, __u16[KEY_MAX - BTN_MISC + 1]) | 
|  | 48 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ | 
|  | 49 | #define JS_CORR_NONE 0x00 | 
|  | 50 | #define JS_CORR_BROKEN 0x01 | 
|  | 51 | struct js_corr { | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 52 | __s32 coef[8]; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 53 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 54 | __s16 prec; | 
|  | 55 | __u16 type; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 56 | }; | 
|  | 57 | #define JS_RETURN sizeof(struct JS_DATA_TYPE) | 
|  | 58 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ | 
|  | 59 | #define JS_TRUE 1 | 
|  | 60 | #define JS_FALSE 0 | 
|  | 61 | #define JS_X_0 0x01 | 
|  | 62 | #define JS_Y_0 0x02 | 
|  | 63 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ | 
|  | 64 | #define JS_X_1 0x04 | 
|  | 65 | #define JS_Y_1 0x08 | 
|  | 66 | #define JS_MAX 2 | 
|  | 67 | #define JS_DEF_TIMEOUT 0x1300 | 
|  | 68 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ | 
|  | 69 | #define JS_DEF_CORR 0 | 
|  | 70 | #define JS_DEF_TIMELIMIT 10L | 
|  | 71 | #define JS_SET_CAL 1 | 
|  | 72 | #define JS_GET_CAL 2 | 
|  | 73 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ | 
|  | 74 | #define JS_SET_TIMEOUT 3 | 
|  | 75 | #define JS_GET_TIMEOUT 4 | 
|  | 76 | #define JS_SET_TIMELIMIT 5 | 
|  | 77 | #define JS_GET_TIMELIMIT 6 | 
|  | 78 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ | 
|  | 79 | #define JS_GET_ALL 7 | 
|  | 80 | #define JS_SET_ALL 8 | 
|  | 81 | struct JS_DATA_TYPE { | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 82 | __s32 buttons; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 83 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 84 | __s32 x; | 
|  | 85 | __s32 y; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 86 | }; | 
|  | 87 | struct JS_DATA_SAVE_TYPE_32 { | 
|  | 88 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 89 | __s32 JS_TIMEOUT; | 
|  | 90 | __s32 BUSY; | 
|  | 91 | __s32 JS_EXPIRETIME; | 
|  | 92 | __s32 JS_TIMELIMIT; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 93 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 94 | struct JS_DATA_TYPE JS_SAVE; | 
|  | 95 | struct JS_DATA_TYPE JS_CORR; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 96 | }; | 
|  | 97 | struct JS_DATA_SAVE_TYPE_64 { | 
|  | 98 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 99 | __s32 JS_TIMEOUT; | 
|  | 100 | __s32 BUSY; | 
|  | 101 | __s64 JS_EXPIRETIME; | 
|  | 102 | __s64 JS_TIMELIMIT; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 103 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 104 | struct JS_DATA_TYPE JS_SAVE; | 
|  | 105 | struct JS_DATA_TYPE JS_CORR; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 106 | }; | 
|  | 107 | #endif | 
|  | 108 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |