aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/input/hid.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/input/hid.h')
-rw-r--r--drivers/usb/input/hid.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/usb/input/hid.h b/drivers/usb/input/hid.h
index ca3e170ce0b3..d76bbc81f6a8 100644
--- a/drivers/usb/input/hid.h
+++ b/drivers/usb/input/hid.h
@@ -351,7 +351,8 @@ struct hid_report_enum {
351 351
352#define HID_REPORT_TYPES 3 352#define HID_REPORT_TYPES 3
353 353
354#define HID_BUFFER_SIZE 64 /* use 64 for compatibility with all possible packetlen */ 354#define HID_MIN_BUFFER_SIZE 64 /* make sure there is at least a packet size of space */
355#define HID_MAX_BUFFER_SIZE 4096 /* 4kb */
355#define HID_CONTROL_FIFO_SIZE 256 /* to init devices with >100 reports */ 356#define HID_CONTROL_FIFO_SIZE 256 /* to init devices with >100 reports */
356#define HID_OUTPUT_FIFO_SIZE 64 357#define HID_OUTPUT_FIFO_SIZE 64
357 358
@@ -389,6 +390,8 @@ struct hid_device { /* device report descriptor */
389 390
390 unsigned long iofl; /* I/O flags (CTRL_RUNNING, OUT_RUNNING) */ 391 unsigned long iofl; /* I/O flags (CTRL_RUNNING, OUT_RUNNING) */
391 392
393 unsigned int bufsize; /* URB buffer size */
394
392 struct urb *urbin; /* Input URB */ 395 struct urb *urbin; /* Input URB */
393 char *inbuf; /* Input buffer */ 396 char *inbuf; /* Input buffer */
394 dma_addr_t inbuf_dma; /* Input buffer dma */ 397 dma_addr_t inbuf_dma; /* Input buffer dma */