summaryrefslogtreecommitdiff
path: root/sys/dev/isa/if_ne_isa.c
diff options
context:
space:
mode:
authorFederico G. Schwindt <fgsch@cvs.openbsd.org>1999-03-26 06:34:29 +0000
committerFederico G. Schwindt <fgsch@cvs.openbsd.org>1999-03-26 06:34:29 +0000
commit7fce51bb872afa6c152868f7d14ba188bf132cb6 (patch)
tree64acb56b49a52de90437fb0acd1fe8daa86aee60 /sys/dev/isa/if_ne_isa.c
parent818585d7e5830c7105190e5bc04ab8e3e40221b9 (diff)
Add support for some 100Mbit PCMCIA cards.
Change the ne2000_detect parm list.
Diffstat (limited to 'sys/dev/isa/if_ne_isa.c')
-rw-r--r--sys/dev/isa/if_ne_isa.c15
1 files changed, 12 insertions, 3 deletions
diff --git a/sys/dev/isa/if_ne_isa.c b/sys/dev/isa/if_ne_isa.c
index ae0093eaefe..704e4c05bf5 100644
--- a/sys/dev/isa/if_ne_isa.c
+++ b/sys/dev/isa/if_ne_isa.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_ne_isa.c,v 1.2 1998/11/06 06:32:15 fgsch Exp $ */
+/* $OpenBSD: if_ne_isa.c,v 1.3 1999/03/26 06:34:27 fgsch Exp $ */
/* $NetBSD: if_ne_isa.c,v 1.6 1998/07/05 06:49:13 jonathan Exp $ */
/*-
@@ -112,6 +112,9 @@ ne_isa_match(parent, match, aux)
struct device *parent;
void *match, *aux;
{
+ struct ne_isa_softc *isc = match;
+ struct ne2000_softc *nsc = &isc->sc_ne2000;
+ struct dp8390_softc *dsc = &nsc->sc_dp8390;
struct isa_attach_args *ia = aux;
bus_space_tag_t nict = ia->ia_iot;
bus_space_handle_t nich;
@@ -138,8 +141,14 @@ ne_isa_match(parent, match, aux)
NE2000_ASIC_NPORTS, &asich))
goto out;
+ dsc->sc_regt = nict;
+ dsc->sc_regh = nich;
+
+ nsc->sc_asict = asict;
+ nsc->sc_asich = asich;
+
/* Look for an NE2000-compatible card. */
- rv = ne2000_detect(nict, nich, asict, asich);
+ rv = ne2000_detect(nsc);
if (rv)
ia->ia_iosize = NE2000_NPORTS;
@@ -196,7 +205,7 @@ ne_isa_attach(parent, self, aux)
* Detect it again, so we can print some information about the
* interface.
*/
- netype = ne2000_detect(nict, nich, asict, asich);
+ netype = ne2000_detect(nsc);
switch (netype) {
case NE2000_TYPE_NE1000:
typestr = "NE1000";