Messages in this thread Patch in this message |  | | From | Joshua Spoerri <> | Subject | (small) PATCH: args to serial module | Date | Tue, 30 Apr 1996 13:10:24 -0400 (EDT) |
| |
--- linux/drivers/char/serial.c.orig Tue Apr 30 08:53:04 1996 +++ linux/drivers/char/serial.c Tue Apr 30 08:53:04 1996 @@ -86,6 +86,11 @@ #define _INLINE_ inline +#ifdef MODULE +static int io[PORT_MAX] = { 0, }; +static int irq[PORT_MAX] = { 0, }; +#endif + #if defined(MODULE) && defined(SERIAL_DEBUG_MCOUNT) #define DBG_CNT(s) printk("(%s): [%x] refc=%d, serc=%d, ttyc=%d -> %s\n", \ kdevname(tty->device), (info->flags), serial_refcount,info->count,tty->count,s) @@ -2790,6 +2795,10 @@ info->icount.rng = info->icount.dcd = 0; info->next_port = 0; info->prev_port = 0; +#ifdef MODULE + if(irq[i]) + info->irq=irq[i]; +#endif if (info->irq == 2) info->irq = 9; if (!(info->flags & ASYNC_BOOT_AUTOCONF))
|  |