~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/uapi/linux/hid.h

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /include/uapi/linux/hid.h (Version linux-6.12-rc7) and /include/uapi/linux/hid.h (Version linux-4.11.12)


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

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php