Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/usb Check for the right vendor/product before fiddli...



details:   https://anonhg.NetBSD.org/src/rev/776ae16a3577
branches:  trunk
changeset: 480601:776ae16a3577
user:      augustss <augustss%NetBSD.org@localhost>
date:      Sun Jan 16 14:24:33 2000 +0000

description:
Check for the right vendor/product before fiddling with the Broadcom PHY.

diffstat:

 sys/dev/usb/if_aue.c |  18 +++++++++++-------
 1 files changed, 11 insertions(+), 7 deletions(-)

diffs (33 lines):

diff -r 55568efcffec -r 776ae16a3577 sys/dev/usb/if_aue.c
--- a/sys/dev/usb/if_aue.c      Sun Jan 16 14:20:54 2000 +0000
+++ b/sys/dev/usb/if_aue.c      Sun Jan 16 14:24:33 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_aue.c,v 1.1 2000/01/16 13:45:56 augustss Exp $      */
+/*     $NetBSD: if_aue.c,v 1.2 2000/01/16 14:24:33 augustss Exp $      */
 /*
  * Copyright (c) 1997, 1998, 1999, 2000
  *     Bill Paul <wpaul%ee.columbia.edu@localhost>.  All rights reserved.
@@ -535,13 +535,17 @@
 
        AUE_SETBIT(sc, AUE_CTL0, AUE_CTL0_RX_ENB | AUE_CTL0_TX_ENB);
 
-       if (sc->aue_vendor == USB_VENDOR_ADMTEK &&
-           sc->aue_product == USB_PRODUCT_ADMTEK_PEGASUS) {
-               /* Make LINK LED behave like the adapter label says. */
-               aue_miibus_writereg(USBDEV(sc->aue_dev), 0, 0x1b, 
-                   aue_miibus_readreg(USBDEV(sc->aue_dev), 0, 0x1b) | 0x04);
+       /*
+        * 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_vendor == USB_VENDOR_LINKSYS &&
+           sc->aue_product == USB_PRODUCT_LINKSYS_USB100TX) {
+               u_int16_t               auxmode;
+               auxmode = aue_miibus_readreg(dev, 0, 0x1b);
+               aue_miibus_writereg(dev, 0, 0x1b, auxmode | 0x04);
        }
-
 }
 
 #define AUE_POLY       0xEDB88320



Home | Main Index | Thread Index | Old Index