summaryrefslogtreecommitdiffstats
path: root/sys/i386/isa/if_ep.c
diff options
context:
space:
mode:
authormdodd <mdodd@FreeBSD.org>1999-08-20 14:12:14 +0000
committermdodd <mdodd@FreeBSD.org>1999-08-20 14:12:14 +0000
commit732c3788e6a0ccbde759d4160e870f034eb4aa51 (patch)
treec9fca1c5132474316433189f4c1a4f4edf4cb140 /sys/i386/isa/if_ep.c
parentc6637d28b3ca72411273a6044b5ac622089d3bf3 (diff)
downloadFreeBSD-src-732c3788e6a0ccbde759d4160e870f034eb4aa51.zip
FreeBSD-src-732c3788e6a0ccbde759d4160e870f034eb4aa51.tar.gz
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 <yokota@zodiac.mech.utsunomiya-u.ac.jp>
Diffstat (limited to 'sys/i386/isa/if_ep.c')
-rw-r--r--sys/i386/isa/if_ep.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/sys/i386/isa/if_ep.c b/sys/i386/isa/if_ep.c
index 22daafb..d1f3460 100644
--- a/sys/i386/isa/if_ep.c
+++ b/sys/i386/isa/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;
OpenPOWER on IntegriCloud