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"),
162 DMI_MATCH(DMI_SYS_VENDOR, "Hewlett-Packard"),
163 DMI_MATCH(DMI_PRODUCT_NAME, "HP Pavilion dv9700"),
164 DMI_MATCH(DMI_PRODUCT_VERSION, "Rev 1"),
171 * Some Fujitsu notebooks are having trouble with touchpads if
172 * active multiplexing mode is activated. Luckily they don't have
173 * external PS/2 ports so we can safely disable it.
174 * ... apparently some Toshibas don't like MUX mode either and
175 * die horrible death on reboot.
177 static const struct dmi_system_id __initconst i8042_dmi_nomux_table[] = {
179 /* Fujitsu Lifebook P7010/P7010D */
181 DMI_MATCH(DMI_SYS_VENDOR, "FUJITSU"),
182 DMI_MATCH(DMI_PRODUCT_NAME, "P7010"),
186 /* Fujitsu Lifebook P7010 */
188 DMI_MATCH(DMI_SYS_VENDOR, "FUJITSU SIEMENS"),
189 DMI_MATCH(DMI_PRODUCT_NAME, "0000000000"),
193 /* Fujitsu Lifebook P5020D */
195 DMI_MATCH(DMI_SYS_VENDOR, "FUJITSU"),
196 DMI_MATCH(DMI_PRODUCT_NAME, "LifeBook P Series"),
200 /* Fujitsu Lifebook S2000 */
202 DMI_MATCH(DMI_SYS_VENDOR, "FUJITSU"),
203 DMI_MATCH(DMI_PRODUCT_NAME, "LifeBook S Series"),
207 /* Fujitsu Lifebook S6230 */
209 DMI_MATCH(DMI_SYS_VENDOR, "FUJITSU"),
210 DMI_MATCH(DMI_PRODUCT_NAME, "LifeBook S6230"),
216 DMI_MATCH(DMI_SYS_VENDOR, "FUJITSU"),
217 DMI_MATCH(DMI_PRODUCT_NAME, "FMVLT70H"),
221 /* Fujitsu-Siemens Lifebook T3010 */
223 DMI_MATCH(DMI_SYS_VENDOR, "FUJITSU SIEMENS"),
224 DMI_MATCH(DMI_PRODUCT_NAME, "LIFEBOOK T3010"),
228 /* Fujitsu-Siemens Lifebook E4010 */
230 DMI_MATCH(DMI_SYS_VENDOR, "FUJITSU SIEMENS"),
231 DMI_MATCH(DMI_PRODUCT_NAME, "LIFEBOOK E4010"),
235 /* Fujitsu-Siemens Amilo Pro 2010 */
237 DMI_MATCH(DMI_SYS_VENDOR, "FUJITSU SIEMENS"),
238 DMI_MATCH(DMI_PRODUCT_NAME, "AMILO Pro V2010"),
242 /* Fujitsu-Siemens Amilo Pro 2030 */
244 DMI_MATCH(DMI_SYS_VENDOR, "FUJITSU SIEMENS"),
245 DMI_MATCH(DMI_PRODUCT_NAME, "AMILO PRO V2030"),
250 * No data is coming from the touchscreen unless KBC
253 /* Panasonic CF-29 */
255 DMI_MATCH(DMI_SYS_VENDOR, "Matsushita"),
256 DMI_MATCH(DMI_PRODUCT_NAME, "CF-29"),
261 * HP Pavilion DV4017EA -
262 * errors on MUX ports are reported without raising AUXDATA
263 * causing "spurious NAK" messages.
266 DMI_MATCH(DMI_SYS_VENDOR, "Hewlett-Packard"),
267 DMI_MATCH(DMI_PRODUCT_NAME, "Pavilion dv4000 (EA032EA#ABF)"),
272 * HP Pavilion ZT1000 -
273 * like DV4017EA does not raise AUXERR for errors on MUX ports.
276 DMI_MATCH(DMI_SYS_VENDOR, "Hewlett-Packard"),
277 DMI_MATCH(DMI_PRODUCT_NAME, "HP Pavilion Notebook PC"),
278 DMI_MATCH(DMI_PRODUCT_VERSION, "HP Pavilion Notebook ZT1000"),
283 * HP Pavilion DV4270ca -
284 * like DV4017EA does not raise AUXERR for errors on MUX ports.
287 DMI_MATCH(DMI_SYS_VENDOR, "Hewlett-Packard"),
288 DMI_MATCH(DMI_PRODUCT_NAME, "Pavilion dv4000 (EH476UA#ABL)"),
293 DMI_MATCH(DMI_SYS_VENDOR, "TOSHIBA"),
294 DMI_MATCH(DMI_PRODUCT_NAME, "Satellite P10"),
299 DMI_MATCH(DMI_SYS_VENDOR, "TOSHIBA"),
300 DMI_MATCH(DMI_PRODUCT_NAME, "EQUIUM A110"),
305 DMI_MATCH(DMI_SYS_VENDOR, "ALIENWARE"),
306 DMI_MATCH(DMI_PRODUCT_NAME, "Sentia"),
310 /* Sharp Actius MM20 */
312 DMI_MATCH(DMI_SYS_VENDOR, "SHARP"),
313 DMI_MATCH(DMI_PRODUCT_NAME, "PC-MM20 Series"),
317 /* Sony Vaio FS-115b */
319 DMI_MATCH(DMI_SYS_VENDOR, "Sony Corporation"),
320 DMI_MATCH(DMI_PRODUCT_NAME, "VGN-FS115B"),
325 * Sony Vaio FZ-240E -
326 * reset and GET ID commands issued via KBD port are
327 * sometimes being delivered to AUX3.
330 DMI_MATCH(DMI_SYS_VENDOR, "Sony Corporation"),
331 DMI_MATCH(DMI_PRODUCT_NAME, "VGN-FZ240E"),
337 DMI_MATCH(DMI_SYS_VENDOR, "Amoi Electronics CO.,LTD."),
338 DMI_MATCH(DMI_PRODUCT_NAME, "M636/A737 platform"),
342 /* Lenovo 3000 n100 */
344 DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
345 DMI_MATCH(DMI_PRODUCT_NAME, "076804U"),
350 DMI_MATCH(DMI_SYS_VENDOR, "Acer"),
351 DMI_MATCH(DMI_PRODUCT_NAME, "Aspire 1360"),
355 /* Gericom Bellagio */
357 DMI_MATCH(DMI_SYS_VENDOR, "Gericom"),
358 DMI_MATCH(DMI_PRODUCT_NAME, "N34AS6"),
364 DMI_MATCH(DMI_SYS_VENDOR, "IBM"),
365 DMI_MATCH(DMI_PRODUCT_NAME, "2656"),
371 DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
372 DMI_MATCH(DMI_PRODUCT_NAME, "XPS M1530"),
378 DMI_MATCH(DMI_SYS_VENDOR, "COMPAL"),
379 DMI_MATCH(DMI_PRODUCT_NAME, "HEL80I"),
383 /* Dell Vostro 1510 */
385 DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
386 DMI_MATCH(DMI_PRODUCT_NAME, "Vostro1510"),
390 /* Acer Aspire 5536 */
392 DMI_MATCH(DMI_SYS_VENDOR, "Acer"),
393 DMI_MATCH(DMI_PRODUCT_NAME, "Aspire 5536"),
394 DMI_MATCH(DMI_PRODUCT_VERSION, "0100"),
400 static const struct dmi_system_id __initconst i8042_dmi_reset_table[] = {
404 DMI_MATCH(DMI_BOARD_NAME, "U-100"),
405 DMI_MATCH(DMI_BOARD_VENDOR, "MICRO-STAR INTERNATIONAL CO., LTD"),
409 /* LG Electronics X110 */
411 DMI_MATCH(DMI_BOARD_NAME, "X110"),
412 DMI_MATCH(DMI_BOARD_VENDOR, "LG Electronics Inc."),
416 /* Acer Aspire One 150 */
418 DMI_MATCH(DMI_SYS_VENDOR, "Acer"),
419 DMI_MATCH(DMI_PRODUCT_NAME, "AOA150"),
425 DMI_MATCH(DMI_SYS_VENDOR, "DIXONSXP"),
426 DMI_MATCH(DMI_PRODUCT_NAME, "Advent 4211"),
430 /* Medion Akoya Mini E1210 */
432 DMI_MATCH(DMI_SYS_VENDOR, "MEDION"),
433 DMI_MATCH(DMI_PRODUCT_NAME, "E1210"),
439 DMI_MATCH(DMI_SYS_VENDOR, "VIOOO"),
440 DMI_MATCH(DMI_PRODUCT_NAME, "N10"),
444 /* Dell Vostro 1320 */
446 DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
447 DMI_MATCH(DMI_PRODUCT_NAME, "Vostro 1320"),
451 /* Dell Vostro 1520 */
453 DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
454 DMI_MATCH(DMI_PRODUCT_NAME, "Vostro 1520"),
458 /* Dell Vostro 1720 */
460 DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
461 DMI_MATCH(DMI_PRODUCT_NAME, "Vostro 1720"),
468 static const struct dmi_system_id __initconst i8042_dmi_nopnp_table[] = {
470 /* Intel MBO Desktop D845PESV */
472 DMI_MATCH(DMI_BOARD_NAME, "D845PESV"),
473 DMI_MATCH(DMI_BOARD_VENDOR, "Intel Corporation"),
479 DMI_MATCH(DMI_BOARD_NAME, "U-100"),
480 DMI_MATCH(DMI_BOARD_VENDOR, "MICRO-STAR INTERNATIONAL CO., LTD"),
486 static const struct dmi_system_id __initconst i8042_dmi_laptop_table[] = {
489 DMI_MATCH(DMI_CHASSIS_TYPE, "8"), /* Portable */
494 DMI_MATCH(DMI_CHASSIS_TYPE, "9"), /* Laptop */
499 DMI_MATCH(DMI_CHASSIS_TYPE, "10"), /* Notebook */
504 DMI_MATCH(DMI_CHASSIS_TYPE, "14"), /* Sub-Notebook */
512 * Some Wistron based laptops need us to explicitly enable the 'Dritek
513 * keyboard extension' to make their extra keys start generating scancodes.
514 * Originally, this was just confined to older laptops, but a few Acer laptops
515 * have turned up in 2007 that also need this again.
517 static const struct dmi_system_id __initconst i8042_dmi_dritek_table[] = {
519 /* Acer Aspire 5630 */
521 DMI_MATCH(DMI_SYS_VENDOR, "Acer"),
522 DMI_MATCH(DMI_PRODUCT_NAME, "Aspire 5630"),
526 /* Acer Aspire 5650 */
528 DMI_MATCH(DMI_SYS_VENDOR, "Acer"),
529 DMI_MATCH(DMI_PRODUCT_NAME, "Aspire 5650"),
533 /* Acer Aspire 5680 */
535 DMI_MATCH(DMI_SYS_VENDOR, "Acer"),
536 DMI_MATCH(DMI_PRODUCT_NAME, "Aspire 5680"),
540 /* Acer Aspire 5720 */
542 DMI_MATCH(DMI_SYS_VENDOR, "Acer"),
543 DMI_MATCH(DMI_PRODUCT_NAME, "Aspire 5720"),
547 /* Acer Aspire 9110 */
549 DMI_MATCH(DMI_SYS_VENDOR, "Acer"),
550 DMI_MATCH(DMI_PRODUCT_NAME, "Aspire 9110"),
554 /* Acer TravelMate 660 */
556 DMI_MATCH(DMI_SYS_VENDOR, "Acer"),
557 DMI_MATCH(DMI_PRODUCT_NAME, "TravelMate 660"),
561 /* Acer TravelMate 2490 */
563 DMI_MATCH(DMI_SYS_VENDOR, "Acer"),
564 DMI_MATCH(DMI_PRODUCT_NAME, "TravelMate 2490"),
568 /* Acer TravelMate 4280 */
570 DMI_MATCH(DMI_SYS_VENDOR, "Acer"),
571 DMI_MATCH(DMI_PRODUCT_NAME, "TravelMate 4280"),
577 #endif /* CONFIG_X86 */
580 #include <linux/pnp.h>
582 static bool i8042_pnp_kbd_registered;
583 static unsigned int i8042_pnp_kbd_devices;
584 static bool i8042_pnp_aux_registered;
585 static unsigned int i8042_pnp_aux_devices;
587 static int i8042_pnp_command_reg;
588 static int i8042_pnp_data_reg;
589 static int i8042_pnp_kbd_irq;
590 static int i8042_pnp_aux_irq;
592 static char i8042_pnp_kbd_name[32];
593 static char i8042_pnp_aux_name[32];
595 static int i8042_pnp_kbd_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_kbd_irq = pnp_irq(dev, 0);
606 strlcpy(i8042_pnp_kbd_name, did->id, sizeof(i8042_pnp_kbd_name));
607 if (strlen(pnp_dev_name(dev))) {
608 strlcat(i8042_pnp_kbd_name, ":", sizeof(i8042_pnp_kbd_name));
609 strlcat(i8042_pnp_kbd_name, pnp_dev_name(dev), sizeof(i8042_pnp_kbd_name));
612 i8042_pnp_kbd_devices++;
616 static int i8042_pnp_aux_probe(struct pnp_dev *dev, const struct pnp_device_id *did)
618 if (pnp_port_valid(dev, 0) && pnp_port_len(dev, 0) == 1)
619 i8042_pnp_data_reg = pnp_port_start(dev,0);
621 if (pnp_port_valid(dev, 1) && pnp_port_len(dev, 1) == 1)
622 i8042_pnp_command_reg = pnp_port_start(dev, 1);
624 if (pnp_irq_valid(dev, 0))
625 i8042_pnp_aux_irq = pnp_irq(dev, 0);
627 strlcpy(i8042_pnp_aux_name, did->id, sizeof(i8042_pnp_aux_name));
628 if (strlen(pnp_dev_name(dev))) {
629 strlcat(i8042_pnp_aux_name, ":", sizeof(i8042_pnp_aux_name));
630 strlcat(i8042_pnp_aux_name, pnp_dev_name(dev), sizeof(i8042_pnp_aux_name));
633 i8042_pnp_aux_devices++;
637 static struct pnp_device_id pnp_kbd_devids[] = {
638 { .id = "PNP0303", .driver_data = 0 },
639 { .id = "PNP030b", .driver_data = 0 },
643 static struct pnp_driver i8042_pnp_kbd_driver = {
645 .id_table = pnp_kbd_devids,
646 .probe = i8042_pnp_kbd_probe,
649 static struct pnp_device_id pnp_aux_devids[] = {
650 { .id = "FJC6000", .driver_data = 0 },
651 { .id = "FJC6001", .driver_data = 0 },
652 { .id = "PNP0f03", .driver_data = 0 },
653 { .id = "PNP0f0b", .driver_data = 0 },
654 { .id = "PNP0f0e", .driver_data = 0 },
655 { .id = "PNP0f12", .driver_data = 0 },
656 { .id = "PNP0f13", .driver_data = 0 },
657 { .id = "PNP0f19", .driver_data = 0 },
658 { .id = "PNP0f1c", .driver_data = 0 },
659 { .id = "SYN0801", .driver_data = 0 },
663 static struct pnp_driver i8042_pnp_aux_driver = {
665 .id_table = pnp_aux_devids,
666 .probe = i8042_pnp_aux_probe,
669 static void i8042_pnp_exit(void)
671 if (i8042_pnp_kbd_registered) {
672 i8042_pnp_kbd_registered = false;
673 pnp_unregister_driver(&i8042_pnp_kbd_driver);
676 if (i8042_pnp_aux_registered) {
677 i8042_pnp_aux_registered = false;
678 pnp_unregister_driver(&i8042_pnp_aux_driver);
682 static int __init i8042_pnp_init(void)
684 char kbd_irq_str[4] = { 0 }, aux_irq_str[4] = { 0 };
685 bool pnp_data_busted = false;
689 if (dmi_check_system(i8042_dmi_nopnp_table))
694 printk(KERN_INFO "i8042: PNP detection disabled\n");
698 err = pnp_register_driver(&i8042_pnp_kbd_driver);
700 i8042_pnp_kbd_registered = true;
702 err = pnp_register_driver(&i8042_pnp_aux_driver);
704 i8042_pnp_aux_registered = true;
706 if (!i8042_pnp_kbd_devices && !i8042_pnp_aux_devices) {
708 #if defined(__ia64__)
711 printk(KERN_INFO "PNP: No PS/2 controller found. Probing ports directly.\n");
716 if (i8042_pnp_kbd_devices)
717 snprintf(kbd_irq_str, sizeof(kbd_irq_str),
718 "%d", i8042_pnp_kbd_irq);
719 if (i8042_pnp_aux_devices)
720 snprintf(aux_irq_str, sizeof(aux_irq_str),
721 "%d", i8042_pnp_aux_irq);
723 printk(KERN_INFO "PNP: PS/2 Controller [%s%s%s] at %#x,%#x irq %s%s%s\n",
724 i8042_pnp_kbd_name, (i8042_pnp_kbd_devices && i8042_pnp_aux_devices) ? "," : "",
726 i8042_pnp_data_reg, i8042_pnp_command_reg,
727 kbd_irq_str, (i8042_pnp_kbd_devices && i8042_pnp_aux_devices) ? "," : "",
730 #if defined(__ia64__)
731 if (!i8042_pnp_kbd_devices)
733 if (!i8042_pnp_aux_devices)
737 if (((i8042_pnp_data_reg & ~0xf) == (i8042_data_reg & ~0xf) &&
738 i8042_pnp_data_reg != i8042_data_reg) ||
739 !i8042_pnp_data_reg) {
741 "PNP: PS/2 controller has invalid data port %#x; "
742 "using default %#x\n",
743 i8042_pnp_data_reg, i8042_data_reg);
744 i8042_pnp_data_reg = i8042_data_reg;
745 pnp_data_busted = true;
748 if (((i8042_pnp_command_reg & ~0xf) == (i8042_command_reg & ~0xf) &&
749 i8042_pnp_command_reg != i8042_command_reg) ||
750 !i8042_pnp_command_reg) {
752 "PNP: PS/2 controller has invalid command port %#x; "
753 "using default %#x\n",
754 i8042_pnp_command_reg, i8042_command_reg);
755 i8042_pnp_command_reg = i8042_command_reg;
756 pnp_data_busted = true;
759 if (!i8042_nokbd && !i8042_pnp_kbd_irq) {
761 "PNP: PS/2 controller doesn't have KBD irq; "
762 "using default %d\n", i8042_kbd_irq);
763 i8042_pnp_kbd_irq = i8042_kbd_irq;
764 pnp_data_busted = true;
767 if (!i8042_noaux && !i8042_pnp_aux_irq) {
768 if (!pnp_data_busted && i8042_pnp_kbd_irq) {
770 "PNP: PS/2 appears to have AUX port disabled, "
771 "if this is incorrect please boot with "
776 "PNP: PS/2 controller doesn't have AUX irq; "
777 "using default %d\n", i8042_aux_irq);
778 i8042_pnp_aux_irq = i8042_aux_irq;
782 i8042_data_reg = i8042_pnp_data_reg;
783 i8042_command_reg = i8042_pnp_command_reg;
784 i8042_kbd_irq = i8042_pnp_kbd_irq;
785 i8042_aux_irq = i8042_pnp_aux_irq;
788 i8042_bypass_aux_irq_test = !pnp_data_busted &&
789 dmi_check_system(i8042_dmi_laptop_table);
796 static inline int i8042_pnp_init(void) { return 0; }
797 static inline void i8042_pnp_exit(void) { }
800 static int __init i8042_platform_init(void)
805 * On ix86 platforms touching the i8042 data register region can do really
806 * bad things. Because of this the region is always reserved on ix86 boxes.
808 * if (!request_region(I8042_DATA_REG, 16, "i8042"))
812 i8042_kbd_irq = I8042_MAP_IRQ(1);
813 i8042_aux_irq = I8042_MAP_IRQ(12);
815 retval = i8042_pnp_init();
819 #if defined(__ia64__)
824 if (dmi_check_system(i8042_dmi_reset_table))
827 if (dmi_check_system(i8042_dmi_noloop_table))
830 if (dmi_check_system(i8042_dmi_nomux_table))
833 if (dmi_check_system(i8042_dmi_dritek_table))
835 #endif /* CONFIG_X86 */
840 static inline void i8042_platform_exit(void)
845 #endif /* _I8042_X86IA64IO_H */