diff options
author | Federico G. Schwindt <fgsch@cvs.openbsd.org> | 1998-11-06 06:32:16 +0000 |
---|---|---|
committer | Federico G. Schwindt <fgsch@cvs.openbsd.org> | 1998-11-06 06:32:16 +0000 |
commit | e5065b53c5cb1b0305605efe1293fe9210f16f5a (patch) | |
tree | 4aa4c52e6bf3ccce781aa6a2bef81a49f2237209 /sys/dev/ic/ne2000.c | |
parent | 26ce0bacf20bcd7855dc98e8f75410c4029df116 (diff) |
Support for RealTek 8019 and 8029 NE2000-compatible network interfaces.
Diffstat (limited to 'sys/dev/ic/ne2000.c')
-rw-r--r-- | sys/dev/ic/ne2000.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/dev/ic/ne2000.c b/sys/dev/ic/ne2000.c index 3df27966112..97c33e106d5 100644 --- a/sys/dev/ic/ne2000.c +++ b/sys/dev/ic/ne2000.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ne2000.c,v 1.5 1998/10/14 07:34:42 fgsch Exp $ */ +/* $OpenBSD: ne2000.c,v 1.6 1998/11/06 06:32:15 fgsch Exp $ */ /* $NetBSD: ne2000.c,v 1.12 1998/06/10 01:15:50 thorpej Exp $ */ /*- @@ -103,9 +103,10 @@ struct cfdriver ne_cd = { }; void -ne2000_attach(nsc, myea) +ne2000_attach(nsc, myea, media, nmedia, defmedia) struct ne2000_softc *nsc; u_int8_t *myea; + int *media, nmedia, defmedia; { struct dp8390_softc *dsc = &nsc->sc_dp8390; bus_space_tag_t nict = dsc->sc_regt; @@ -252,7 +253,7 @@ ne2000_attach(nsc, myea) /* Clear any pending interrupts that might have occurred above. */ bus_space_write_1(nict, nich, ED_P0_ISR, 0xff); - if (dp8390_config(dsc, NULL, 0, 0)) { + if (dp8390_config(dsc, media, nmedia, defmedia)) { printf("%s: setup failed\n", dsc->sc_dev.dv_xname); return; } |