From 617faab1143d0333c001a6e3714eef5a1507f7c2 Mon Sep 17 00:00:00 2001 From: wpaul Date: Sat, 15 Jan 2000 18:43:07 +0000 Subject: Minor enhancement: set the 'dual link LED' bit in the auxmode register of the Broadcom BCM5201 PHY on the LinkSys USB100TX adapter so that the link LED correctly (lights up amber for 10mbps link, green for 100mbps link). Note that the sticker on the bottom of the adapter says amber for 10 and green for 100, but the appendix in the manual that comes with the adapter says green for 10 and amber for 100. Given that there doesn't seem to be any way to make the hardware produce the latter combination, I think it's safe to say the sticker is right and the manual is wrong. I'm just shocked, shocked I tell you. --- sys/dev/usb/if_aue.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/sys/dev/usb/if_aue.c b/sys/dev/usb/if_aue.c index 277d913..9e8a344 100644 --- a/sys/dev/usb/if_aue.c +++ b/sys/dev/usb/if_aue.c @@ -463,6 +463,18 @@ static void aue_miibus_statchg(dev) } AUE_SETBIT(sc, AUE_CTL0, AUE_CTL0_RX_ENB|AUE_CTL0_TX_ENB); + /* + * Set the LED modes on the LinkSys adapter. + * This turns on the 'dual link LED' bin in the auxmode + * register of the Broadcom PHY. + */ + if (sc->aue_info->aue_vid == USB_VENDOR_LINKSYS && + sc->aue_info->aue_did == USB_PRODUCT_LINKSYS_USB100TX) { + u_int16_t auxmode; + auxmode = aue_miibus_readreg(dev, 0, 0x1b); + aue_miibus_writereg(dev, 0, 0x1b, auxmode | 0x04); + } + return; } -- cgit v1.1