summaryrefslogtreecommitdiff
path: root/sys/dev/mii/ukphy.c
diff options
context:
space:
mode:
authorNathan Binkert <nate@cvs.openbsd.org>2001-06-08 02:16:42 +0000
committerNathan Binkert <nate@cvs.openbsd.org>2001-06-08 02:16:42 +0000
commit8f0b00e0a2fd9f1d4a58ba708e6d9b464063f14d (patch)
tree19f4c99ee334735227a88287627fdebfc89bf84e /sys/dev/mii/ukphy.c
parent9e436197a7a21d6181bf07840edd20711a785e1e (diff)
Add some general support info for gigabit phys
Fix some comments Remove some dead code From NetBSD
Diffstat (limited to 'sys/dev/mii/ukphy.c')
-rw-r--r--sys/dev/mii/ukphy.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/dev/mii/ukphy.c b/sys/dev/mii/ukphy.c
index 27ee6d5bacd..5652a8412e0 100644
--- a/sys/dev/mii/ukphy.c
+++ b/sys/dev/mii/ukphy.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ukphy.c,v 1.8 2000/08/28 05:24:06 jason Exp $ */
+/* $OpenBSD: ukphy.c,v 1.9 2001/06/08 02:16:41 nate Exp $ */
/* $NetBSD: ukphy.c,v 1.9 2000/02/02 23:34:57 thorpej Exp $ */
/*-
@@ -142,7 +142,10 @@ ukphyattach(parent, self, aux)
sc->mii_capabilities =
PHY_READ(sc, MII_BMSR) & ma->mii_capmask;
- if ((sc->mii_capabilities & BMSR_MEDIAMASK) == 0)
+ if (sc->mii_capabilities & BMSR_EXTSTAT)
+ sc->mii_extcapabilities = PHY_READ(sc, MII_EXTSR);
+ if ((sc->mii_capabilities & BMSR_MEDIAMASK) == 0 &&
+ (sc->mii_extcapabilities & EXTSR_MEDIAMASK) == 0)
printf("%s: no media present\n", sc->mii_dev.dv_xname);
else
mii_phy_add_media(sc);