Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/usb Fiddle with some PHY bits on the D-Link adapter ...
details: https://anonhg.NetBSD.org/src/rev/cbebf8a35be3
branches: trunk
changeset: 481624:cbebf8a35be3
user: augustss <augustss%NetBSD.org@localhost>
date: Wed Feb 02 20:06:55 2000 +0000
description:
Fiddle with some PHY bits on the D-Link adapter as well. From FreeBSD.
diffstat:
sys/dev/usb/if_aue.c | 14 +++++++++-----
1 files changed, 9 insertions(+), 5 deletions(-)
diffs (35 lines):
diff -r 888f4bede4cc -r cbebf8a35be3 sys/dev/usb/if_aue.c
--- a/sys/dev/usb/if_aue.c Wed Feb 02 19:57:17 2000 +0000
+++ b/sys/dev/usb/if_aue.c Wed Feb 02 20:06:55 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_aue.c,v 1.20 2000/02/02 17:09:42 thorpej Exp $ */
+/* $NetBSD: if_aue.c,v 1.21 2000/02/02 20:06:55 augustss Exp $ */
/*
* Copyright (c) 1997, 1998, 1999, 2000
* Bill Paul <wpaul%ee.columbia.edu@localhost>. All rights reserved.
@@ -543,8 +543,10 @@
* This turns on the 'dual link LED' bin in the auxmode
* register of the Broadcom PHY.
*/
- if (sc->aue_vendor == USB_VENDOR_LINKSYS &&
- sc->aue_product == USB_PRODUCT_LINKSYS_USB100TX) {
+ if ((sc->aue_vendor == USB_VENDOR_LINKSYS &&
+ sc->aue_product == USB_PRODUCT_LINKSYS_USB100TX) ||
+ (sc->aue_vendor == USB_VENDOR_DLINK &&
+ sc->aue_product == USB_PRODUCT_DLINK_DSB650TX)) {
u_int16_t auxmode;
auxmode = aue_miibus_readreg(dev, 0, 0x1b);
aue_miibus_writereg(dev, 0, 0x1b, auxmode | 0x04);
@@ -657,8 +659,10 @@
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_vendor == USB_VENDOR_LINKSYS &&
- sc->aue_product == USB_PRODUCT_LINKSYS_USB100TX) {
+ if ((sc->aue_vendor == USB_VENDOR_LINKSYS &&
+ sc->aue_product == USB_PRODUCT_LINKSYS_USB100TX) ||
+ (sc->aue_vendor == USB_VENDOR_DLINK &&
+ sc->aue_product == 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);
Home |
Main Index |
Thread Index |
Old Index