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  */
7 #ifndef _UAPI_HIDRAW_H
8 #define _UAPI_HIDRAW_H
9 #include <linux/hid.h>
10 #include <linux/types.h>
11 struct hidraw_report_descriptor {
12   __u32 size;
13   __u8 value[HID_MAX_DESCRIPTOR_SIZE];
14 };
15 struct hidraw_devinfo {
16   __u32 bustype;
17   __s16 vendor;
18   __s16 product;
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)
23 #define HIDIOCGRAWNAME(len) _IOC(_IOC_READ, 'H', 0x04, len)
24 #define HIDIOCGRAWPHYS(len) _IOC(_IOC_READ, 'H', 0x05, len)
25 #define HIDIOCSFEATURE(len) _IOC(_IOC_WRITE | _IOC_READ, 'H', 0x06, len)
26 #define HIDIOCGFEATURE(len) _IOC(_IOC_WRITE | _IOC_READ, 'H', 0x07, len)
27 #define HIDIOCGRAWUNIQ(len) _IOC(_IOC_READ, 'H', 0x08, len)
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)
32 #define HIDRAW_FIRST_MINOR 0
33 #define HIDRAW_MAX_DEVICES 64
34 #define HIDRAW_BUFFER_SIZE 64
35 #endif
36