long parport_set_timeout (struct pardevice *dev, long inactivity) { long int old = dev->timeout; dev->timeout = inactivity; if (dev->port->physport->cad == dev) parport_ieee1284_wakeup (dev->port); return old; }
void parport_ieee1284_interrupt (void *handle) { struct parport *port = handle; parport_ieee1284_wakeup (port); #ifdef CONFIG_PARPORT_1284 if (port->ieee1284.phase == IEEE1284_PH_REV_IDLE) { DPRINTK (KERN_DEBUG "%s: Data available\n", port->name); parport_ieee1284_ack_data_avail (port); } #endif }
/* Handle an interrupt. */ void parport_ieee1284_interrupt (int which, void *handle) { struct parport *port = handle; parport_ieee1284_wakeup (port); #ifdef CONFIG_PARPORT_1284 if (port->ieee1284.phase == IEEE1284_PH_REV_IDLE) { /* An interrupt in this phase means that data * is now available. */ DPRINTK (KERN_DEBUG "%s: Data available\n", port->name); parport_ieee1284_ack_data_avail (port); } #endif /* IEEE1284 support */ }
static void timeout_waiting_on_port (unsigned long cookie) { parport_ieee1284_wakeup (port_from_cookie[cookie % PARPORT_MAX]); }
static void timeout_waiting_on_port (struct timer_list *t) { struct parport *port = from_timer(port, t, timer); parport_ieee1284_wakeup (port); }