From 732c3788e6a0ccbde759d4160e870f034eb4aa51 Mon Sep 17 00:00:00 2001 From: mdodd Date: Fri, 20 Aug 1999 14:12:14 +0000 Subject: Set ifp->if_init to the right function. if_init_f_t is passed void * containing the address of ifp->if_softc not the unit number. Someone tell me if these things don't work as I don't have the hardware needed to test them. (thats a first.) I'll get if_ze and if_zp later. Pointed out by: Kazutaka YOKOTA --- sys/dev/ep/if_ep.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'sys/dev/ep') diff --git a/sys/dev/ep/if_ep.c b/sys/dev/ep/if_ep.c index 22daafb..d1f3460 100644 --- a/sys/dev/ep/if_ep.c +++ b/sys/dev/ep/if_ep.c @@ -38,7 +38,7 @@ */ /* - * $Id: if_ep.c,v 1.82 1999/08/18 06:11:58 mdodd Exp $ + * $Id: if_ep.c,v 1.83 1999/08/18 22:14:20 mdodd Exp $ * * Promiscuous mode added and interrupt logic slightly changed * to reduce the number of adapter failures. Transceiver select @@ -112,7 +112,7 @@ static struct ep_board * ep_look_for_board_at __P((struct isa_device *is)); static int ep_isa_attach __P((struct isa_device *)); static int epioctl __P((struct ifnet * ifp, u_long, caddr_t)); -static void epinit __P((struct ep_softc *)); +static void epinit __P((void *)); static ointhand2_t epintr; static void epread __P((struct ep_softc *)); void epreset __P((int)); @@ -636,6 +636,7 @@ ep_attach(sc) ifp->if_start = epstart; ifp->if_ioctl = epioctl; ifp->if_watchdog = epwatchdog; + ifp->if_init = epinit; if (!attached) { if_attach(ifp); @@ -664,9 +665,10 @@ ep_attach(sc) * interrupts. ?! */ static void -epinit(sc) - struct ep_softc *sc; +epinit(xsc) + void *xsc; { + struct ep_softc *sc = xsc; register struct ifnet *ifp = &sc->arpcom.ac_if; int s, i, j; -- cgit v1.1