diff options
Diffstat (limited to 'drivers/usb/input/hid.h')
-rw-r--r-- | drivers/usb/input/hid.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/drivers/usb/input/hid.h b/drivers/usb/input/hid.h index c1b6b69bc4a4..ec2412c42f1e 100644 --- a/drivers/usb/input/hid.h +++ b/drivers/usb/input/hid.h | |||
@@ -173,6 +173,7 @@ struct hid_item { | |||
173 | 173 | ||
174 | #define HID_UP_UNDEFINED 0x00000000 | 174 | #define HID_UP_UNDEFINED 0x00000000 |
175 | #define HID_UP_GENDESK 0x00010000 | 175 | #define HID_UP_GENDESK 0x00010000 |
176 | #define HID_UP_SIMULATION 0x00020000 | ||
176 | #define HID_UP_KEYBOARD 0x00070000 | 177 | #define HID_UP_KEYBOARD 0x00070000 |
177 | #define HID_UP_LED 0x00080000 | 178 | #define HID_UP_LED 0x00080000 |
178 | #define HID_UP_BUTTON 0x00090000 | 179 | #define HID_UP_BUTTON 0x00090000 |
@@ -182,6 +183,8 @@ struct hid_item { | |||
182 | #define HID_UP_PID 0x000f0000 | 183 | #define HID_UP_PID 0x000f0000 |
183 | #define HID_UP_HPVENDOR 0xff7f0000 | 184 | #define HID_UP_HPVENDOR 0xff7f0000 |
184 | #define HID_UP_MSVENDOR 0xff000000 | 185 | #define HID_UP_MSVENDOR 0xff000000 |
186 | #define HID_UP_CUSTOM 0x00ff0000 | ||
187 | #define HID_UP_LOGIVENDOR 0xffbc0000 | ||
185 | 188 | ||
186 | #define HID_USAGE 0x0000ffff | 189 | #define HID_USAGE 0x0000ffff |
187 | 190 | ||
@@ -242,6 +245,7 @@ struct hid_item { | |||
242 | #define HID_QUIRK_2WHEEL_MOUSE_HACK_7 0x080 | 245 | #define HID_QUIRK_2WHEEL_MOUSE_HACK_7 0x080 |
243 | #define HID_QUIRK_2WHEEL_MOUSE_HACK_5 0x100 | 246 | #define HID_QUIRK_2WHEEL_MOUSE_HACK_5 0x100 |
244 | #define HID_QUIRK_2WHEEL_MOUSE_HACK_ON 0x200 | 247 | #define HID_QUIRK_2WHEEL_MOUSE_HACK_ON 0x200 |
248 | #define HID_QUIRK_2WHEEL_POWERMOUSE 0x400 | ||
245 | 249 | ||
246 | /* | 250 | /* |
247 | * This is the global environment of the parser. This information is | 251 | * This is the global environment of the parser. This information is |
@@ -348,7 +352,8 @@ struct hid_report_enum { | |||
348 | 352 | ||
349 | #define HID_REPORT_TYPES 3 | 353 | #define HID_REPORT_TYPES 3 |
350 | 354 | ||
351 | #define HID_BUFFER_SIZE 64 /* use 64 for compatibility with all possible packetlen */ | 355 | #define HID_MIN_BUFFER_SIZE 64 /* make sure there is at least a packet size of space */ |
356 | #define HID_MAX_BUFFER_SIZE 4096 /* 4kb */ | ||
352 | #define HID_CONTROL_FIFO_SIZE 256 /* to init devices with >100 reports */ | 357 | #define HID_CONTROL_FIFO_SIZE 256 /* to init devices with >100 reports */ |
353 | #define HID_OUTPUT_FIFO_SIZE 64 | 358 | #define HID_OUTPUT_FIFO_SIZE 64 |
354 | 359 | ||
@@ -386,6 +391,8 @@ struct hid_device { /* device report descriptor */ | |||
386 | 391 | ||
387 | unsigned long iofl; /* I/O flags (CTRL_RUNNING, OUT_RUNNING) */ | 392 | unsigned long iofl; /* I/O flags (CTRL_RUNNING, OUT_RUNNING) */ |
388 | 393 | ||
394 | unsigned int bufsize; /* URB buffer size */ | ||
395 | |||
389 | struct urb *urbin; /* Input URB */ | 396 | struct urb *urbin; /* Input URB */ |
390 | char *inbuf; /* Input buffer */ | 397 | char *inbuf; /* Input buffer */ |
391 | dma_addr_t inbuf_dma; /* Input buffer dma */ | 398 | dma_addr_t inbuf_dma; /* Input buffer dma */ |