Nick Pelly | b3765b2 | 2010-08-16 15:31:01 -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 | *** |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 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 | *** |
Nick Pelly | b3765b2 | 2010-08-16 15:31:01 -0700 | [diff] [blame] | 17 | **************************************************************************** |
| 18 | ****************************************************************************/ |
| 19 | #ifndef _HIDRAW_H |
| 20 | #define _HIDRAW_H |
Nick Pelly | b3765b2 | 2010-08-16 15:31:01 -0700 | [diff] [blame] | 21 | #include <linux/hid.h> |
| 22 | #include <linux/types.h> |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 23 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Nick Pelly | b3765b2 | 2010-08-16 15:31:01 -0700 | [diff] [blame] | 24 | struct hidraw_report_descriptor { |
| 25 | __u32 size; |
| 26 | __u8 value[HID_MAX_DESCRIPTOR_SIZE]; |
| 27 | }; |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 28 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Nick Pelly | b3765b2 | 2010-08-16 15:31:01 -0700 | [diff] [blame] | 29 | struct hidraw_devinfo { |
| 30 | __u32 bustype; |
| 31 | __s16 vendor; |
| 32 | __s16 product; |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 33 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Nick Pelly | b3765b2 | 2010-08-16 15:31:01 -0700 | [diff] [blame] | 34 | }; |
Nick Pelly | b3765b2 | 2010-08-16 15:31:01 -0700 | [diff] [blame] | 35 | #define HIDIOCGRDESCSIZE _IOR('H', 0x01, int) |
| 36 | #define HIDIOCGRDESC _IOR('H', 0x02, struct hidraw_report_descriptor) |
| 37 | #define HIDIOCGRAWINFO _IOR('H', 0x03, struct hidraw_devinfo) |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 38 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Nick Pelly | b3765b2 | 2010-08-16 15:31:01 -0700 | [diff] [blame] | 39 | #define HIDIOCGRAWNAME(len) _IOC(_IOC_READ, 'H', 0x04, len) |
| 40 | #define HIDIOCGRAWPHYS(len) _IOC(_IOC_READ, 'H', 0x05, len) |
Nick Pelly | b3765b2 | 2010-08-16 15:31:01 -0700 | [diff] [blame] | 41 | #define HIDRAW_FIRST_MINOR 0 |
| 42 | #define HIDRAW_MAX_DEVICES 64 |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 43 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Nick Pelly | b3765b2 | 2010-08-16 15:31:01 -0700 | [diff] [blame] | 44 | #define HIDRAW_BUFFER_SIZE 64 |
Nick Pelly | b3765b2 | 2010-08-16 15:31:01 -0700 | [diff] [blame] | 45 | #endif |