From a052e188db7ea14be84e205b7f0f7649530935ec Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Fri, 18 Sep 1998 20:27:16 +0000 Subject: lebuffer cards are UTP --- sys/arch/sparc/dev/if_le.c | 17 ++++++++++------- 1 file 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); -- cgit v1.2.3