summaryrefslogtreecommitdiffstats
path: root/include/linux/hid.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/hid.h')
-rw-r--r--include/linux/hid.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/include/linux/hid.h b/include/linux/hid.h
index 396068ccc197..bcc91bfdd2cb 100644
--- a/include/linux/hid.h
+++ b/include/linux/hid.h
@@ -341,6 +341,7 @@ struct hid_item {
341/* BIT(8) reserved for backward compatibility, was HID_QUIRK_NO_EMPTY_INPUT */ 341/* BIT(8) reserved for backward compatibility, was HID_QUIRK_NO_EMPTY_INPUT */
342/* BIT(9) reserved for backward compatibility, was NO_INIT_INPUT_REPORTS */ 342/* BIT(9) reserved for backward compatibility, was NO_INIT_INPUT_REPORTS */
343#define HID_QUIRK_ALWAYS_POLL BIT(10) 343#define HID_QUIRK_ALWAYS_POLL BIT(10)
344#define HID_QUIRK_INPUT_PER_APP BIT(11)
344#define HID_QUIRK_SKIP_OUTPUT_REPORTS BIT(16) 345#define HID_QUIRK_SKIP_OUTPUT_REPORTS BIT(16)
345#define HID_QUIRK_SKIP_OUTPUT_REPORT_ID BIT(17) 346#define HID_QUIRK_SKIP_OUTPUT_REPORT_ID BIT(17)
346#define HID_QUIRK_NO_OUTPUT_REPORTS_ON_INTR_EP BIT(18) 347#define HID_QUIRK_NO_OUTPUT_REPORTS_ON_INTR_EP BIT(18)
@@ -465,8 +466,9 @@ struct hid_field {
465struct hid_report { 466struct hid_report {
466 struct list_head list; 467 struct list_head list;
467 struct list_head hidinput_list; 468 struct list_head hidinput_list;
468 unsigned id; /* id of this report */ 469 unsigned int id; /* id of this report */
469 unsigned type; /* report type */ 470 unsigned int type; /* report type */
471 unsigned int application; /* application usage for this report */
470 struct hid_field *field[HID_MAX_FIELDS]; /* fields of the report */ 472 struct hid_field *field[HID_MAX_FIELDS]; /* fields of the report */
471 unsigned maxfield; /* maximum valid field index */ 473 unsigned maxfield; /* maximum valid field index */
472 unsigned size; /* size of the report (bits) */ 474 unsigned size; /* size of the report (bits) */
@@ -861,7 +863,9 @@ void hid_output_report(struct hid_report *report, __u8 *data);
861void __hid_request(struct hid_device *hid, struct hid_report *rep, int reqtype); 863void __hid_request(struct hid_device *hid, struct hid_report *rep, int reqtype);
862u8 *hid_alloc_report_buf(struct hid_report *report, gfp_t flags); 864u8 *hid_alloc_report_buf(struct hid_report *report, gfp_t flags);
863struct hid_device *hid_allocate_device(void); 865struct hid_device *hid_allocate_device(void);
864struct hid_report *hid_register_report(struct hid_device *device, unsigned type, unsigned id); 866struct hid_report *hid_register_report(struct hid_device *device,
867 unsigned int type, unsigned int id,
868 unsigned int application);
865int hid_parse_report(struct hid_device *hid, __u8 *start, unsigned size); 869int hid_parse_report(struct hid_device *hid, __u8 *start, unsigned size);
866struct hid_report *hid_validate_values(struct hid_device *hid, 870struct hid_report *hid_validate_values(struct hid_device *hid,
867 unsigned int type, unsigned int id, 871 unsigned int type, unsigned int id,