diff options
author | wpaul <wpaul@FreeBSD.org> | 2000-01-29 02:16:47 +0000 |
---|---|---|
committer | wpaul <wpaul@FreeBSD.org> | 2000-01-29 02:16:47 +0000 |
commit | e81c093824f41c50256483eece8716995acd21ac (patch) | |
tree | 95d5c32e6d22f4995f736c8d04e3ec7279cbf6b3 /sys | |
parent | 451125d616b59b9fb44453e290b75b00fd4d488a (diff) | |
download | FreeBSD-src-e81c093824f41c50256483eece8716995acd21ac.zip FreeBSD-src-e81c093824f41c50256483eece8716995acd21ac.tar.gz |
Minor tweak: the D-Link 10/100 USB ethernet adapter is apparently using
the same design as the LinkSys adapter and needs the same special handling
to enable its PHY.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/usb/if_aue.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/sys/dev/usb/if_aue.c b/sys/dev/usb/if_aue.c index 4a9303e..7724ef7 100644 --- a/sys/dev/usb/if_aue.c +++ b/sys/dev/usb/if_aue.c @@ -477,8 +477,10 @@ static void aue_miibus_statchg(dev) * 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) { + if ((sc->aue_info->aue_vid == USB_VENDOR_LINKSYS && + sc->aue_info->aue_did == USB_PRODUCT_LINKSYS_USB100TX) || + (sc->aue_info->aue_vid == USB_VENDOR_DLINK && + sc->aue_info->aue_did == USB_PRODUCT_DLINK_DSB650TX)) { u_int16_t auxmode; auxmode = aue_miibus_readreg(dev, 0, 0x1b); aue_miibus_writereg(dev, 0, 0x1b, auxmode | 0x04); @@ -566,8 +568,10 @@ static void aue_reset(sc) csr_write_1(sc, AUE_GPIO0, AUE_GPIO_OUT0|AUE_GPIO_SEL0|AUE_GPIO_SEL1); /* Grrr. LinkSys has to be different from everyone else. */ - if (sc->aue_info->aue_vid == USB_VENDOR_LINKSYS && - sc->aue_info->aue_did == USB_PRODUCT_LINKSYS_USB100TX) { + if ((sc->aue_info->aue_vid == USB_VENDOR_LINKSYS && + sc->aue_info->aue_did == USB_PRODUCT_LINKSYS_USB100TX) || + (sc->aue_info->aue_vid == USB_VENDOR_DLINK && + sc->aue_info->aue_did == USB_PRODUCT_DLINK_DSB650TX)) { csr_write_1(sc, AUE_GPIO0, AUE_GPIO_SEL0|AUE_GPIO_SEL1); csr_write_1(sc, AUE_GPIO0, AUE_GPIO_SEL0|AUE_GPIO_SEL1| AUE_GPIO_OUT0); |