Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | #ifndef _I8042_X86IA64IO_H |
| 2 | #define _I8042_X86IA64IO_H |
| 3 | |
| 4 | /* |
| 5 | * This program is free software; you can redistribute it and/or modify it |
| 6 | * under the terms of the GNU General Public License version 2 as published by |
| 7 | * the Free Software Foundation. |
| 8 | */ |
| 9 | |
| 10 | /* |
| 11 | * Names. |
| 12 | */ |
| 13 | |
| 14 | #define I8042_KBD_PHYS_DESC "isa0060/serio0" |
| 15 | #define I8042_AUX_PHYS_DESC "isa0060/serio1" |
| 16 | #define I8042_MUX_PHYS_DESC "isa0060/serio%d" |
| 17 | |
| 18 | /* |
| 19 | * IRQs. |
| 20 | */ |
| 21 | |
| 22 | #if defined(__ia64__) |
| 23 | # define I8042_MAP_IRQ(x) isa_irq_to_vector((x)) |
| 24 | #else |
| 25 | # define I8042_MAP_IRQ(x) (x) |
| 26 | #endif |
| 27 | |
| 28 | #define I8042_KBD_IRQ i8042_kbd_irq |
| 29 | #define I8042_AUX_IRQ i8042_aux_irq |
| 30 | |
| 31 | static int i8042_kbd_irq; |
| 32 | static int i8042_aux_irq; |
| 33 | |
| 34 | /* |
| 35 | * Register numbers. |
| 36 | */ |
| 37 | |
| 38 | #define I8042_COMMAND_REG i8042_command_reg |
| 39 | #define I8042_STATUS_REG i8042_command_reg |
| 40 | #define I8042_DATA_REG i8042_data_reg |
| 41 | |
| 42 | static int i8042_command_reg = 0x64; |
| 43 | static int i8042_data_reg = 0x60; |
| 44 | |
| 45 | |
| 46 | static inline int i8042_read_data(void) |
| 47 | { |
| 48 | return inb(I8042_DATA_REG); |
| 49 | } |
| 50 | |
| 51 | static inline int i8042_read_status(void) |
| 52 | { |
| 53 | return inb(I8042_STATUS_REG); |
| 54 | } |
| 55 | |
| 56 | static inline void i8042_write_data(int val) |
| 57 | { |
| 58 | outb(val, I8042_DATA_REG); |
| 59 | } |
| 60 | |
| 61 | static inline void i8042_write_command(int val) |
| 62 | { |
| 63 | outb(val, I8042_COMMAND_REG); |
| 64 | } |
| 65 | |
Jiri Kosina | c3a34f4 | 2008-05-28 01:10:52 -0400 | [diff] [blame] | 66 | #ifdef CONFIG_X86 |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 67 | |
| 68 | #include <linux/dmi.h> |
| 69 | |
Dmitry Torokhov | f909b1d | 2009-12-04 10:24:19 -0800 | [diff] [blame] | 70 | static const struct dmi_system_id __initconst i8042_dmi_noloop_table[] = { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 71 | { |
Dmitry Torokhov | f909b1d | 2009-12-04 10:24:19 -0800 | [diff] [blame] | 72 | /* |
| 73 | * Arima-Rioworks HDAMB - |
| 74 | * AUX LOOP command does not raise AUX IRQ |
| 75 | */ |
Dmitry Torokhov | 87d9173 | 2008-07-19 00:35:43 -0400 | [diff] [blame] | 76 | .matches = { |
| 77 | DMI_MATCH(DMI_BOARD_VENDOR, "RIOWORKS"), |
| 78 | DMI_MATCH(DMI_BOARD_NAME, "HDAMB"), |
| 79 | DMI_MATCH(DMI_BOARD_VERSION, "Rev E"), |
| 80 | }, |
| 81 | }, |
| 82 | { |
Dmitry Torokhov | f909b1d | 2009-12-04 10:24:19 -0800 | [diff] [blame] | 83 | /* ASUS G1S */ |
Jory A. Pratt | 685aaca | 2009-08-03 09:32:34 -0700 | [diff] [blame] | 84 | .matches = { |
| 85 | DMI_MATCH(DMI_BOARD_VENDOR, "ASUSTeK Computer Inc."), |
| 86 | DMI_MATCH(DMI_BOARD_NAME, "G1S"), |
| 87 | DMI_MATCH(DMI_BOARD_VERSION, "1.0"), |
| 88 | }, |
| 89 | }, |
| 90 | { |
Dmitry Torokhov | f909b1d | 2009-12-04 10:24:19 -0800 | [diff] [blame] | 91 | /* ASUS P65UP5 - AUX LOOP command does not raise AUX IRQ */ |
Dmitry Torokhov | 90245c1 | 2007-06-12 00:33:27 -0400 | [diff] [blame] | 92 | .matches = { |
| 93 | DMI_MATCH(DMI_BOARD_VENDOR, "ASUSTeK Computer INC."), |
| 94 | DMI_MATCH(DMI_BOARD_NAME, "P/I-P65UP5"), |
| 95 | DMI_MATCH(DMI_BOARD_VERSION, "REV 2.X"), |
| 96 | }, |
| 97 | }, |
| 98 | { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 99 | .matches = { |
| 100 | DMI_MATCH(DMI_SYS_VENDOR, "Compaq"), |
| 101 | DMI_MATCH(DMI_PRODUCT_NAME , "ProLiant"), |
| 102 | DMI_MATCH(DMI_PRODUCT_VERSION, "8500"), |
| 103 | }, |
| 104 | }, |
| 105 | { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 106 | .matches = { |
| 107 | DMI_MATCH(DMI_SYS_VENDOR, "Compaq"), |
| 108 | DMI_MATCH(DMI_PRODUCT_NAME , "ProLiant"), |
| 109 | DMI_MATCH(DMI_PRODUCT_VERSION, "DL760"), |
| 110 | }, |
| 111 | }, |
Ben Collins | 6020baf | 2006-01-05 23:00:38 -0500 | [diff] [blame] | 112 | { |
Dmitry Torokhov | f909b1d | 2009-12-04 10:24:19 -0800 | [diff] [blame] | 113 | /* OQO Model 01 */ |
Ben Collins | 6020baf | 2006-01-05 23:00:38 -0500 | [diff] [blame] | 114 | .matches = { |
| 115 | DMI_MATCH(DMI_SYS_VENDOR, "OQO"), |
| 116 | DMI_MATCH(DMI_PRODUCT_NAME, "ZEPTO"), |
| 117 | DMI_MATCH(DMI_PRODUCT_VERSION, "00"), |
| 118 | }, |
| 119 | }, |
Dmitry Torokhov | 8c4df74 | 2007-06-12 00:33:32 -0400 | [diff] [blame] | 120 | { |
Dmitry Torokhov | f909b1d | 2009-12-04 10:24:19 -0800 | [diff] [blame] | 121 | /* ULI EV4873 - AUX LOOP does not work properly */ |
Dmitry Torokhov | 8c4df74 | 2007-06-12 00:33:32 -0400 | [diff] [blame] | 122 | .matches = { |
| 123 | DMI_MATCH(DMI_SYS_VENDOR, "ULI"), |
| 124 | DMI_MATCH(DMI_PRODUCT_NAME, "EV4873"), |
| 125 | DMI_MATCH(DMI_PRODUCT_VERSION, "5a"), |
| 126 | }, |
| 127 | }, |
Jiri Kosina | 8bf4215 | 2007-11-21 14:17:38 -0500 | [diff] [blame] | 128 | { |
Dmitry Torokhov | f909b1d | 2009-12-04 10:24:19 -0800 | [diff] [blame] | 129 | /* Microsoft Virtual Machine */ |
Jiri Kosina | 8bf4215 | 2007-11-21 14:17:38 -0500 | [diff] [blame] | 130 | .matches = { |
| 131 | DMI_MATCH(DMI_SYS_VENDOR, "Microsoft Corporation"), |
| 132 | DMI_MATCH(DMI_PRODUCT_NAME, "Virtual Machine"), |
| 133 | DMI_MATCH(DMI_PRODUCT_VERSION, "VS2005R2"), |
| 134 | }, |
| 135 | }, |
Dmitry Torokhov | 89cdb8c | 2008-07-03 11:00:28 -0400 | [diff] [blame] | 136 | { |
Dmitry Torokhov | f909b1d | 2009-12-04 10:24:19 -0800 | [diff] [blame] | 137 | /* Medion MAM 2070 */ |
Dmitry Torokhov | 89cdb8c | 2008-07-03 11:00:28 -0400 | [diff] [blame] | 138 | .matches = { |
| 139 | DMI_MATCH(DMI_SYS_VENDOR, "Notebook"), |
| 140 | DMI_MATCH(DMI_PRODUCT_NAME, "MAM 2070"), |
| 141 | DMI_MATCH(DMI_PRODUCT_VERSION, "5a"), |
| 142 | }, |
| 143 | }, |
Stefan Bader | 2c6f2cb | 2008-10-16 22:00:56 -0400 | [diff] [blame] | 144 | { |
Dmitry Torokhov | f909b1d | 2009-12-04 10:24:19 -0800 | [diff] [blame] | 145 | /* Blue FB5601 */ |
Stefan Bader | 2c6f2cb | 2008-10-16 22:00:56 -0400 | [diff] [blame] | 146 | .matches = { |
| 147 | DMI_MATCH(DMI_SYS_VENDOR, "blue"), |
| 148 | DMI_MATCH(DMI_PRODUCT_NAME, "FB5601"), |
| 149 | DMI_MATCH(DMI_PRODUCT_VERSION, "M606"), |
| 150 | }, |
| 151 | }, |
Ozan Çağlayan | a6f66dd | 2008-12-20 04:04:51 -0500 | [diff] [blame] | 152 | { |
Dmitry Torokhov | f909b1d | 2009-12-04 10:24:19 -0800 | [diff] [blame] | 153 | /* Gigabyte M912 */ |
Ozan Çağlayan | a6f66dd | 2008-12-20 04:04:51 -0500 | [diff] [blame] | 154 | .matches = { |
| 155 | DMI_MATCH(DMI_SYS_VENDOR, "GIGABYTE"), |
| 156 | DMI_MATCH(DMI_PRODUCT_NAME, "M912"), |
| 157 | DMI_MATCH(DMI_PRODUCT_VERSION, "01"), |
| 158 | }, |
| 159 | }, |
Dmitry Torokhov | 59cc1dd | 2009-04-07 23:53:26 -0700 | [diff] [blame] | 160 | { |
Dmitry Torokhov | a61cd03 | 2009-12-13 00:34:06 -0800 | [diff] [blame] | 161 | /* Gigabyte M1022M netbook */ |
| 162 | .matches = { |
| 163 | DMI_MATCH(DMI_BOARD_VENDOR, "Gigabyte Technology Co.,Ltd."), |
| 164 | DMI_MATCH(DMI_BOARD_NAME, "M1022E"), |
| 165 | DMI_MATCH(DMI_BOARD_VERSION, "1.02"), |
| 166 | }, |
| 167 | }, |
| 168 | { |
Dmitry Torokhov | 59cc1dd | 2009-04-07 23:53:26 -0700 | [diff] [blame] | 169 | .matches = { |
| 170 | DMI_MATCH(DMI_SYS_VENDOR, "Hewlett-Packard"), |
| 171 | DMI_MATCH(DMI_PRODUCT_NAME, "HP Pavilion dv9700"), |
| 172 | DMI_MATCH(DMI_PRODUCT_VERSION, "Rev 1"), |
| 173 | }, |
| 174 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 175 | { } |
| 176 | }; |
| 177 | |
| 178 | /* |
Dmitry Torokhov | 59311de | 2005-05-28 02:12:05 -0500 | [diff] [blame] | 179 | * Some Fujitsu notebooks are having trouble with touchpads if |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 180 | * active multiplexing mode is activated. Luckily they don't have |
| 181 | * external PS/2 ports so we can safely disable it. |
Dmitry Torokhov | 59311de | 2005-05-28 02:12:05 -0500 | [diff] [blame] | 182 | * ... apparently some Toshibas don't like MUX mode either and |
| 183 | * die horrible death on reboot. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 184 | */ |
Dmitry Torokhov | f909b1d | 2009-12-04 10:24:19 -0800 | [diff] [blame] | 185 | static const struct dmi_system_id __initconst i8042_dmi_nomux_table[] = { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 186 | { |
Dmitry Torokhov | f909b1d | 2009-12-04 10:24:19 -0800 | [diff] [blame] | 187 | /* Fujitsu Lifebook P7010/P7010D */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 188 | .matches = { |
| 189 | DMI_MATCH(DMI_SYS_VENDOR, "FUJITSU"), |
| 190 | DMI_MATCH(DMI_PRODUCT_NAME, "P7010"), |
| 191 | }, |
| 192 | }, |
| 193 | { |
Dmitry Torokhov | f909b1d | 2009-12-04 10:24:19 -0800 | [diff] [blame] | 194 | /* Fujitsu Lifebook P7010 */ |
Dmitry Torokhov | bb06ec3c | 2006-12-08 01:36:32 -0500 | [diff] [blame] | 195 | .matches = { |
| 196 | DMI_MATCH(DMI_SYS_VENDOR, "FUJITSU SIEMENS"), |
| 197 | DMI_MATCH(DMI_PRODUCT_NAME, "0000000000"), |
| 198 | }, |
| 199 | }, |
| 200 | { |
Dmitry Torokhov | f909b1d | 2009-12-04 10:24:19 -0800 | [diff] [blame] | 201 | /* Fujitsu Lifebook P5020D */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 202 | .matches = { |
| 203 | DMI_MATCH(DMI_SYS_VENDOR, "FUJITSU"), |
| 204 | DMI_MATCH(DMI_PRODUCT_NAME, "LifeBook P Series"), |
| 205 | }, |
| 206 | }, |
| 207 | { |
Dmitry Torokhov | f909b1d | 2009-12-04 10:24:19 -0800 | [diff] [blame] | 208 | /* Fujitsu Lifebook S2000 */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 209 | .matches = { |
| 210 | DMI_MATCH(DMI_SYS_VENDOR, "FUJITSU"), |
| 211 | DMI_MATCH(DMI_PRODUCT_NAME, "LifeBook S Series"), |
| 212 | }, |
| 213 | }, |
| 214 | { |
Dmitry Torokhov | f909b1d | 2009-12-04 10:24:19 -0800 | [diff] [blame] | 215 | /* Fujitsu Lifebook S6230 */ |
Dmitry Torokhov | b4ff99b | 2005-05-28 02:12:10 -0500 | [diff] [blame] | 216 | .matches = { |
| 217 | DMI_MATCH(DMI_SYS_VENDOR, "FUJITSU"), |
| 218 | DMI_MATCH(DMI_PRODUCT_NAME, "LifeBook S6230"), |
| 219 | }, |
| 220 | }, |
| 221 | { |
Dmitry Torokhov | f909b1d | 2009-12-04 10:24:19 -0800 | [diff] [blame] | 222 | /* Fujitsu T70H */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 223 | .matches = { |
| 224 | DMI_MATCH(DMI_SYS_VENDOR, "FUJITSU"), |
| 225 | DMI_MATCH(DMI_PRODUCT_NAME, "FMVLT70H"), |
| 226 | }, |
| 227 | }, |
Dmitry Torokhov | 59311de | 2005-05-28 02:12:05 -0500 | [diff] [blame] | 228 | { |
Dmitry Torokhov | f909b1d | 2009-12-04 10:24:19 -0800 | [diff] [blame] | 229 | /* Fujitsu-Siemens Lifebook T3010 */ |
Vojtech Pavlik | 20f0794 | 2005-07-11 01:06:28 -0500 | [diff] [blame] | 230 | .matches = { |
| 231 | DMI_MATCH(DMI_SYS_VENDOR, "FUJITSU SIEMENS"), |
| 232 | DMI_MATCH(DMI_PRODUCT_NAME, "LIFEBOOK T3010"), |
| 233 | }, |
| 234 | }, |
| 235 | { |
Dmitry Torokhov | f909b1d | 2009-12-04 10:24:19 -0800 | [diff] [blame] | 236 | /* Fujitsu-Siemens Lifebook E4010 */ |
Dmitry Torokhov | 7545c24 | 2005-09-04 01:42:10 -0500 | [diff] [blame] | 237 | .matches = { |
| 238 | DMI_MATCH(DMI_SYS_VENDOR, "FUJITSU SIEMENS"), |
| 239 | DMI_MATCH(DMI_PRODUCT_NAME, "LIFEBOOK E4010"), |
| 240 | }, |
| 241 | }, |
| 242 | { |
Dmitry Torokhov | f909b1d | 2009-12-04 10:24:19 -0800 | [diff] [blame] | 243 | /* Fujitsu-Siemens Amilo Pro 2010 */ |
Jiri Kosina | 3f79b1e | 2008-01-30 16:34:52 -0500 | [diff] [blame] | 244 | .matches = { |
| 245 | DMI_MATCH(DMI_SYS_VENDOR, "FUJITSU SIEMENS"), |
| 246 | DMI_MATCH(DMI_PRODUCT_NAME, "AMILO Pro V2010"), |
| 247 | }, |
| 248 | }, |
| 249 | { |
Dmitry Torokhov | f909b1d | 2009-12-04 10:24:19 -0800 | [diff] [blame] | 250 | /* Fujitsu-Siemens Amilo Pro 2030 */ |
Jiri Kosina | efd5184 | 2008-06-06 00:56:43 -0400 | [diff] [blame] | 251 | .matches = { |
| 252 | DMI_MATCH(DMI_SYS_VENDOR, "FUJITSU SIEMENS"), |
| 253 | DMI_MATCH(DMI_PRODUCT_NAME, "AMILO PRO V2030"), |
| 254 | }, |
| 255 | }, |
| 256 | { |
Dmitry Torokhov | 6e78258 | 2007-03-16 00:59:42 -0400 | [diff] [blame] | 257 | /* |
Dmitry Torokhov | cc8310e | 2007-04-25 00:40:32 -0400 | [diff] [blame] | 258 | * No data is coming from the touchscreen unless KBC |
| 259 | * is in legacy mode. |
| 260 | */ |
Dmitry Torokhov | f909b1d | 2009-12-04 10:24:19 -0800 | [diff] [blame] | 261 | /* Panasonic CF-29 */ |
Dmitry Torokhov | cc8310e | 2007-04-25 00:40:32 -0400 | [diff] [blame] | 262 | .matches = { |
| 263 | DMI_MATCH(DMI_SYS_VENDOR, "Matsushita"), |
| 264 | DMI_MATCH(DMI_PRODUCT_NAME, "CF-29"), |
| 265 | }, |
| 266 | }, |
| 267 | { |
| 268 | /* |
Dmitry Torokhov | f909b1d | 2009-12-04 10:24:19 -0800 | [diff] [blame] | 269 | * HP Pavilion DV4017EA - |
| 270 | * errors on MUX ports are reported without raising AUXDATA |
Dmitry Torokhov | 6e78258 | 2007-03-16 00:59:42 -0400 | [diff] [blame] | 271 | * causing "spurious NAK" messages. |
| 272 | */ |
Dmitry Torokhov | 6e78258 | 2007-03-16 00:59:42 -0400 | [diff] [blame] | 273 | .matches = { |
| 274 | DMI_MATCH(DMI_SYS_VENDOR, "Hewlett-Packard"), |
| 275 | DMI_MATCH(DMI_PRODUCT_NAME, "Pavilion dv4000 (EA032EA#ABF)"), |
| 276 | }, |
| 277 | }, |
| 278 | { |
Dmitry Torokhov | 9d9d50b | 2007-06-28 00:44:27 -0400 | [diff] [blame] | 279 | /* |
Dmitry Torokhov | f909b1d | 2009-12-04 10:24:19 -0800 | [diff] [blame] | 280 | * HP Pavilion ZT1000 - |
| 281 | * like DV4017EA does not raise AUXERR for errors on MUX ports. |
Dmitry Torokhov | 9d9d50b | 2007-06-28 00:44:27 -0400 | [diff] [blame] | 282 | */ |
Dmitry Torokhov | 9d9d50b | 2007-06-28 00:44:27 -0400 | [diff] [blame] | 283 | .matches = { |
| 284 | DMI_MATCH(DMI_SYS_VENDOR, "Hewlett-Packard"), |
| 285 | DMI_MATCH(DMI_PRODUCT_NAME, "HP Pavilion Notebook PC"), |
| 286 | DMI_MATCH(DMI_PRODUCT_VERSION, "HP Pavilion Notebook ZT1000"), |
| 287 | }, |
| 288 | }, |
| 289 | { |
Elvis Pranskevichus | 749aea7 | 2007-09-04 23:18:21 -0400 | [diff] [blame] | 290 | /* |
Dmitry Torokhov | f909b1d | 2009-12-04 10:24:19 -0800 | [diff] [blame] | 291 | * HP Pavilion DV4270ca - |
| 292 | * like DV4017EA does not raise AUXERR for errors on MUX ports. |
Elvis Pranskevichus | 749aea7 | 2007-09-04 23:18:21 -0400 | [diff] [blame] | 293 | */ |
Elvis Pranskevichus | 749aea7 | 2007-09-04 23:18:21 -0400 | [diff] [blame] | 294 | .matches = { |
| 295 | DMI_MATCH(DMI_SYS_VENDOR, "Hewlett-Packard"), |
| 296 | DMI_MATCH(DMI_PRODUCT_NAME, "Pavilion dv4000 (EH476UA#ABL)"), |
| 297 | }, |
| 298 | }, |
| 299 | { |
Dmitry Torokhov | 59311de | 2005-05-28 02:12:05 -0500 | [diff] [blame] | 300 | .matches = { |
| 301 | DMI_MATCH(DMI_SYS_VENDOR, "TOSHIBA"), |
| 302 | DMI_MATCH(DMI_PRODUCT_NAME, "Satellite P10"), |
| 303 | }, |
| 304 | }, |
Dmitry Torokhov | 865190c | 2005-07-11 01:06:06 -0500 | [diff] [blame] | 305 | { |
Dmitry Torokhov | a91eaa1 | 2006-09-14 01:31:06 -0400 | [diff] [blame] | 306 | .matches = { |
| 307 | DMI_MATCH(DMI_SYS_VENDOR, "TOSHIBA"), |
| 308 | DMI_MATCH(DMI_PRODUCT_NAME, "EQUIUM A110"), |
| 309 | }, |
| 310 | }, |
| 311 | { |
Dmitry Torokhov | 865190c | 2005-07-11 01:06:06 -0500 | [diff] [blame] | 312 | .matches = { |
| 313 | DMI_MATCH(DMI_SYS_VENDOR, "ALIENWARE"), |
| 314 | DMI_MATCH(DMI_PRODUCT_NAME, "Sentia"), |
| 315 | }, |
| 316 | }, |
Dmitry Torokhov | 4eb38ac | 2005-12-21 00:51:51 -0500 | [diff] [blame] | 317 | { |
Dmitry Torokhov | f909b1d | 2009-12-04 10:24:19 -0800 | [diff] [blame] | 318 | /* Sharp Actius MM20 */ |
Dmitry Torokhov | 4eb38ac | 2005-12-21 00:51:51 -0500 | [diff] [blame] | 319 | .matches = { |
| 320 | DMI_MATCH(DMI_SYS_VENDOR, "SHARP"), |
| 321 | DMI_MATCH(DMI_PRODUCT_NAME, "PC-MM20 Series"), |
| 322 | }, |
| 323 | }, |
Vojtech Pavlik | 3dd01a8 | 2006-01-14 00:24:06 -0500 | [diff] [blame] | 324 | { |
Dmitry Torokhov | f909b1d | 2009-12-04 10:24:19 -0800 | [diff] [blame] | 325 | /* Sony Vaio FS-115b */ |
Vojtech Pavlik | 3dd01a8 | 2006-01-14 00:24:06 -0500 | [diff] [blame] | 326 | .matches = { |
| 327 | DMI_MATCH(DMI_SYS_VENDOR, "Sony Corporation"), |
| 328 | DMI_MATCH(DMI_PRODUCT_NAME, "VGN-FS115B"), |
| 329 | }, |
| 330 | }, |
Cjacker Huang | e2df452 | 2006-08-08 23:38:22 -0400 | [diff] [blame] | 331 | { |
Dmitry Torokhov | b0225e8 | 2009-10-15 09:46:48 -0700 | [diff] [blame] | 332 | /* |
Dmitry Torokhov | f909b1d | 2009-12-04 10:24:19 -0800 | [diff] [blame] | 333 | * Sony Vaio FZ-240E - |
| 334 | * reset and GET ID commands issued via KBD port are |
Dmitry Torokhov | b0225e8 | 2009-10-15 09:46:48 -0700 | [diff] [blame] | 335 | * sometimes being delivered to AUX3. |
| 336 | */ |
Dmitry Torokhov | b0225e8 | 2009-10-15 09:46:48 -0700 | [diff] [blame] | 337 | .matches = { |
| 338 | DMI_MATCH(DMI_SYS_VENDOR, "Sony Corporation"), |
| 339 | DMI_MATCH(DMI_PRODUCT_NAME, "VGN-FZ240E"), |
| 340 | }, |
| 341 | }, |
| 342 | { |
Dmitry Torokhov | f909b1d | 2009-12-04 10:24:19 -0800 | [diff] [blame] | 343 | /* Amoi M636/A737 */ |
Cjacker Huang | e2df452 | 2006-08-08 23:38:22 -0400 | [diff] [blame] | 344 | .matches = { |
| 345 | DMI_MATCH(DMI_SYS_VENDOR, "Amoi Electronics CO.,LTD."), |
| 346 | DMI_MATCH(DMI_PRODUCT_NAME, "M636/A737 platform"), |
| 347 | }, |
| 348 | }, |
Jiri Kosina | 2a2dcd6 | 2008-03-10 03:08:54 -0700 | [diff] [blame] | 349 | { |
Dmitry Torokhov | f909b1d | 2009-12-04 10:24:19 -0800 | [diff] [blame] | 350 | /* Lenovo 3000 n100 */ |
Jiri Kosina | 2a2dcd6 | 2008-03-10 03:08:54 -0700 | [diff] [blame] | 351 | .matches = { |
| 352 | DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"), |
Jiri Kosina | 9ce1ca2 | 2008-09-04 22:28:48 -0400 | [diff] [blame] | 353 | DMI_MATCH(DMI_PRODUCT_NAME, "076804U"), |
Jiri Kosina | 2a2dcd6 | 2008-03-10 03:08:54 -0700 | [diff] [blame] | 354 | }, |
| 355 | }, |
Jiri Kosina | 0376bce | 2008-07-03 10:45:38 -0400 | [diff] [blame] | 356 | { |
Jiri Kosina | 0376bce | 2008-07-03 10:45:38 -0400 | [diff] [blame] | 357 | .matches = { |
| 358 | DMI_MATCH(DMI_SYS_VENDOR, "Acer"), |
| 359 | DMI_MATCH(DMI_PRODUCT_NAME, "Aspire 1360"), |
| 360 | }, |
| 361 | }, |
Jiri Kosina | 5b5b43d | 2008-07-03 11:00:28 -0400 | [diff] [blame] | 362 | { |
Dmitry Torokhov | f909b1d | 2009-12-04 10:24:19 -0800 | [diff] [blame] | 363 | /* Gericom Bellagio */ |
Jiri Kosina | 5b5b43d | 2008-07-03 11:00:28 -0400 | [diff] [blame] | 364 | .matches = { |
| 365 | DMI_MATCH(DMI_SYS_VENDOR, "Gericom"), |
| 366 | DMI_MATCH(DMI_PRODUCT_NAME, "N34AS6"), |
| 367 | }, |
| 368 | }, |
Colin B Macdonald | 5bd8a05 | 2008-10-11 18:16:38 -0400 | [diff] [blame] | 369 | { |
Dmitry Torokhov | f909b1d | 2009-12-04 10:24:19 -0800 | [diff] [blame] | 370 | /* IBM 2656 */ |
Colin B Macdonald | 5bd8a05 | 2008-10-11 18:16:38 -0400 | [diff] [blame] | 371 | .matches = { |
| 372 | DMI_MATCH(DMI_SYS_VENDOR, "IBM"), |
| 373 | DMI_MATCH(DMI_PRODUCT_NAME, "2656"), |
| 374 | }, |
| 375 | }, |
Herton Ronaldo Krzesinski | 786b11c | 2008-11-11 09:37:14 -0500 | [diff] [blame] | 376 | { |
Dmitry Torokhov | f909b1d | 2009-12-04 10:24:19 -0800 | [diff] [blame] | 377 | /* Dell XPS M1530 */ |
Herton Ronaldo Krzesinski | 786b11c | 2008-11-11 09:37:14 -0500 | [diff] [blame] | 378 | .matches = { |
| 379 | DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."), |
| 380 | DMI_MATCH(DMI_PRODUCT_NAME, "XPS M1530"), |
| 381 | }, |
| 382 | }, |
Dmitry Torokhov | 5f4ba04 | 2008-11-14 13:32:42 -0500 | [diff] [blame] | 383 | { |
Dmitry Torokhov | f909b1d | 2009-12-04 10:24:19 -0800 | [diff] [blame] | 384 | /* Compal HEL80I */ |
Dmitry Torokhov | 5f4ba04 | 2008-11-14 13:32:42 -0500 | [diff] [blame] | 385 | .matches = { |
| 386 | DMI_MATCH(DMI_SYS_VENDOR, "COMPAL"), |
| 387 | DMI_MATCH(DMI_PRODUCT_NAME, "HEL80I"), |
| 388 | }, |
| 389 | }, |
Jiri Kosina | 9334e90 | 2009-01-06 01:35:45 -0800 | [diff] [blame] | 390 | { |
Dmitry Torokhov | f909b1d | 2009-12-04 10:24:19 -0800 | [diff] [blame] | 391 | /* Dell Vostro 1510 */ |
Jiri Kosina | 9334e90 | 2009-01-06 01:35:45 -0800 | [diff] [blame] | 392 | .matches = { |
| 393 | DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."), |
| 394 | DMI_MATCH(DMI_PRODUCT_NAME, "Vostro1510"), |
| 395 | }, |
| 396 | }, |
Dmitry Torokhov | ced909f | 2009-08-25 19:24:10 -0700 | [diff] [blame] | 397 | { |
Dmitry Torokhov | f909b1d | 2009-12-04 10:24:19 -0800 | [diff] [blame] | 398 | /* Acer Aspire 5536 */ |
Dmitry Torokhov | ced909f | 2009-08-25 19:24:10 -0700 | [diff] [blame] | 399 | .matches = { |
| 400 | DMI_MATCH(DMI_SYS_VENDOR, "Acer"), |
| 401 | DMI_MATCH(DMI_PRODUCT_NAME, "Aspire 5536"), |
| 402 | DMI_MATCH(DMI_PRODUCT_VERSION, "0100"), |
| 403 | }, |
| 404 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 405 | { } |
| 406 | }; |
| 407 | |
Dmitry Torokhov | f909b1d | 2009-12-04 10:24:19 -0800 | [diff] [blame] | 408 | static const struct dmi_system_id __initconst i8042_dmi_reset_table[] = { |
Arjan van de Ven | 7c46e23 | 2009-04-11 16:50:13 -0700 | [diff] [blame] | 409 | { |
Dmitry Torokhov | f909b1d | 2009-12-04 10:24:19 -0800 | [diff] [blame] | 410 | /* MSI Wind U-100 */ |
Arjan van de Ven | 7c46e23 | 2009-04-11 16:50:13 -0700 | [diff] [blame] | 411 | .matches = { |
| 412 | DMI_MATCH(DMI_BOARD_NAME, "U-100"), |
| 413 | DMI_MATCH(DMI_BOARD_VENDOR, "MICRO-STAR INTERNATIONAL CO., LTD"), |
| 414 | }, |
| 415 | }, |
| 416 | { |
Dmitry Torokhov | f909b1d | 2009-12-04 10:24:19 -0800 | [diff] [blame] | 417 | /* LG Electronics X110 */ |
Arjan van de Ven | 7c46e23 | 2009-04-11 16:50:13 -0700 | [diff] [blame] | 418 | .matches = { |
| 419 | DMI_MATCH(DMI_BOARD_NAME, "X110"), |
| 420 | DMI_MATCH(DMI_BOARD_VENDOR, "LG Electronics Inc."), |
| 421 | }, |
| 422 | }, |
Yan Li | 9230ccb | 2009-06-28 22:30:56 -0700 | [diff] [blame] | 423 | { |
Dmitry Torokhov | f909b1d | 2009-12-04 10:24:19 -0800 | [diff] [blame] | 424 | /* Acer Aspire One 150 */ |
Yan Li | 9230ccb | 2009-06-28 22:30:56 -0700 | [diff] [blame] | 425 | .matches = { |
| 426 | DMI_MATCH(DMI_SYS_VENDOR, "Acer"), |
| 427 | DMI_MATCH(DMI_PRODUCT_NAME, "AOA150"), |
| 428 | }, |
| 429 | }, |
| 430 | { |
Dmitry Torokhov | f909b1d | 2009-12-04 10:24:19 -0800 | [diff] [blame] | 431 | /* Advent 4211 */ |
Yan Li | 9230ccb | 2009-06-28 22:30:56 -0700 | [diff] [blame] | 432 | .matches = { |
| 433 | DMI_MATCH(DMI_SYS_VENDOR, "DIXONSXP"), |
| 434 | DMI_MATCH(DMI_PRODUCT_NAME, "Advent 4211"), |
| 435 | }, |
| 436 | }, |
| 437 | { |
Dmitry Torokhov | f909b1d | 2009-12-04 10:24:19 -0800 | [diff] [blame] | 438 | /* Medion Akoya Mini E1210 */ |
Yan Li | 9230ccb | 2009-06-28 22:30:56 -0700 | [diff] [blame] | 439 | .matches = { |
| 440 | DMI_MATCH(DMI_SYS_VENDOR, "MEDION"), |
| 441 | DMI_MATCH(DMI_PRODUCT_NAME, "E1210"), |
| 442 | }, |
| 443 | }, |
| 444 | { |
Christoph Fritz | 31968ec | 2010-03-13 22:26:23 -0800 | [diff] [blame] | 445 | /* Medion Akoya E1222 */ |
| 446 | .matches = { |
| 447 | DMI_MATCH(DMI_SYS_VENDOR, "MEDION"), |
| 448 | DMI_MATCH(DMI_PRODUCT_NAME, "E122X"), |
| 449 | }, |
| 450 | }, |
| 451 | { |
Dmitry Torokhov | f909b1d | 2009-12-04 10:24:19 -0800 | [diff] [blame] | 452 | /* Mivvy M310 */ |
Yan Li | 9230ccb | 2009-06-28 22:30:56 -0700 | [diff] [blame] | 453 | .matches = { |
| 454 | DMI_MATCH(DMI_SYS_VENDOR, "VIOOO"), |
| 455 | DMI_MATCH(DMI_PRODUCT_NAME, "N10"), |
| 456 | }, |
| 457 | }, |
Anisse Astier | 049e2d1 | 2009-12-01 01:14:25 -0800 | [diff] [blame] | 458 | { |
Dmitry Torokhov | f909b1d | 2009-12-04 10:24:19 -0800 | [diff] [blame] | 459 | /* Dell Vostro 1320 */ |
Anisse Astier | 049e2d1 | 2009-12-01 01:14:25 -0800 | [diff] [blame] | 460 | .matches = { |
| 461 | DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."), |
| 462 | DMI_MATCH(DMI_PRODUCT_NAME, "Vostro 1320"), |
| 463 | }, |
| 464 | }, |
| 465 | { |
Dmitry Torokhov | f909b1d | 2009-12-04 10:24:19 -0800 | [diff] [blame] | 466 | /* Dell Vostro 1520 */ |
Anisse Astier | 049e2d1 | 2009-12-01 01:14:25 -0800 | [diff] [blame] | 467 | .matches = { |
| 468 | DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."), |
| 469 | DMI_MATCH(DMI_PRODUCT_NAME, "Vostro 1520"), |
| 470 | }, |
| 471 | }, |
| 472 | { |
Dmitry Torokhov | f909b1d | 2009-12-04 10:24:19 -0800 | [diff] [blame] | 473 | /* Dell Vostro 1720 */ |
Anisse Astier | 049e2d1 | 2009-12-01 01:14:25 -0800 | [diff] [blame] | 474 | .matches = { |
| 475 | DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."), |
| 476 | DMI_MATCH(DMI_PRODUCT_NAME, "Vostro 1720"), |
| 477 | }, |
| 478 | }, |
Arjan van de Ven | 7c46e23 | 2009-04-11 16:50:13 -0700 | [diff] [blame] | 479 | { } |
| 480 | }; |
| 481 | |
Jiri Kosina | c3a34f4 | 2008-05-28 01:10:52 -0400 | [diff] [blame] | 482 | #ifdef CONFIG_PNP |
Dmitry Torokhov | f909b1d | 2009-12-04 10:24:19 -0800 | [diff] [blame] | 483 | static const struct dmi_system_id __initconst i8042_dmi_nopnp_table[] = { |
Jiri Kosina | c3a34f4 | 2008-05-28 01:10:52 -0400 | [diff] [blame] | 484 | { |
Dmitry Torokhov | f909b1d | 2009-12-04 10:24:19 -0800 | [diff] [blame] | 485 | /* Intel MBO Desktop D845PESV */ |
Jiri Kosina | c3a34f4 | 2008-05-28 01:10:52 -0400 | [diff] [blame] | 486 | .matches = { |
| 487 | DMI_MATCH(DMI_BOARD_NAME, "D845PESV"), |
| 488 | DMI_MATCH(DMI_BOARD_VENDOR, "Intel Corporation"), |
| 489 | }, |
| 490 | }, |
Arjan van de Ven | 7c46e23 | 2009-04-11 16:50:13 -0700 | [diff] [blame] | 491 | { |
Dmitry Torokhov | f909b1d | 2009-12-04 10:24:19 -0800 | [diff] [blame] | 492 | /* MSI Wind U-100 */ |
Arjan van de Ven | 7c46e23 | 2009-04-11 16:50:13 -0700 | [diff] [blame] | 493 | .matches = { |
| 494 | DMI_MATCH(DMI_BOARD_NAME, "U-100"), |
| 495 | DMI_MATCH(DMI_BOARD_VENDOR, "MICRO-STAR INTERNATIONAL CO., LTD"), |
| 496 | }, |
| 497 | }, |
Jiri Kosina | c3a34f4 | 2008-05-28 01:10:52 -0400 | [diff] [blame] | 498 | { } |
| 499 | }; |
Dmitry Torokhov | 1c7827a | 2009-09-03 21:45:34 -0700 | [diff] [blame] | 500 | |
Dmitry Torokhov | f909b1d | 2009-12-04 10:24:19 -0800 | [diff] [blame] | 501 | static const struct dmi_system_id __initconst i8042_dmi_laptop_table[] = { |
Dmitry Torokhov | 1c7827a | 2009-09-03 21:45:34 -0700 | [diff] [blame] | 502 | { |
Dmitry Torokhov | 1c7827a | 2009-09-03 21:45:34 -0700 | [diff] [blame] | 503 | .matches = { |
| 504 | DMI_MATCH(DMI_CHASSIS_TYPE, "8"), /* Portable */ |
| 505 | }, |
| 506 | }, |
| 507 | { |
Dmitry Torokhov | 1c7827a | 2009-09-03 21:45:34 -0700 | [diff] [blame] | 508 | .matches = { |
| 509 | DMI_MATCH(DMI_CHASSIS_TYPE, "9"), /* Laptop */ |
| 510 | }, |
| 511 | }, |
| 512 | { |
Dmitry Torokhov | 1c7827a | 2009-09-03 21:45:34 -0700 | [diff] [blame] | 513 | .matches = { |
| 514 | DMI_MATCH(DMI_CHASSIS_TYPE, "10"), /* Notebook */ |
| 515 | }, |
| 516 | }, |
| 517 | { |
Dmitry Torokhov | 1c7827a | 2009-09-03 21:45:34 -0700 | [diff] [blame] | 518 | .matches = { |
| 519 | DMI_MATCH(DMI_CHASSIS_TYPE, "14"), /* Sub-Notebook */ |
| 520 | }, |
| 521 | }, |
| 522 | { } |
| 523 | }; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 524 | #endif |
| 525 | |
Carlos Corbacho | 8987fec | 2008-01-21 01:04:40 -0500 | [diff] [blame] | 526 | /* |
| 527 | * Some Wistron based laptops need us to explicitly enable the 'Dritek |
| 528 | * keyboard extension' to make their extra keys start generating scancodes. |
| 529 | * Originally, this was just confined to older laptops, but a few Acer laptops |
| 530 | * have turned up in 2007 that also need this again. |
| 531 | */ |
Dmitry Torokhov | f909b1d | 2009-12-04 10:24:19 -0800 | [diff] [blame] | 532 | static const struct dmi_system_id __initconst i8042_dmi_dritek_table[] = { |
Carlos Corbacho | 8987fec | 2008-01-21 01:04:40 -0500 | [diff] [blame] | 533 | { |
Elliott Sales de Andrade | e6edbdc | 2010-01-10 23:59:05 -0800 | [diff] [blame] | 534 | /* Acer Aspire 5610 */ |
| 535 | .matches = { |
| 536 | DMI_MATCH(DMI_SYS_VENDOR, "Acer"), |
| 537 | DMI_MATCH(DMI_PRODUCT_NAME, "Aspire 5610"), |
| 538 | }, |
| 539 | }, |
| 540 | { |
Dmitry Torokhov | f909b1d | 2009-12-04 10:24:19 -0800 | [diff] [blame] | 541 | /* Acer Aspire 5630 */ |
Carlos Corbacho | 8987fec | 2008-01-21 01:04:40 -0500 | [diff] [blame] | 542 | .matches = { |
| 543 | DMI_MATCH(DMI_SYS_VENDOR, "Acer"), |
| 544 | DMI_MATCH(DMI_PRODUCT_NAME, "Aspire 5630"), |
| 545 | }, |
| 546 | }, |
| 547 | { |
Dmitry Torokhov | f909b1d | 2009-12-04 10:24:19 -0800 | [diff] [blame] | 548 | /* Acer Aspire 5650 */ |
Carlos Corbacho | 8987fec | 2008-01-21 01:04:40 -0500 | [diff] [blame] | 549 | .matches = { |
| 550 | DMI_MATCH(DMI_SYS_VENDOR, "Acer"), |
| 551 | DMI_MATCH(DMI_PRODUCT_NAME, "Aspire 5650"), |
| 552 | }, |
| 553 | }, |
| 554 | { |
Dmitry Torokhov | f909b1d | 2009-12-04 10:24:19 -0800 | [diff] [blame] | 555 | /* Acer Aspire 5680 */ |
Carlos Corbacho | 8987fec | 2008-01-21 01:04:40 -0500 | [diff] [blame] | 556 | .matches = { |
| 557 | DMI_MATCH(DMI_SYS_VENDOR, "Acer"), |
| 558 | DMI_MATCH(DMI_PRODUCT_NAME, "Aspire 5680"), |
| 559 | }, |
| 560 | }, |
| 561 | { |
Dmitry Torokhov | f909b1d | 2009-12-04 10:24:19 -0800 | [diff] [blame] | 562 | /* Acer Aspire 5720 */ |
Carlos Corbacho | 0e7e92f | 2008-07-07 08:55:31 -0400 | [diff] [blame] | 563 | .matches = { |
| 564 | DMI_MATCH(DMI_SYS_VENDOR, "Acer"), |
| 565 | DMI_MATCH(DMI_PRODUCT_NAME, "Aspire 5720"), |
| 566 | }, |
| 567 | }, |
| 568 | { |
Dmitry Torokhov | f909b1d | 2009-12-04 10:24:19 -0800 | [diff] [blame] | 569 | /* Acer Aspire 9110 */ |
Carlos Corbacho | 5799ddb | 2008-01-30 16:34:12 -0500 | [diff] [blame] | 570 | .matches = { |
| 571 | DMI_MATCH(DMI_SYS_VENDOR, "Acer"), |
| 572 | DMI_MATCH(DMI_PRODUCT_NAME, "Aspire 9110"), |
| 573 | }, |
| 574 | }, |
| 575 | { |
Dmitry Torokhov | f909b1d | 2009-12-04 10:24:19 -0800 | [diff] [blame] | 576 | /* Acer TravelMate 660 */ |
Bruno Prémont | 65e660a | 2008-05-20 13:47:28 -0400 | [diff] [blame] | 577 | .matches = { |
| 578 | DMI_MATCH(DMI_SYS_VENDOR, "Acer"), |
| 579 | DMI_MATCH(DMI_PRODUCT_NAME, "TravelMate 660"), |
| 580 | }, |
| 581 | }, |
| 582 | { |
Dmitry Torokhov | f909b1d | 2009-12-04 10:24:19 -0800 | [diff] [blame] | 583 | /* Acer TravelMate 2490 */ |
Carlos Corbacho | 8987fec | 2008-01-21 01:04:40 -0500 | [diff] [blame] | 584 | .matches = { |
| 585 | DMI_MATCH(DMI_SYS_VENDOR, "Acer"), |
| 586 | DMI_MATCH(DMI_PRODUCT_NAME, "TravelMate 2490"), |
| 587 | }, |
| 588 | }, |
Carlos Corbacho | 8e4ae10 | 2008-08-06 14:28:43 -0400 | [diff] [blame] | 589 | { |
Dmitry Torokhov | f909b1d | 2009-12-04 10:24:19 -0800 | [diff] [blame] | 590 | /* Acer TravelMate 4280 */ |
Carlos Corbacho | 8e4ae10 | 2008-08-06 14:28:43 -0400 | [diff] [blame] | 591 | .matches = { |
| 592 | DMI_MATCH(DMI_SYS_VENDOR, "Acer"), |
| 593 | DMI_MATCH(DMI_PRODUCT_NAME, "TravelMate 4280"), |
| 594 | }, |
| 595 | }, |
Carlos Corbacho | 8987fec | 2008-01-21 01:04:40 -0500 | [diff] [blame] | 596 | { } |
| 597 | }; |
| 598 | |
| 599 | #endif /* CONFIG_X86 */ |
| 600 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 601 | #ifdef CONFIG_PNP |
| 602 | #include <linux/pnp.h> |
| 603 | |
Dmitry Torokhov | 386b384 | 2009-09-09 19:08:16 -0700 | [diff] [blame] | 604 | static bool i8042_pnp_kbd_registered; |
Bjorn Helgaas | 2bfc3c6 | 2006-03-14 00:12:24 -0500 | [diff] [blame] | 605 | static unsigned int i8042_pnp_kbd_devices; |
Dmitry Torokhov | 386b384 | 2009-09-09 19:08:16 -0700 | [diff] [blame] | 606 | static bool i8042_pnp_aux_registered; |
Bjorn Helgaas | 2bfc3c6 | 2006-03-14 00:12:24 -0500 | [diff] [blame] | 607 | static unsigned int i8042_pnp_aux_devices; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 608 | |
| 609 | static int i8042_pnp_command_reg; |
| 610 | static int i8042_pnp_data_reg; |
| 611 | static int i8042_pnp_kbd_irq; |
| 612 | static int i8042_pnp_aux_irq; |
| 613 | |
| 614 | static char i8042_pnp_kbd_name[32]; |
| 615 | static char i8042_pnp_aux_name[32]; |
| 616 | |
| 617 | static int i8042_pnp_kbd_probe(struct pnp_dev *dev, const struct pnp_device_id *did) |
| 618 | { |
| 619 | if (pnp_port_valid(dev, 0) && pnp_port_len(dev, 0) == 1) |
| 620 | i8042_pnp_data_reg = pnp_port_start(dev,0); |
| 621 | |
| 622 | if (pnp_port_valid(dev, 1) && pnp_port_len(dev, 1) == 1) |
| 623 | i8042_pnp_command_reg = pnp_port_start(dev, 1); |
| 624 | |
| 625 | if (pnp_irq_valid(dev,0)) |
| 626 | i8042_pnp_kbd_irq = pnp_irq(dev, 0); |
| 627 | |
Roel Kluin | 8c6deb9 | 2008-04-18 00:25:18 -0400 | [diff] [blame] | 628 | strlcpy(i8042_pnp_kbd_name, did->id, sizeof(i8042_pnp_kbd_name)); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 629 | if (strlen(pnp_dev_name(dev))) { |
Roel Kluin | 8c6deb9 | 2008-04-18 00:25:18 -0400 | [diff] [blame] | 630 | strlcat(i8042_pnp_kbd_name, ":", sizeof(i8042_pnp_kbd_name)); |
| 631 | strlcat(i8042_pnp_kbd_name, pnp_dev_name(dev), sizeof(i8042_pnp_kbd_name)); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 632 | } |
| 633 | |
Alan Stern | 3e6e15a | 2010-03-08 23:42:46 -0800 | [diff] [blame] | 634 | /* Keyboard ports are always supposed to be wakeup-enabled */ |
| 635 | device_set_wakeup_enable(&dev->dev, true); |
| 636 | |
Bjorn Helgaas | 2bfc3c6 | 2006-03-14 00:12:24 -0500 | [diff] [blame] | 637 | i8042_pnp_kbd_devices++; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 638 | return 0; |
| 639 | } |
| 640 | |
| 641 | static int i8042_pnp_aux_probe(struct pnp_dev *dev, const struct pnp_device_id *did) |
| 642 | { |
| 643 | if (pnp_port_valid(dev, 0) && pnp_port_len(dev, 0) == 1) |
| 644 | i8042_pnp_data_reg = pnp_port_start(dev,0); |
| 645 | |
| 646 | if (pnp_port_valid(dev, 1) && pnp_port_len(dev, 1) == 1) |
| 647 | i8042_pnp_command_reg = pnp_port_start(dev, 1); |
| 648 | |
| 649 | if (pnp_irq_valid(dev, 0)) |
| 650 | i8042_pnp_aux_irq = pnp_irq(dev, 0); |
| 651 | |
Roel Kluin | 8c6deb9 | 2008-04-18 00:25:18 -0400 | [diff] [blame] | 652 | strlcpy(i8042_pnp_aux_name, did->id, sizeof(i8042_pnp_aux_name)); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 653 | if (strlen(pnp_dev_name(dev))) { |
Roel Kluin | 8c6deb9 | 2008-04-18 00:25:18 -0400 | [diff] [blame] | 654 | strlcat(i8042_pnp_aux_name, ":", sizeof(i8042_pnp_aux_name)); |
| 655 | strlcat(i8042_pnp_aux_name, pnp_dev_name(dev), sizeof(i8042_pnp_aux_name)); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 656 | } |
| 657 | |
Bjorn Helgaas | 2bfc3c6 | 2006-03-14 00:12:24 -0500 | [diff] [blame] | 658 | i8042_pnp_aux_devices++; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 659 | return 0; |
| 660 | } |
| 661 | |
| 662 | static struct pnp_device_id pnp_kbd_devids[] = { |
Matthew Garrett | 09fac079 | 2010-05-19 10:11:13 -0700 | [diff] [blame^] | 663 | { .id = "PNP0300", .driver_data = 0 }, |
| 664 | { .id = "PNP0301", .driver_data = 0 }, |
| 665 | { .id = "PNP0302", .driver_data = 0 }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 666 | { .id = "PNP0303", .driver_data = 0 }, |
Matthew Garrett | 09fac079 | 2010-05-19 10:11:13 -0700 | [diff] [blame^] | 667 | { .id = "PNP0304", .driver_data = 0 }, |
| 668 | { .id = "PNP0305", .driver_data = 0 }, |
| 669 | { .id = "PNP0306", .driver_data = 0 }, |
| 670 | { .id = "PNP0309", .driver_data = 0 }, |
| 671 | { .id = "PNP030a", .driver_data = 0 }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 672 | { .id = "PNP030b", .driver_data = 0 }, |
Matthew Garrett | 09fac079 | 2010-05-19 10:11:13 -0700 | [diff] [blame^] | 673 | { .id = "PNP0320", .driver_data = 0 }, |
| 674 | { .id = "PNP0343", .driver_data = 0 }, |
| 675 | { .id = "PNP0344", .driver_data = 0 }, |
| 676 | { .id = "PNP0345", .driver_data = 0 }, |
| 677 | { .id = "CPQA0D7", .driver_data = 0 }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 678 | { .id = "", }, |
| 679 | }; |
| 680 | |
| 681 | static struct pnp_driver i8042_pnp_kbd_driver = { |
| 682 | .name = "i8042 kbd", |
| 683 | .id_table = pnp_kbd_devids, |
| 684 | .probe = i8042_pnp_kbd_probe, |
| 685 | }; |
| 686 | |
| 687 | static struct pnp_device_id pnp_aux_devids[] = { |
Dmitry Torokhov | b997395 | 2007-04-25 00:40:53 -0400 | [diff] [blame] | 688 | { .id = "FJC6000", .driver_data = 0 }, |
| 689 | { .id = "FJC6001", .driver_data = 0 }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 690 | { .id = "PNP0f03", .driver_data = 0 }, |
| 691 | { .id = "PNP0f0b", .driver_data = 0 }, |
| 692 | { .id = "PNP0f0e", .driver_data = 0 }, |
| 693 | { .id = "PNP0f12", .driver_data = 0 }, |
| 694 | { .id = "PNP0f13", .driver_data = 0 }, |
| 695 | { .id = "PNP0f19", .driver_data = 0 }, |
| 696 | { .id = "PNP0f1c", .driver_data = 0 }, |
| 697 | { .id = "SYN0801", .driver_data = 0 }, |
| 698 | { .id = "", }, |
| 699 | }; |
| 700 | |
| 701 | static struct pnp_driver i8042_pnp_aux_driver = { |
| 702 | .name = "i8042 aux", |
| 703 | .id_table = pnp_aux_devids, |
| 704 | .probe = i8042_pnp_aux_probe, |
| 705 | }; |
| 706 | |
| 707 | static void i8042_pnp_exit(void) |
| 708 | { |
Kurt Garloff | 74af42b | 2005-05-28 02:11:38 -0500 | [diff] [blame] | 709 | if (i8042_pnp_kbd_registered) { |
Dmitry Torokhov | 386b384 | 2009-09-09 19:08:16 -0700 | [diff] [blame] | 710 | i8042_pnp_kbd_registered = false; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 711 | pnp_unregister_driver(&i8042_pnp_kbd_driver); |
Kurt Garloff | 74af42b | 2005-05-28 02:11:38 -0500 | [diff] [blame] | 712 | } |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 713 | |
Kurt Garloff | 74af42b | 2005-05-28 02:11:38 -0500 | [diff] [blame] | 714 | if (i8042_pnp_aux_registered) { |
Dmitry Torokhov | 386b384 | 2009-09-09 19:08:16 -0700 | [diff] [blame] | 715 | i8042_pnp_aux_registered = false; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 716 | pnp_unregister_driver(&i8042_pnp_aux_driver); |
Kurt Garloff | 74af42b | 2005-05-28 02:11:38 -0500 | [diff] [blame] | 717 | } |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 718 | } |
| 719 | |
Dmitry Torokhov | 8d5987a | 2005-09-04 01:41:38 -0500 | [diff] [blame] | 720 | static int __init i8042_pnp_init(void) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 721 | { |
Dmitry Torokhov | c3d31e7 | 2005-09-04 01:41:51 -0500 | [diff] [blame] | 722 | char kbd_irq_str[4] = { 0 }, aux_irq_str[4] = { 0 }; |
Dmitry Torokhov | 7dcc9c2 | 2009-10-12 21:34:25 -0700 | [diff] [blame] | 723 | bool pnp_data_busted = false; |
Bjorn Helgaas | 2bfc3c6 | 2006-03-14 00:12:24 -0500 | [diff] [blame] | 724 | int err; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 725 | |
Jiri Kosina | c3a34f4 | 2008-05-28 01:10:52 -0400 | [diff] [blame] | 726 | #ifdef CONFIG_X86 |
| 727 | if (dmi_check_system(i8042_dmi_nopnp_table)) |
Dmitry Torokhov | 386b384 | 2009-09-09 19:08:16 -0700 | [diff] [blame] | 728 | i8042_nopnp = true; |
Jiri Kosina | c3a34f4 | 2008-05-28 01:10:52 -0400 | [diff] [blame] | 729 | #endif |
| 730 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 731 | if (i8042_nopnp) { |
Vojtech Pavlik | 39fa580 | 2005-05-28 02:11:16 -0500 | [diff] [blame] | 732 | printk(KERN_INFO "i8042: PNP detection disabled\n"); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 733 | return 0; |
| 734 | } |
| 735 | |
Bjorn Helgaas | 2bfc3c6 | 2006-03-14 00:12:24 -0500 | [diff] [blame] | 736 | err = pnp_register_driver(&i8042_pnp_kbd_driver); |
| 737 | if (!err) |
Dmitry Torokhov | 386b384 | 2009-09-09 19:08:16 -0700 | [diff] [blame] | 738 | i8042_pnp_kbd_registered = true; |
Dmitry Torokhov | c3d31e7 | 2005-09-04 01:41:51 -0500 | [diff] [blame] | 739 | |
Bjorn Helgaas | 2bfc3c6 | 2006-03-14 00:12:24 -0500 | [diff] [blame] | 740 | err = pnp_register_driver(&i8042_pnp_aux_driver); |
| 741 | if (!err) |
Dmitry Torokhov | 386b384 | 2009-09-09 19:08:16 -0700 | [diff] [blame] | 742 | i8042_pnp_aux_registered = true; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 743 | |
Bjorn Helgaas | 2bfc3c6 | 2006-03-14 00:12:24 -0500 | [diff] [blame] | 744 | if (!i8042_pnp_kbd_devices && !i8042_pnp_aux_devices) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 745 | i8042_pnp_exit(); |
| 746 | #if defined(__ia64__) |
| 747 | return -ENODEV; |
| 748 | #else |
Dmitry Torokhov | 5a72afc | 2005-05-28 02:11:32 -0500 | [diff] [blame] | 749 | printk(KERN_INFO "PNP: No PS/2 controller found. Probing ports directly.\n"); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 750 | return 0; |
| 751 | #endif |
| 752 | } |
| 753 | |
Bjorn Helgaas | 2bfc3c6 | 2006-03-14 00:12:24 -0500 | [diff] [blame] | 754 | if (i8042_pnp_kbd_devices) |
Dmitry Torokhov | c3d31e7 | 2005-09-04 01:41:51 -0500 | [diff] [blame] | 755 | snprintf(kbd_irq_str, sizeof(kbd_irq_str), |
| 756 | "%d", i8042_pnp_kbd_irq); |
Bjorn Helgaas | 2bfc3c6 | 2006-03-14 00:12:24 -0500 | [diff] [blame] | 757 | if (i8042_pnp_aux_devices) |
Dmitry Torokhov | c3d31e7 | 2005-09-04 01:41:51 -0500 | [diff] [blame] | 758 | snprintf(aux_irq_str, sizeof(aux_irq_str), |
| 759 | "%d", i8042_pnp_aux_irq); |
| 760 | |
| 761 | printk(KERN_INFO "PNP: PS/2 Controller [%s%s%s] at %#x,%#x irq %s%s%s\n", |
Bjorn Helgaas | 2bfc3c6 | 2006-03-14 00:12:24 -0500 | [diff] [blame] | 762 | i8042_pnp_kbd_name, (i8042_pnp_kbd_devices && i8042_pnp_aux_devices) ? "," : "", |
Dmitry Torokhov | c3d31e7 | 2005-09-04 01:41:51 -0500 | [diff] [blame] | 763 | i8042_pnp_aux_name, |
| 764 | i8042_pnp_data_reg, i8042_pnp_command_reg, |
Bjorn Helgaas | 2bfc3c6 | 2006-03-14 00:12:24 -0500 | [diff] [blame] | 765 | kbd_irq_str, (i8042_pnp_kbd_devices && i8042_pnp_aux_devices) ? "," : "", |
Dmitry Torokhov | c3d31e7 | 2005-09-04 01:41:51 -0500 | [diff] [blame] | 766 | aux_irq_str); |
| 767 | |
| 768 | #if defined(__ia64__) |
Bjorn Helgaas | 2bfc3c6 | 2006-03-14 00:12:24 -0500 | [diff] [blame] | 769 | if (!i8042_pnp_kbd_devices) |
Dmitry Torokhov | 386b384 | 2009-09-09 19:08:16 -0700 | [diff] [blame] | 770 | i8042_nokbd = true; |
Bjorn Helgaas | 2bfc3c6 | 2006-03-14 00:12:24 -0500 | [diff] [blame] | 771 | if (!i8042_pnp_aux_devices) |
Dmitry Torokhov | 386b384 | 2009-09-09 19:08:16 -0700 | [diff] [blame] | 772 | i8042_noaux = true; |
Dmitry Torokhov | c3d31e7 | 2005-09-04 01:41:51 -0500 | [diff] [blame] | 773 | #endif |
| 774 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 775 | if (((i8042_pnp_data_reg & ~0xf) == (i8042_data_reg & ~0xf) && |
Dmitry Torokhov | 080c652 | 2007-07-18 00:38:01 -0400 | [diff] [blame] | 776 | i8042_pnp_data_reg != i8042_data_reg) || |
| 777 | !i8042_pnp_data_reg) { |
| 778 | printk(KERN_WARNING |
| 779 | "PNP: PS/2 controller has invalid data port %#x; " |
| 780 | "using default %#x\n", |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 781 | i8042_pnp_data_reg, i8042_data_reg); |
| 782 | i8042_pnp_data_reg = i8042_data_reg; |
Dmitry Torokhov | 386b384 | 2009-09-09 19:08:16 -0700 | [diff] [blame] | 783 | pnp_data_busted = true; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 784 | } |
| 785 | |
| 786 | if (((i8042_pnp_command_reg & ~0xf) == (i8042_command_reg & ~0xf) && |
Dmitry Torokhov | 080c652 | 2007-07-18 00:38:01 -0400 | [diff] [blame] | 787 | i8042_pnp_command_reg != i8042_command_reg) || |
| 788 | !i8042_pnp_command_reg) { |
| 789 | printk(KERN_WARNING |
| 790 | "PNP: PS/2 controller has invalid command port %#x; " |
| 791 | "using default %#x\n", |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 792 | i8042_pnp_command_reg, i8042_command_reg); |
| 793 | i8042_pnp_command_reg = i8042_command_reg; |
Dmitry Torokhov | 386b384 | 2009-09-09 19:08:16 -0700 | [diff] [blame] | 794 | pnp_data_busted = true; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 795 | } |
| 796 | |
Dmitry Torokhov | 945ef0d | 2005-09-04 01:42:00 -0500 | [diff] [blame] | 797 | if (!i8042_nokbd && !i8042_pnp_kbd_irq) { |
Dmitry Torokhov | 080c652 | 2007-07-18 00:38:01 -0400 | [diff] [blame] | 798 | printk(KERN_WARNING |
| 799 | "PNP: PS/2 controller doesn't have KBD irq; " |
| 800 | "using default %d\n", i8042_kbd_irq); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 801 | i8042_pnp_kbd_irq = i8042_kbd_irq; |
Dmitry Torokhov | 386b384 | 2009-09-09 19:08:16 -0700 | [diff] [blame] | 802 | pnp_data_busted = true; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 803 | } |
| 804 | |
Dmitry Torokhov | c3d31e7 | 2005-09-04 01:41:51 -0500 | [diff] [blame] | 805 | if (!i8042_noaux && !i8042_pnp_aux_irq) { |
Dmitry Torokhov | 080c652 | 2007-07-18 00:38:01 -0400 | [diff] [blame] | 806 | if (!pnp_data_busted && i8042_pnp_kbd_irq) { |
| 807 | printk(KERN_WARNING |
| 808 | "PNP: PS/2 appears to have AUX port disabled, " |
| 809 | "if this is incorrect please boot with " |
| 810 | "i8042.nopnp\n"); |
Dmitry Torokhov | 386b384 | 2009-09-09 19:08:16 -0700 | [diff] [blame] | 811 | i8042_noaux = true; |
Dmitry Torokhov | 080c652 | 2007-07-18 00:38:01 -0400 | [diff] [blame] | 812 | } else { |
| 813 | printk(KERN_WARNING |
| 814 | "PNP: PS/2 controller doesn't have AUX irq; " |
| 815 | "using default %d\n", i8042_aux_irq); |
| 816 | i8042_pnp_aux_irq = i8042_aux_irq; |
| 817 | } |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 818 | } |
| 819 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 820 | i8042_data_reg = i8042_pnp_data_reg; |
| 821 | i8042_command_reg = i8042_pnp_command_reg; |
| 822 | i8042_kbd_irq = i8042_pnp_kbd_irq; |
| 823 | i8042_aux_irq = i8042_pnp_aux_irq; |
| 824 | |
Dmitry Torokhov | 1c7827a | 2009-09-03 21:45:34 -0700 | [diff] [blame] | 825 | #ifdef CONFIG_X86 |
| 826 | i8042_bypass_aux_irq_test = !pnp_data_busted && |
| 827 | dmi_check_system(i8042_dmi_laptop_table); |
| 828 | #endif |
| 829 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 830 | return 0; |
| 831 | } |
| 832 | |
Dmitry Torokhov | 8d5987a | 2005-09-04 01:41:38 -0500 | [diff] [blame] | 833 | #else |
| 834 | static inline int i8042_pnp_init(void) { return 0; } |
| 835 | static inline void i8042_pnp_exit(void) { } |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 836 | #endif |
| 837 | |
Dmitry Torokhov | 8d5987a | 2005-09-04 01:41:38 -0500 | [diff] [blame] | 838 | static int __init i8042_platform_init(void) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 839 | { |
Dmitry Torokhov | 8d5987a | 2005-09-04 01:41:38 -0500 | [diff] [blame] | 840 | int retval; |
| 841 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 842 | /* |
| 843 | * On ix86 platforms touching the i8042 data register region can do really |
| 844 | * bad things. Because of this the region is always reserved on ix86 boxes. |
| 845 | * |
| 846 | * if (!request_region(I8042_DATA_REG, 16, "i8042")) |
Dmitry Torokhov | 8d5987a | 2005-09-04 01:41:38 -0500 | [diff] [blame] | 847 | * return -EBUSY; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 848 | */ |
| 849 | |
| 850 | i8042_kbd_irq = I8042_MAP_IRQ(1); |
| 851 | i8042_aux_irq = I8042_MAP_IRQ(12); |
| 852 | |
Dmitry Torokhov | 8d5987a | 2005-09-04 01:41:38 -0500 | [diff] [blame] | 853 | retval = i8042_pnp_init(); |
| 854 | if (retval) |
| 855 | return retval; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 856 | |
| 857 | #if defined(__ia64__) |
Dmitry Torokhov | 386b384 | 2009-09-09 19:08:16 -0700 | [diff] [blame] | 858 | i8042_reset = true; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 859 | #endif |
| 860 | |
Jiri Kosina | c3a34f4 | 2008-05-28 01:10:52 -0400 | [diff] [blame] | 861 | #ifdef CONFIG_X86 |
Arjan van de Ven | 7c46e23 | 2009-04-11 16:50:13 -0700 | [diff] [blame] | 862 | if (dmi_check_system(i8042_dmi_reset_table)) |
Dmitry Torokhov | 386b384 | 2009-09-09 19:08:16 -0700 | [diff] [blame] | 863 | i8042_reset = true; |
Arjan van de Ven | 7c46e23 | 2009-04-11 16:50:13 -0700 | [diff] [blame] | 864 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 865 | if (dmi_check_system(i8042_dmi_noloop_table)) |
Dmitry Torokhov | 386b384 | 2009-09-09 19:08:16 -0700 | [diff] [blame] | 866 | i8042_noloop = true; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 867 | |
| 868 | if (dmi_check_system(i8042_dmi_nomux_table)) |
Dmitry Torokhov | 386b384 | 2009-09-09 19:08:16 -0700 | [diff] [blame] | 869 | i8042_nomux = true; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 870 | |
Carlos Corbacho | 8987fec | 2008-01-21 01:04:40 -0500 | [diff] [blame] | 871 | if (dmi_check_system(i8042_dmi_dritek_table)) |
Dmitry Torokhov | 386b384 | 2009-09-09 19:08:16 -0700 | [diff] [blame] | 872 | i8042_dritek = true; |
Carlos Corbacho | 8987fec | 2008-01-21 01:04:40 -0500 | [diff] [blame] | 873 | #endif /* CONFIG_X86 */ |
| 874 | |
Dmitry Torokhov | 8d5987a | 2005-09-04 01:41:38 -0500 | [diff] [blame] | 875 | return retval; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 876 | } |
| 877 | |
| 878 | static inline void i8042_platform_exit(void) |
| 879 | { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 880 | i8042_pnp_exit(); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 881 | } |
| 882 | |
| 883 | #endif /* _I8042_X86IA64IO_H */ |