summaryrefslogtreecommitdiffstats
path: root/sys/dev/rc
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1998-10-22 05:58:45 +0000
committerbde <bde@FreeBSD.org>1998-10-22 05:58:45 +0000
commitdf88297cad3e438e774e13137af8eaff53c0fc7f (patch)
treed694ec5d94b6e29be85865e36be61cbb2bea66dc /sys/dev/rc
parent7a07480a8f242db0c438040f3beb4ce7b2c7cde2 (diff)
downloadFreeBSD-src-df88297cad3e438e774e13137af8eaff53c0fc7f.zip
FreeBSD-src-df88297cad3e438e774e13137af8eaff53c0fc7f.tar.gz
Initialize isa_devtab entries for interrupt handlers in individual
device drivers, not in ioconf.c. Use a different hack in isa_device.h so that a new config(8) is not required yet. pc98 parts approved by: kato
Diffstat (limited to 'sys/dev/rc')
-rw-r--r--sys/dev/rc/rc.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/rc/rc.c b/sys/dev/rc/rc.c
index e946c58..ae1108a 100644
--- a/sys/dev/rc/rc.c
+++ b/sys/dev/rc/rc.c
@@ -172,6 +172,7 @@ static int rc_rcsrt[16] = {
};
/* Static prototypes */
+static ointhand2_t rcintr;
static void rc_hwreset __P((int, int, unsigned int));
static int rc_test __P((int, int));
static void rc_discard_output __P((struct rc_chans *));
@@ -231,6 +232,8 @@ rcattach(dvp)
static int rc_started = 0;
struct tty *tp;
+ dvp->id_ointr = rcintr;
+
/* Thorooughly test the device */
if (rcb->rcb_probed != RC_PROBED)
return 0;
@@ -278,7 +281,8 @@ rcattach(dvp)
}
/* RC interrupt handling */
-void rcintr(unit)
+static void
+rcintr(unit)
int unit;
{
register struct rc_softc *rcb = &rc_softc[unit];
OpenPOWER on IntegriCloud