summaryrefslogtreecommitdiffstats
path: root/sys/i386/isa/if_lnc.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_lnc.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_lnc.c')
-rw-r--r--sys/i386/isa/if_lnc.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/sys/i386/isa/if_lnc.c b/sys/i386/isa/if_lnc.c
index ee75beb..058ca3f 100644
--- a/sys/i386/isa/if_lnc.c
+++ b/sys/i386/isa/if_lnc.c
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: if_lnc.c,v 1.63 1999/08/18 06:11:59 mdodd Exp $
+ * $Id: if_lnc.c,v 1.64 1999/08/18 22:14:23 mdodd Exp $
*/
/*
@@ -180,7 +180,7 @@ static int lance_probe __P((struct lnc_softc *sc));
static int pcnet_probe __P((struct lnc_softc *sc));
static int lnc_attach_sc __P((struct lnc_softc *sc, int unit));
static int lnc_attach __P((struct isa_device *isa_dev));
-static void lnc_init __P((struct lnc_softc *sc));
+static void lnc_init __P((void *));
static ointhand2_t lncintr;
static __inline int mbuf_to_buffer __P((struct mbuf *m, char *buffer));
static __inline struct mbuf *chain_to_cluster __P((struct mbuf *m));
@@ -1278,6 +1278,7 @@ lnc_attach_sc(struct lnc_softc *sc, int unit)
sc->arpcom.ac_if.if_start = lnc_start;
sc->arpcom.ac_if.if_ioctl = lnc_ioctl;
sc->arpcom.ac_if.if_watchdog = lnc_watchdog;
+ sc->arpcom.ac_if.if_init = lnc_init;
sc->arpcom.ac_if.if_type = IFT_ETHER;
sc->arpcom.ac_if.if_addrlen = ETHER_ADDR_LEN;
sc->arpcom.ac_if.if_hdrlen = ETHER_HDR_LEN;
@@ -1372,8 +1373,10 @@ lnc_attach_ne2100_pci(int unit, unsigned iobase)
#endif
static void
-lnc_init(struct lnc_softc *sc)
+lnc_init(xsc)
+ void *xsc;
{
+ struct lnc_softc *sc = xsc;
int s, i;
char *lnc_mem;
OpenPOWER on IntegriCloud