1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */ 2*4882a593Smuzhiyun /* 3*4882a593Smuzhiyun * Copyright (c) 1999 Andreas Gal 4*4882a593Smuzhiyun * Copyright (c) 2000-2001 Vojtech Pavlik 5*4882a593Smuzhiyun * Copyright (c) 2006-2007 Jiri Kosina 6*4882a593Smuzhiyun */ 7*4882a593Smuzhiyun /* 8*4882a593Smuzhiyun * This program is free software; you can redistribute it and/or modify 9*4882a593Smuzhiyun * it under the terms of the GNU General Public License as published by 10*4882a593Smuzhiyun * the Free Software Foundation; either version 2 of the License, or 11*4882a593Smuzhiyun * (at your option) any later version. 12*4882a593Smuzhiyun * 13*4882a593Smuzhiyun * This program is distributed in the hope that it will be useful, 14*4882a593Smuzhiyun * but WITHOUT ANY WARRANTY; without even the implied warranty of 15*4882a593Smuzhiyun * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16*4882a593Smuzhiyun * GNU General Public License for more details. 17*4882a593Smuzhiyun * 18*4882a593Smuzhiyun * You should have received a copy of the GNU General Public License 19*4882a593Smuzhiyun * along with this program; if not, write to the Free Software 20*4882a593Smuzhiyun * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 21*4882a593Smuzhiyun * 22*4882a593Smuzhiyun * Should you need to contact me, the author, you can do so either by 23*4882a593Smuzhiyun * e-mail - mail your message to <vojtech@ucw.cz>, or by paper mail: 24*4882a593Smuzhiyun * Vojtech Pavlik, Simunkova 1594, Prague 8, 182 00 Czech Republic 25*4882a593Smuzhiyun */ 26*4882a593Smuzhiyun #ifndef _UAPI__HID_H 27*4882a593Smuzhiyun #define _UAPI__HID_H 28*4882a593Smuzhiyun 29*4882a593Smuzhiyun 30*4882a593Smuzhiyun 31*4882a593Smuzhiyun /* 32*4882a593Smuzhiyun * USB HID (Human Interface Device) interface class code 33*4882a593Smuzhiyun */ 34*4882a593Smuzhiyun 35*4882a593Smuzhiyun #define USB_INTERFACE_CLASS_HID 3 36*4882a593Smuzhiyun 37*4882a593Smuzhiyun /* 38*4882a593Smuzhiyun * USB HID interface subclass and protocol codes 39*4882a593Smuzhiyun */ 40*4882a593Smuzhiyun 41*4882a593Smuzhiyun #define USB_INTERFACE_SUBCLASS_BOOT 1 42*4882a593Smuzhiyun #define USB_INTERFACE_PROTOCOL_KEYBOARD 1 43*4882a593Smuzhiyun #define USB_INTERFACE_PROTOCOL_MOUSE 2 44*4882a593Smuzhiyun 45*4882a593Smuzhiyun /* 46*4882a593Smuzhiyun * HID class requests 47*4882a593Smuzhiyun */ 48*4882a593Smuzhiyun 49*4882a593Smuzhiyun #define HID_REQ_GET_REPORT 0x01 50*4882a593Smuzhiyun #define HID_REQ_GET_IDLE 0x02 51*4882a593Smuzhiyun #define HID_REQ_GET_PROTOCOL 0x03 52*4882a593Smuzhiyun #define HID_REQ_SET_REPORT 0x09 53*4882a593Smuzhiyun #define HID_REQ_SET_IDLE 0x0A 54*4882a593Smuzhiyun #define HID_REQ_SET_PROTOCOL 0x0B 55*4882a593Smuzhiyun 56*4882a593Smuzhiyun /* 57*4882a593Smuzhiyun * HID class descriptor types 58*4882a593Smuzhiyun */ 59*4882a593Smuzhiyun 60*4882a593Smuzhiyun #define HID_DT_HID (USB_TYPE_CLASS | 0x01) 61*4882a593Smuzhiyun #define HID_DT_REPORT (USB_TYPE_CLASS | 0x02) 62*4882a593Smuzhiyun #define HID_DT_PHYSICAL (USB_TYPE_CLASS | 0x03) 63*4882a593Smuzhiyun 64*4882a593Smuzhiyun #define HID_MAX_DESCRIPTOR_SIZE 4096 65*4882a593Smuzhiyun 66*4882a593Smuzhiyun 67*4882a593Smuzhiyun #endif /* _UAPI__HID_H */ 68