1 /* 2 * This header was generated from the Linux kernel headers by update_headers.py, 3 * to provide necessary information from kernel to userspace, such as constants, 4 * structures, and macros, and thus, contains no copyrightable information. 5 */ 6 #ifndef _UAPI__HID_H 7 #define _UAPI__HID_H 8 #define USB_INTERFACE_CLASS_HID 3 9 #define USB_INTERFACE_SUBCLASS_BOOT 1 10 #define USB_INTERFACE_PROTOCOL_KEYBOARD 1 11 #define USB_INTERFACE_PROTOCOL_MOUSE 2 12 #define HID_REQ_GET_REPORT 0x01 13 #define HID_REQ_GET_IDLE 0x02 14 #define HID_REQ_GET_PROTOCOL 0x03 15 #define HID_REQ_SET_REPORT 0x09 16 #define HID_REQ_SET_IDLE 0x0A 17 #define HID_REQ_SET_PROTOCOL 0x0B 18 #define HID_DT_HID (USB_TYPE_CLASS | 0x01) 19 #define HID_DT_REPORT (USB_TYPE_CLASS | 0x02) 20 #define HID_DT_PHYSICAL (USB_TYPE_CLASS | 0x03) 21 #define HID_MAX_DESCRIPTOR_SIZE 4096 22 #endif 23