summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Wright <jason@cvs.openbsd.org>1998-09-19 15:11:52 +0000
committerJason Wright <jason@cvs.openbsd.org>1998-09-19 15:11:52 +0000
commit916596d4e97c0095f1bbf0a307d876c4b845598b (patch)
tree7d030cf874e73f50b84166b46c69f05ab76e57ae
parenta9943bfa26c0a5ce8887295fa8366cb38b9c180f (diff)
lebuffer based le's use UTP
-rw-r--r--sys/arch/sparc/dev/if_le.c10
-rw-r--r--sys/arch/sparc/dev/if_levar.h3
2 files changed, 10 insertions, 3 deletions
diff --git a/sys/arch/sparc/dev/if_le.c b/sys/arch/sparc/dev/if_le.c
index cea88d57eef..68bb0cdf31a 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.10 1998/09/18 20:27:15 deraadt Exp $ */
+/* $OpenBSD: if_le.c,v 1.11 1998/09/19 15:11:50 jason Exp $ */
/* $NetBSD: if_le.c,v 1.50 1997/09/09 20:54:48 pk Exp $ */
/*-
@@ -269,7 +269,10 @@ lemediastatus(ifp, ifmr)
struct le_softc *lesc = (struct le_softc *)sc;
if (lesc->sc_dma == NULL) {
- ifmr->ifm_active = IFM_ETHER | IFM_10_5;
+ if (lesc->sc_lebufchild)
+ ifmr->ifm_active = IFM_ETHER | IFM_10_T;
+ else
+ ifmr->ifm_active = IFM_ETHER | IFM_10_5;
return;
}
@@ -420,6 +423,9 @@ leattach(parent, self, aux)
printf(" pri %d", pri);
sc->sc_hasifmedia = 1;
+#if defined(SUN4C) || defined(SUN4M)
+ lesc->sc_lebufchild = lebufchild;
+#endif
lesc->sc_r1 = (struct lereg1 *)
mapiodev(ca->ca_ra.ra_reg, 0, sizeof(struct lereg1));
diff --git a/sys/arch/sparc/dev/if_levar.h b/sys/arch/sparc/dev/if_levar.h
index 2c73d8405d9..b64b3a1dc67 100644
--- a/sys/arch/sparc/dev/if_levar.h
+++ b/sys/arch/sparc/dev/if_levar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_levar.h,v 1.3 1997/08/08 08:25:14 downsj Exp $ */
+/* $OpenBSD: if_levar.h,v 1.4 1998/09/19 15:11:51 jason Exp $ */
/* $NetBSD: if_levar.h,v 1.7 1997/04/04 20:29:23 pk Exp $ */
/*-
@@ -54,5 +54,6 @@ struct le_softc {
struct intrhand sc_ih; /* interrupt vectoring */
struct lereg1 *sc_r1; /* LANCE registers */
struct dma_softc *sc_dma; /* pointer to my dma */
+ int sc_lebufchild; /* child of lebuffer */
u_long sc_laddr; /* LANCE DMA address */
};