1 #ifndef _I8042_X86IA64IO_H
2 #define _I8042_X86IA64IO_H
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.
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"
23 # define I8042_MAP_IRQ(x) isa_irq_to_vector((x))
25 # define I8042_MAP_IRQ(x) (x)
28 #define I8042_KBD_IRQ i8042_kbd_irq
29 #define I8042_AUX_IRQ i8042_aux_irq
31 static int i8042_kbd_irq
;
32 static int i8042_aux_irq
;
38 #define I8042_COMMAND_REG i8042_command_reg
39 #define I8042_STATUS_REG i8042_command_reg
40 #define I8042_DATA_REG i8042_data_reg
42 static int i8042_command_reg
= 0x64;
43 static int i8042_data_reg
= 0x60;
46 static inline int i8042_read_data(void)
48 return inb(I8042_DATA_REG
);
51 static inline int i8042_read_status(void)
53 return inb(I8042_STATUS_REG
);
56 static inline void i8042_write_data(int val
)
58 outb(val
, I8042_DATA_REG
);
61 static inline void i8042_write_command(int val
)
63 outb(val
, I8042_COMMAND_REG
);
68 #include <linux/dmi.h>
70 static struct dmi_system_id __initdata i8042_dmi_noloop_table
[] = {
72 /* AUX LOOP command does not raise AUX IRQ */
73 .ident
= "Arima-Rioworks HDAMB",
75 DMI_MATCH(DMI_BOARD_VENDOR
, "RIOWORKS"),
76 DMI_MATCH(DMI_BOARD_NAME
, "HDAMB"),
77 DMI_MATCH(DMI_BOARD_VERSION
, "Rev E"),
83 DMI_MATCH(DMI_BOARD_VENDOR
, "ASUSTeK Computer Inc."),
84 DMI_MATCH(DMI_BOARD_NAME
, "G1S"),
85 DMI_MATCH(DMI_BOARD_VERSION
, "1.0"),
89 /* AUX LOOP command does not raise AUX IRQ */
90 .ident
= "ASUS P65UP5",
92 DMI_MATCH(DMI_BOARD_VENDOR
, "ASUSTeK Computer INC."),
93 DMI_MATCH(DMI_BOARD_NAME
, "P/I-P65UP5"),
94 DMI_MATCH(DMI_BOARD_VERSION
, "REV 2.X"),
98 .ident
= "Compaq Proliant 8500",
100 DMI_MATCH(DMI_SYS_VENDOR
, "Compaq"),
101 DMI_MATCH(DMI_PRODUCT_NAME
, "ProLiant"),
102 DMI_MATCH(DMI_PRODUCT_VERSION
, "8500"),
106 .ident
= "Compaq Proliant DL760",
108 DMI_MATCH(DMI_SYS_VENDOR
, "Compaq"),
109 DMI_MATCH(DMI_PRODUCT_NAME
, "ProLiant"),
110 DMI_MATCH(DMI_PRODUCT_VERSION
, "DL760"),
114 .ident
= "OQO Model 01",
116 DMI_MATCH(DMI_SYS_VENDOR
, "OQO"),
117 DMI_MATCH(DMI_PRODUCT_NAME
, "ZEPTO"),
118 DMI_MATCH(DMI_PRODUCT_VERSION
, "00"),
122 /* AUX LOOP does not work properly */
123 .ident
= "ULI EV4873",
125 DMI_MATCH(DMI_SYS_VENDOR
, "ULI"),
126 DMI_MATCH(DMI_PRODUCT_NAME
, "EV4873"),
127 DMI_MATCH(DMI_PRODUCT_VERSION
, "5a"),
131 .ident
= "Microsoft Virtual Machine",
133 DMI_MATCH(DMI_SYS_VENDOR
, "Microsoft Corporation"),
134 DMI_MATCH(DMI_PRODUCT_NAME
, "Virtual Machine"),
135 DMI_MATCH(DMI_PRODUCT_VERSION
, "VS2005R2"),
139 .ident
= "Medion MAM 2070",
141 DMI_MATCH(DMI_SYS_VENDOR
, "Notebook"),
142 DMI_MATCH(DMI_PRODUCT_NAME
, "MAM 2070"),
143 DMI_MATCH(DMI_PRODUCT_VERSION
, "5a"),
147 .ident
= "Blue FB5601",
149 DMI_MATCH(DMI_SYS_VENDOR
, "blue"),
150 DMI_MATCH(DMI_PRODUCT_NAME
, "FB5601"),
151 DMI_MATCH(DMI_PRODUCT_VERSION
, "M606"),
155 .ident
= "Gigabyte M912",
157 DMI_MATCH(DMI_SYS_VENDOR
, "GIGABYTE"),
158 DMI_MATCH(DMI_PRODUCT_NAME
, "M912"),
159 DMI_MATCH(DMI_PRODUCT_VERSION
, "01"),
163 .ident
= "HP DV9700",
165 DMI_MATCH(DMI_SYS_VENDOR
, "Hewlett-Packard"),
166 DMI_MATCH(DMI_PRODUCT_NAME
, "HP Pavilion dv9700"),
167 DMI_MATCH(DMI_PRODUCT_VERSION
, "Rev 1"),
174 * Some Fujitsu notebooks are having trouble with touchpads if
175 * active multiplexing mode is activated. Luckily they don't have
176 * external PS/2 ports so we can safely disable it.
177 * ... apparently some Toshibas don't like MUX mode either and
178 * die horrible death on reboot.
180 static struct dmi_system_id __initdata i8042_dmi_nomux_table
[] = {
182 .ident
= "Fujitsu Lifebook P7010/P7010D",
184 DMI_MATCH(DMI_SYS_VENDOR
, "FUJITSU"),
185 DMI_MATCH(DMI_PRODUCT_NAME
, "P7010"),
189 .ident
= "Fujitsu Lifebook P7010",
191 DMI_MATCH(DMI_SYS_VENDOR
, "FUJITSU SIEMENS"),
192 DMI_MATCH(DMI_PRODUCT_NAME
, "0000000000"),
196 .ident
= "Fujitsu Lifebook P5020D",
198 DMI_MATCH(DMI_SYS_VENDOR
, "FUJITSU"),
199 DMI_MATCH(DMI_PRODUCT_NAME
, "LifeBook P Series"),
203 .ident
= "Fujitsu Lifebook S2000",
205 DMI_MATCH(DMI_SYS_VENDOR
, "FUJITSU"),
206 DMI_MATCH(DMI_PRODUCT_NAME
, "LifeBook S Series"),
210 .ident
= "Fujitsu Lifebook S6230",
212 DMI_MATCH(DMI_SYS_VENDOR
, "FUJITSU"),
213 DMI_MATCH(DMI_PRODUCT_NAME
, "LifeBook S6230"),
217 .ident
= "Fujitsu T70H",
219 DMI_MATCH(DMI_SYS_VENDOR
, "FUJITSU"),
220 DMI_MATCH(DMI_PRODUCT_NAME
, "FMVLT70H"),
224 .ident
= "Fujitsu-Siemens Lifebook T3010",
226 DMI_MATCH(DMI_SYS_VENDOR
, "FUJITSU SIEMENS"),
227 DMI_MATCH(DMI_PRODUCT_NAME
, "LIFEBOOK T3010"),
231 .ident
= "Fujitsu-Siemens Lifebook E4010",
233 DMI_MATCH(DMI_SYS_VENDOR
, "FUJITSU SIEMENS"),
234 DMI_MATCH(DMI_PRODUCT_NAME
, "LIFEBOOK E4010"),
238 .ident
= "Fujitsu-Siemens Amilo Pro 2010",
240 DMI_MATCH(DMI_SYS_VENDOR
, "FUJITSU SIEMENS"),
241 DMI_MATCH(DMI_PRODUCT_NAME
, "AMILO Pro V2010"),
245 .ident
= "Fujitsu-Siemens Amilo Pro 2030",
247 DMI_MATCH(DMI_SYS_VENDOR
, "FUJITSU SIEMENS"),
248 DMI_MATCH(DMI_PRODUCT_NAME
, "AMILO PRO V2030"),
253 * No data is coming from the touchscreen unless KBC
256 .ident
= "Panasonic CF-29",
258 DMI_MATCH(DMI_SYS_VENDOR
, "Matsushita"),
259 DMI_MATCH(DMI_PRODUCT_NAME
, "CF-29"),
264 * Errors on MUX ports are reported without raising AUXDATA
265 * causing "spurious NAK" messages.
267 .ident
= "HP Pavilion DV4017EA",
269 DMI_MATCH(DMI_SYS_VENDOR
, "Hewlett-Packard"),
270 DMI_MATCH(DMI_PRODUCT_NAME
, "Pavilion dv4000 (EA032EA#ABF)"),
275 * Like DV4017EA does not raise AUXERR for errors on MUX ports.
277 .ident
= "HP Pavilion ZT1000",
279 DMI_MATCH(DMI_SYS_VENDOR
, "Hewlett-Packard"),
280 DMI_MATCH(DMI_PRODUCT_NAME
, "HP Pavilion Notebook PC"),
281 DMI_MATCH(DMI_PRODUCT_VERSION
, "HP Pavilion Notebook ZT1000"),
286 * Like DV4017EA does not raise AUXERR for errors on MUX ports.
288 .ident
= "HP Pavilion DV4270ca",
290 DMI_MATCH(DMI_SYS_VENDOR
, "Hewlett-Packard"),
291 DMI_MATCH(DMI_PRODUCT_NAME
, "Pavilion dv4000 (EH476UA#ABL)"),
295 .ident
= "Toshiba P10",
297 DMI_MATCH(DMI_SYS_VENDOR
, "TOSHIBA"),
298 DMI_MATCH(DMI_PRODUCT_NAME
, "Satellite P10"),
302 .ident
= "Toshiba Equium A110",
304 DMI_MATCH(DMI_SYS_VENDOR
, "TOSHIBA"),
305 DMI_MATCH(DMI_PRODUCT_NAME
, "EQUIUM A110"),
309 .ident
= "Alienware Sentia",
311 DMI_MATCH(DMI_SYS_VENDOR
, "ALIENWARE"),
312 DMI_MATCH(DMI_PRODUCT_NAME
, "Sentia"),
316 .ident
= "Sharp Actius MM20",
318 DMI_MATCH(DMI_SYS_VENDOR
, "SHARP"),
319 DMI_MATCH(DMI_PRODUCT_NAME
, "PC-MM20 Series"),
323 .ident
= "Sony Vaio FS-115b",
325 DMI_MATCH(DMI_SYS_VENDOR
, "Sony Corporation"),
326 DMI_MATCH(DMI_PRODUCT_NAME
, "VGN-FS115B"),
330 .ident
= "Amoi M636/A737",
332 DMI_MATCH(DMI_SYS_VENDOR
, "Amoi Electronics CO.,LTD."),
333 DMI_MATCH(DMI_PRODUCT_NAME
, "M636/A737 platform"),
337 .ident
= "Lenovo 3000 n100",
339 DMI_MATCH(DMI_SYS_VENDOR
, "LENOVO"),
340 DMI_MATCH(DMI_PRODUCT_NAME
, "076804U"),
344 .ident
= "Acer Aspire 1360",
346 DMI_MATCH(DMI_SYS_VENDOR
, "Acer"),
347 DMI_MATCH(DMI_PRODUCT_NAME
, "Aspire 1360"),
351 .ident
= "Gericom Bellagio",
353 DMI_MATCH(DMI_SYS_VENDOR
, "Gericom"),
354 DMI_MATCH(DMI_PRODUCT_NAME
, "N34AS6"),
360 DMI_MATCH(DMI_SYS_VENDOR
, "IBM"),
361 DMI_MATCH(DMI_PRODUCT_NAME
, "2656"),
365 .ident
= "Dell XPS M1530",
367 DMI_MATCH(DMI_SYS_VENDOR
, "Dell Inc."),
368 DMI_MATCH(DMI_PRODUCT_NAME
, "XPS M1530"),
372 .ident
= "Compal HEL80I",
374 DMI_MATCH(DMI_SYS_VENDOR
, "COMPAL"),
375 DMI_MATCH(DMI_PRODUCT_NAME
, "HEL80I"),
379 .ident
= "Dell Vostro 1510",
381 DMI_MATCH(DMI_SYS_VENDOR
, "Dell Inc."),
382 DMI_MATCH(DMI_PRODUCT_NAME
, "Vostro1510"),
386 .ident
= "Acer Aspire 5536",
388 DMI_MATCH(DMI_SYS_VENDOR
, "Acer"),
389 DMI_MATCH(DMI_PRODUCT_NAME
, "Aspire 5536"),
390 DMI_MATCH(DMI_PRODUCT_VERSION
, "0100"),
396 static struct dmi_system_id __initdata i8042_dmi_reset_table
[] = {
398 .ident
= "MSI Wind U-100",
400 DMI_MATCH(DMI_BOARD_NAME
, "U-100"),
401 DMI_MATCH(DMI_BOARD_VENDOR
, "MICRO-STAR INTERNATIONAL CO., LTD"),
405 .ident
= "LG Electronics X110",
407 DMI_MATCH(DMI_BOARD_NAME
, "X110"),
408 DMI_MATCH(DMI_BOARD_VENDOR
, "LG Electronics Inc."),
412 .ident
= "Acer Aspire One 150",
414 DMI_MATCH(DMI_SYS_VENDOR
, "Acer"),
415 DMI_MATCH(DMI_PRODUCT_NAME
, "AOA150"),
419 .ident
= "Advent 4211",
421 DMI_MATCH(DMI_SYS_VENDOR
, "DIXONSXP"),
422 DMI_MATCH(DMI_PRODUCT_NAME
, "Advent 4211"),
426 .ident
= "Medion Akoya Mini E1210",
428 DMI_MATCH(DMI_SYS_VENDOR
, "MEDION"),
429 DMI_MATCH(DMI_PRODUCT_NAME
, "E1210"),
433 .ident
= "Mivvy M310",
435 DMI_MATCH(DMI_SYS_VENDOR
, "VIOOO"),
436 DMI_MATCH(DMI_PRODUCT_NAME
, "N10"),
443 static struct dmi_system_id __initdata i8042_dmi_nopnp_table
[] = {
445 .ident
= "Intel MBO Desktop D845PESV",
447 DMI_MATCH(DMI_BOARD_NAME
, "D845PESV"),
448 DMI_MATCH(DMI_BOARD_VENDOR
, "Intel Corporation"),
452 .ident
= "MSI Wind U-100",
454 DMI_MATCH(DMI_BOARD_NAME
, "U-100"),
455 DMI_MATCH(DMI_BOARD_VENDOR
, "MICRO-STAR INTERNATIONAL CO., LTD"),
461 static struct dmi_system_id __initdata i8042_dmi_laptop_table
[] = {
465 DMI_MATCH(DMI_CHASSIS_TYPE
, "8"), /* Portable */
471 DMI_MATCH(DMI_CHASSIS_TYPE
, "9"), /* Laptop */
477 DMI_MATCH(DMI_CHASSIS_TYPE
, "10"), /* Notebook */
481 .ident
= "Sub-Notebook",
483 DMI_MATCH(DMI_CHASSIS_TYPE
, "14"), /* Sub-Notebook */
491 * Some Wistron based laptops need us to explicitly enable the 'Dritek
492 * keyboard extension' to make their extra keys start generating scancodes.
493 * Originally, this was just confined to older laptops, but a few Acer laptops
494 * have turned up in 2007 that also need this again.
496 static struct dmi_system_id __initdata i8042_dmi_dritek_table
[] = {
498 .ident
= "Acer Aspire 5630",
500 DMI_MATCH(DMI_SYS_VENDOR
, "Acer"),
501 DMI_MATCH(DMI_PRODUCT_NAME
, "Aspire 5630"),
505 .ident
= "Acer Aspire 5650",
507 DMI_MATCH(DMI_SYS_VENDOR
, "Acer"),
508 DMI_MATCH(DMI_PRODUCT_NAME
, "Aspire 5650"),
512 .ident
= "Acer Aspire 5680",
514 DMI_MATCH(DMI_SYS_VENDOR
, "Acer"),
515 DMI_MATCH(DMI_PRODUCT_NAME
, "Aspire 5680"),
519 .ident
= "Acer Aspire 5720",
521 DMI_MATCH(DMI_SYS_VENDOR
, "Acer"),
522 DMI_MATCH(DMI_PRODUCT_NAME
, "Aspire 5720"),
526 .ident
= "Acer Aspire 9110",
528 DMI_MATCH(DMI_SYS_VENDOR
, "Acer"),
529 DMI_MATCH(DMI_PRODUCT_NAME
, "Aspire 9110"),
533 .ident
= "Acer TravelMate 660",
535 DMI_MATCH(DMI_SYS_VENDOR
, "Acer"),
536 DMI_MATCH(DMI_PRODUCT_NAME
, "TravelMate 660"),
540 .ident
= "Acer TravelMate 2490",
542 DMI_MATCH(DMI_SYS_VENDOR
, "Acer"),
543 DMI_MATCH(DMI_PRODUCT_NAME
, "TravelMate 2490"),
547 .ident
= "Acer TravelMate 4280",
549 DMI_MATCH(DMI_SYS_VENDOR
, "Acer"),
550 DMI_MATCH(DMI_PRODUCT_NAME
, "TravelMate 4280"),
556 #endif /* CONFIG_X86 */
559 #include <linux/pnp.h>
561 static bool i8042_pnp_kbd_registered
;
562 static unsigned int i8042_pnp_kbd_devices
;
563 static bool i8042_pnp_aux_registered
;
564 static unsigned int i8042_pnp_aux_devices
;
566 static int i8042_pnp_command_reg
;
567 static int i8042_pnp_data_reg
;
568 static int i8042_pnp_kbd_irq
;
569 static int i8042_pnp_aux_irq
;
571 static char i8042_pnp_kbd_name
[32];
572 static char i8042_pnp_aux_name
[32];
574 static int i8042_pnp_kbd_probe(struct pnp_dev
*dev
, const struct pnp_device_id
*did
)
576 if (pnp_port_valid(dev
, 0) && pnp_port_len(dev
, 0) == 1)
577 i8042_pnp_data_reg
= pnp_port_start(dev
,0);
579 if (pnp_port_valid(dev
, 1) && pnp_port_len(dev
, 1) == 1)
580 i8042_pnp_command_reg
= pnp_port_start(dev
, 1);
582 if (pnp_irq_valid(dev
,0))
583 i8042_pnp_kbd_irq
= pnp_irq(dev
, 0);
585 strlcpy(i8042_pnp_kbd_name
, did
->id
, sizeof(i8042_pnp_kbd_name
));
586 if (strlen(pnp_dev_name(dev
))) {
587 strlcat(i8042_pnp_kbd_name
, ":", sizeof(i8042_pnp_kbd_name
));
588 strlcat(i8042_pnp_kbd_name
, pnp_dev_name(dev
), sizeof(i8042_pnp_kbd_name
));
591 i8042_pnp_kbd_devices
++;
595 static int i8042_pnp_aux_probe(struct pnp_dev
*dev
, const struct pnp_device_id
*did
)
597 if (pnp_port_valid(dev
, 0) && pnp_port_len(dev
, 0) == 1)
598 i8042_pnp_data_reg
= pnp_port_start(dev
,0);
600 if (pnp_port_valid(dev
, 1) && pnp_port_len(dev
, 1) == 1)
601 i8042_pnp_command_reg
= pnp_port_start(dev
, 1);
603 if (pnp_irq_valid(dev
, 0))
604 i8042_pnp_aux_irq
= pnp_irq(dev
, 0);
606 strlcpy(i8042_pnp_aux_name
, did
->id
, sizeof(i8042_pnp_aux_name
));
607 if (strlen(pnp_dev_name(dev
))) {
608 strlcat(i8042_pnp_aux_name
, ":", sizeof(i8042_pnp_aux_name
));
609 strlcat(i8042_pnp_aux_name
, pnp_dev_name(dev
), sizeof(i8042_pnp_aux_name
));
612 i8042_pnp_aux_devices
++;
616 static struct pnp_device_id pnp_kbd_devids
[] = {
617 { .id
= "PNP0303", .driver_data
= 0 },
618 { .id
= "PNP030b", .driver_data
= 0 },
622 static struct pnp_driver i8042_pnp_kbd_driver
= {
624 .id_table
= pnp_kbd_devids
,
625 .probe
= i8042_pnp_kbd_probe
,
628 static struct pnp_device_id pnp_aux_devids
[] = {
629 { .id
= "FJC6000", .driver_data
= 0 },
630 { .id
= "FJC6001", .driver_data
= 0 },
631 { .id
= "PNP0f03", .driver_data
= 0 },
632 { .id
= "PNP0f0b", .driver_data
= 0 },
633 { .id
= "PNP0f0e", .driver_data
= 0 },
634 { .id
= "PNP0f12", .driver_data
= 0 },
635 { .id
= "PNP0f13", .driver_data
= 0 },
636 { .id
= "PNP0f19", .driver_data
= 0 },
637 { .id
= "PNP0f1c", .driver_data
= 0 },
638 { .id
= "SYN0801", .driver_data
= 0 },
642 static struct pnp_driver i8042_pnp_aux_driver
= {
644 .id_table
= pnp_aux_devids
,
645 .probe
= i8042_pnp_aux_probe
,
648 static void i8042_pnp_exit(void)
650 if (i8042_pnp_kbd_registered
) {
651 i8042_pnp_kbd_registered
= false;
652 pnp_unregister_driver(&i8042_pnp_kbd_driver
);
655 if (i8042_pnp_aux_registered
) {
656 i8042_pnp_aux_registered
= false;
657 pnp_unregister_driver(&i8042_pnp_aux_driver
);
661 static int __init
i8042_pnp_init(void)
663 char kbd_irq_str
[4] = { 0 }, aux_irq_str
[4] = { 0 };
664 int pnp_data_busted
= false;
668 if (dmi_check_system(i8042_dmi_nopnp_table
))
673 printk(KERN_INFO
"i8042: PNP detection disabled\n");
677 err
= pnp_register_driver(&i8042_pnp_kbd_driver
);
679 i8042_pnp_kbd_registered
= true;
681 err
= pnp_register_driver(&i8042_pnp_aux_driver
);
683 i8042_pnp_aux_registered
= true;
685 if (!i8042_pnp_kbd_devices
&& !i8042_pnp_aux_devices
) {
687 #if defined(__ia64__)
690 printk(KERN_INFO
"PNP: No PS/2 controller found. Probing ports directly.\n");
695 if (i8042_pnp_kbd_devices
)
696 snprintf(kbd_irq_str
, sizeof(kbd_irq_str
),
697 "%d", i8042_pnp_kbd_irq
);
698 if (i8042_pnp_aux_devices
)
699 snprintf(aux_irq_str
, sizeof(aux_irq_str
),
700 "%d", i8042_pnp_aux_irq
);
702 printk(KERN_INFO
"PNP: PS/2 Controller [%s%s%s] at %#x,%#x irq %s%s%s\n",
703 i8042_pnp_kbd_name
, (i8042_pnp_kbd_devices
&& i8042_pnp_aux_devices
) ? "," : "",
705 i8042_pnp_data_reg
, i8042_pnp_command_reg
,
706 kbd_irq_str
, (i8042_pnp_kbd_devices
&& i8042_pnp_aux_devices
) ? "," : "",
709 #if defined(__ia64__)
710 if (!i8042_pnp_kbd_devices
)
712 if (!i8042_pnp_aux_devices
)
716 if (((i8042_pnp_data_reg
& ~0xf) == (i8042_data_reg
& ~0xf) &&
717 i8042_pnp_data_reg
!= i8042_data_reg
) ||
718 !i8042_pnp_data_reg
) {
720 "PNP: PS/2 controller has invalid data port %#x; "
721 "using default %#x\n",
722 i8042_pnp_data_reg
, i8042_data_reg
);
723 i8042_pnp_data_reg
= i8042_data_reg
;
724 pnp_data_busted
= true;
727 if (((i8042_pnp_command_reg
& ~0xf) == (i8042_command_reg
& ~0xf) &&
728 i8042_pnp_command_reg
!= i8042_command_reg
) ||
729 !i8042_pnp_command_reg
) {
731 "PNP: PS/2 controller has invalid command port %#x; "
732 "using default %#x\n",
733 i8042_pnp_command_reg
, i8042_command_reg
);
734 i8042_pnp_command_reg
= i8042_command_reg
;
735 pnp_data_busted
= true;
738 if (!i8042_nokbd
&& !i8042_pnp_kbd_irq
) {
740 "PNP: PS/2 controller doesn't have KBD irq; "
741 "using default %d\n", i8042_kbd_irq
);
742 i8042_pnp_kbd_irq
= i8042_kbd_irq
;
743 pnp_data_busted
= true;
746 if (!i8042_noaux
&& !i8042_pnp_aux_irq
) {
747 if (!pnp_data_busted
&& i8042_pnp_kbd_irq
) {
749 "PNP: PS/2 appears to have AUX port disabled, "
750 "if this is incorrect please boot with "
755 "PNP: PS/2 controller doesn't have AUX irq; "
756 "using default %d\n", i8042_aux_irq
);
757 i8042_pnp_aux_irq
= i8042_aux_irq
;
761 i8042_data_reg
= i8042_pnp_data_reg
;
762 i8042_command_reg
= i8042_pnp_command_reg
;
763 i8042_kbd_irq
= i8042_pnp_kbd_irq
;
764 i8042_aux_irq
= i8042_pnp_aux_irq
;
767 i8042_bypass_aux_irq_test
= !pnp_data_busted
&&
768 dmi_check_system(i8042_dmi_laptop_table
);
775 static inline int i8042_pnp_init(void) { return 0; }
776 static inline void i8042_pnp_exit(void) { }
779 static int __init
i8042_platform_init(void)
784 * On ix86 platforms touching the i8042 data register region can do really
785 * bad things. Because of this the region is always reserved on ix86 boxes.
787 * if (!request_region(I8042_DATA_REG, 16, "i8042"))
791 i8042_kbd_irq
= I8042_MAP_IRQ(1);
792 i8042_aux_irq
= I8042_MAP_IRQ(12);
794 retval
= i8042_pnp_init();
798 #if defined(__ia64__)
803 if (dmi_check_system(i8042_dmi_reset_table
))
806 if (dmi_check_system(i8042_dmi_noloop_table
))
809 if (dmi_check_system(i8042_dmi_nomux_table
))
812 if (dmi_check_system(i8042_dmi_dritek_table
))
814 #endif /* CONFIG_X86 */
819 static inline void i8042_platform_exit(void)
824 #endif /* _I8042_X86IA64IO_H */