blob: f4a2517925e4c3746b0beecd984ef906edc1ac3c [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#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
31static int i8042_kbd_irq;
32static 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
42static int i8042_command_reg = 0x64;
43static int i8042_data_reg = 0x60;
44
45
46static inline int i8042_read_data(void)
47{
48 return inb(I8042_DATA_REG);
49}
50
51static inline int i8042_read_status(void)
52{
53 return inb(I8042_STATUS_REG);
54}
55
56static inline void i8042_write_data(int val)
57{
58 outb(val, I8042_DATA_REG);
59}
60
61static inline void i8042_write_command(int val)
62{
63 outb(val, I8042_COMMAND_REG);
64}
65
66#if defined(__i386__)
67
68#include <linux/dmi.h>
69
70static struct dmi_system_id __initdata i8042_dmi_noloop_table[] = {
71 {
Dmitry Torokhov90245c12007-06-12 00:33:27 -040072 /* AUX LOOP command does not raise AUX IRQ */
73 .ident = "ASUS P65UP5",
74 .matches = {
75 DMI_MATCH(DMI_BOARD_VENDOR, "ASUSTeK Computer INC."),
76 DMI_MATCH(DMI_BOARD_NAME, "P/I-P65UP5"),
77 DMI_MATCH(DMI_BOARD_VERSION, "REV 2.X"),
78 },
79 },
80 {
Linus Torvalds1da177e2005-04-16 15:20:36 -070081 .ident = "Compaq Proliant 8500",
82 .matches = {
83 DMI_MATCH(DMI_SYS_VENDOR, "Compaq"),
84 DMI_MATCH(DMI_PRODUCT_NAME , "ProLiant"),
85 DMI_MATCH(DMI_PRODUCT_VERSION, "8500"),
86 },
87 },
88 {
89 .ident = "Compaq Proliant DL760",
90 .matches = {
91 DMI_MATCH(DMI_SYS_VENDOR, "Compaq"),
92 DMI_MATCH(DMI_PRODUCT_NAME , "ProLiant"),
93 DMI_MATCH(DMI_PRODUCT_VERSION, "DL760"),
94 },
95 },
Ben Collins6020baf2006-01-05 23:00:38 -050096 {
97 .ident = "OQO Model 01",
98 .matches = {
99 DMI_MATCH(DMI_SYS_VENDOR, "OQO"),
100 DMI_MATCH(DMI_PRODUCT_NAME, "ZEPTO"),
101 DMI_MATCH(DMI_PRODUCT_VERSION, "00"),
102 },
103 },
Dmitry Torokhov8c4df742007-06-12 00:33:32 -0400104 {
105 /* AUX LOOP does not work properly */
106 .ident = "ULI EV4873",
107 .matches = {
108 DMI_MATCH(DMI_SYS_VENDOR, "ULI"),
109 DMI_MATCH(DMI_PRODUCT_NAME, "EV4873"),
110 DMI_MATCH(DMI_PRODUCT_VERSION, "5a"),
111 },
112 },
Linus Torvalds1da177e2005-04-16 15:20:36 -0700113 { }
114};
115
116/*
Dmitry Torokhov59311de2005-05-28 02:12:05 -0500117 * Some Fujitsu notebooks are having trouble with touchpads if
Linus Torvalds1da177e2005-04-16 15:20:36 -0700118 * active multiplexing mode is activated. Luckily they don't have
119 * external PS/2 ports so we can safely disable it.
Dmitry Torokhov59311de2005-05-28 02:12:05 -0500120 * ... apparently some Toshibas don't like MUX mode either and
121 * die horrible death on reboot.
Linus Torvalds1da177e2005-04-16 15:20:36 -0700122 */
123static struct dmi_system_id __initdata i8042_dmi_nomux_table[] = {
124 {
125 .ident = "Fujitsu Lifebook P7010/P7010D",
126 .matches = {
127 DMI_MATCH(DMI_SYS_VENDOR, "FUJITSU"),
128 DMI_MATCH(DMI_PRODUCT_NAME, "P7010"),
129 },
130 },
131 {
Dmitry Torokhovbb06ec32006-12-08 01:36:32 -0500132 .ident = "Fujitsu Lifebook P7010",
133 .matches = {
134 DMI_MATCH(DMI_SYS_VENDOR, "FUJITSU SIEMENS"),
135 DMI_MATCH(DMI_PRODUCT_NAME, "0000000000"),
136 },
137 },
138 {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700139 .ident = "Fujitsu Lifebook P5020D",
140 .matches = {
141 DMI_MATCH(DMI_SYS_VENDOR, "FUJITSU"),
142 DMI_MATCH(DMI_PRODUCT_NAME, "LifeBook P Series"),
143 },
144 },
145 {
146 .ident = "Fujitsu Lifebook S2000",
147 .matches = {
148 DMI_MATCH(DMI_SYS_VENDOR, "FUJITSU"),
149 DMI_MATCH(DMI_PRODUCT_NAME, "LifeBook S Series"),
150 },
151 },
152 {
Dmitry Torokhovb4ff99b2005-05-28 02:12:10 -0500153 .ident = "Fujitsu Lifebook S6230",
154 .matches = {
155 DMI_MATCH(DMI_SYS_VENDOR, "FUJITSU"),
156 DMI_MATCH(DMI_PRODUCT_NAME, "LifeBook S6230"),
157 },
158 },
159 {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700160 .ident = "Fujitsu T70H",
161 .matches = {
162 DMI_MATCH(DMI_SYS_VENDOR, "FUJITSU"),
163 DMI_MATCH(DMI_PRODUCT_NAME, "FMVLT70H"),
164 },
165 },
Dmitry Torokhov59311de2005-05-28 02:12:05 -0500166 {
Vojtech Pavlik20f07942005-07-11 01:06:28 -0500167 .ident = "Fujitsu-Siemens Lifebook T3010",
168 .matches = {
169 DMI_MATCH(DMI_SYS_VENDOR, "FUJITSU SIEMENS"),
170 DMI_MATCH(DMI_PRODUCT_NAME, "LIFEBOOK T3010"),
171 },
172 },
173 {
Dmitry Torokhov7545c242005-09-04 01:42:10 -0500174 .ident = "Fujitsu-Siemens Lifebook E4010",
175 .matches = {
176 DMI_MATCH(DMI_SYS_VENDOR, "FUJITSU SIEMENS"),
177 DMI_MATCH(DMI_PRODUCT_NAME, "LIFEBOOK E4010"),
178 },
179 },
180 {
Dmitry Torokhov6e782582007-03-16 00:59:42 -0400181 /*
Dmitry Torokhovcc8310e2007-04-25 00:40:32 -0400182 * No data is coming from the touchscreen unless KBC
183 * is in legacy mode.
184 */
185 .ident = "Panasonic CF-29",
186 .matches = {
187 DMI_MATCH(DMI_SYS_VENDOR, "Matsushita"),
188 DMI_MATCH(DMI_PRODUCT_NAME, "CF-29"),
189 },
190 },
191 {
192 /*
Dmitry Torokhov6e782582007-03-16 00:59:42 -0400193 * Errors on MUX ports are reported without raising AUXDATA
194 * causing "spurious NAK" messages.
195 */
196 .ident = "HP Pavilion DV4017EA",
197 .matches = {
198 DMI_MATCH(DMI_SYS_VENDOR, "Hewlett-Packard"),
199 DMI_MATCH(DMI_PRODUCT_NAME, "Pavilion dv4000 (EA032EA#ABF)"),
200 },
201 },
202 {
Dmitry Torokhov59311de2005-05-28 02:12:05 -0500203 .ident = "Toshiba P10",
204 .matches = {
205 DMI_MATCH(DMI_SYS_VENDOR, "TOSHIBA"),
206 DMI_MATCH(DMI_PRODUCT_NAME, "Satellite P10"),
207 },
208 },
Dmitry Torokhov865190c2005-07-11 01:06:06 -0500209 {
Dmitry Torokhova91eaa12006-09-14 01:31:06 -0400210 .ident = "Toshiba Equium A110",
211 .matches = {
212 DMI_MATCH(DMI_SYS_VENDOR, "TOSHIBA"),
213 DMI_MATCH(DMI_PRODUCT_NAME, "EQUIUM A110"),
214 },
215 },
216 {
Dmitry Torokhov865190c2005-07-11 01:06:06 -0500217 .ident = "Alienware Sentia",
218 .matches = {
219 DMI_MATCH(DMI_SYS_VENDOR, "ALIENWARE"),
220 DMI_MATCH(DMI_PRODUCT_NAME, "Sentia"),
221 },
222 },
Dmitry Torokhov4eb38ac2005-12-21 00:51:51 -0500223 {
224 .ident = "Sharp Actius MM20",
225 .matches = {
226 DMI_MATCH(DMI_SYS_VENDOR, "SHARP"),
227 DMI_MATCH(DMI_PRODUCT_NAME, "PC-MM20 Series"),
228 },
229 },
Vojtech Pavlik3dd01a82006-01-14 00:24:06 -0500230 {
231 .ident = "Sony Vaio FS-115b",
232 .matches = {
233 DMI_MATCH(DMI_SYS_VENDOR, "Sony Corporation"),
234 DMI_MATCH(DMI_PRODUCT_NAME, "VGN-FS115B"),
235 },
236 },
Cjacker Huange2df4522006-08-08 23:38:22 -0400237 {
238 .ident = "Amoi M636/A737",
239 .matches = {
240 DMI_MATCH(DMI_SYS_VENDOR, "Amoi Electronics CO.,LTD."),
241 DMI_MATCH(DMI_PRODUCT_NAME, "M636/A737 platform"),
242 },
243 },
Linus Torvalds1da177e2005-04-16 15:20:36 -0700244 { }
245};
246
247
248
249#endif
250
251
252#ifdef CONFIG_PNP
253#include <linux/pnp.h>
254
255static int i8042_pnp_kbd_registered;
Bjorn Helgaas2bfc3c62006-03-14 00:12:24 -0500256static unsigned int i8042_pnp_kbd_devices;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700257static int i8042_pnp_aux_registered;
Bjorn Helgaas2bfc3c62006-03-14 00:12:24 -0500258static unsigned int i8042_pnp_aux_devices;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700259
260static int i8042_pnp_command_reg;
261static int i8042_pnp_data_reg;
262static int i8042_pnp_kbd_irq;
263static int i8042_pnp_aux_irq;
264
265static char i8042_pnp_kbd_name[32];
266static char i8042_pnp_aux_name[32];
267
268static int i8042_pnp_kbd_probe(struct pnp_dev *dev, const struct pnp_device_id *did)
269{
270 if (pnp_port_valid(dev, 0) && pnp_port_len(dev, 0) == 1)
271 i8042_pnp_data_reg = pnp_port_start(dev,0);
272
273 if (pnp_port_valid(dev, 1) && pnp_port_len(dev, 1) == 1)
274 i8042_pnp_command_reg = pnp_port_start(dev, 1);
275
276 if (pnp_irq_valid(dev,0))
277 i8042_pnp_kbd_irq = pnp_irq(dev, 0);
278
279 strncpy(i8042_pnp_kbd_name, did->id, sizeof(i8042_pnp_kbd_name));
280 if (strlen(pnp_dev_name(dev))) {
281 strncat(i8042_pnp_kbd_name, ":", sizeof(i8042_pnp_kbd_name));
282 strncat(i8042_pnp_kbd_name, pnp_dev_name(dev), sizeof(i8042_pnp_kbd_name));
283 }
284
Bjorn Helgaas2bfc3c62006-03-14 00:12:24 -0500285 i8042_pnp_kbd_devices++;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700286 return 0;
287}
288
289static int i8042_pnp_aux_probe(struct pnp_dev *dev, const struct pnp_device_id *did)
290{
291 if (pnp_port_valid(dev, 0) && pnp_port_len(dev, 0) == 1)
292 i8042_pnp_data_reg = pnp_port_start(dev,0);
293
294 if (pnp_port_valid(dev, 1) && pnp_port_len(dev, 1) == 1)
295 i8042_pnp_command_reg = pnp_port_start(dev, 1);
296
297 if (pnp_irq_valid(dev, 0))
298 i8042_pnp_aux_irq = pnp_irq(dev, 0);
299
300 strncpy(i8042_pnp_aux_name, did->id, sizeof(i8042_pnp_aux_name));
301 if (strlen(pnp_dev_name(dev))) {
302 strncat(i8042_pnp_aux_name, ":", sizeof(i8042_pnp_aux_name));
303 strncat(i8042_pnp_aux_name, pnp_dev_name(dev), sizeof(i8042_pnp_aux_name));
304 }
305
Bjorn Helgaas2bfc3c62006-03-14 00:12:24 -0500306 i8042_pnp_aux_devices++;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700307 return 0;
308}
309
310static struct pnp_device_id pnp_kbd_devids[] = {
311 { .id = "PNP0303", .driver_data = 0 },
312 { .id = "PNP030b", .driver_data = 0 },
313 { .id = "", },
314};
315
316static struct pnp_driver i8042_pnp_kbd_driver = {
317 .name = "i8042 kbd",
318 .id_table = pnp_kbd_devids,
319 .probe = i8042_pnp_kbd_probe,
320};
321
322static struct pnp_device_id pnp_aux_devids[] = {
Dmitry Torokhovb9973952007-04-25 00:40:53 -0400323 { .id = "FJC6000", .driver_data = 0 },
324 { .id = "FJC6001", .driver_data = 0 },
Linus Torvalds1da177e2005-04-16 15:20:36 -0700325 { .id = "PNP0f03", .driver_data = 0 },
326 { .id = "PNP0f0b", .driver_data = 0 },
327 { .id = "PNP0f0e", .driver_data = 0 },
328 { .id = "PNP0f12", .driver_data = 0 },
329 { .id = "PNP0f13", .driver_data = 0 },
330 { .id = "PNP0f19", .driver_data = 0 },
331 { .id = "PNP0f1c", .driver_data = 0 },
332 { .id = "SYN0801", .driver_data = 0 },
333 { .id = "", },
334};
335
336static struct pnp_driver i8042_pnp_aux_driver = {
337 .name = "i8042 aux",
338 .id_table = pnp_aux_devids,
339 .probe = i8042_pnp_aux_probe,
340};
341
342static void i8042_pnp_exit(void)
343{
Kurt Garloff74af42b2005-05-28 02:11:38 -0500344 if (i8042_pnp_kbd_registered) {
345 i8042_pnp_kbd_registered = 0;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700346 pnp_unregister_driver(&i8042_pnp_kbd_driver);
Kurt Garloff74af42b2005-05-28 02:11:38 -0500347 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700348
Kurt Garloff74af42b2005-05-28 02:11:38 -0500349 if (i8042_pnp_aux_registered) {
350 i8042_pnp_aux_registered = 0;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700351 pnp_unregister_driver(&i8042_pnp_aux_driver);
Kurt Garloff74af42b2005-05-28 02:11:38 -0500352 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700353}
354
Dmitry Torokhov8d5987a2005-09-04 01:41:38 -0500355static int __init i8042_pnp_init(void)
Linus Torvalds1da177e2005-04-16 15:20:36 -0700356{
Dmitry Torokhovc3d31e72005-09-04 01:41:51 -0500357 char kbd_irq_str[4] = { 0 }, aux_irq_str[4] = { 0 };
Bjorn Helgaas2bfc3c62006-03-14 00:12:24 -0500358 int err;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700359
360 if (i8042_nopnp) {
Vojtech Pavlik39fa5802005-05-28 02:11:16 -0500361 printk(KERN_INFO "i8042: PNP detection disabled\n");
Linus Torvalds1da177e2005-04-16 15:20:36 -0700362 return 0;
363 }
364
Bjorn Helgaas2bfc3c62006-03-14 00:12:24 -0500365 err = pnp_register_driver(&i8042_pnp_kbd_driver);
366 if (!err)
Linus Torvalds1da177e2005-04-16 15:20:36 -0700367 i8042_pnp_kbd_registered = 1;
Dmitry Torokhovc3d31e72005-09-04 01:41:51 -0500368
Bjorn Helgaas2bfc3c62006-03-14 00:12:24 -0500369 err = pnp_register_driver(&i8042_pnp_aux_driver);
370 if (!err)
Linus Torvalds1da177e2005-04-16 15:20:36 -0700371 i8042_pnp_aux_registered = 1;
372
Bjorn Helgaas2bfc3c62006-03-14 00:12:24 -0500373 if (!i8042_pnp_kbd_devices && !i8042_pnp_aux_devices) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700374 i8042_pnp_exit();
375#if defined(__ia64__)
376 return -ENODEV;
377#else
Dmitry Torokhov5a72afc2005-05-28 02:11:32 -0500378 printk(KERN_INFO "PNP: No PS/2 controller found. Probing ports directly.\n");
Linus Torvalds1da177e2005-04-16 15:20:36 -0700379 return 0;
380#endif
381 }
382
Bjorn Helgaas2bfc3c62006-03-14 00:12:24 -0500383 if (i8042_pnp_kbd_devices)
Dmitry Torokhovc3d31e72005-09-04 01:41:51 -0500384 snprintf(kbd_irq_str, sizeof(kbd_irq_str),
385 "%d", i8042_pnp_kbd_irq);
Bjorn Helgaas2bfc3c62006-03-14 00:12:24 -0500386 if (i8042_pnp_aux_devices)
Dmitry Torokhovc3d31e72005-09-04 01:41:51 -0500387 snprintf(aux_irq_str, sizeof(aux_irq_str),
388 "%d", i8042_pnp_aux_irq);
389
390 printk(KERN_INFO "PNP: PS/2 Controller [%s%s%s] at %#x,%#x irq %s%s%s\n",
Bjorn Helgaas2bfc3c62006-03-14 00:12:24 -0500391 i8042_pnp_kbd_name, (i8042_pnp_kbd_devices && i8042_pnp_aux_devices) ? "," : "",
Dmitry Torokhovc3d31e72005-09-04 01:41:51 -0500392 i8042_pnp_aux_name,
393 i8042_pnp_data_reg, i8042_pnp_command_reg,
Bjorn Helgaas2bfc3c62006-03-14 00:12:24 -0500394 kbd_irq_str, (i8042_pnp_kbd_devices && i8042_pnp_aux_devices) ? "," : "",
Dmitry Torokhovc3d31e72005-09-04 01:41:51 -0500395 aux_irq_str);
396
397#if defined(__ia64__)
Bjorn Helgaas2bfc3c62006-03-14 00:12:24 -0500398 if (!i8042_pnp_kbd_devices)
Dmitry Torokhov945ef0d2005-09-04 01:42:00 -0500399 i8042_nokbd = 1;
Bjorn Helgaas2bfc3c62006-03-14 00:12:24 -0500400 if (!i8042_pnp_aux_devices)
Dmitry Torokhovc3d31e72005-09-04 01:41:51 -0500401 i8042_noaux = 1;
402#endif
403
Linus Torvalds1da177e2005-04-16 15:20:36 -0700404 if (((i8042_pnp_data_reg & ~0xf) == (i8042_data_reg & ~0xf) &&
405 i8042_pnp_data_reg != i8042_data_reg) || !i8042_pnp_data_reg) {
406 printk(KERN_WARNING "PNP: PS/2 controller has invalid data port %#x; using default %#x\n",
407 i8042_pnp_data_reg, i8042_data_reg);
408 i8042_pnp_data_reg = i8042_data_reg;
409 }
410
411 if (((i8042_pnp_command_reg & ~0xf) == (i8042_command_reg & ~0xf) &&
412 i8042_pnp_command_reg != i8042_command_reg) || !i8042_pnp_command_reg) {
413 printk(KERN_WARNING "PNP: PS/2 controller has invalid command port %#x; using default %#x\n",
414 i8042_pnp_command_reg, i8042_command_reg);
415 i8042_pnp_command_reg = i8042_command_reg;
416 }
417
Dmitry Torokhov945ef0d2005-09-04 01:42:00 -0500418 if (!i8042_nokbd && !i8042_pnp_kbd_irq) {
Dmitry Torokhovc3d31e72005-09-04 01:41:51 -0500419 printk(KERN_WARNING "PNP: PS/2 controller doesn't have KBD irq; using default %d\n", i8042_kbd_irq);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700420 i8042_pnp_kbd_irq = i8042_kbd_irq;
421 }
422
Dmitry Torokhovc3d31e72005-09-04 01:41:51 -0500423 if (!i8042_noaux && !i8042_pnp_aux_irq) {
424 printk(KERN_WARNING "PNP: PS/2 controller doesn't have AUX irq; using default %d\n", i8042_aux_irq);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700425 i8042_pnp_aux_irq = i8042_aux_irq;
426 }
427
Linus Torvalds1da177e2005-04-16 15:20:36 -0700428 i8042_data_reg = i8042_pnp_data_reg;
429 i8042_command_reg = i8042_pnp_command_reg;
430 i8042_kbd_irq = i8042_pnp_kbd_irq;
431 i8042_aux_irq = i8042_pnp_aux_irq;
432
Linus Torvalds1da177e2005-04-16 15:20:36 -0700433 return 0;
434}
435
Dmitry Torokhov8d5987a2005-09-04 01:41:38 -0500436#else
437static inline int i8042_pnp_init(void) { return 0; }
438static inline void i8042_pnp_exit(void) { }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700439#endif
440
Dmitry Torokhov8d5987a2005-09-04 01:41:38 -0500441static int __init i8042_platform_init(void)
Linus Torvalds1da177e2005-04-16 15:20:36 -0700442{
Dmitry Torokhov8d5987a2005-09-04 01:41:38 -0500443 int retval;
444
Linus Torvalds1da177e2005-04-16 15:20:36 -0700445/*
446 * On ix86 platforms touching the i8042 data register region can do really
447 * bad things. Because of this the region is always reserved on ix86 boxes.
448 *
449 * if (!request_region(I8042_DATA_REG, 16, "i8042"))
Dmitry Torokhov8d5987a2005-09-04 01:41:38 -0500450 * return -EBUSY;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700451 */
452
453 i8042_kbd_irq = I8042_MAP_IRQ(1);
454 i8042_aux_irq = I8042_MAP_IRQ(12);
455
Dmitry Torokhov8d5987a2005-09-04 01:41:38 -0500456 retval = i8042_pnp_init();
457 if (retval)
458 return retval;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700459
460#if defined(__ia64__)
461 i8042_reset = 1;
462#endif
463
464#if defined(__i386__)
465 if (dmi_check_system(i8042_dmi_noloop_table))
466 i8042_noloop = 1;
467
468 if (dmi_check_system(i8042_dmi_nomux_table))
469 i8042_nomux = 1;
470#endif
471
Dmitry Torokhov8d5987a2005-09-04 01:41:38 -0500472 return retval;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700473}
474
475static inline void i8042_platform_exit(void)
476{
Linus Torvalds1da177e2005-04-16 15:20:36 -0700477 i8042_pnp_exit();
Linus Torvalds1da177e2005-04-16 15:20:36 -0700478}
479
480#endif /* _I8042_X86IA64IO_H */