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 | |
| 70 | static struct dmi_system_id __initdata i8042_dmi_noloop_table[] = { |
| 71 | { |
Dmitry Torokhov | 90245c1 | 2007-06-12 00:33:27 -0400 | [diff] [blame] | 72 | /* AUX LOOP command does not raise AUX IRQ */ |
Dmitry Torokhov | 87d9173 | 2008-07-19 00:35:43 -0400 | [diff] [blame] | 73 | .ident = "Arima-Rioworks HDAMB", |
| 74 | .matches = { |
| 75 | DMI_MATCH(DMI_BOARD_VENDOR, "RIOWORKS"), |
| 76 | DMI_MATCH(DMI_BOARD_NAME, "HDAMB"), |
| 77 | DMI_MATCH(DMI_BOARD_VERSION, "Rev E"), |
| 78 | }, |
| 79 | }, |
| 80 | { |
| 81 | /* AUX LOOP command does not raise AUX IRQ */ |
Dmitry Torokhov | 90245c1 | 2007-06-12 00:33:27 -0400 | [diff] [blame] | 82 | .ident = "ASUS P65UP5", |
| 83 | .matches = { |
| 84 | DMI_MATCH(DMI_BOARD_VENDOR, "ASUSTeK Computer INC."), |
| 85 | DMI_MATCH(DMI_BOARD_NAME, "P/I-P65UP5"), |
| 86 | DMI_MATCH(DMI_BOARD_VERSION, "REV 2.X"), |
| 87 | }, |
| 88 | }, |
| 89 | { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 90 | .ident = "Compaq Proliant 8500", |
| 91 | .matches = { |
| 92 | DMI_MATCH(DMI_SYS_VENDOR, "Compaq"), |
| 93 | DMI_MATCH(DMI_PRODUCT_NAME , "ProLiant"), |
| 94 | DMI_MATCH(DMI_PRODUCT_VERSION, "8500"), |
| 95 | }, |
| 96 | }, |
| 97 | { |
| 98 | .ident = "Compaq Proliant DL760", |
| 99 | .matches = { |
| 100 | DMI_MATCH(DMI_SYS_VENDOR, "Compaq"), |
| 101 | DMI_MATCH(DMI_PRODUCT_NAME , "ProLiant"), |
| 102 | DMI_MATCH(DMI_PRODUCT_VERSION, "DL760"), |
| 103 | }, |
| 104 | }, |
Ben Collins | 6020baf | 2006-01-05 23:00:38 -0500 | [diff] [blame] | 105 | { |
| 106 | .ident = "OQO Model 01", |
| 107 | .matches = { |
| 108 | DMI_MATCH(DMI_SYS_VENDOR, "OQO"), |
| 109 | DMI_MATCH(DMI_PRODUCT_NAME, "ZEPTO"), |
| 110 | DMI_MATCH(DMI_PRODUCT_VERSION, "00"), |
| 111 | }, |
| 112 | }, |
Dmitry Torokhov | 8c4df74 | 2007-06-12 00:33:32 -0400 | [diff] [blame] | 113 | { |
| 114 | /* AUX LOOP does not work properly */ |
| 115 | .ident = "ULI EV4873", |
| 116 | .matches = { |
| 117 | DMI_MATCH(DMI_SYS_VENDOR, "ULI"), |
| 118 | DMI_MATCH(DMI_PRODUCT_NAME, "EV4873"), |
| 119 | DMI_MATCH(DMI_PRODUCT_VERSION, "5a"), |
| 120 | }, |
| 121 | }, |
Jiri Kosina | 8bf4215 | 2007-11-21 14:17:38 -0500 | [diff] [blame] | 122 | { |
| 123 | .ident = "Microsoft Virtual Machine", |
| 124 | .matches = { |
| 125 | DMI_MATCH(DMI_SYS_VENDOR, "Microsoft Corporation"), |
| 126 | DMI_MATCH(DMI_PRODUCT_NAME, "Virtual Machine"), |
| 127 | DMI_MATCH(DMI_PRODUCT_VERSION, "VS2005R2"), |
| 128 | }, |
| 129 | }, |
Dmitry Torokhov | 89cdb8c | 2008-07-03 11:00:28 -0400 | [diff] [blame] | 130 | { |
| 131 | .ident = "Medion MAM 2070", |
| 132 | .matches = { |
| 133 | DMI_MATCH(DMI_SYS_VENDOR, "Notebook"), |
| 134 | DMI_MATCH(DMI_PRODUCT_NAME, "MAM 2070"), |
| 135 | DMI_MATCH(DMI_PRODUCT_VERSION, "5a"), |
| 136 | }, |
| 137 | }, |
Stefan Bader | 2c6f2cb | 2008-10-16 22:00:56 -0400 | [diff] [blame] | 138 | { |
| 139 | .ident = "Blue FB5601", |
| 140 | .matches = { |
| 141 | DMI_MATCH(DMI_SYS_VENDOR, "blue"), |
| 142 | DMI_MATCH(DMI_PRODUCT_NAME, "FB5601"), |
| 143 | DMI_MATCH(DMI_PRODUCT_VERSION, "M606"), |
| 144 | }, |
| 145 | }, |
Ozan Çağlayan | a6f66dd | 2008-12-20 04:04:51 -0500 | [diff] [blame] | 146 | { |
| 147 | .ident = "Gigabyte M912", |
| 148 | .matches = { |
| 149 | DMI_MATCH(DMI_SYS_VENDOR, "GIGABYTE"), |
| 150 | DMI_MATCH(DMI_PRODUCT_NAME, "M912"), |
| 151 | DMI_MATCH(DMI_PRODUCT_VERSION, "01"), |
| 152 | }, |
| 153 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 154 | { } |
| 155 | }; |
| 156 | |
| 157 | /* |
Dmitry Torokhov | 59311de | 2005-05-28 02:12:05 -0500 | [diff] [blame] | 158 | * Some Fujitsu notebooks are having trouble with touchpads if |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 159 | * active multiplexing mode is activated. Luckily they don't have |
| 160 | * external PS/2 ports so we can safely disable it. |
Dmitry Torokhov | 59311de | 2005-05-28 02:12:05 -0500 | [diff] [blame] | 161 | * ... apparently some Toshibas don't like MUX mode either and |
| 162 | * die horrible death on reboot. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 163 | */ |
| 164 | static struct dmi_system_id __initdata i8042_dmi_nomux_table[] = { |
| 165 | { |
| 166 | .ident = "Fujitsu Lifebook P7010/P7010D", |
| 167 | .matches = { |
| 168 | DMI_MATCH(DMI_SYS_VENDOR, "FUJITSU"), |
| 169 | DMI_MATCH(DMI_PRODUCT_NAME, "P7010"), |
| 170 | }, |
| 171 | }, |
| 172 | { |
Dmitry Torokhov | bb06ec3 | 2006-12-08 01:36:32 -0500 | [diff] [blame] | 173 | .ident = "Fujitsu Lifebook P7010", |
| 174 | .matches = { |
| 175 | DMI_MATCH(DMI_SYS_VENDOR, "FUJITSU SIEMENS"), |
| 176 | DMI_MATCH(DMI_PRODUCT_NAME, "0000000000"), |
| 177 | }, |
| 178 | }, |
| 179 | { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 180 | .ident = "Fujitsu Lifebook P5020D", |
| 181 | .matches = { |
| 182 | DMI_MATCH(DMI_SYS_VENDOR, "FUJITSU"), |
| 183 | DMI_MATCH(DMI_PRODUCT_NAME, "LifeBook P Series"), |
| 184 | }, |
| 185 | }, |
| 186 | { |
| 187 | .ident = "Fujitsu Lifebook S2000", |
| 188 | .matches = { |
| 189 | DMI_MATCH(DMI_SYS_VENDOR, "FUJITSU"), |
| 190 | DMI_MATCH(DMI_PRODUCT_NAME, "LifeBook S Series"), |
| 191 | }, |
| 192 | }, |
| 193 | { |
Dmitry Torokhov | b4ff99b | 2005-05-28 02:12:10 -0500 | [diff] [blame] | 194 | .ident = "Fujitsu Lifebook S6230", |
| 195 | .matches = { |
| 196 | DMI_MATCH(DMI_SYS_VENDOR, "FUJITSU"), |
| 197 | DMI_MATCH(DMI_PRODUCT_NAME, "LifeBook S6230"), |
| 198 | }, |
| 199 | }, |
| 200 | { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 201 | .ident = "Fujitsu T70H", |
| 202 | .matches = { |
| 203 | DMI_MATCH(DMI_SYS_VENDOR, "FUJITSU"), |
| 204 | DMI_MATCH(DMI_PRODUCT_NAME, "FMVLT70H"), |
| 205 | }, |
| 206 | }, |
Dmitry Torokhov | 59311de | 2005-05-28 02:12:05 -0500 | [diff] [blame] | 207 | { |
Vojtech Pavlik | 20f0794 | 2005-07-11 01:06:28 -0500 | [diff] [blame] | 208 | .ident = "Fujitsu-Siemens Lifebook T3010", |
| 209 | .matches = { |
| 210 | DMI_MATCH(DMI_SYS_VENDOR, "FUJITSU SIEMENS"), |
| 211 | DMI_MATCH(DMI_PRODUCT_NAME, "LIFEBOOK T3010"), |
| 212 | }, |
| 213 | }, |
| 214 | { |
Dmitry Torokhov | 7545c24 | 2005-09-04 01:42:10 -0500 | [diff] [blame] | 215 | .ident = "Fujitsu-Siemens Lifebook E4010", |
| 216 | .matches = { |
| 217 | DMI_MATCH(DMI_SYS_VENDOR, "FUJITSU SIEMENS"), |
| 218 | DMI_MATCH(DMI_PRODUCT_NAME, "LIFEBOOK E4010"), |
| 219 | }, |
| 220 | }, |
| 221 | { |
Jiri Kosina | 3f79b1e | 2008-01-30 16:34:52 -0500 | [diff] [blame] | 222 | .ident = "Fujitsu-Siemens Amilo Pro 2010", |
| 223 | .matches = { |
| 224 | DMI_MATCH(DMI_SYS_VENDOR, "FUJITSU SIEMENS"), |
| 225 | DMI_MATCH(DMI_PRODUCT_NAME, "AMILO Pro V2010"), |
| 226 | }, |
| 227 | }, |
| 228 | { |
Jiri Kosina | efd5184 | 2008-06-06 00:56:43 -0400 | [diff] [blame] | 229 | .ident = "Fujitsu-Siemens Amilo Pro 2030", |
| 230 | .matches = { |
| 231 | DMI_MATCH(DMI_SYS_VENDOR, "FUJITSU SIEMENS"), |
| 232 | DMI_MATCH(DMI_PRODUCT_NAME, "AMILO PRO V2030"), |
| 233 | }, |
| 234 | }, |
| 235 | { |
Dmitry Torokhov | 6e78258 | 2007-03-16 00:59:42 -0400 | [diff] [blame] | 236 | /* |
Dmitry Torokhov | cc8310e | 2007-04-25 00:40:32 -0400 | [diff] [blame] | 237 | * No data is coming from the touchscreen unless KBC |
| 238 | * is in legacy mode. |
| 239 | */ |
| 240 | .ident = "Panasonic CF-29", |
| 241 | .matches = { |
| 242 | DMI_MATCH(DMI_SYS_VENDOR, "Matsushita"), |
| 243 | DMI_MATCH(DMI_PRODUCT_NAME, "CF-29"), |
| 244 | }, |
| 245 | }, |
| 246 | { |
| 247 | /* |
Dmitry Torokhov | 6e78258 | 2007-03-16 00:59:42 -0400 | [diff] [blame] | 248 | * Errors on MUX ports are reported without raising AUXDATA |
| 249 | * causing "spurious NAK" messages. |
| 250 | */ |
| 251 | .ident = "HP Pavilion DV4017EA", |
| 252 | .matches = { |
| 253 | DMI_MATCH(DMI_SYS_VENDOR, "Hewlett-Packard"), |
| 254 | DMI_MATCH(DMI_PRODUCT_NAME, "Pavilion dv4000 (EA032EA#ABF)"), |
| 255 | }, |
| 256 | }, |
| 257 | { |
Dmitry Torokhov | 9d9d50b | 2007-06-28 00:44:27 -0400 | [diff] [blame] | 258 | /* |
| 259 | * Like DV4017EA does not raise AUXERR for errors on MUX ports. |
| 260 | */ |
| 261 | .ident = "HP Pavilion ZT1000", |
| 262 | .matches = { |
| 263 | DMI_MATCH(DMI_SYS_VENDOR, "Hewlett-Packard"), |
| 264 | DMI_MATCH(DMI_PRODUCT_NAME, "HP Pavilion Notebook PC"), |
| 265 | DMI_MATCH(DMI_PRODUCT_VERSION, "HP Pavilion Notebook ZT1000"), |
| 266 | }, |
| 267 | }, |
| 268 | { |
Elvis Pranskevichus | 749aea7 | 2007-09-04 23:18:21 -0400 | [diff] [blame] | 269 | /* |
| 270 | * Like DV4017EA does not raise AUXERR for errors on MUX ports. |
| 271 | */ |
| 272 | .ident = "HP Pavilion DV4270ca", |
| 273 | .matches = { |
| 274 | DMI_MATCH(DMI_SYS_VENDOR, "Hewlett-Packard"), |
| 275 | DMI_MATCH(DMI_PRODUCT_NAME, "Pavilion dv4000 (EH476UA#ABL)"), |
| 276 | }, |
| 277 | }, |
| 278 | { |
Dmitry Torokhov | 59311de | 2005-05-28 02:12:05 -0500 | [diff] [blame] | 279 | .ident = "Toshiba P10", |
| 280 | .matches = { |
| 281 | DMI_MATCH(DMI_SYS_VENDOR, "TOSHIBA"), |
| 282 | DMI_MATCH(DMI_PRODUCT_NAME, "Satellite P10"), |
| 283 | }, |
| 284 | }, |
Dmitry Torokhov | 865190c | 2005-07-11 01:06:06 -0500 | [diff] [blame] | 285 | { |
Dmitry Torokhov | a91eaa1 | 2006-09-14 01:31:06 -0400 | [diff] [blame] | 286 | .ident = "Toshiba Equium A110", |
| 287 | .matches = { |
| 288 | DMI_MATCH(DMI_SYS_VENDOR, "TOSHIBA"), |
| 289 | DMI_MATCH(DMI_PRODUCT_NAME, "EQUIUM A110"), |
| 290 | }, |
| 291 | }, |
| 292 | { |
Dmitry Torokhov | 865190c | 2005-07-11 01:06:06 -0500 | [diff] [blame] | 293 | .ident = "Alienware Sentia", |
| 294 | .matches = { |
| 295 | DMI_MATCH(DMI_SYS_VENDOR, "ALIENWARE"), |
| 296 | DMI_MATCH(DMI_PRODUCT_NAME, "Sentia"), |
| 297 | }, |
| 298 | }, |
Dmitry Torokhov | 4eb38ac | 2005-12-21 00:51:51 -0500 | [diff] [blame] | 299 | { |
| 300 | .ident = "Sharp Actius MM20", |
| 301 | .matches = { |
| 302 | DMI_MATCH(DMI_SYS_VENDOR, "SHARP"), |
| 303 | DMI_MATCH(DMI_PRODUCT_NAME, "PC-MM20 Series"), |
| 304 | }, |
| 305 | }, |
Vojtech Pavlik | 3dd01a8 | 2006-01-14 00:24:06 -0500 | [diff] [blame] | 306 | { |
| 307 | .ident = "Sony Vaio FS-115b", |
| 308 | .matches = { |
| 309 | DMI_MATCH(DMI_SYS_VENDOR, "Sony Corporation"), |
| 310 | DMI_MATCH(DMI_PRODUCT_NAME, "VGN-FS115B"), |
| 311 | }, |
| 312 | }, |
Cjacker Huang | e2df452 | 2006-08-08 23:38:22 -0400 | [diff] [blame] | 313 | { |
| 314 | .ident = "Amoi M636/A737", |
| 315 | .matches = { |
| 316 | DMI_MATCH(DMI_SYS_VENDOR, "Amoi Electronics CO.,LTD."), |
| 317 | DMI_MATCH(DMI_PRODUCT_NAME, "M636/A737 platform"), |
| 318 | }, |
| 319 | }, |
Jiri Kosina | 2a2dcd6 | 2008-03-10 03:08:54 -0700 | [diff] [blame] | 320 | { |
| 321 | .ident = "Lenovo 3000 n100", |
| 322 | .matches = { |
| 323 | DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"), |
Jiri Kosina | 9ce1ca2 | 2008-09-04 22:28:48 -0400 | [diff] [blame] | 324 | DMI_MATCH(DMI_PRODUCT_NAME, "076804U"), |
Jiri Kosina | 2a2dcd6 | 2008-03-10 03:08:54 -0700 | [diff] [blame] | 325 | }, |
| 326 | }, |
Jiri Kosina | 0376bce | 2008-07-03 10:45:38 -0400 | [diff] [blame] | 327 | { |
| 328 | .ident = "Acer Aspire 1360", |
| 329 | .matches = { |
| 330 | DMI_MATCH(DMI_SYS_VENDOR, "Acer"), |
| 331 | DMI_MATCH(DMI_PRODUCT_NAME, "Aspire 1360"), |
| 332 | }, |
| 333 | }, |
Jiri Kosina | 5b5b43d | 2008-07-03 11:00:28 -0400 | [diff] [blame] | 334 | { |
| 335 | .ident = "Gericom Bellagio", |
| 336 | .matches = { |
| 337 | DMI_MATCH(DMI_SYS_VENDOR, "Gericom"), |
| 338 | DMI_MATCH(DMI_PRODUCT_NAME, "N34AS6"), |
| 339 | }, |
| 340 | }, |
Colin B Macdonald | 5bd8a05 | 2008-10-11 18:16:38 -0400 | [diff] [blame] | 341 | { |
| 342 | .ident = "IBM 2656", |
| 343 | .matches = { |
| 344 | DMI_MATCH(DMI_SYS_VENDOR, "IBM"), |
| 345 | DMI_MATCH(DMI_PRODUCT_NAME, "2656"), |
| 346 | }, |
| 347 | }, |
Herton Ronaldo Krzesinski | 786b11c | 2008-11-11 09:37:14 -0500 | [diff] [blame] | 348 | { |
| 349 | .ident = "Dell XPS M1530", |
| 350 | .matches = { |
| 351 | DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."), |
| 352 | DMI_MATCH(DMI_PRODUCT_NAME, "XPS M1530"), |
| 353 | }, |
| 354 | }, |
Dmitry Torokhov | 5f4ba04 | 2008-11-14 13:32:42 -0500 | [diff] [blame] | 355 | { |
| 356 | .ident = "Compal HEL80I", |
| 357 | .matches = { |
| 358 | DMI_MATCH(DMI_SYS_VENDOR, "COMPAL"), |
| 359 | DMI_MATCH(DMI_PRODUCT_NAME, "HEL80I"), |
| 360 | }, |
| 361 | }, |
Jiri Kosina | 9334e90 | 2009-01-06 01:35:45 -0800 | [diff] [blame] | 362 | { |
| 363 | .ident = "Dell Vostro 1510", |
| 364 | .matches = { |
| 365 | DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."), |
| 366 | DMI_MATCH(DMI_PRODUCT_NAME, "Vostro1510"), |
| 367 | }, |
| 368 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 369 | { } |
| 370 | }; |
| 371 | |
Jiri Kosina | c3a34f4 | 2008-05-28 01:10:52 -0400 | [diff] [blame] | 372 | #ifdef CONFIG_PNP |
| 373 | static struct dmi_system_id __initdata i8042_dmi_nopnp_table[] = { |
| 374 | { |
| 375 | .ident = "Intel MBO Desktop D845PESV", |
| 376 | .matches = { |
| 377 | DMI_MATCH(DMI_BOARD_NAME, "D845PESV"), |
| 378 | DMI_MATCH(DMI_BOARD_VENDOR, "Intel Corporation"), |
| 379 | }, |
| 380 | }, |
| 381 | { } |
| 382 | }; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 383 | #endif |
| 384 | |
Carlos Corbacho | 8987fec | 2008-01-21 01:04:40 -0500 | [diff] [blame] | 385 | /* |
| 386 | * Some Wistron based laptops need us to explicitly enable the 'Dritek |
| 387 | * keyboard extension' to make their extra keys start generating scancodes. |
| 388 | * Originally, this was just confined to older laptops, but a few Acer laptops |
| 389 | * have turned up in 2007 that also need this again. |
| 390 | */ |
| 391 | static struct dmi_system_id __initdata i8042_dmi_dritek_table[] = { |
| 392 | { |
| 393 | .ident = "Acer Aspire 5630", |
| 394 | .matches = { |
| 395 | DMI_MATCH(DMI_SYS_VENDOR, "Acer"), |
| 396 | DMI_MATCH(DMI_PRODUCT_NAME, "Aspire 5630"), |
| 397 | }, |
| 398 | }, |
| 399 | { |
| 400 | .ident = "Acer Aspire 5650", |
| 401 | .matches = { |
| 402 | DMI_MATCH(DMI_SYS_VENDOR, "Acer"), |
| 403 | DMI_MATCH(DMI_PRODUCT_NAME, "Aspire 5650"), |
| 404 | }, |
| 405 | }, |
| 406 | { |
| 407 | .ident = "Acer Aspire 5680", |
| 408 | .matches = { |
| 409 | DMI_MATCH(DMI_SYS_VENDOR, "Acer"), |
| 410 | DMI_MATCH(DMI_PRODUCT_NAME, "Aspire 5680"), |
| 411 | }, |
| 412 | }, |
| 413 | { |
Carlos Corbacho | 0e7e92f | 2008-07-07 08:55:31 -0400 | [diff] [blame] | 414 | .ident = "Acer Aspire 5720", |
| 415 | .matches = { |
| 416 | DMI_MATCH(DMI_SYS_VENDOR, "Acer"), |
| 417 | DMI_MATCH(DMI_PRODUCT_NAME, "Aspire 5720"), |
| 418 | }, |
| 419 | }, |
| 420 | { |
Carlos Corbacho | 5799ddb | 2008-01-30 16:34:12 -0500 | [diff] [blame] | 421 | .ident = "Acer Aspire 9110", |
| 422 | .matches = { |
| 423 | DMI_MATCH(DMI_SYS_VENDOR, "Acer"), |
| 424 | DMI_MATCH(DMI_PRODUCT_NAME, "Aspire 9110"), |
| 425 | }, |
| 426 | }, |
| 427 | { |
Bruno Prémont | 65e660a | 2008-05-20 13:47:28 -0400 | [diff] [blame] | 428 | .ident = "Acer TravelMate 660", |
| 429 | .matches = { |
| 430 | DMI_MATCH(DMI_SYS_VENDOR, "Acer"), |
| 431 | DMI_MATCH(DMI_PRODUCT_NAME, "TravelMate 660"), |
| 432 | }, |
| 433 | }, |
| 434 | { |
Carlos Corbacho | 8987fec | 2008-01-21 01:04:40 -0500 | [diff] [blame] | 435 | .ident = "Acer TravelMate 2490", |
| 436 | .matches = { |
| 437 | DMI_MATCH(DMI_SYS_VENDOR, "Acer"), |
| 438 | DMI_MATCH(DMI_PRODUCT_NAME, "TravelMate 2490"), |
| 439 | }, |
| 440 | }, |
Carlos Corbacho | 8e4ae10 | 2008-08-06 14:28:43 -0400 | [diff] [blame] | 441 | { |
| 442 | .ident = "Acer TravelMate 4280", |
| 443 | .matches = { |
| 444 | DMI_MATCH(DMI_SYS_VENDOR, "Acer"), |
| 445 | DMI_MATCH(DMI_PRODUCT_NAME, "TravelMate 4280"), |
| 446 | }, |
| 447 | }, |
Carlos Corbacho | 8987fec | 2008-01-21 01:04:40 -0500 | [diff] [blame] | 448 | { } |
| 449 | }; |
| 450 | |
| 451 | #endif /* CONFIG_X86 */ |
| 452 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 453 | #ifdef CONFIG_PNP |
| 454 | #include <linux/pnp.h> |
| 455 | |
| 456 | static int i8042_pnp_kbd_registered; |
Bjorn Helgaas | 2bfc3c6 | 2006-03-14 00:12:24 -0500 | [diff] [blame] | 457 | static unsigned int i8042_pnp_kbd_devices; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 458 | static int i8042_pnp_aux_registered; |
Bjorn Helgaas | 2bfc3c6 | 2006-03-14 00:12:24 -0500 | [diff] [blame] | 459 | static unsigned int i8042_pnp_aux_devices; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 460 | |
| 461 | static int i8042_pnp_command_reg; |
| 462 | static int i8042_pnp_data_reg; |
| 463 | static int i8042_pnp_kbd_irq; |
| 464 | static int i8042_pnp_aux_irq; |
| 465 | |
| 466 | static char i8042_pnp_kbd_name[32]; |
| 467 | static char i8042_pnp_aux_name[32]; |
| 468 | |
| 469 | static int i8042_pnp_kbd_probe(struct pnp_dev *dev, const struct pnp_device_id *did) |
| 470 | { |
| 471 | if (pnp_port_valid(dev, 0) && pnp_port_len(dev, 0) == 1) |
| 472 | i8042_pnp_data_reg = pnp_port_start(dev,0); |
| 473 | |
| 474 | if (pnp_port_valid(dev, 1) && pnp_port_len(dev, 1) == 1) |
| 475 | i8042_pnp_command_reg = pnp_port_start(dev, 1); |
| 476 | |
| 477 | if (pnp_irq_valid(dev,0)) |
| 478 | i8042_pnp_kbd_irq = pnp_irq(dev, 0); |
| 479 | |
Roel Kluin | 8c6deb9 | 2008-04-18 00:25:18 -0400 | [diff] [blame] | 480 | strlcpy(i8042_pnp_kbd_name, did->id, sizeof(i8042_pnp_kbd_name)); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 481 | if (strlen(pnp_dev_name(dev))) { |
Roel Kluin | 8c6deb9 | 2008-04-18 00:25:18 -0400 | [diff] [blame] | 482 | strlcat(i8042_pnp_kbd_name, ":", sizeof(i8042_pnp_kbd_name)); |
| 483 | 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] | 484 | } |
| 485 | |
Bjorn Helgaas | 2bfc3c6 | 2006-03-14 00:12:24 -0500 | [diff] [blame] | 486 | i8042_pnp_kbd_devices++; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 487 | return 0; |
| 488 | } |
| 489 | |
| 490 | static int i8042_pnp_aux_probe(struct pnp_dev *dev, const struct pnp_device_id *did) |
| 491 | { |
| 492 | if (pnp_port_valid(dev, 0) && pnp_port_len(dev, 0) == 1) |
| 493 | i8042_pnp_data_reg = pnp_port_start(dev,0); |
| 494 | |
| 495 | if (pnp_port_valid(dev, 1) && pnp_port_len(dev, 1) == 1) |
| 496 | i8042_pnp_command_reg = pnp_port_start(dev, 1); |
| 497 | |
| 498 | if (pnp_irq_valid(dev, 0)) |
| 499 | i8042_pnp_aux_irq = pnp_irq(dev, 0); |
| 500 | |
Roel Kluin | 8c6deb9 | 2008-04-18 00:25:18 -0400 | [diff] [blame] | 501 | strlcpy(i8042_pnp_aux_name, did->id, sizeof(i8042_pnp_aux_name)); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 502 | if (strlen(pnp_dev_name(dev))) { |
Roel Kluin | 8c6deb9 | 2008-04-18 00:25:18 -0400 | [diff] [blame] | 503 | strlcat(i8042_pnp_aux_name, ":", sizeof(i8042_pnp_aux_name)); |
| 504 | 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] | 505 | } |
| 506 | |
Bjorn Helgaas | 2bfc3c6 | 2006-03-14 00:12:24 -0500 | [diff] [blame] | 507 | i8042_pnp_aux_devices++; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 508 | return 0; |
| 509 | } |
| 510 | |
| 511 | static struct pnp_device_id pnp_kbd_devids[] = { |
| 512 | { .id = "PNP0303", .driver_data = 0 }, |
| 513 | { .id = "PNP030b", .driver_data = 0 }, |
| 514 | { .id = "", }, |
| 515 | }; |
| 516 | |
| 517 | static struct pnp_driver i8042_pnp_kbd_driver = { |
| 518 | .name = "i8042 kbd", |
| 519 | .id_table = pnp_kbd_devids, |
| 520 | .probe = i8042_pnp_kbd_probe, |
| 521 | }; |
| 522 | |
| 523 | static struct pnp_device_id pnp_aux_devids[] = { |
Dmitry Torokhov | b997395 | 2007-04-25 00:40:53 -0400 | [diff] [blame] | 524 | { .id = "FJC6000", .driver_data = 0 }, |
| 525 | { .id = "FJC6001", .driver_data = 0 }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 526 | { .id = "PNP0f03", .driver_data = 0 }, |
| 527 | { .id = "PNP0f0b", .driver_data = 0 }, |
| 528 | { .id = "PNP0f0e", .driver_data = 0 }, |
| 529 | { .id = "PNP0f12", .driver_data = 0 }, |
| 530 | { .id = "PNP0f13", .driver_data = 0 }, |
| 531 | { .id = "PNP0f19", .driver_data = 0 }, |
| 532 | { .id = "PNP0f1c", .driver_data = 0 }, |
| 533 | { .id = "SYN0801", .driver_data = 0 }, |
| 534 | { .id = "", }, |
| 535 | }; |
| 536 | |
| 537 | static struct pnp_driver i8042_pnp_aux_driver = { |
| 538 | .name = "i8042 aux", |
| 539 | .id_table = pnp_aux_devids, |
| 540 | .probe = i8042_pnp_aux_probe, |
| 541 | }; |
| 542 | |
| 543 | static void i8042_pnp_exit(void) |
| 544 | { |
Kurt Garloff | 74af42b | 2005-05-28 02:11:38 -0500 | [diff] [blame] | 545 | if (i8042_pnp_kbd_registered) { |
| 546 | i8042_pnp_kbd_registered = 0; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 547 | pnp_unregister_driver(&i8042_pnp_kbd_driver); |
Kurt Garloff | 74af42b | 2005-05-28 02:11:38 -0500 | [diff] [blame] | 548 | } |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 549 | |
Kurt Garloff | 74af42b | 2005-05-28 02:11:38 -0500 | [diff] [blame] | 550 | if (i8042_pnp_aux_registered) { |
| 551 | i8042_pnp_aux_registered = 0; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 552 | pnp_unregister_driver(&i8042_pnp_aux_driver); |
Kurt Garloff | 74af42b | 2005-05-28 02:11:38 -0500 | [diff] [blame] | 553 | } |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 554 | } |
| 555 | |
Dmitry Torokhov | 8d5987a | 2005-09-04 01:41:38 -0500 | [diff] [blame] | 556 | static int __init i8042_pnp_init(void) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 557 | { |
Dmitry Torokhov | c3d31e7 | 2005-09-04 01:41:51 -0500 | [diff] [blame] | 558 | char kbd_irq_str[4] = { 0 }, aux_irq_str[4] = { 0 }; |
Dmitry Torokhov | 080c652 | 2007-07-18 00:38:01 -0400 | [diff] [blame] | 559 | int pnp_data_busted = 0; |
Bjorn Helgaas | 2bfc3c6 | 2006-03-14 00:12:24 -0500 | [diff] [blame] | 560 | int err; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 561 | |
Jiri Kosina | c3a34f4 | 2008-05-28 01:10:52 -0400 | [diff] [blame] | 562 | #ifdef CONFIG_X86 |
| 563 | if (dmi_check_system(i8042_dmi_nopnp_table)) |
| 564 | i8042_nopnp = 1; |
| 565 | #endif |
| 566 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 567 | if (i8042_nopnp) { |
Vojtech Pavlik | 39fa580 | 2005-05-28 02:11:16 -0500 | [diff] [blame] | 568 | printk(KERN_INFO "i8042: PNP detection disabled\n"); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 569 | return 0; |
| 570 | } |
| 571 | |
Bjorn Helgaas | 2bfc3c6 | 2006-03-14 00:12:24 -0500 | [diff] [blame] | 572 | err = pnp_register_driver(&i8042_pnp_kbd_driver); |
| 573 | if (!err) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 574 | i8042_pnp_kbd_registered = 1; |
Dmitry Torokhov | c3d31e7 | 2005-09-04 01:41:51 -0500 | [diff] [blame] | 575 | |
Bjorn Helgaas | 2bfc3c6 | 2006-03-14 00:12:24 -0500 | [diff] [blame] | 576 | err = pnp_register_driver(&i8042_pnp_aux_driver); |
| 577 | if (!err) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 578 | i8042_pnp_aux_registered = 1; |
| 579 | |
Bjorn Helgaas | 2bfc3c6 | 2006-03-14 00:12:24 -0500 | [diff] [blame] | 580 | if (!i8042_pnp_kbd_devices && !i8042_pnp_aux_devices) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 581 | i8042_pnp_exit(); |
| 582 | #if defined(__ia64__) |
| 583 | return -ENODEV; |
| 584 | #else |
Dmitry Torokhov | 5a72afc | 2005-05-28 02:11:32 -0500 | [diff] [blame] | 585 | 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] | 586 | return 0; |
| 587 | #endif |
| 588 | } |
| 589 | |
Bjorn Helgaas | 2bfc3c6 | 2006-03-14 00:12:24 -0500 | [diff] [blame] | 590 | if (i8042_pnp_kbd_devices) |
Dmitry Torokhov | c3d31e7 | 2005-09-04 01:41:51 -0500 | [diff] [blame] | 591 | snprintf(kbd_irq_str, sizeof(kbd_irq_str), |
| 592 | "%d", i8042_pnp_kbd_irq); |
Bjorn Helgaas | 2bfc3c6 | 2006-03-14 00:12:24 -0500 | [diff] [blame] | 593 | if (i8042_pnp_aux_devices) |
Dmitry Torokhov | c3d31e7 | 2005-09-04 01:41:51 -0500 | [diff] [blame] | 594 | snprintf(aux_irq_str, sizeof(aux_irq_str), |
| 595 | "%d", i8042_pnp_aux_irq); |
| 596 | |
| 597 | 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] | 598 | i8042_pnp_kbd_name, (i8042_pnp_kbd_devices && i8042_pnp_aux_devices) ? "," : "", |
Dmitry Torokhov | c3d31e7 | 2005-09-04 01:41:51 -0500 | [diff] [blame] | 599 | i8042_pnp_aux_name, |
| 600 | i8042_pnp_data_reg, i8042_pnp_command_reg, |
Bjorn Helgaas | 2bfc3c6 | 2006-03-14 00:12:24 -0500 | [diff] [blame] | 601 | kbd_irq_str, (i8042_pnp_kbd_devices && i8042_pnp_aux_devices) ? "," : "", |
Dmitry Torokhov | c3d31e7 | 2005-09-04 01:41:51 -0500 | [diff] [blame] | 602 | aux_irq_str); |
| 603 | |
| 604 | #if defined(__ia64__) |
Bjorn Helgaas | 2bfc3c6 | 2006-03-14 00:12:24 -0500 | [diff] [blame] | 605 | if (!i8042_pnp_kbd_devices) |
Dmitry Torokhov | 945ef0d | 2005-09-04 01:42:00 -0500 | [diff] [blame] | 606 | i8042_nokbd = 1; |
Bjorn Helgaas | 2bfc3c6 | 2006-03-14 00:12:24 -0500 | [diff] [blame] | 607 | if (!i8042_pnp_aux_devices) |
Dmitry Torokhov | c3d31e7 | 2005-09-04 01:41:51 -0500 | [diff] [blame] | 608 | i8042_noaux = 1; |
| 609 | #endif |
| 610 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 611 | if (((i8042_pnp_data_reg & ~0xf) == (i8042_data_reg & ~0xf) && |
Dmitry Torokhov | 080c652 | 2007-07-18 00:38:01 -0400 | [diff] [blame] | 612 | i8042_pnp_data_reg != i8042_data_reg) || |
| 613 | !i8042_pnp_data_reg) { |
| 614 | printk(KERN_WARNING |
| 615 | "PNP: PS/2 controller has invalid data port %#x; " |
| 616 | "using default %#x\n", |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 617 | i8042_pnp_data_reg, i8042_data_reg); |
| 618 | i8042_pnp_data_reg = i8042_data_reg; |
Dmitry Torokhov | 080c652 | 2007-07-18 00:38:01 -0400 | [diff] [blame] | 619 | pnp_data_busted = 1; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 620 | } |
| 621 | |
| 622 | if (((i8042_pnp_command_reg & ~0xf) == (i8042_command_reg & ~0xf) && |
Dmitry Torokhov | 080c652 | 2007-07-18 00:38:01 -0400 | [diff] [blame] | 623 | i8042_pnp_command_reg != i8042_command_reg) || |
| 624 | !i8042_pnp_command_reg) { |
| 625 | printk(KERN_WARNING |
| 626 | "PNP: PS/2 controller has invalid command port %#x; " |
| 627 | "using default %#x\n", |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 628 | i8042_pnp_command_reg, i8042_command_reg); |
| 629 | i8042_pnp_command_reg = i8042_command_reg; |
Dmitry Torokhov | 080c652 | 2007-07-18 00:38:01 -0400 | [diff] [blame] | 630 | pnp_data_busted = 1; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 631 | } |
| 632 | |
Dmitry Torokhov | 945ef0d | 2005-09-04 01:42:00 -0500 | [diff] [blame] | 633 | if (!i8042_nokbd && !i8042_pnp_kbd_irq) { |
Dmitry Torokhov | 080c652 | 2007-07-18 00:38:01 -0400 | [diff] [blame] | 634 | printk(KERN_WARNING |
| 635 | "PNP: PS/2 controller doesn't have KBD irq; " |
| 636 | "using default %d\n", i8042_kbd_irq); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 637 | i8042_pnp_kbd_irq = i8042_kbd_irq; |
Dmitry Torokhov | 080c652 | 2007-07-18 00:38:01 -0400 | [diff] [blame] | 638 | pnp_data_busted = 1; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 639 | } |
| 640 | |
Dmitry Torokhov | c3d31e7 | 2005-09-04 01:41:51 -0500 | [diff] [blame] | 641 | if (!i8042_noaux && !i8042_pnp_aux_irq) { |
Dmitry Torokhov | 080c652 | 2007-07-18 00:38:01 -0400 | [diff] [blame] | 642 | if (!pnp_data_busted && i8042_pnp_kbd_irq) { |
| 643 | printk(KERN_WARNING |
| 644 | "PNP: PS/2 appears to have AUX port disabled, " |
| 645 | "if this is incorrect please boot with " |
| 646 | "i8042.nopnp\n"); |
| 647 | i8042_noaux = 1; |
| 648 | } else { |
| 649 | printk(KERN_WARNING |
| 650 | "PNP: PS/2 controller doesn't have AUX irq; " |
| 651 | "using default %d\n", i8042_aux_irq); |
| 652 | i8042_pnp_aux_irq = i8042_aux_irq; |
| 653 | } |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 654 | } |
| 655 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 656 | i8042_data_reg = i8042_pnp_data_reg; |
| 657 | i8042_command_reg = i8042_pnp_command_reg; |
| 658 | i8042_kbd_irq = i8042_pnp_kbd_irq; |
| 659 | i8042_aux_irq = i8042_pnp_aux_irq; |
| 660 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 661 | return 0; |
| 662 | } |
| 663 | |
Dmitry Torokhov | 8d5987a | 2005-09-04 01:41:38 -0500 | [diff] [blame] | 664 | #else |
| 665 | static inline int i8042_pnp_init(void) { return 0; } |
| 666 | static inline void i8042_pnp_exit(void) { } |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 667 | #endif |
| 668 | |
Dmitry Torokhov | 8d5987a | 2005-09-04 01:41:38 -0500 | [diff] [blame] | 669 | static int __init i8042_platform_init(void) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 670 | { |
Dmitry Torokhov | 8d5987a | 2005-09-04 01:41:38 -0500 | [diff] [blame] | 671 | int retval; |
| 672 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 673 | /* |
| 674 | * On ix86 platforms touching the i8042 data register region can do really |
| 675 | * bad things. Because of this the region is always reserved on ix86 boxes. |
| 676 | * |
| 677 | * if (!request_region(I8042_DATA_REG, 16, "i8042")) |
Dmitry Torokhov | 8d5987a | 2005-09-04 01:41:38 -0500 | [diff] [blame] | 678 | * return -EBUSY; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 679 | */ |
| 680 | |
| 681 | i8042_kbd_irq = I8042_MAP_IRQ(1); |
| 682 | i8042_aux_irq = I8042_MAP_IRQ(12); |
| 683 | |
Dmitry Torokhov | 8d5987a | 2005-09-04 01:41:38 -0500 | [diff] [blame] | 684 | retval = i8042_pnp_init(); |
| 685 | if (retval) |
| 686 | return retval; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 687 | |
| 688 | #if defined(__ia64__) |
| 689 | i8042_reset = 1; |
| 690 | #endif |
| 691 | |
Jiri Kosina | c3a34f4 | 2008-05-28 01:10:52 -0400 | [diff] [blame] | 692 | #ifdef CONFIG_X86 |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 693 | if (dmi_check_system(i8042_dmi_noloop_table)) |
| 694 | i8042_noloop = 1; |
| 695 | |
| 696 | if (dmi_check_system(i8042_dmi_nomux_table)) |
| 697 | i8042_nomux = 1; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 698 | |
Carlos Corbacho | 8987fec | 2008-01-21 01:04:40 -0500 | [diff] [blame] | 699 | if (dmi_check_system(i8042_dmi_dritek_table)) |
| 700 | i8042_dritek = 1; |
| 701 | #endif /* CONFIG_X86 */ |
| 702 | |
Dmitry Torokhov | 8d5987a | 2005-09-04 01:41:38 -0500 | [diff] [blame] | 703 | return retval; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 704 | } |
| 705 | |
| 706 | static inline void i8042_platform_exit(void) |
| 707 | { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 708 | i8042_pnp_exit(); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 709 | } |
| 710 | |
| 711 | #endif /* _I8042_X86IA64IO_H */ |