diff options
author | Tobias Mueller <Tobias_Mueller@twam.info> | 2008-02-13 11:08:04 -0500 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2008-02-13 11:08:04 -0500 |
commit | 5906a0448208024d140e1ee0e65f9168a405fb94 (patch) | |
tree | d8fcd3e5c7eec5c6259967a78bedb2cadb385c6c /drivers/hid | |
parent | be541ed15979ebea2fa1b2b4355db685f30e3c27 (diff) |
HID: add USB IDs for MacBook 3rd generation
Add support for Macbook 3rd generation special mappings.
Signed-off-by: Tobias Mueller <Tobias_Mueller@twam.info>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid')
-rw-r--r-- | drivers/hid/hid-input.c | 5 | ||||
-rw-r--r-- | drivers/hid/usbhid/hid-quirks.c | 12 |
2 files changed, 17 insertions, 0 deletions
diff --git a/drivers/hid/hid-input.c b/drivers/hid/hid-input.c index 43342785110c..5a38fb27d69f 100644 --- a/drivers/hid/hid-input.c +++ b/drivers/hid/hid-input.c | |||
@@ -97,6 +97,7 @@ struct hidinput_key_translation { | |||
97 | #define APPLE_FLAG_FKEY 0x01 | 97 | #define APPLE_FLAG_FKEY 0x01 |
98 | 98 | ||
99 | static struct hidinput_key_translation apple_fn_keys[] = { | 99 | static struct hidinput_key_translation apple_fn_keys[] = { |
100 | { KEY_BACKSPACE, KEY_DELETE }, | ||
100 | { KEY_F1, KEY_BRIGHTNESSDOWN, APPLE_FLAG_FKEY }, | 101 | { KEY_F1, KEY_BRIGHTNESSDOWN, APPLE_FLAG_FKEY }, |
101 | { KEY_F2, KEY_BRIGHTNESSUP, APPLE_FLAG_FKEY }, | 102 | { KEY_F2, KEY_BRIGHTNESSUP, APPLE_FLAG_FKEY }, |
102 | { KEY_F3, KEY_CYCLEWINDOWS, APPLE_FLAG_FKEY }, /* Exposé */ | 103 | { KEY_F3, KEY_CYCLEWINDOWS, APPLE_FLAG_FKEY }, /* Exposé */ |
@@ -109,6 +110,10 @@ static struct hidinput_key_translation apple_fn_keys[] = { | |||
109 | { KEY_F10, KEY_MUTE, APPLE_FLAG_FKEY }, | 110 | { KEY_F10, KEY_MUTE, APPLE_FLAG_FKEY }, |
110 | { KEY_F11, KEY_VOLUMEDOWN, APPLE_FLAG_FKEY }, | 111 | { KEY_F11, KEY_VOLUMEDOWN, APPLE_FLAG_FKEY }, |
111 | { KEY_F12, KEY_VOLUMEUP, APPLE_FLAG_FKEY }, | 112 | { KEY_F12, KEY_VOLUMEUP, APPLE_FLAG_FKEY }, |
113 | { KEY_UP, KEY_PAGEUP }, | ||
114 | { KEY_DOWN, KEY_PAGEDOWN }, | ||
115 | { KEY_LEFT, KEY_HOME }, | ||
116 | { KEY_RIGHT, KEY_END }, | ||
112 | { } | 117 | { } |
113 | }; | 118 | }; |
114 | 119 | ||
diff --git a/drivers/hid/usbhid/hid-quirks.c b/drivers/hid/usbhid/hid-quirks.c index c5e2b2993936..e6d05f6b1c1c 100644 --- a/drivers/hid/usbhid/hid-quirks.c +++ b/drivers/hid/usbhid/hid-quirks.c | |||
@@ -66,6 +66,12 @@ | |||
66 | #define USB_DEVICE_ID_APPLE_ALU_ANSI 0x0220 | 66 | #define USB_DEVICE_ID_APPLE_ALU_ANSI 0x0220 |
67 | #define USB_DEVICE_ID_APPLE_ALU_ISO 0x0221 | 67 | #define USB_DEVICE_ID_APPLE_ALU_ISO 0x0221 |
68 | #define USB_DEVICE_ID_APPLE_ALU_JIS 0x0222 | 68 | #define USB_DEVICE_ID_APPLE_ALU_JIS 0x0222 |
69 | #define USB_DEVICE_ID_APPLE_GEYSER4_HF_ANSI 0x0229 | ||
70 | #define USB_DEVICE_ID_APPLE_GEYSER4_HF_ISO 0x022a | ||
71 | #define USB_DEVICE_ID_APPLE_GEYSER4_HF_JIS 0x022b | ||
72 | #define USB_DEVICE_ID_APPLE_ALU_WIRELESS_ANSI 0x022c | ||
73 | #define USB_DEVICE_ID_APPLE_ALU_WIRELESS_ISO 0x022d | ||
74 | #define USB_DEVICE_ID_APPLE_ALU_WIRELESS_JIS 0x022e | ||
69 | #define USB_DEVICE_ID_APPLE_FOUNTAIN_TP_ONLY 0x030a | 75 | #define USB_DEVICE_ID_APPLE_FOUNTAIN_TP_ONLY 0x030a |
70 | #define USB_DEVICE_ID_APPLE_GEYSER1_TP_ONLY 0x030b | 76 | #define USB_DEVICE_ID_APPLE_GEYSER1_TP_ONLY 0x030b |
71 | #define USB_DEVICE_ID_APPLE_IRCONTROL4 0x8242 | 77 | #define USB_DEVICE_ID_APPLE_IRCONTROL4 0x8242 |
@@ -617,6 +623,12 @@ static const struct hid_blacklist { | |||
617 | { USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_ALU_ANSI, HID_QUIRK_APPLE_HAS_FN }, | 623 | { USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_ALU_ANSI, HID_QUIRK_APPLE_HAS_FN }, |
618 | { USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_ALU_ISO, HID_QUIRK_APPLE_HAS_FN | HID_QUIRK_APPLE_ISO_KEYBOARD }, | 624 | { USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_ALU_ISO, HID_QUIRK_APPLE_HAS_FN | HID_QUIRK_APPLE_ISO_KEYBOARD }, |
619 | { USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_ALU_JIS, HID_QUIRK_APPLE_HAS_FN }, | 625 | { USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_ALU_JIS, HID_QUIRK_APPLE_HAS_FN }, |
626 | { USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_GEYSER4_HF_ANSI, HID_QUIRK_APPLE_HAS_FN | HID_QUIRK_IGNORE_MOUSE }, | ||
627 | { USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_GEYSER4_HF_ISO, HID_QUIRK_APPLE_HAS_FN | HID_QUIRK_IGNORE_MOUSE | HID_QUIRK_APPLE_ISO_KEYBOARD }, | ||
628 | { USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_GEYSER4_HF_JIS, HID_QUIRK_APPLE_HAS_FN | HID_QUIRK_IGNORE_MOUSE }, | ||
629 | { USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_ALU_WIRELESS_ANSI, HID_QUIRK_APPLE_HAS_FN }, | ||
630 | { USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_ALU_WIRELESS_ISO, HID_QUIRK_APPLE_HAS_FN | HID_QUIRK_APPLE_ISO_KEYBOARD }, | ||
631 | { USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_ALU_WIRELESS_JIS, HID_QUIRK_APPLE_HAS_FN }, | ||
620 | { USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_FOUNTAIN_TP_ONLY, HID_QUIRK_APPLE_HAS_FN | HID_QUIRK_IGNORE_MOUSE }, | 632 | { USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_FOUNTAIN_TP_ONLY, HID_QUIRK_APPLE_HAS_FN | HID_QUIRK_IGNORE_MOUSE }, |
621 | { USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_GEYSER1_TP_ONLY, HID_QUIRK_APPLE_HAS_FN | HID_QUIRK_IGNORE_MOUSE }, | 633 | { USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_GEYSER1_TP_ONLY, HID_QUIRK_APPLE_HAS_FN | HID_QUIRK_IGNORE_MOUSE }, |
622 | 634 | ||