summaryrefslogtreecommitdiff
path: root/include/linux/hid.h
diff options
context:
space:
mode:
authorPaul Walmsley <paul@booyaka.com>2007-04-19 16:56:12 +0400
committerJiri Kosina <jkosina@suse.cz>2007-04-19 16:56:12 +0400
commit876b9276b993723f7a74d55b3b49b9186f05d09d (patch)
treec63653a1a13206f3f37007e334cb9054c05c4807 /include/linux/hid.h
parent8cef908235bcac898a4f4ccc50c781e08022a579 (diff)
downloadlinux-876b9276b993723f7a74d55b3b49b9186f05d09d.tar.xz
USB HID: add 'quirks' module parameter
Add a 'quirks' module parameter for the usbhid module, so users can add or modify quirks at module load time. Signed-off-by: Paul Walmsley <paul@booyaka.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'include/linux/hid.h')
-rw-r--r--include/linux/hid.h8
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 {
* HID device quirks.
*/
+/*
+ * Increase this if you need to configure more HID quirks at module load time
+ */
+#define MAX_USBHID_BOOT_QUIRKS 4
+
#define HID_QUIRK_INVERT 0x00000001
#define HID_QUIRK_NOTOUCH 0x00000002
#define HID_QUIRK_IGNORE 0x00000004
@@ -495,8 +500,11 @@ void hid_output_report(struct hid_report *report, __u8 *data);
void hid_free_device(struct hid_device *device);
struct hid_device *hid_parse_report(__u8 *start, unsigned size);
+/* HID quirks API */
u32 usbhid_lookup_quirk(const u16 idVendor, const u16 idProduct);
int usbhid_modify_dquirk(const u16 idVendor, const u16 idProduct, const u32 quirks);
+int usbhid_quirks_init(char **quirks_param);
+void usbhid_quirks_exit(void);
#ifdef CONFIG_HID_FF
int hid_ff_init(struct hid_device *hid);