aboutsummaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorBill Paul <wpaul@FreeBSD.org>2000-09-01 23:59:54 +0000
committerBill Paul <wpaul@FreeBSD.org>2000-09-01 23:59:54 +0000
commit918434c8835b602480dccee4c4aeed2b4b048190 (patch)
treef933deca2ff658b6469e4c295204781aa5a172e0 /sys/dev
parentf7c7ba14bf64872e57123c83d2d15ec3bda17a05 (diff)
Notes
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/dc/if_dc.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/sys/dev/dc/if_dc.c b/sys/dev/dc/if_dc.c
index f0f1608b00f6..659fa87a13fc 100644
--- a/sys/dev/dc/if_dc.c
+++ b/sys/dev/dc/if_dc.c
@@ -2726,6 +2726,17 @@ static void dc_init(xsc)
DC_SETBIT(sc, DC_NETCFG, DC_NETCFG_TX_ON);
/*
+ * If this is an Intel 21143 and we're not using the
+ * MII port, program the LED control pins so we get
+ * link and activity indications.
+ */
+ if (DC_IS_INTEL(sc) && sc->dc_pmode == DC_PMODE_SYM) {
+ CSR_WRITE_4(sc, DC_WATCHDOG,
+ DC_WDOG_CTLWREN|DC_WDOG_LINK|DC_WDOG_ACTIVITY);
+ CSR_WRITE_4(sc, DC_WATCHDOG, DC_WDOG_LINK|DC_WDOG_ACTIVITY);
+ }
+
+ /*
* Load the RX/multicast filter. We do this sort of late
* because the filter programming scheme on the 21143 and
* some clones requires DMAing a setup frame via the TX