diff options
Diffstat (limited to 'include/linux/hid.h')
| -rw-r--r-- | include/linux/hid.h | 46 |
1 files changed, 3 insertions, 43 deletions
diff --git a/include/linux/hid.h b/include/linux/hid.h index 7e1f37db7582..c076041a069e 100644 --- a/include/linux/hid.h +++ b/include/linux/hid.h | |||
| @@ -1,12 +1,8 @@ | |||
| 1 | #ifndef __HID_H | ||
| 2 | #define __HID_H | ||
| 3 | |||
| 4 | /* | 1 | /* |
| 5 | * Copyright (c) 1999 Andreas Gal | 2 | * Copyright (c) 1999 Andreas Gal |
| 6 | * Copyright (c) 2000-2001 Vojtech Pavlik | 3 | * Copyright (c) 2000-2001 Vojtech Pavlik |
| 7 | * Copyright (c) 2006-2007 Jiri Kosina | 4 | * Copyright (c) 2006-2007 Jiri Kosina |
| 8 | */ | 5 | */ |
| 9 | |||
| 10 | /* | 6 | /* |
| 11 | * This program is free software; you can redistribute it and/or modify | 7 | * This program is free software; you can redistribute it and/or modify |
| 12 | * it under the terms of the GNU General Public License as published by | 8 | * it under the terms of the GNU General Public License as published by |
| @@ -26,43 +22,9 @@ | |||
| 26 | * e-mail - mail your message to <vojtech@ucw.cz>, or by paper mail: | 22 | * e-mail - mail your message to <vojtech@ucw.cz>, or by paper mail: |
| 27 | * Vojtech Pavlik, Simunkova 1594, Prague 8, 182 00 Czech Republic | 23 | * Vojtech Pavlik, Simunkova 1594, Prague 8, 182 00 Czech Republic |
| 28 | */ | 24 | */ |
| 25 | #ifndef __HID_H | ||
| 26 | #define __HID_H | ||
| 29 | 27 | ||
| 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 | #ifdef __KERNEL__ | ||
| 66 | 28 | ||
| 67 | #include <linux/types.h> | 29 | #include <linux/types.h> |
| 68 | #include <linux/slab.h> | 30 | #include <linux/slab.h> |
| @@ -73,6 +35,7 @@ | |||
| 73 | #include <linux/input.h> | 35 | #include <linux/input.h> |
| 74 | #include <linux/semaphore.h> | 36 | #include <linux/semaphore.h> |
| 75 | #include <linux/power_supply.h> | 37 | #include <linux/power_supply.h> |
| 38 | #include <uapi/linux/hid.h> | ||
| 76 | 39 | ||
| 77 | /* | 40 | /* |
| 78 | * We parse each description item into this structure. Short items data | 41 | * We parse each description item into this structure. Short items data |
| @@ -943,7 +906,4 @@ do { \ | |||
| 943 | #define hid_dbg(hid, fmt, arg...) \ | 906 | #define hid_dbg(hid, fmt, arg...) \ |
| 944 | dev_dbg(&(hid)->dev, fmt, ##arg) | 907 | dev_dbg(&(hid)->dev, fmt, ##arg) |
| 945 | 908 | ||
| 946 | #endif /* __KERNEL__ */ | ||
| 947 | |||
| 948 | #endif | 909 | #endif |
| 949 | |||
