lkml.org 
[lkml]   [1996]   [Apr]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject(small) PATCH: args to serial module
Date
--- 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))

\
 
 \ /
  Last update: 2005-03-22 13:37    [W:0.022 / U:0.744 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site