diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/hid.h | 5 | ||||
-rw-r--r-- | include/linux/input.h | 42 |
2 files changed, 45 insertions, 2 deletions
diff --git a/include/linux/hid.h b/include/linux/hid.h index 87093652dda8..b1344ec4b7fc 100644 --- a/include/linux/hid.h +++ b/include/linux/hid.h | |||
@@ -501,7 +501,7 @@ struct hid_device { /* device report descriptor */ | |||
501 | void (*hiddev_report_event) (struct hid_device *, struct hid_report *); | 501 | void (*hiddev_report_event) (struct hid_device *, struct hid_report *); |
502 | 502 | ||
503 | /* handler for raw output data, used by hidraw */ | 503 | /* handler for raw output data, used by hidraw */ |
504 | int (*hid_output_raw_report) (struct hid_device *, __u8 *, size_t); | 504 | int (*hid_output_raw_report) (struct hid_device *, __u8 *, size_t, unsigned char); |
505 | 505 | ||
506 | /* debugging support via debugfs */ | 506 | /* debugging support via debugfs */ |
507 | unsigned short debug; | 507 | unsigned short debug; |
@@ -663,7 +663,7 @@ struct hid_ll_driver { | |||
663 | 663 | ||
664 | /* Applications from HID Usage Tables 4/8/99 Version 1.1 */ | 664 | /* Applications from HID Usage Tables 4/8/99 Version 1.1 */ |
665 | /* We ignore a few input applications that are not widely used */ | 665 | /* We ignore a few input applications that are not widely used */ |
666 | #define IS_INPUT_APPLICATION(a) (((a >= 0x00010000) && (a <= 0x00010008)) || (a == 0x00010080) || (a == 0x000c0001) || (a == 0x000d0002)) | 666 | #define IS_INPUT_APPLICATION(a) (((a >= 0x00010000) && (a <= 0x00010008)) || (a == 0x00010080) || (a == 0x000c0001) || ((a >= 0x000d0002) && (a <= 0x000d0006))) |
667 | 667 | ||
668 | /* HID core API */ | 668 | /* HID core API */ |
669 | 669 | ||
@@ -690,6 +690,7 @@ int hid_input_report(struct hid_device *, int type, u8 *, int, int); | |||
690 | int hidinput_find_field(struct hid_device *hid, unsigned int type, unsigned int code, struct hid_field **field); | 690 | int hidinput_find_field(struct hid_device *hid, unsigned int type, unsigned int code, struct hid_field **field); |
691 | void hid_output_report(struct hid_report *report, __u8 *data); | 691 | void hid_output_report(struct hid_report *report, __u8 *data); |
692 | struct hid_device *hid_allocate_device(void); | 692 | struct hid_device *hid_allocate_device(void); |
693 | struct hid_report *hid_register_report(struct hid_device *device, unsigned type, unsigned id); | ||
693 | int hid_parse_report(struct hid_device *hid, __u8 *start, unsigned size); | 694 | int hid_parse_report(struct hid_device *hid, __u8 *start, unsigned size); |
694 | int hid_check_keys_pressed(struct hid_device *hid); | 695 | int hid_check_keys_pressed(struct hid_device *hid); |
695 | int hid_connect(struct hid_device *hid, unsigned int connect_mask); | 696 | int hid_connect(struct hid_device *hid, unsigned int connect_mask); |
diff --git a/include/linux/input.h b/include/linux/input.h index 663208afb64c..f44ee9114401 100644 --- a/include/linux/input.h +++ b/include/linux/input.h | |||
@@ -598,6 +598,48 @@ struct input_absinfo { | |||
598 | 598 | ||
599 | #define KEY_CAMERA_FOCUS 0x210 | 599 | #define KEY_CAMERA_FOCUS 0x210 |
600 | 600 | ||
601 | #define BTN_TRIGGER_HAPPY 0x2c0 | ||
602 | #define BTN_TRIGGER_HAPPY1 0x2c0 | ||
603 | #define BTN_TRIGGER_HAPPY2 0x2c1 | ||
604 | #define BTN_TRIGGER_HAPPY3 0x2c2 | ||
605 | #define BTN_TRIGGER_HAPPY4 0x2c3 | ||
606 | #define BTN_TRIGGER_HAPPY5 0x2c4 | ||
607 | #define BTN_TRIGGER_HAPPY6 0x2c5 | ||
608 | #define BTN_TRIGGER_HAPPY7 0x2c6 | ||
609 | #define BTN_TRIGGER_HAPPY8 0x2c7 | ||
610 | #define BTN_TRIGGER_HAPPY9 0x2c8 | ||
611 | #define BTN_TRIGGER_HAPPY10 0x2c9 | ||
612 | #define BTN_TRIGGER_HAPPY11 0x2ca | ||
613 | #define BTN_TRIGGER_HAPPY12 0x2cb | ||
614 | #define BTN_TRIGGER_HAPPY13 0x2cc | ||
615 | #define BTN_TRIGGER_HAPPY14 0x2cd | ||
616 | #define BTN_TRIGGER_HAPPY15 0x2ce | ||
617 | #define BTN_TRIGGER_HAPPY16 0x2cf | ||
618 | #define BTN_TRIGGER_HAPPY17 0x2d0 | ||
619 | #define BTN_TRIGGER_HAPPY18 0x2d1 | ||
620 | #define BTN_TRIGGER_HAPPY19 0x2d2 | ||
621 | #define BTN_TRIGGER_HAPPY20 0x2d3 | ||
622 | #define BTN_TRIGGER_HAPPY21 0x2d4 | ||
623 | #define BTN_TRIGGER_HAPPY22 0x2d5 | ||
624 | #define BTN_TRIGGER_HAPPY23 0x2d6 | ||
625 | #define BTN_TRIGGER_HAPPY24 0x2d7 | ||
626 | #define BTN_TRIGGER_HAPPY25 0x2d8 | ||
627 | #define BTN_TRIGGER_HAPPY26 0x2d9 | ||
628 | #define BTN_TRIGGER_HAPPY27 0x2da | ||
629 | #define BTN_TRIGGER_HAPPY28 0x2db | ||
630 | #define BTN_TRIGGER_HAPPY29 0x2dc | ||
631 | #define BTN_TRIGGER_HAPPY30 0x2dd | ||
632 | #define BTN_TRIGGER_HAPPY31 0x2de | ||
633 | #define BTN_TRIGGER_HAPPY32 0x2df | ||
634 | #define BTN_TRIGGER_HAPPY33 0x2e0 | ||
635 | #define BTN_TRIGGER_HAPPY34 0x2e1 | ||
636 | #define BTN_TRIGGER_HAPPY35 0x2e2 | ||
637 | #define BTN_TRIGGER_HAPPY36 0x2e3 | ||
638 | #define BTN_TRIGGER_HAPPY37 0x2e4 | ||
639 | #define BTN_TRIGGER_HAPPY38 0x2e5 | ||
640 | #define BTN_TRIGGER_HAPPY39 0x2e6 | ||
641 | #define BTN_TRIGGER_HAPPY40 0x2e7 | ||
642 | |||
601 | /* We avoid low common keys in module aliases so they don't get huge. */ | 643 | /* We avoid low common keys in module aliases so they don't get huge. */ |
602 | #define KEY_MIN_INTERESTING KEY_MUTE | 644 | #define KEY_MIN_INTERESTING KEY_MUTE |
603 | #define KEY_MAX 0x2ff | 645 | #define KEY_MAX 0x2ff |