diff options
Diffstat (limited to 'include/linux/hid.h')
-rw-r--r-- | include/linux/hid.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/hid.h b/include/linux/hid.h index 898103b401f1..55e51f9f76cb 100644 --- a/include/linux/hid.h +++ b/include/linux/hid.h | |||
@@ -276,6 +276,7 @@ struct hid_item { | |||
276 | #define HID_QUIRK_HIDINPUT 0x00200000 | 276 | #define HID_QUIRK_HIDINPUT 0x00200000 |
277 | #define HID_QUIRK_LOGITECH_IGNORE_DOUBLED_WHEEL 0x00400000 | 277 | #define HID_QUIRK_LOGITECH_IGNORE_DOUBLED_WHEEL 0x00400000 |
278 | #define HID_QUIRK_LOGITECH_EXPANDED_KEYMAP 0x00800000 | 278 | #define HID_QUIRK_LOGITECH_EXPANDED_KEYMAP 0x00800000 |
279 | #define HID_QUIRK_IGNORE_HIDINPUT 0x01000000 | ||
279 | 280 | ||
280 | /* | 281 | /* |
281 | * Separate quirks for runtime report descriptor fixup | 282 | * Separate quirks for runtime report descriptor fixup |
@@ -285,6 +286,7 @@ struct hid_item { | |||
285 | #define HID_QUIRK_RDESC_LOGITECH 0x00000002 | 286 | #define HID_QUIRK_RDESC_LOGITECH 0x00000002 |
286 | #define HID_QUIRK_RDESC_SWAPPED_MIN_MAX 0x00000004 | 287 | #define HID_QUIRK_RDESC_SWAPPED_MIN_MAX 0x00000004 |
287 | #define HID_QUIRK_RDESC_PETALYNX 0x00000008 | 288 | #define HID_QUIRK_RDESC_PETALYNX 0x00000008 |
289 | #define HID_QUIRK_RDESC_MACBOOK_JIS 0x00000010 | ||
288 | 290 | ||
289 | /* | 291 | /* |
290 | * This is the global environment of the parser. This information is | 292 | * This is the global environment of the parser. This information is |
@@ -403,6 +405,7 @@ struct hid_control_fifo { | |||
403 | 405 | ||
404 | #define HID_CLAIMED_INPUT 1 | 406 | #define HID_CLAIMED_INPUT 1 |
405 | #define HID_CLAIMED_HIDDEV 2 | 407 | #define HID_CLAIMED_HIDDEV 2 |
408 | #define HID_CLAIMED_HIDRAW 4 | ||
406 | 409 | ||
407 | #define HID_CTRL_RUNNING 1 | 410 | #define HID_CTRL_RUNNING 1 |
408 | #define HID_OUT_RUNNING 2 | 411 | #define HID_OUT_RUNNING 2 |
@@ -438,6 +441,7 @@ struct hid_device { /* device report descriptor */ | |||
438 | 441 | ||
439 | struct list_head inputs; /* The list of inputs */ | 442 | struct list_head inputs; /* The list of inputs */ |
440 | void *hiddev; /* The hiddev structure */ | 443 | void *hiddev; /* The hiddev structure */ |
444 | void *hidraw; | ||
441 | int minor; /* Hiddev minor number */ | 445 | int minor; /* Hiddev minor number */ |
442 | 446 | ||
443 | wait_queue_head_t wait; /* For sleeping */ | 447 | wait_queue_head_t wait; /* For sleeping */ |
@@ -458,6 +462,9 @@ struct hid_device { /* device report descriptor */ | |||
458 | void (*hiddev_hid_event) (struct hid_device *, struct hid_field *field, | 462 | void (*hiddev_hid_event) (struct hid_device *, struct hid_field *field, |
459 | struct hid_usage *, __s32); | 463 | struct hid_usage *, __s32); |
460 | 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); | ||
461 | #ifdef CONFIG_USB_HIDINPUT_POWERBOOK | 468 | #ifdef CONFIG_USB_HIDINPUT_POWERBOOK |
462 | unsigned long pb_pressed_fn[NBITS(KEY_MAX)]; | 469 | unsigned long pb_pressed_fn[NBITS(KEY_MAX)]; |
463 | unsigned long pb_pressed_numlock[NBITS(KEY_MAX)]; | 470 | unsigned long pb_pressed_numlock[NBITS(KEY_MAX)]; |