diff options
Diffstat (limited to 'include/linux/hid.h')
-rw-r--r-- | include/linux/hid.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/hid.h b/include/linux/hid.h index c5f6ec2b15c2..7330a0fef0c0 100644 --- a/include/linux/hid.h +++ b/include/linux/hid.h | |||
@@ -344,6 +344,7 @@ struct hid_collection { | |||
344 | struct hid_usage { | 344 | struct hid_usage { |
345 | unsigned hid; /* hid usage code */ | 345 | unsigned hid; /* hid usage code */ |
346 | unsigned collection_index; /* index into collection array */ | 346 | unsigned collection_index; /* index into collection array */ |
347 | unsigned usage_index; /* index into usage array */ | ||
347 | /* hidinput data */ | 348 | /* hidinput data */ |
348 | __u16 code; /* input driver code */ | 349 | __u16 code; /* input driver code */ |
349 | __u8 type; /* input driver type */ | 350 | __u8 type; /* input driver type */ |
@@ -686,6 +687,7 @@ struct hid_ll_driver { | |||
686 | 687 | ||
687 | extern int hid_debug; | 688 | extern int hid_debug; |
688 | 689 | ||
690 | extern bool hid_ignore(struct hid_device *); | ||
689 | extern int hid_add_device(struct hid_device *); | 691 | extern int hid_add_device(struct hid_device *); |
690 | extern void hid_destroy_device(struct hid_device *); | 692 | extern void hid_destroy_device(struct hid_device *); |
691 | 693 | ||
@@ -708,6 +710,7 @@ int hid_input_report(struct hid_device *, int type, u8 *, int, int); | |||
708 | int hidinput_find_field(struct hid_device *hid, unsigned int type, unsigned int code, struct hid_field **field); | 710 | int hidinput_find_field(struct hid_device *hid, unsigned int type, unsigned int code, struct hid_field **field); |
709 | struct hid_field *hidinput_get_led_field(struct hid_device *hid); | 711 | struct hid_field *hidinput_get_led_field(struct hid_device *hid); |
710 | unsigned int hidinput_count_leds(struct hid_device *hid); | 712 | unsigned int hidinput_count_leds(struct hid_device *hid); |
713 | __s32 hidinput_calc_abs_res(const struct hid_field *field, __u16 code); | ||
711 | void hid_output_report(struct hid_report *report, __u8 *data); | 714 | void hid_output_report(struct hid_report *report, __u8 *data); |
712 | struct hid_device *hid_allocate_device(void); | 715 | struct hid_device *hid_allocate_device(void); |
713 | struct hid_report *hid_register_report(struct hid_device *device, unsigned type, unsigned id); | 716 | struct hid_report *hid_register_report(struct hid_device *device, unsigned type, unsigned id); |
@@ -718,6 +721,7 @@ int hid_connect(struct hid_device *hid, unsigned int connect_mask); | |||
718 | void hid_disconnect(struct hid_device *hid); | 721 | void hid_disconnect(struct hid_device *hid); |
719 | const struct hid_device_id *hid_match_id(struct hid_device *hdev, | 722 | const struct hid_device_id *hid_match_id(struct hid_device *hdev, |
720 | const struct hid_device_id *id); | 723 | const struct hid_device_id *id); |
724 | s32 hid_snto32(__u32 value, unsigned n); | ||
721 | 725 | ||
722 | /** | 726 | /** |
723 | * hid_map_usage - map usage input bits | 727 | * hid_map_usage - map usage input bits |