diff options
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/hid.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/hid.h b/include/linux/hid.h index 4ba456d71f6b..37076b116ed0 100644 --- a/include/linux/hid.h +++ b/include/linux/hid.h | |||
@@ -247,6 +247,11 @@ struct hid_item { | |||
247 | * HID device quirks. | 247 | * HID device quirks. |
248 | */ | 248 | */ |
249 | 249 | ||
250 | /* | ||
251 | * Increase this if you need to configure more HID quirks at module load time | ||
252 | */ | ||
253 | #define MAX_USBHID_BOOT_QUIRKS 4 | ||
254 | |||
250 | #define HID_QUIRK_INVERT 0x00000001 | 255 | #define HID_QUIRK_INVERT 0x00000001 |
251 | #define HID_QUIRK_NOTOUCH 0x00000002 | 256 | #define HID_QUIRK_NOTOUCH 0x00000002 |
252 | #define HID_QUIRK_IGNORE 0x00000004 | 257 | #define HID_QUIRK_IGNORE 0x00000004 |
@@ -495,8 +500,11 @@ void hid_output_report(struct hid_report *report, __u8 *data); | |||
495 | void hid_free_device(struct hid_device *device); | 500 | void hid_free_device(struct hid_device *device); |
496 | struct hid_device *hid_parse_report(__u8 *start, unsigned size); | 501 | struct hid_device *hid_parse_report(__u8 *start, unsigned size); |
497 | 502 | ||
503 | /* HID quirks API */ | ||
498 | u32 usbhid_lookup_quirk(const u16 idVendor, const u16 idProduct); | 504 | u32 usbhid_lookup_quirk(const u16 idVendor, const u16 idProduct); |
499 | int usbhid_modify_dquirk(const u16 idVendor, const u16 idProduct, const u32 quirks); | 505 | int usbhid_modify_dquirk(const u16 idVendor, const u16 idProduct, const u32 quirks); |
506 | int usbhid_quirks_init(char **quirks_param); | ||
507 | void usbhid_quirks_exit(void); | ||
500 | 508 | ||
501 | #ifdef CONFIG_HID_FF | 509 | #ifdef CONFIG_HID_FF |
502 | int hid_ff_init(struct hid_device *hid); | 510 | int hid_ff_init(struct hid_device *hid); |