diff options
| author | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2012-10-19 15:19:19 -0400 |
|---|---|---|
| committer | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2012-10-19 15:19:19 -0400 |
| commit | e05dacd71db0a5da7c1a44bcaab2a8a240b9c233 (patch) | |
| tree | 31382cf1c7d62c03126448affb2fc86e8c4aaa8b /include/uapi/linux/hid.h | |
| parent | 3ab0b83bf6a1e834f4b884150d8012990c75d25d (diff) | |
| parent | ddffeb8c4d0331609ef2581d84de4d763607bd37 (diff) | |
Merge commit 'v3.7-rc1' into stable/for-linus-3.7
* commit 'v3.7-rc1': (10892 commits)
Linux 3.7-rc1
x86, boot: Explicitly include autoconf.h for hostprogs
perf: Fix UAPI fallout
ARM: config: make sure that platforms are ordered by option string
ARM: config: sort select statements alphanumerically
UAPI: (Scripted) Disintegrate include/linux/byteorder
UAPI: (Scripted) Disintegrate include/linux
UAPI: Unexport linux/blk_types.h
UAPI: Unexport part of linux/ppp-comp.h
perf: Handle new rbtree implementation
procfs: don't need a PATH_MAX allocation to hold a string representation of an int
vfs: embed struct filename inside of names_cache allocation if possible
audit: make audit_inode take struct filename
vfs: make path_openat take a struct filename pointer
vfs: turn do_path_lookup into wrapper around struct filename variant
audit: allow audit code to satisfy getname requests from its names_list
vfs: define struct filename and have getname() return it
btrfs: Fix compilation with user namespace support enabled
userns: Fix posix_acl_file_xattr_userns gid conversion
userns: Properly print bluetooth socket uids
...
Diffstat (limited to 'include/uapi/linux/hid.h')
| -rw-r--r-- | include/uapi/linux/hid.h | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/include/uapi/linux/hid.h b/include/uapi/linux/hid.h new file mode 100644 index 000000000000..b60f4842bd97 --- /dev/null +++ b/include/uapi/linux/hid.h | |||
| @@ -0,0 +1,66 @@ | |||
| 1 | /* | ||
| 2 | * Copyright (c) 1999 Andreas Gal | ||
| 3 | * Copyright (c) 2000-2001 Vojtech Pavlik | ||
| 4 | * Copyright (c) 2006-2007 Jiri Kosina | ||
| 5 | */ | ||
| 6 | /* | ||
| 7 | * This program is free software; you can redistribute it and/or modify | ||
| 8 | * it under the terms of the GNU General Public License as published by | ||
| 9 | * the Free Software Foundation; either version 2 of the License, or | ||
| 10 | * (at your option) any later version. | ||
| 11 | * | ||
| 12 | * This program is distributed in the hope that it will be useful, | ||
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 15 | * GNU General Public License for more details. | ||
| 16 | * | ||
| 17 | * You should have received a copy of the GNU General Public License | ||
| 18 | * along with this program; if not, write to the Free Software | ||
| 19 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
| 20 | * | ||
| 21 | * Should you need to contact me, the author, you can do so either by | ||
| 22 | * e-mail - mail your message to <vojtech@ucw.cz>, or by paper mail: | ||
| 23 | * Vojtech Pavlik, Simunkova 1594, Prague 8, 182 00 Czech Republic | ||
| 24 | */ | ||
| 25 | #ifndef _UAPI__HID_H | ||
| 26 | #define _UAPI__HID_H | ||
| 27 | |||
| 28 | |||
| 29 | |||
| 30 | /* | ||
| 31 | * USB HID (Human Interface Device) interface class code | ||
| 32 | */ | ||
| 33 | |||
| 34 | #define USB_INTERFACE_CLASS_HID 3 | ||
| 35 | |||
| 36 | /* | ||
| 37 | * USB HID interface subclass and protocol codes | ||
| 38 | */ | ||
| 39 | |||
| 40 | #define USB_INTERFACE_SUBCLASS_BOOT 1 | ||
| 41 | #define USB_INTERFACE_PROTOCOL_KEYBOARD 1 | ||
| 42 | #define USB_INTERFACE_PROTOCOL_MOUSE 2 | ||
| 43 | |||
| 44 | /* | ||
| 45 | * HID class requests | ||
| 46 | */ | ||
| 47 | |||
| 48 | #define HID_REQ_GET_REPORT 0x01 | ||
| 49 | #define HID_REQ_GET_IDLE 0x02 | ||
| 50 | #define HID_REQ_GET_PROTOCOL 0x03 | ||
| 51 | #define HID_REQ_SET_REPORT 0x09 | ||
| 52 | #define HID_REQ_SET_IDLE 0x0A | ||
| 53 | #define HID_REQ_SET_PROTOCOL 0x0B | ||
| 54 | |||
| 55 | /* | ||
| 56 | * HID class descriptor types | ||
| 57 | */ | ||
| 58 | |||
| 59 | #define HID_DT_HID (USB_TYPE_CLASS | 0x01) | ||
| 60 | #define HID_DT_REPORT (USB_TYPE_CLASS | 0x02) | ||
| 61 | #define HID_DT_PHYSICAL (USB_TYPE_CLASS | 0x03) | ||
| 62 | |||
| 63 | #define HID_MAX_DESCRIPTOR_SIZE 4096 | ||
| 64 | |||
| 65 | |||
| 66 | #endif /* _UAPI__HID_H */ | ||
