aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/hid.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/hid.h')
-rw-r--r--include/linux/hid.h4
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 {
344struct hid_usage { 344struct 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
687extern int hid_debug; 688extern int hid_debug;
688 689
690extern bool hid_ignore(struct hid_device *);
689extern int hid_add_device(struct hid_device *); 691extern int hid_add_device(struct hid_device *);
690extern void hid_destroy_device(struct hid_device *); 692extern 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);
708int hidinput_find_field(struct hid_device *hid, unsigned int type, unsigned int code, struct hid_field **field); 710int hidinput_find_field(struct hid_device *hid, unsigned int type, unsigned int code, struct hid_field **field);
709struct hid_field *hidinput_get_led_field(struct hid_device *hid); 711struct hid_field *hidinput_get_led_field(struct hid_device *hid);
710unsigned int hidinput_count_leds(struct hid_device *hid); 712unsigned int hidinput_count_leds(struct hid_device *hid);
713__s32 hidinput_calc_abs_res(const struct hid_field *field, __u16 code);
711void hid_output_report(struct hid_report *report, __u8 *data); 714void hid_output_report(struct hid_report *report, __u8 *data);
712struct hid_device *hid_allocate_device(void); 715struct hid_device *hid_allocate_device(void);
713struct hid_report *hid_register_report(struct hid_device *device, unsigned type, unsigned id); 716struct 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);
718void hid_disconnect(struct hid_device *hid); 721void hid_disconnect(struct hid_device *hid);
719const struct hid_device_id *hid_match_id(struct hid_device *hdev, 722const 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);
724s32 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