diff options
Diffstat (limited to 'include/linux/hid.h')
-rw-r--r-- | include/linux/hid.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/hid.h b/include/linux/hid.h index c076041a069e..7330a0fef0c0 100644 --- a/include/linux/hid.h +++ b/include/linux/hid.h | |||
@@ -167,6 +167,7 @@ struct hid_item { | |||
167 | #define HID_UP_MSVENDOR 0xff000000 | 167 | #define HID_UP_MSVENDOR 0xff000000 |
168 | #define HID_UP_CUSTOM 0x00ff0000 | 168 | #define HID_UP_CUSTOM 0x00ff0000 |
169 | #define HID_UP_LOGIVENDOR 0xffbc0000 | 169 | #define HID_UP_LOGIVENDOR 0xffbc0000 |
170 | #define HID_UP_SENSOR 0x00200000 | ||
170 | 171 | ||
171 | #define HID_USAGE 0x0000ffff | 172 | #define HID_USAGE 0x0000ffff |
172 | 173 | ||
@@ -292,6 +293,7 @@ struct hid_item { | |||
292 | */ | 293 | */ |
293 | #define HID_GROUP_GENERIC 0x0001 | 294 | #define HID_GROUP_GENERIC 0x0001 |
294 | #define HID_GROUP_MULTITOUCH 0x0002 | 295 | #define HID_GROUP_MULTITOUCH 0x0002 |
296 | #define HID_GROUP_SENSOR_HUB 0x0003 | ||
295 | 297 | ||
296 | /* | 298 | /* |
297 | * This is the global environment of the parser. This information is | 299 | * This is the global environment of the parser. This information is |
@@ -342,6 +344,7 @@ struct hid_collection { | |||
342 | struct hid_usage { | 344 | struct hid_usage { |
343 | unsigned hid; /* hid usage code */ | 345 | unsigned hid; /* hid usage code */ |
344 | unsigned collection_index; /* index into collection array */ | 346 | unsigned collection_index; /* index into collection array */ |
347 | unsigned usage_index; /* index into usage array */ | ||
345 | /* hidinput data */ | 348 | /* hidinput data */ |
346 | __u16 code; /* input driver code */ | 349 | __u16 code; /* input driver code */ |
347 | __u8 type; /* input driver type */ | 350 | __u8 type; /* input driver type */ |
@@ -684,6 +687,7 @@ struct hid_ll_driver { | |||
684 | 687 | ||
685 | extern int hid_debug; | 688 | extern int hid_debug; |
686 | 689 | ||
690 | extern bool hid_ignore(struct hid_device *); | ||
687 | extern int hid_add_device(struct hid_device *); | 691 | extern int hid_add_device(struct hid_device *); |
688 | extern void hid_destroy_device(struct hid_device *); | 692 | extern void hid_destroy_device(struct hid_device *); |
689 | 693 | ||
@@ -706,6 +710,7 @@ int hid_input_report(struct hid_device *, int type, u8 *, int, int); | |||
706 | 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); |
707 | struct hid_field *hidinput_get_led_field(struct hid_device *hid); | 711 | struct hid_field *hidinput_get_led_field(struct hid_device *hid); |
708 | 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); | ||
709 | void hid_output_report(struct hid_report *report, __u8 *data); | 714 | void hid_output_report(struct hid_report *report, __u8 *data); |
710 | struct hid_device *hid_allocate_device(void); | 715 | struct hid_device *hid_allocate_device(void); |
711 | 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); |
@@ -716,6 +721,7 @@ int hid_connect(struct hid_device *hid, unsigned int connect_mask); | |||
716 | void hid_disconnect(struct hid_device *hid); | 721 | void hid_disconnect(struct hid_device *hid); |
717 | 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, |
718 | const struct hid_device_id *id); | 723 | const struct hid_device_id *id); |
724 | s32 hid_snto32(__u32 value, unsigned n); | ||
719 | 725 | ||
720 | /** | 726 | /** |
721 | * hid_map_usage - map usage input bits | 727 | * hid_map_usage - map usage input bits |