aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/hid.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/hid.h')
-rw-r--r--include/linux/hid.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/hid.h b/include/linux/hid.h
index f13bca2dd53b..e5780f8c934a 100644
--- a/include/linux/hid.h
+++ b/include/linux/hid.h
@@ -410,6 +410,7 @@ struct hid_output_fifo {
410#define HID_SUSPENDED 5 410#define HID_SUSPENDED 5
411#define HID_CLEAR_HALT 6 411#define HID_CLEAR_HALT 6
412#define HID_DISCONNECTED 7 412#define HID_DISCONNECTED 7
413#define HID_STARTED 8
413 414
414struct hid_input { 415struct hid_input {
415 struct list_head list; 416 struct list_head list;
@@ -417,6 +418,11 @@ struct hid_input {
417 struct input_dev *input; 418 struct input_dev *input;
418}; 419};
419 420
421enum hid_type {
422 HID_TYPE_OTHER = 0,
423 HID_TYPE_USBMOUSE
424};
425
420struct hid_driver; 426struct hid_driver;
421struct hid_ll_driver; 427struct hid_ll_driver;
422 428
@@ -431,6 +437,7 @@ struct hid_device { /* device report descriptor */
431 __u32 vendor; /* Vendor ID */ 437 __u32 vendor; /* Vendor ID */
432 __u32 product; /* Product ID */ 438 __u32 product; /* Product ID */
433 __u32 version; /* HID version */ 439 __u32 version; /* HID version */
440 enum hid_type type; /* device type (mouse, kbd, ...) */
434 unsigned country; /* HID country */ 441 unsigned country; /* HID country */
435 struct hid_report_enum report_enum[HID_REPORT_TYPES]; 442 struct hid_report_enum report_enum[HID_REPORT_TYPES];
436 443