122851890Sopenharmony_ci/****************************************************************************
222851890Sopenharmony_ci ****************************************************************************
322851890Sopenharmony_ci ***
422851890Sopenharmony_ci ***   This header was automatically generated from a Linux kernel header
522851890Sopenharmony_ci ***   of the same name, to make information necessary for userspace to
622851890Sopenharmony_ci ***   call into the kernel available to libc.  It contains only constants,
722851890Sopenharmony_ci ***   structures, and macros generated from the original header, and thus,
822851890Sopenharmony_ci ***   contains no copyrightable information.
922851890Sopenharmony_ci ***
1022851890Sopenharmony_ci ***   To edit the content of this header, modify the corresponding
1122851890Sopenharmony_ci ***   source file (e.g. under external/kernel-headers/original/) then
1222851890Sopenharmony_ci ***   run bionic/libc/kernel/tools/update_all.py
1322851890Sopenharmony_ci ***
1422851890Sopenharmony_ci ***   Any manual change here will be lost the next time this script will
1522851890Sopenharmony_ci ***   be run. You've been warned!
1622851890Sopenharmony_ci ***
1722851890Sopenharmony_ci ****************************************************************************
1822851890Sopenharmony_ci ****************************************************************************/
1922851890Sopenharmony_ci#ifndef _UAPI__HID_H
2022851890Sopenharmony_ci#define _UAPI__HID_H
2122851890Sopenharmony_ci#define USB_INTERFACE_CLASS_HID 3
2222851890Sopenharmony_ci#define USB_INTERFACE_SUBCLASS_BOOT 1
2322851890Sopenharmony_ci#define USB_INTERFACE_PROTOCOL_KEYBOARD 1
2422851890Sopenharmony_ci#define USB_INTERFACE_PROTOCOL_MOUSE 2
2522851890Sopenharmony_ci#define HID_REQ_GET_REPORT 0x01
2622851890Sopenharmony_ci#define HID_REQ_GET_IDLE 0x02
2722851890Sopenharmony_ci#define HID_REQ_GET_PROTOCOL 0x03
2822851890Sopenharmony_ci#define HID_REQ_SET_REPORT 0x09
2922851890Sopenharmony_ci#define HID_REQ_SET_IDLE 0x0A
3022851890Sopenharmony_ci#define HID_REQ_SET_PROTOCOL 0x0B
3122851890Sopenharmony_ci#define HID_DT_HID (USB_TYPE_CLASS | 0x01)
3222851890Sopenharmony_ci#define HID_DT_REPORT (USB_TYPE_CLASS | 0x02)
3322851890Sopenharmony_ci#define HID_DT_PHYSICAL (USB_TYPE_CLASS | 0x03)
3422851890Sopenharmony_ci#define HID_MAX_DESCRIPTOR_SIZE 4096
3522851890Sopenharmony_ci#endif
36