hilkbd.c (1cb0aa88179b7a71c240529e9d781d7bbb43d2e8) hilkbd.c (5298cc4cc753bbe4c530b41341834f6ef3344d0d)
1/*
2 * linux/drivers/hil/hilkbd.c
3 *
4 * Copyright (C) 1998 Philip Blundell <philb@gnu.org>
5 * Copyright (C) 1999 Matthew Wilcox <willy@bofh.ai>
6 * Copyright (C) 1999-2007 Helge Deller <deller@gmx.de>
7 *
8 * Very basic HP Human Interface Loop (HIL) driver.

--- 186 unchanged lines hidden (view full) ---

195 /* wait */;
196 hil_write_data(*(data++));
197 }
198 spin_unlock_irqrestore(&hil_dev.lock, flags);
199}
200
201
202/* initialize HIL */
1/*
2 * linux/drivers/hil/hilkbd.c
3 *
4 * Copyright (C) 1998 Philip Blundell <philb@gnu.org>
5 * Copyright (C) 1999 Matthew Wilcox <willy@bofh.ai>
6 * Copyright (C) 1999-2007 Helge Deller <deller@gmx.de>
7 *
8 * Very basic HP Human Interface Loop (HIL) driver.

--- 186 unchanged lines hidden (view full) ---

195 /* wait */;
196 hil_write_data(*(data++));
197 }
198 spin_unlock_irqrestore(&hil_dev.lock, flags);
199}
200
201
202/* initialize HIL */
203static int __devinit hil_keyb_init(void)
203static int hil_keyb_init(void)
204{
205 unsigned char c;
206 unsigned int i, kbid;
207 wait_queue_head_t hil_wait;
208 int err;
209
210 if (hil_dev.dev)
211 return -ENODEV; /* already initialized */

--- 82 unchanged lines hidden (view full) ---

294 /* Turn off interrupts */
295 hil_do(HIL_INTOFF, NULL, 0);
296
297 input_unregister_device(hil_dev.dev);
298 hil_dev.dev = NULL;
299}
300
301#if defined(CONFIG_PARISC)
204{
205 unsigned char c;
206 unsigned int i, kbid;
207 wait_queue_head_t hil_wait;
208 int err;
209
210 if (hil_dev.dev)
211 return -ENODEV; /* already initialized */

--- 82 unchanged lines hidden (view full) ---

294 /* Turn off interrupts */
295 hil_do(HIL_INTOFF, NULL, 0);
296
297 input_unregister_device(hil_dev.dev);
298 hil_dev.dev = NULL;
299}
300
301#if defined(CONFIG_PARISC)
302static int __devinit hil_probe_chip(struct parisc_device *dev)
302static int hil_probe_chip(struct parisc_device *dev)
303{
304 /* Only allow one HIL keyboard */
305 if (hil_dev.dev)
306 return -ENODEV;
307
308 if (!dev->irq) {
309 printk(KERN_WARNING "HIL: IRQ not found for HIL bus at 0x%p\n",
310 (void *)dev->hpa.start);

--- 88 unchanged lines hidden ---
303{
304 /* Only allow one HIL keyboard */
305 if (hil_dev.dev)
306 return -ENODEV;
307
308 if (!dev->irq) {
309 printk(KERN_WARNING "HIL: IRQ not found for HIL bus at 0x%p\n",
310 (void *)dev->hpa.start);

--- 88 unchanged lines hidden ---