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 const struct dmi_system_id __initconst i8042_dmi_noloop_table[] = {
73 * Arima-Rioworks HDAMB -
74 * AUX LOOP command does not raise AUX IRQ
77 DMI_MATCH(DMI_BOARD_VENDOR, "RIOWORKS"),
78 DMI_MATCH(DMI_BOARD_NAME, "HDAMB"),
79 DMI_MATCH(DMI_BOARD_VERSION, "Rev E"),
85 DMI_MATCH(DMI_BOARD_VENDOR, "ASUSTeK Computer Inc."),
86 DMI_MATCH(DMI_BOARD_NAME, "G1S"),
87 DMI_MATCH(DMI_BOARD_VERSION, "1.0"),
91 /* ASUS P65UP5 - AUX LOOP command does not raise AUX IRQ */
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"),
100 DMI_MATCH(DMI_SYS_VENDOR, "Compaq"),
101 DMI_MATCH(DMI_PRODUCT_NAME , "ProLiant"),
102 DMI_MATCH(DMI_PRODUCT_VERSION, "8500"),
107 DMI_MATCH(DMI_SYS_VENDOR, "Compaq"),
108 DMI_MATCH(DMI_PRODUCT_NAME , "ProLiant"),
109 DMI_MATCH(DMI_PRODUCT_VERSION, "DL760"),
115 DMI_MATCH(DMI_SYS_VENDOR, "OQO"),
116 DMI_MATCH(DMI_PRODUCT_NAME, "ZEPTO"),
117 DMI_MATCH(DMI_PRODUCT_VERSION, "00"),
121 /* ULI EV4873 - AUX LOOP does not work properly */
123 DMI_MATCH(DMI_SYS_VENDOR, "ULI"),
124 DMI_MATCH(DMI_PRODUCT_NAME, "EV4873"),
125 DMI_MATCH(DMI_PRODUCT_VERSION, "5a"),
129 /* Microsoft Virtual Machine */
131 DMI_MATCH(DMI_SYS_VENDOR, "Microsoft Corporation"),
132 DMI_MATCH(DMI_PRODUCT_NAME, "Virtual Machine"),
133 DMI_MATCH(DMI_PRODUCT_VERSION, "VS2005R2"),
137 /* Medion MAM 2070 */
139 DMI_MATCH(DMI_SYS_VENDOR, "Notebook"),
140 DMI_MATCH(DMI_PRODUCT_NAME, "MAM 2070"),
141 DMI_MATCH(DMI_PRODUCT_VERSION, "5a"),
147 DMI_MATCH(DMI_SYS_VENDOR, "blue"),
148 DMI_MATCH(DMI_PRODUCT_NAME, "FB5601"),
149 DMI_MATCH(DMI_PRODUCT_VERSION, "M606"),
155 DMI_MATCH(DMI_SYS_VENDOR, "GIGABYTE"),
156 DMI_MATCH(DMI_PRODUCT_NAME, "M912"),
157 DMI_MATCH(DMI_PRODUCT_VERSION, "01"),
161 /* Gigabyte M1022M netbook */
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"),
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"),
179 * Some Fujitsu notebooks are having trouble with touchpads if
180 * active multiplexing mode is activated. Luckily they don't have
181 * external PS/2 ports so we can safely disable it.
182 * ... apparently some Toshibas don't like MUX mode either and
183 * die horrible death on reboot.
185 static const struct dmi_system_id __initconst i8042_dmi_nomux_table[] = {
187 /* Fujitsu Lifebook P7010/P7010D */
189 DMI_MATCH(DMI_SYS_VENDOR, "FUJITSU"),
190 DMI_MATCH(DMI_PRODUCT_NAME, "P7010"),
194 /* Fujitsu Lifebook P7010 */
196 DMI_MATCH(DMI_SYS_VENDOR, "FUJITSU SIEMENS"),
197 DMI_MATCH(DMI_PRODUCT_NAME, "0000000000"),
201 /* Fujitsu Lifebook P5020D */
203 DMI_MATCH(DMI_SYS_VENDOR, "FUJITSU"),
204 DMI_MATCH(DMI_PRODUCT_NAME, "LifeBook P Series"),
208 /* Fujitsu Lifebook S2000 */
210 DMI_MATCH(DMI_SYS_VENDOR, "FUJITSU"),
211 DMI_MATCH(DMI_PRODUCT_NAME, "LifeBook S Series"),
215 /* Fujitsu Lifebook S6230 */
217 DMI_MATCH(DMI_SYS_VENDOR, "FUJITSU"),
218 DMI_MATCH(DMI_PRODUCT_NAME, "LifeBook S6230"),
224 DMI_MATCH(DMI_SYS_VENDOR, "FUJITSU"),
225 DMI_MATCH(DMI_PRODUCT_NAME, "FMVLT70H"),
229 /* Fujitsu-Siemens Lifebook T3010 */
231 DMI_MATCH(DMI_SYS_VENDOR, "FUJITSU SIEMENS"),
232 DMI_MATCH(DMI_PRODUCT_NAME, "LIFEBOOK T3010"),
236 /* Fujitsu-Siemens Lifebook E4010 */
238 DMI_MATCH(DMI_SYS_VENDOR, "FUJITSU SIEMENS"),
239 DMI_MATCH(DMI_PRODUCT_NAME, "LIFEBOOK E4010"),
243 /* Fujitsu-Siemens Amilo Pro 2010 */
245 DMI_MATCH(DMI_SYS_VENDOR, "FUJITSU SIEMENS"),
246 DMI_MATCH(DMI_PRODUCT_NAME, "AMILO Pro V2010"),
250 /* Fujitsu-Siemens Amilo Pro 2030 */
252 DMI_MATCH(DMI_SYS_VENDOR, "FUJITSU SIEMENS"),
253 DMI_MATCH(DMI_PRODUCT_NAME, "AMILO PRO V2030"),
258 * No data is coming from the touchscreen unless KBC
261 /* Panasonic CF-29 */
263 DMI_MATCH(DMI_SYS_VENDOR, "Matsushita"),
264 DMI_MATCH(DMI_PRODUCT_NAME, "CF-29"),
269 * HP Pavilion DV4017EA -
270 * errors on MUX ports are reported without raising AUXDATA
271 * causing "spurious NAK" messages.
274 DMI_MATCH(DMI_SYS_VENDOR, "Hewlett-Packard"),
275 DMI_MATCH(DMI_PRODUCT_NAME, "Pavilion dv4000 (EA032EA#ABF)"),
280 * HP Pavilion ZT1000 -
281 * like DV4017EA does not raise AUXERR for errors on MUX ports.
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"),
291 * HP Pavilion DV4270ca -
292 * like DV4017EA does not raise AUXERR for errors on MUX ports.
295 DMI_MATCH(DMI_SYS_VENDOR, "Hewlett-Packard"),
296 DMI_MATCH(DMI_PRODUCT_NAME, "Pavilion dv4000 (EH476UA#ABL)"),
301 DMI_MATCH(DMI_SYS_VENDOR, "TOSHIBA"),
302 DMI_MATCH(DMI_PRODUCT_NAME, "Satellite P10"),
307 DMI_MATCH(DMI_SYS_VENDOR, "TOSHIBA"),
308 DMI_MATCH(DMI_PRODUCT_NAME, "EQUIUM A110"),
313 DMI_MATCH(DMI_SYS_VENDOR, "ALIENWARE"),
314 DMI_MATCH(DMI_PRODUCT_NAME, "Sentia"),
318 /* Sharp Actius MM20 */
320 DMI_MATCH(DMI_SYS_VENDOR, "SHARP"),
321 DMI_MATCH(DMI_PRODUCT_NAME, "PC-MM20 Series"),
325 /* Sony Vaio FS-115b */
327 DMI_MATCH(DMI_SYS_VENDOR, "Sony Corporation"),
328 DMI_MATCH(DMI_PRODUCT_NAME, "VGN-FS115B"),
333 * Sony Vaio FZ-240E -
334 * reset and GET ID commands issued via KBD port are
335 * sometimes being delivered to AUX3.
338 DMI_MATCH(DMI_SYS_VENDOR, "Sony Corporation"),
339 DMI_MATCH(DMI_PRODUCT_NAME, "VGN-FZ240E"),
345 DMI_MATCH(DMI_SYS_VENDOR, "Amoi Electronics CO.,LTD."),
346 DMI_MATCH(DMI_PRODUCT_NAME, "M636/A737 platform"),
350 /* Lenovo 3000 n100 */
352 DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
353 DMI_MATCH(DMI_PRODUCT_NAME, "076804U"),
358 DMI_MATCH(DMI_SYS_VENDOR, "Acer"),
359 DMI_MATCH(DMI_PRODUCT_NAME, "Aspire 1360"),
363 /* Gericom Bellagio */
365 DMI_MATCH(DMI_SYS_VENDOR, "Gericom"),
366 DMI_MATCH(DMI_PRODUCT_NAME, "N34AS6"),
372 DMI_MATCH(DMI_SYS_VENDOR, "IBM"),
373 DMI_MATCH(DMI_PRODUCT_NAME, "2656"),
379 DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
380 DMI_MATCH(DMI_PRODUCT_NAME, "XPS M1530"),
386 DMI_MATCH(DMI_SYS_VENDOR, "COMPAL"),
387 DMI_MATCH(DMI_PRODUCT_NAME, "HEL80I"),
391 /* Dell Vostro 1510 */
393 DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
394 DMI_MATCH(DMI_PRODUCT_NAME, "Vostro1510"),
398 /* Acer Aspire 5536 */
400 DMI_MATCH(DMI_SYS_VENDOR, "Acer"),
401 DMI_MATCH(DMI_PRODUCT_NAME, "Aspire 5536"),
402 DMI_MATCH(DMI_PRODUCT_VERSION, "0100"),
408 static const struct dmi_system_id __initconst i8042_dmi_reset_table[] = {
412 DMI_MATCH(DMI_BOARD_NAME, "U-100"),
413 DMI_MATCH(DMI_BOARD_VENDOR, "MICRO-STAR INTERNATIONAL CO., LTD"),
417 /* LG Electronics X110 */
419 DMI_MATCH(DMI_BOARD_NAME, "X110"),
420 DMI_MATCH(DMI_BOARD_VENDOR, "LG Electronics Inc."),
424 /* Acer Aspire One 150 */
426 DMI_MATCH(DMI_SYS_VENDOR, "Acer"),
427 DMI_MATCH(DMI_PRODUCT_NAME, "AOA150"),
433 DMI_MATCH(DMI_SYS_VENDOR, "DIXONSXP"),
434 DMI_MATCH(DMI_PRODUCT_NAME, "Advent 4211"),
438 /* Medion Akoya Mini E1210 */
440 DMI_MATCH(DMI_SYS_VENDOR, "MEDION"),
441 DMI_MATCH(DMI_PRODUCT_NAME, "E1210"),
447 DMI_MATCH(DMI_SYS_VENDOR, "VIOOO"),
448 DMI_MATCH(DMI_PRODUCT_NAME, "N10"),
452 /* Dell Vostro 1320 */
454 DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
455 DMI_MATCH(DMI_PRODUCT_NAME, "Vostro 1320"),
459 /* Dell Vostro 1520 */
461 DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
462 DMI_MATCH(DMI_PRODUCT_NAME, "Vostro 1520"),
466 /* Dell Vostro 1720 */
468 DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
469 DMI_MATCH(DMI_PRODUCT_NAME, "Vostro 1720"),
476 static const struct dmi_system_id __initconst i8042_dmi_nopnp_table[] = {
478 /* Intel MBO Desktop D845PESV */
480 DMI_MATCH(DMI_BOARD_NAME, "D845PESV"),
481 DMI_MATCH(DMI_BOARD_VENDOR, "Intel Corporation"),
487 DMI_MATCH(DMI_BOARD_NAME, "U-100"),
488 DMI_MATCH(DMI_BOARD_VENDOR, "MICRO-STAR INTERNATIONAL CO., LTD"),
494 static const struct dmi_system_id __initconst i8042_dmi_laptop_table[] = {
497 DMI_MATCH(DMI_CHASSIS_TYPE, "8"), /* Portable */
502 DMI_MATCH(DMI_CHASSIS_TYPE, "9"), /* Laptop */
507 DMI_MATCH(DMI_CHASSIS_TYPE, "10"), /* Notebook */
512 DMI_MATCH(DMI_CHASSIS_TYPE, "14"), /* Sub-Notebook */
520 * Some Wistron based laptops need us to explicitly enable the 'Dritek
521 * keyboard extension' to make their extra keys start generating scancodes.
522 * Originally, this was just confined to older laptops, but a few Acer laptops
523 * have turned up in 2007 that also need this again.
525 static const struct dmi_system_id __initconst i8042_dmi_dritek_table[] = {
527 /* Acer Aspire 5630 */
529 DMI_MATCH(DMI_SYS_VENDOR, "Acer"),
530 DMI_MATCH(DMI_PRODUCT_NAME, "Aspire 5630"),
534 /* Acer Aspire 5650 */
536 DMI_MATCH(DMI_SYS_VENDOR, "Acer"),
537 DMI_MATCH(DMI_PRODUCT_NAME, "Aspire 5650"),
541 /* Acer Aspire 5680 */
543 DMI_MATCH(DMI_SYS_VENDOR, "Acer"),
544 DMI_MATCH(DMI_PRODUCT_NAME, "Aspire 5680"),
548 /* Acer Aspire 5720 */
550 DMI_MATCH(DMI_SYS_VENDOR, "Acer"),
551 DMI_MATCH(DMI_PRODUCT_NAME, "Aspire 5720"),
555 /* Acer Aspire 9110 */
557 DMI_MATCH(DMI_SYS_VENDOR, "Acer"),
558 DMI_MATCH(DMI_PRODUCT_NAME, "Aspire 9110"),
562 /* Acer TravelMate 660 */
564 DMI_MATCH(DMI_SYS_VENDOR, "Acer"),
565 DMI_MATCH(DMI_PRODUCT_NAME, "TravelMate 660"),
569 /* Acer TravelMate 2490 */
571 DMI_MATCH(DMI_SYS_VENDOR, "Acer"),
572 DMI_MATCH(DMI_PRODUCT_NAME, "TravelMate 2490"),
576 /* Acer TravelMate 4280 */
578 DMI_MATCH(DMI_SYS_VENDOR, "Acer"),
579 DMI_MATCH(DMI_PRODUCT_NAME, "TravelMate 4280"),
585 #endif /* CONFIG_X86 */
588 #include <linux/pnp.h>
590 static bool i8042_pnp_kbd_registered;
591 static unsigned int i8042_pnp_kbd_devices;
592 static bool i8042_pnp_aux_registered;
593 static unsigned int i8042_pnp_aux_devices;
595 static int i8042_pnp_command_reg;
596 static int i8042_pnp_data_reg;
597 static int i8042_pnp_kbd_irq;
598 static int i8042_pnp_aux_irq;
600 static char i8042_pnp_kbd_name[32];
601 static char i8042_pnp_aux_name[32];
603 static int i8042_pnp_kbd_probe(struct pnp_dev *dev, const struct pnp_device_id *did)
605 if (pnp_port_valid(dev, 0) && pnp_port_len(dev, 0) == 1)
606 i8042_pnp_data_reg = pnp_port_start(dev,0);
608 if (pnp_port_valid(dev, 1) && pnp_port_len(dev, 1) == 1)
609 i8042_pnp_command_reg = pnp_port_start(dev, 1);
611 if (pnp_irq_valid(dev,0))
612 i8042_pnp_kbd_irq = pnp_irq(dev, 0);
614 strlcpy(i8042_pnp_kbd_name, did->id, sizeof(i8042_pnp_kbd_name));
615 if (strlen(pnp_dev_name(dev))) {
616 strlcat(i8042_pnp_kbd_name, ":", sizeof(i8042_pnp_kbd_name));
617 strlcat(i8042_pnp_kbd_name, pnp_dev_name(dev), sizeof(i8042_pnp_kbd_name));
620 i8042_pnp_kbd_devices++;
624 static int i8042_pnp_aux_probe(struct pnp_dev *dev, const struct pnp_device_id *did)
626 if (pnp_port_valid(dev, 0) && pnp_port_len(dev, 0) == 1)
627 i8042_pnp_data_reg = pnp_port_start(dev,0);
629 if (pnp_port_valid(dev, 1) && pnp_port_len(dev, 1) == 1)
630 i8042_pnp_command_reg = pnp_port_start(dev, 1);
632 if (pnp_irq_valid(dev, 0))
633 i8042_pnp_aux_irq = pnp_irq(dev, 0);
635 strlcpy(i8042_pnp_aux_name, did->id, sizeof(i8042_pnp_aux_name));
636 if (strlen(pnp_dev_name(dev))) {
637 strlcat(i8042_pnp_aux_name, ":", sizeof(i8042_pnp_aux_name));
638 strlcat(i8042_pnp_aux_name, pnp_dev_name(dev), sizeof(i8042_pnp_aux_name));
641 i8042_pnp_aux_devices++;
645 static struct pnp_device_id pnp_kbd_devids[] = {
646 { .id = "PNP0303", .driver_data = 0 },
647 { .id = "PNP030b", .driver_data = 0 },
651 static struct pnp_driver i8042_pnp_kbd_driver = {
653 .id_table = pnp_kbd_devids,
654 .probe = i8042_pnp_kbd_probe,
657 static struct pnp_device_id pnp_aux_devids[] = {
658 { .id = "FJC6000", .driver_data = 0 },
659 { .id = "FJC6001", .driver_data = 0 },
660 { .id = "PNP0f03", .driver_data = 0 },
661 { .id = "PNP0f0b", .driver_data = 0 },
662 { .id = "PNP0f0e", .driver_data = 0 },
663 { .id = "PNP0f12", .driver_data = 0 },
664 { .id = "PNP0f13", .driver_data = 0 },
665 { .id = "PNP0f19", .driver_data = 0 },
666 { .id = "PNP0f1c", .driver_data = 0 },
667 { .id = "SYN0801", .driver_data = 0 },
671 static struct pnp_driver i8042_pnp_aux_driver = {
673 .id_table = pnp_aux_devids,
674 .probe = i8042_pnp_aux_probe,
677 static void i8042_pnp_exit(void)
679 if (i8042_pnp_kbd_registered) {
680 i8042_pnp_kbd_registered = false;
681 pnp_unregister_driver(&i8042_pnp_kbd_driver);
684 if (i8042_pnp_aux_registered) {
685 i8042_pnp_aux_registered = false;
686 pnp_unregister_driver(&i8042_pnp_aux_driver);
690 static int __init i8042_pnp_init(void)
692 char kbd_irq_str[4] = { 0 }, aux_irq_str[4] = { 0 };
693 bool pnp_data_busted = false;
697 if (dmi_check_system(i8042_dmi_nopnp_table))
702 printk(KERN_INFO "i8042: PNP detection disabled\n");
706 err = pnp_register_driver(&i8042_pnp_kbd_driver);
708 i8042_pnp_kbd_registered = true;
710 err = pnp_register_driver(&i8042_pnp_aux_driver);
712 i8042_pnp_aux_registered = true;
714 if (!i8042_pnp_kbd_devices && !i8042_pnp_aux_devices) {
716 #if defined(__ia64__)
719 printk(KERN_INFO "PNP: No PS/2 controller found. Probing ports directly.\n");
724 if (i8042_pnp_kbd_devices)
725 snprintf(kbd_irq_str, sizeof(kbd_irq_str),
726 "%d", i8042_pnp_kbd_irq);
727 if (i8042_pnp_aux_devices)
728 snprintf(aux_irq_str, sizeof(aux_irq_str),
729 "%d", i8042_pnp_aux_irq);
731 printk(KERN_INFO "PNP: PS/2 Controller [%s%s%s] at %#x,%#x irq %s%s%s\n",
732 i8042_pnp_kbd_name, (i8042_pnp_kbd_devices && i8042_pnp_aux_devices) ? "," : "",
734 i8042_pnp_data_reg, i8042_pnp_command_reg,
735 kbd_irq_str, (i8042_pnp_kbd_devices && i8042_pnp_aux_devices) ? "," : "",
738 #if defined(__ia64__)
739 if (!i8042_pnp_kbd_devices)
741 if (!i8042_pnp_aux_devices)
745 if (((i8042_pnp_data_reg & ~0xf) == (i8042_data_reg & ~0xf) &&
746 i8042_pnp_data_reg != i8042_data_reg) ||
747 !i8042_pnp_data_reg) {
749 "PNP: PS/2 controller has invalid data port %#x; "
750 "using default %#x\n",
751 i8042_pnp_data_reg, i8042_data_reg);
752 i8042_pnp_data_reg = i8042_data_reg;
753 pnp_data_busted = true;
756 if (((i8042_pnp_command_reg & ~0xf) == (i8042_command_reg & ~0xf) &&
757 i8042_pnp_command_reg != i8042_command_reg) ||
758 !i8042_pnp_command_reg) {
760 "PNP: PS/2 controller has invalid command port %#x; "
761 "using default %#x\n",
762 i8042_pnp_command_reg, i8042_command_reg);
763 i8042_pnp_command_reg = i8042_command_reg;
764 pnp_data_busted = true;
767 if (!i8042_nokbd && !i8042_pnp_kbd_irq) {
769 "PNP: PS/2 controller doesn't have KBD irq; "
770 "using default %d\n", i8042_kbd_irq);
771 i8042_pnp_kbd_irq = i8042_kbd_irq;
772 pnp_data_busted = true;
775 if (!i8042_noaux && !i8042_pnp_aux_irq) {
776 if (!pnp_data_busted && i8042_pnp_kbd_irq) {
778 "PNP: PS/2 appears to have AUX port disabled, "
779 "if this is incorrect please boot with "
784 "PNP: PS/2 controller doesn't have AUX irq; "
785 "using default %d\n", i8042_aux_irq);
786 i8042_pnp_aux_irq = i8042_aux_irq;
790 i8042_data_reg = i8042_pnp_data_reg;
791 i8042_command_reg = i8042_pnp_command_reg;
792 i8042_kbd_irq = i8042_pnp_kbd_irq;
793 i8042_aux_irq = i8042_pnp_aux_irq;
796 i8042_bypass_aux_irq_test = !pnp_data_busted &&
797 dmi_check_system(i8042_dmi_laptop_table);
804 static inline int i8042_pnp_init(void) { return 0; }
805 static inline void i8042_pnp_exit(void) { }
808 static int __init i8042_platform_init(void)
813 * On ix86 platforms touching the i8042 data register region can do really
814 * bad things. Because of this the region is always reserved on ix86 boxes.
816 * if (!request_region(I8042_DATA_REG, 16, "i8042"))
820 i8042_kbd_irq = I8042_MAP_IRQ(1);
821 i8042_aux_irq = I8042_MAP_IRQ(12);
823 retval = i8042_pnp_init();
827 #if defined(__ia64__)
832 if (dmi_check_system(i8042_dmi_reset_table))
835 if (dmi_check_system(i8042_dmi_noloop_table))
838 if (dmi_check_system(i8042_dmi_nomux_table))
841 if (dmi_check_system(i8042_dmi_dritek_table))
843 #endif /* CONFIG_X86 */
848 static inline void i8042_platform_exit(void)
853 #endif /* _I8042_X86IA64IO_H */