alps.c (09c398bc01f507e31b9c1325a10e231d271fea00) | alps.c (c9815232c3cca58bb2b664f37b681841981ed4a9) |
---|---|
1/* 2 * ALPS touchpad PS/2 mouse driver 3 * 4 * Copyright (c) 2003 Neil Brown <neilb@cse.unsw.edu.au> 5 * Copyright (c) 2003-2005 Peter Osterlund <petero2@telia.com> 6 * Copyright (c) 2004 Dmitry Torokhov <dtor@mail.ru> 7 * Copyright (c) 2005 Vojtech Pavlik <vojtech@suse.cz> 8 * Copyright (c) 2009 Sebastian Kapfer <sebastian_kapfer@gmx.net> --- 150 unchanged lines hidden (view full) --- 159static const struct alps_protocol_info alps_v7_protocol_data = { 160 ALPS_PROTO_V7, 0x48, 0x48, ALPS_DUALPOINT 161}; 162 163static const struct alps_protocol_info alps_v8_protocol_data = { 164 ALPS_PROTO_V8, 0x18, 0x18, 0 165}; 166 | 1/* 2 * ALPS touchpad PS/2 mouse driver 3 * 4 * Copyright (c) 2003 Neil Brown <neilb@cse.unsw.edu.au> 5 * Copyright (c) 2003-2005 Peter Osterlund <petero2@telia.com> 6 * Copyright (c) 2004 Dmitry Torokhov <dtor@mail.ru> 7 * Copyright (c) 2005 Vojtech Pavlik <vojtech@suse.cz> 8 * Copyright (c) 2009 Sebastian Kapfer <sebastian_kapfer@gmx.net> --- 150 unchanged lines hidden (view full) --- 159static const struct alps_protocol_info alps_v7_protocol_data = { 160 ALPS_PROTO_V7, 0x48, 0x48, ALPS_DUALPOINT 161}; 162 163static const struct alps_protocol_info alps_v8_protocol_data = { 164 ALPS_PROTO_V8, 0x18, 0x18, 0 165}; 166 |
167static const struct alps_protocol_info alps_v9_protocol_data = { 168 ALPS_PROTO_V9, 0xc8, 0xc8, 0 169}; 170 |
|
167/* 168 * Some v2 models report the stick buttons in separate bits 169 */ 170static const struct dmi_system_id alps_dmi_has_separate_stick_buttons[] = { 171#if defined(CONFIG_DMI) && defined(CONFIG_X86) 172 { 173 /* Extrapolated from other entries */ 174 .matches = { --- 2658 unchanged lines hidden (view full) --- 2833 ec[2] >= 0x90 && ec[2] <= 0x9d) { 2834 protocol = &alps_v3_protocol_data; 2835 } else if (e7[0] == 0x73 && e7[1] == 0x03 && 2836 e7[2] == 0x14 && ec[1] == 0x02) { 2837 protocol = &alps_v8_protocol_data; 2838 } else if (e7[0] == 0x73 && e7[1] == 0x03 && 2839 e7[2] == 0x28 && ec[1] == 0x01) { 2840 protocol = &alps_v8_protocol_data; | 171/* 172 * Some v2 models report the stick buttons in separate bits 173 */ 174static const struct dmi_system_id alps_dmi_has_separate_stick_buttons[] = { 175#if defined(CONFIG_DMI) && defined(CONFIG_X86) 176 { 177 /* Extrapolated from other entries */ 178 .matches = { --- 2658 unchanged lines hidden (view full) --- 2837 ec[2] >= 0x90 && ec[2] <= 0x9d) { 2838 protocol = &alps_v3_protocol_data; 2839 } else if (e7[0] == 0x73 && e7[1] == 0x03 && 2840 e7[2] == 0x14 && ec[1] == 0x02) { 2841 protocol = &alps_v8_protocol_data; 2842 } else if (e7[0] == 0x73 && e7[1] == 0x03 && 2843 e7[2] == 0x28 && ec[1] == 0x01) { 2844 protocol = &alps_v8_protocol_data; |
2845 } else if (e7[0] == 0x73 && e7[1] == 0x03 && e7[2] == 0xc8) { 2846 protocol = &alps_v9_protocol_data; 2847 psmouse_warn(psmouse, 2848 "Unsupported ALPS V9 touchpad: E7=%3ph, EC=%3ph\n", 2849 e7, ec); 2850 return -EINVAL; |
|
2841 } else { 2842 psmouse_dbg(psmouse, 2843 "Likely not an ALPS touchpad: E7=%3ph, EC=%3ph\n", e7, ec); 2844 return -EINVAL; 2845 } 2846 } 2847 2848 if (priv) { --- 273 unchanged lines hidden --- | 2851 } else { 2852 psmouse_dbg(psmouse, 2853 "Likely not an ALPS touchpad: E7=%3ph, EC=%3ph\n", e7, ec); 2854 return -EINVAL; 2855 } 2856 } 2857 2858 if (priv) { --- 273 unchanged lines hidden --- |