mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-13 10:02:38 +00:00
Make the blinkylights on non-MII 21143 cards work. We need to enable
the link and activity LED control bits in CSR15 in order for the controller to drive the LEDs correctly. This was largely done for the ZNYX multiport cards, but should also work with the DEC DE500-BA and other non-MII cards.
This commit is contained in:
parent
f7c7ba14bf
commit
918434c883
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=65349
@ -2725,6 +2725,17 @@ static void dc_init(xsc)
|
||||
/* Enable transmitter. */
|
||||
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
|
||||
|
@ -2725,6 +2725,17 @@ static void dc_init(xsc)
|
||||
/* Enable transmitter. */
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user