summaryrefslogtreecommitdiff
path: root/sys/arch/macppc
diff options
context:
space:
mode:
authorDale Rahn <drahn@cvs.openbsd.org>2002-08-22 04:21:25 +0000
committerDale Rahn <drahn@cvs.openbsd.org>2002-08-22 04:21:25 +0000
commit0de408fc34a4256d0df3038ead0e0c1c4a7982f0 (patch)
treeb4905aa7711052a55560c9ddaa16c1cc793a9e10 /sys/arch/macppc
parent3d4caf94c14acb51cd099f9699d3f28364e90904 (diff)
Configure the media in the initialization routine so that media/mediaopt
fields in hostname.bm0 will work correctly. This does not fix the 100MB receive problem, but allows media 10baseT in hostname.bm0 to set the speed to a working speed.
Diffstat (limited to 'sys/arch/macppc')
-rw-r--r--sys/arch/macppc/dev/if_bm.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/arch/macppc/dev/if_bm.c b/sys/arch/macppc/dev/if_bm.c
index 792d76d5c0f..8cd417fd1c0 100644
--- a/sys/arch/macppc/dev/if_bm.c
+++ b/sys/arch/macppc/dev/if_bm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_bm.c,v 1.8 2002/04/26 17:26:52 mickey Exp $ */
+/* $OpenBSD: if_bm.c,v 1.9 2002/08/22 04:21:24 drahn Exp $ */
/* $NetBSD: if_bm.c,v 1.1 1999/01/01 01:27:52 tsubai Exp $ */
/*-
@@ -448,6 +448,9 @@ bmac_init(sc)
bmac_init_dma(sc);
+ /* Configure Media. */
+ mii_mediachg(&sc->sc_mii);
+
/* Enable TX/RX */
bmac_set_bits(sc, RXCFG, RxMACEnable);
bmac_set_bits(sc, TXCFG, TxMACEnable);