aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/hid.h
diff options
context:
space:
mode:
authorJiri Kosina <jkosina@suse.cz>2009-03-30 09:14:53 -0400
committerJiri Kosina <jkosina@suse.cz>2009-03-30 09:14:53 -0400
commit621de593081524da2f0f7b060f5951b4155eb4a2 (patch)
treedcb1777094498496a3036b0e49546887e72d6a06 /include/linux/hid.h
parentafa5eb7c68689ced4284f01c96feed44a2d0a127 (diff)
parent6d77976800c3f29a0337fadcc9ddd79050fa5620 (diff)
Merge branch 'autosuspend' into for-next
Conflicts: drivers/hid/hid-core.c
Diffstat (limited to 'include/linux/hid.h')
-rw-r--r--include/linux/hid.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/hid.h b/include/linux/hid.h
index a46cbea71d65..a72876e43589 100644
--- a/include/linux/hid.h
+++ b/include/linux/hid.h
@@ -604,12 +604,17 @@ struct hid_ll_driver {
604 int (*open)(struct hid_device *hdev); 604 int (*open)(struct hid_device *hdev);
605 void (*close)(struct hid_device *hdev); 605 void (*close)(struct hid_device *hdev);
606 606
607 int (*power)(struct hid_device *hdev, int level);
608
607 int (*hidinput_input_event) (struct input_dev *idev, unsigned int type, 609 int (*hidinput_input_event) (struct input_dev *idev, unsigned int type,
608 unsigned int code, int value); 610 unsigned int code, int value);
609 611
610 int (*parse)(struct hid_device *hdev); 612 int (*parse)(struct hid_device *hdev);
611}; 613};
612 614
615#define PM_HINT_FULLON 1<<5
616#define PM_HINT_NORMAL 1<<1
617
613/* Applications from HID Usage Tables 4/8/99 Version 1.1 */ 618/* Applications from HID Usage Tables 4/8/99 Version 1.1 */
614/* We ignore a few input applications that are not widely used */ 619/* We ignore a few input applications that are not widely used */
615#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))
@@ -642,6 +647,7 @@ int hidinput_find_field(struct hid_device *hid, unsigned int type, unsigned int
642void hid_output_report(struct hid_report *report, __u8 *data); 647void hid_output_report(struct hid_report *report, __u8 *data);
643struct hid_device *hid_allocate_device(void); 648struct hid_device *hid_allocate_device(void);
644int hid_parse_report(struct hid_device *hid, __u8 *start, unsigned size); 649int hid_parse_report(struct hid_device *hid, __u8 *start, unsigned size);
650int hid_check_keys_pressed(struct hid_device *hid);
645int hid_connect(struct hid_device *hid, unsigned int connect_mask); 651int hid_connect(struct hid_device *hid, unsigned int connect_mask);
646 652
647/** 653/**