diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-09-18 20:27:16 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-09-18 20:27:16 +0000 |
commit | a052e188db7ea14be84e205b7f0f7649530935ec (patch) | |
tree | 0f45cd8a4b20fdcaea23b85468a07e738bbdce3a /sys/arch | |
parent | 11221014c511bf213cb2110c7e5ea1b6d5f710ac (diff) |
lebuffer cards are UTP
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/sparc/dev/if_le.c | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/sys/arch/sparc/dev/if_le.c b/sys/arch/sparc/dev/if_le.c index 137a84d6000..cea88d57eef 100644 --- a/sys/arch/sparc/dev/if_le.c +++ b/sys/arch/sparc/dev/if_le.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_le.c,v 1.9 1998/09/16 22:41:18 jason Exp $ */ +/* $OpenBSD: if_le.c,v 1.10 1998/09/18 20:27:15 deraadt Exp $ */ /* $NetBSD: if_le.c,v 1.50 1997/09/09 20:54:48 pk Exp $ */ /*- @@ -522,21 +522,24 @@ leattach(parent, self, aux) sc->sc_hwreset = lehwreset; ifmedia_init(&sc->sc_ifmedia, 0, lemediachange, lemediastatus); +#if defined(SUN4C) || defined(SUN4M) + if (lebufchild) { + ifmedia_add(&sc->sc_ifmedia, IFM_ETHER | IFM_10_T, 0, NULL); + ifmedia_set(&sc->sc_ifmedia, IFM_ETHER | IFM_10_T); + } else +#endif #if defined(SUN4M) if (CPU_ISSUN4M && lesc->sc_dma) { ifmedia_add(&sc->sc_ifmedia, IFM_ETHER | IFM_10_T, 0, NULL); ifmedia_add(&sc->sc_ifmedia, IFM_ETHER | IFM_10_5, 0, NULL); ifmedia_add(&sc->sc_ifmedia, IFM_ETHER | IFM_AUTO, 0, NULL); ifmedia_set(&sc->sc_ifmedia, IFM_ETHER | IFM_AUTO); - } - else { + } else +#endif + { ifmedia_add(&sc->sc_ifmedia, IFM_ETHER | IFM_10_5, 0, NULL); ifmedia_set(&sc->sc_ifmedia, IFM_ETHER | IFM_10_5); } -#else - ifmedia_add(&sc->sc_ifmedia, IFM_ETHER | IFM_10_5, 0, NULL); - ifmedia_set(&sc->sc_ifmedia, IFM_ETHER | IFM_10_5); -#endif am7990_config(sc); |