From fe310de802ddb8e453de4e7fd7e7d6302d071905 Mon Sep 17 00:00:00 2001 From: Bruce Evans Date: Thu, 22 Oct 1998 05:58:45 +0000 Subject: 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 --- sys/dev/cs/if_cs.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'sys/dev/cs') diff --git a/sys/dev/cs/if_cs.c b/sys/dev/cs/if_cs.c index 1d044deaa36d..3b63f4d824db 100644 --- a/sys/dev/cs/if_cs.c +++ b/sys/dev/cs/if_cs.c @@ -27,7 +27,7 @@ */ /* - * $Id: if_cs.c,v 1.4 1998/08/27 22:41:18 msmith Exp $ + * $Id: if_cs.c,v 1.5 1998/10/04 02:11:15 msmith Exp $ * * Device driver for Crystal Semiconductor CS8920 based ethernet * adapters. By Maxim Bolotin and Oleg Sharoiko, 27-April-1997 @@ -108,6 +108,7 @@ SYSCTL_INT(_machdep, OID_AUTO, cs_recv_delay, CTLFLAG_RW, &cs_recv_delay, 0, "") static int cs_attach __P((struct cs_softc *, int, int)); static int cs_attach_isa __P((struct isa_device *)); static void cs_init __P((void *)); +static ointhand2_t csintr; static int cs_ioctl __P((struct ifnet *, u_long, caddr_t)); static int cs_probe __P((struct isa_device *)); static int cs_cs89x0_probe __P((struct cs_softc *, @@ -633,6 +634,7 @@ cs_attach_isa(struct isa_device *dev) struct cs_softc *sc=&cs_softc[unit]; int flags=dev->id_flags; + dev->id_ointr = csintr; return cs_attach(sc, unit, flags); } @@ -871,7 +873,7 @@ csintr_sc(struct cs_softc *sc, int unit) /* * Handle interrupts */ -void +static void csintr(int unit) { struct cs_softc *sc = &cs_softc[unit]; -- cgit v1.3