| Elliott Hughes | 180edef | 2023-11-02 00:08:05 +0000 | [diff] [blame] | 1 | /* | 
 | 2 |  * This file is auto-generated. Modifications will be lost. | 
 | 3 |  * | 
 | 4 |  * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/ | 
 | 5 |  * for more information. | 
 | 6 |  */ | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 7 | #ifndef _UAPI_HIDRAW_H | 
 | 8 | #define _UAPI_HIDRAW_H | 
 | 9 | #include <linux/hid.h> | 
 | 10 | #include <linux/types.h> | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 11 | struct hidraw_report_descriptor { | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 12 |   __u32 size; | 
 | 13 |   __u8 value[HID_MAX_DESCRIPTOR_SIZE]; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 14 | }; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 15 | struct hidraw_devinfo { | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 16 |   __u32 bustype; | 
 | 17 |   __s16 vendor; | 
 | 18 |   __s16 product; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 19 | }; | 
 | 20 | #define HIDIOCGRDESCSIZE _IOR('H', 0x01, int) | 
 | 21 | #define HIDIOCGRDESC _IOR('H', 0x02, struct hidraw_report_descriptor) | 
 | 22 | #define HIDIOCGRAWINFO _IOR('H', 0x03, struct hidraw_devinfo) | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 23 | #define HIDIOCGRAWNAME(len) _IOC(_IOC_READ, 'H', 0x04, len) | 
 | 24 | #define HIDIOCGRAWPHYS(len) _IOC(_IOC_READ, 'H', 0x05, len) | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 25 | #define HIDIOCSFEATURE(len) _IOC(_IOC_WRITE | _IOC_READ, 'H', 0x06, len) | 
 | 26 | #define HIDIOCGFEATURE(len) _IOC(_IOC_WRITE | _IOC_READ, 'H', 0x07, len) | 
| Christopher Ferris | bb9fcb4 | 2020-04-06 11:38:04 -0700 | [diff] [blame] | 27 | #define HIDIOCGRAWUNIQ(len) _IOC(_IOC_READ, 'H', 0x08, len) | 
| Christopher Ferris | 05667cd | 2021-02-16 16:01:34 -0800 | [diff] [blame] | 28 | #define HIDIOCSINPUT(len) _IOC(_IOC_WRITE | _IOC_READ, 'H', 0x09, len) | 
 | 29 | #define HIDIOCGINPUT(len) _IOC(_IOC_WRITE | _IOC_READ, 'H', 0x0A, len) | 
 | 30 | #define HIDIOCSOUTPUT(len) _IOC(_IOC_WRITE | _IOC_READ, 'H', 0x0B, len) | 
 | 31 | #define HIDIOCGOUTPUT(len) _IOC(_IOC_WRITE | _IOC_READ, 'H', 0x0C, len) | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 32 | #define HIDRAW_FIRST_MINOR 0 | 
 | 33 | #define HIDRAW_MAX_DEVICES 64 | 
 | 34 | #define HIDRAW_BUFFER_SIZE 64 | 
| Nick Kralevich | a67e4de | 2013-01-14 11:28:26 -0800 | [diff] [blame] | 35 | #endif |