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.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/hid.h b/include/linux/hid.h
index 35f5384a465b..55e51f9f76cb 100644
--- a/include/linux/hid.h
+++ b/include/linux/hid.h
@@ -405,6 +405,7 @@ struct hid_control_fifo {
405 405
406#define HID_CLAIMED_INPUT 1 406#define HID_CLAIMED_INPUT 1
407#define HID_CLAIMED_HIDDEV 2 407#define HID_CLAIMED_HIDDEV 2
408#define HID_CLAIMED_HIDRAW 4
408 409
409#define HID_CTRL_RUNNING 1 410#define HID_CTRL_RUNNING 1
410#define HID_OUT_RUNNING 2 411#define HID_OUT_RUNNING 2
@@ -440,6 +441,7 @@ struct hid_device { /* device report descriptor */
440 441
441 struct list_head inputs; /* The list of inputs */ 442 struct list_head inputs; /* The list of inputs */
442 void *hiddev; /* The hiddev structure */ 443 void *hiddev; /* The hiddev structure */
444 void *hidraw;
443 int minor; /* Hiddev minor number */ 445 int minor; /* Hiddev minor number */
444 446
445 wait_queue_head_t wait; /* For sleeping */ 447 wait_queue_head_t wait; /* For sleeping */
@@ -460,6 +462,9 @@ struct hid_device { /* device report descriptor */
460 void (*hiddev_hid_event) (struct hid_device *, struct hid_field *field, 462 void (*hiddev_hid_event) (struct hid_device *, struct hid_field *field,
461 struct hid_usage *, __s32); 463 struct hid_usage *, __s32);
462 void (*hiddev_report_event) (struct hid_device *, struct hid_report *); 464 void (*hiddev_report_event) (struct hid_device *, struct hid_report *);
465
466 /* handler for raw output data, used by hidraw */
467 int (*hid_output_raw_report) (struct hid_device *, __u8 *, size_t);
463#ifdef CONFIG_USB_HIDINPUT_POWERBOOK 468#ifdef CONFIG_USB_HIDINPUT_POWERBOOK
464 unsigned long pb_pressed_fn[NBITS(KEY_MAX)]; 469 unsigned long pb_pressed_fn[NBITS(KEY_MAX)];
465 unsigned long pb_pressed_numlock[NBITS(KEY_MAX)]; 470 unsigned long pb_pressed_numlock[NBITS(KEY_MAX)];