Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci Use the AN985 media switch on the AN985.



details:   https://anonhg.NetBSD.org/src/rev/26f077bbb20e
branches:  trunk
changeset: 501887:26f077bbb20e
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Mon Jan 08 21:45:42 2001 +0000

description:
Use the AN985 media switch on the AN985.

diffstat:

 sys/dev/pci/if_tlp_pci.c |  9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diffs (24 lines):

diff -r 7108b133107f -r 26f077bbb20e sys/dev/pci/if_tlp_pci.c
--- a/sys/dev/pci/if_tlp_pci.c  Mon Jan 08 21:40:29 2001 +0000
+++ b/sys/dev/pci/if_tlp_pci.c  Mon Jan 08 21:45:42 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_tlp_pci.c,v 1.48 2000/12/28 22:59:13 sommerfeld Exp $       */
+/*     $NetBSD: if_tlp_pci.c,v 1.49 2001/01/08 21:45:42 thorpej Exp $  */
 
 /*-
  * Copyright (c) 1998, 1999, 2000 The NetBSD Foundation, Inc.
@@ -870,8 +870,13 @@
                 * PHY, MAC-only has an external PHY (usually HomePNA).
                 * The selection is based on an EEPROM setting, and both
                 * PHYs are accessed via MII attached to SIO.
+                *
+                * The AN985 "ghosts" the internal PHY onto all
+                * MII addresses, so we have to use a media init
+                * routine that limits the search.
+                * XXX How does this work with MAC-only mode?
                 */
-               sc->sc_mediasw = &tlp_sio_mii_mediasw;
+               sc->sc_mediasw = &tlp_an985_mediasw;
                break;
 
        case TULIP_CHIP_DM9102:



Home | Main Index | Thread Index | Old Index