summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1998-03-23 03:06:08 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1998-03-23 03:06:08 +0000
commit767ae646e3b3b4a68d9ac79b9b76a6aed1135b07 (patch)
tree805f44aa999c6bf14c2477e1afdfe592db001c3f /sys
parent2c27e84c880e39ed2bd50f49bd9f5082b8d630bb (diff)
fix printing for these; ignore model number
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/isa/if_ep_isa.c4
-rw-r--r--sys/dev/isa/if_ep_isapnp.c18
2 files changed, 4 insertions, 18 deletions
diff --git a/sys/dev/isa/if_ep_isa.c b/sys/dev/isa/if_ep_isa.c
index d9ab78869d3..c9e2e593d58 100644
--- a/sys/dev/isa/if_ep_isa.c
+++ b/sys/dev/isa/if_ep_isa.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_ep_isa.c,v 1.12 1998/02/26 06:44:04 deraadt Exp $ */
+/* $OpenBSD: if_ep_isa.c,v 1.13 1998/03/23 03:06:06 deraadt Exp $ */
/* $NetBSD: if_ep_isa.c,v 1.5 1996/05/12 23:52:36 mycroft Exp $ */
/*
@@ -288,14 +288,12 @@ ep_isa_attach(parent, self, aux)
chipset = (int)(long)ia->ia_aux;
if ((chipset & 0xfff0) == PROD_ID_3C509) {
- printf(": 3Com 3C509 Ethernet");
epconfig(sc, EP_CHIPSET_3C509);
} else {
/*
* XXX: Maybe a 3c515, but the check in ep_isa_probe looks
* at the moment only for a 3c509.
*/
- printf(": unknown card %04x", chipset);
epconfig(sc, EP_CHIPSET_UNKNOWN);
}
diff --git a/sys/dev/isa/if_ep_isapnp.c b/sys/dev/isa/if_ep_isapnp.c
index 8ef80e6525b..67b3c02235e 100644
--- a/sys/dev/isa/if_ep_isapnp.c
+++ b/sys/dev/isa/if_ep_isapnp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_ep_isapnp.c,v 1.1 1998/03/20 05:58:08 dgregor Exp $ */
+/* $OpenBSD: if_ep_isapnp.c,v 1.2 1998/03/23 03:06:07 deraadt Exp $ */
/* $NetBSD: if_ep_isapnp.c,v 1.5 1996/05/12 23:52:36 mycroft Exp $ */
/*
@@ -109,25 +109,13 @@ ep_isapnp_attach(parent, self, aux)
struct isa_attach_args *ia = aux;
bus_space_tag_t iot = ia->ia_iot;
bus_space_handle_t ioh;
- int chipset;
sc->sc_iot = iot = ia->ia_iot;
sc->sc_ioh = ioh = ia->ipa_io[0].h;
sc->bustype = EP_BUS_ISA;
- /* XXX This probably isn't right. We should use the PnP ID instead. */
- chipset = htons(epreadeeprom(iot, ioh, EEPROM_PROD_ID));
- if ((chipset & 0xfff0) == PROD_ID_3C509) {
- printf(": 3Com 3C509 Ethernet");
- epconfig(sc, EP_CHIPSET_3C509);
- } else {
- /*
- * XXX: Maybe a 3c515, but the check in ep_isapnp_probe looks
- * at the moment only for a 3c509.
- */
- printf(": unknown card %04x", chipset);
- epconfig(sc, EP_CHIPSET_UNKNOWN);
- }
+ /* Should look at ia->ia_devident... */
+ epconfig(sc, EP_CHIPSET_3C509);
sc->sc_ih = isa_intr_establish(ia->ia_ic, ia->ia_irq, IST_EDGE,
IPL_NET, epintr, sc, sc->sc_dev.dv_xname);