Go to the documentation of this file.
25 #ifndef _UAPI_HIDDEV_H
26 #define _UAPI_HIDDEV_H
30 #include <linux/types.h>
59 #define HID_STRING_SIZE 256
78 #define HID_REPORT_ID_UNKNOWN 0xffffffff
79 #define HID_REPORT_ID_FIRST 0x00000100
80 #define HID_REPORT_ID_NEXT 0x00000200
81 #define HID_REPORT_ID_MASK 0x000000ff
82 #define HID_REPORT_ID_MAX 0x000000ff
84 #define HID_REPORT_TYPE_INPUT 1
85 #define HID_REPORT_TYPE_OUTPUT 2
86 #define HID_REPORT_TYPE_FEATURE 3
87 #define HID_REPORT_TYPE_MIN 1
88 #define HID_REPORT_TYPE_MAX 3
110 #define HID_FIELD_CONSTANT 0x001
111 #define HID_FIELD_VARIABLE 0x002
112 #define HID_FIELD_RELATIVE 0x004
113 #define HID_FIELD_WRAP 0x008
114 #define HID_FIELD_NONLINEAR 0x010
115 #define HID_FIELD_NO_PREFERRED 0x020
116 #define HID_FIELD_NULL_STATE 0x040
117 #define HID_FIELD_VOLATILE 0x080
118 #define HID_FIELD_BUFFERED_BYTE 0x100
131 #define HID_MAX_MULTI_USAGES 1024
142 #define HID_FIELD_INDEX_NONE 0xffffffff
148 #define HID_VERSION 0x010004
154 #define HIDIOCGVERSION _IOR('H', 0x01, int)
155 #define HIDIOCAPPLICATION _IO('H', 0x02)
156 #define HIDIOCGDEVINFO _IOR('H', 0x03, struct hiddev_devinfo)
157 #define HIDIOCGSTRING _IOR('H', 0x04, struct hiddev_string_descriptor)
158 #define HIDIOCINITREPORT _IO('H', 0x05)
159 #define HIDIOCGNAME(len) _IOC(_IOC_READ, 'H', 0x06, len)
160 #define HIDIOCGREPORT _IOW('H', 0x07, struct hiddev_report_info)
161 #define HIDIOCSREPORT _IOW('H', 0x08, struct hiddev_report_info)
162 #define HIDIOCGREPORTINFO _IOWR('H', 0x09, struct hiddev_report_info)
163 #define HIDIOCGFIELDINFO _IOWR('H', 0x0A, struct hiddev_field_info)
164 #define HIDIOCGUSAGE _IOWR('H', 0x0B, struct hiddev_usage_ref)
165 #define HIDIOCSUSAGE _IOW('H', 0x0C, struct hiddev_usage_ref)
166 #define HIDIOCGUCODE _IOWR('H', 0x0D, struct hiddev_usage_ref)
167 #define HIDIOCGFLAG _IOR('H', 0x0E, int)
168 #define HIDIOCSFLAG _IOW('H', 0x0F, int)
169 #define HIDIOCGCOLLECTIONINDEX _IOW('H', 0x10, struct hiddev_usage_ref)
170 #define HIDIOCGCOLLECTIONINFO _IOWR('H', 0x11, struct hiddev_collection_info)
171 #define HIDIOCGPHYS(len) _IOC(_IOC_READ, 'H', 0x12, len)
174 #define HIDIOCGUSAGES _IOWR('H', 0x13, struct hiddev_usage_ref_multi)
175 #define HIDIOCSUSAGES _IOW('H', 0x14, struct hiddev_usage_ref_multi)
180 #define HIDDEV_FLAG_UREF 0x1
181 #define HIDDEV_FLAG_REPORT 0x2
182 #define HIDDEV_FLAGS 0x3