diff options
Diffstat (limited to 'include/linux/hid.h')
| -rw-r--r-- | include/linux/hid.h | 23 |
1 files changed, 7 insertions, 16 deletions
diff --git a/include/linux/hid.h b/include/linux/hid.h index fa8ee9cef7be..a72876e43589 100644 --- a/include/linux/hid.h +++ b/include/linux/hid.h | |||
| @@ -270,6 +270,7 @@ struct hid_item { | |||
| 270 | 270 | ||
| 271 | #define HID_QUIRK_INVERT 0x00000001 | 271 | #define HID_QUIRK_INVERT 0x00000001 |
| 272 | #define HID_QUIRK_NOTOUCH 0x00000002 | 272 | #define HID_QUIRK_NOTOUCH 0x00000002 |
| 273 | #define HID_QUIRK_IGNORE 0x00000004 | ||
| 273 | #define HID_QUIRK_NOGET 0x00000008 | 274 | #define HID_QUIRK_NOGET 0x00000008 |
| 274 | #define HID_QUIRK_BADPAD 0x00000020 | 275 | #define HID_QUIRK_BADPAD 0x00000020 |
| 275 | #define HID_QUIRK_MULTI_INPUT 0x00000040 | 276 | #define HID_QUIRK_MULTI_INPUT 0x00000040 |
| @@ -603,12 +604,17 @@ struct hid_ll_driver { | |||
| 603 | int (*open)(struct hid_device *hdev); | 604 | int (*open)(struct hid_device *hdev); |
| 604 | void (*close)(struct hid_device *hdev); | 605 | void (*close)(struct hid_device *hdev); |
| 605 | 606 | ||
| 607 | int (*power)(struct hid_device *hdev, int level); | ||
| 608 | |||
| 606 | int (*hidinput_input_event) (struct input_dev *idev, unsigned int type, | 609 | int (*hidinput_input_event) (struct input_dev *idev, unsigned int type, |
| 607 | unsigned int code, int value); | 610 | unsigned int code, int value); |
| 608 | 611 | ||
| 609 | int (*parse)(struct hid_device *hdev); | 612 | int (*parse)(struct hid_device *hdev); |
| 610 | }; | 613 | }; |
| 611 | 614 | ||
| 615 | #define PM_HINT_FULLON 1<<5 | ||
| 616 | #define PM_HINT_NORMAL 1<<1 | ||
| 617 | |||
| 612 | /* Applications from HID Usage Tables 4/8/99 Version 1.1 */ | 618 | /* Applications from HID Usage Tables 4/8/99 Version 1.1 */ |
| 613 | /* We ignore a few input applications that are not widely used */ | 619 | /* We ignore a few input applications that are not widely used */ |
| 614 | #define IS_INPUT_APPLICATION(a) (((a >= 0x00010000) && (a <= 0x00010008)) || (a == 0x00010080) || (a == 0x000c0001) || (a == 0x000d0002)) | 620 | #define IS_INPUT_APPLICATION(a) (((a >= 0x00010000) && (a <= 0x00010008)) || (a == 0x00010080) || (a == 0x000c0001) || (a == 0x000d0002)) |
| @@ -641,6 +647,7 @@ int hidinput_find_field(struct hid_device *hid, unsigned int type, unsigned int | |||
| 641 | void hid_output_report(struct hid_report *report, __u8 *data); | 647 | void hid_output_report(struct hid_report *report, __u8 *data); |
| 642 | struct hid_device *hid_allocate_device(void); | 648 | struct hid_device *hid_allocate_device(void); |
| 643 | int hid_parse_report(struct hid_device *hid, __u8 *start, unsigned size); | 649 | int hid_parse_report(struct hid_device *hid, __u8 *start, unsigned size); |
| 650 | int hid_check_keys_pressed(struct hid_device *hid); | ||
| 644 | int hid_connect(struct hid_device *hid, unsigned int connect_mask); | 651 | int hid_connect(struct hid_device *hid, unsigned int connect_mask); |
| 645 | 652 | ||
| 646 | /** | 653 | /** |
| @@ -791,21 +798,5 @@ dbg_hid(const char *fmt, ...) | |||
| 791 | __FILE__ , ## arg) | 798 | __FILE__ , ## arg) |
| 792 | #endif /* HID_FF */ | 799 | #endif /* HID_FF */ |
| 793 | 800 | ||
| 794 | #ifdef __KERNEL__ | ||
| 795 | #ifdef CONFIG_HID_COMPAT | ||
| 796 | #define HID_COMPAT_LOAD_DRIVER(name) \ | ||
| 797 | /* prototype to avoid sparse warning */ \ | ||
| 798 | extern void hid_compat_##name(void); \ | ||
| 799 | void hid_compat_##name(void) { } \ | ||
| 800 | EXPORT_SYMBOL(hid_compat_##name) | ||
| 801 | #else | ||
| 802 | #define HID_COMPAT_LOAD_DRIVER(name) | ||
| 803 | #endif /* HID_COMPAT */ | ||
| 804 | #define HID_COMPAT_CALL_DRIVER(name) do { \ | ||
| 805 | extern void hid_compat_##name(void); \ | ||
| 806 | hid_compat_##name(); \ | ||
| 807 | } while (0) | ||
| 808 | #endif /* __KERNEL__ */ | ||
| 809 | |||
| 810 | #endif | 801 | #endif |
| 811 | 802 | ||
