summaryrefslogtreecommitdiffstats
path: root/sys/dev/mii/gentbi.c
diff options
context:
space:
mode:
authormarius <marius@FreeBSD.org>2010-11-14 13:31:01 +0000
committermarius <marius@FreeBSD.org>2010-11-14 13:31:01 +0000
commitdd93d3c0fda933782c0813b9cf0b13c8c5f80054 (patch)
tree07cbc77f29c3ac4577e10c4a098c52dd7a62a657 /sys/dev/mii/gentbi.c
parent278d761d736b370c6ad85e2ff6593c0f73d10c6f (diff)
downloadFreeBSD-src-dd93d3c0fda933782c0813b9cf0b13c8c5f80054.zip
FreeBSD-src-dd93d3c0fda933782c0813b9cf0b13c8c5f80054.tar.gz
- Change these drivers to take advantage and use the generic IEEE 802.3
annex 31B full duplex flow control as well as the IFM_1000_T master support committed in r215297. For atphy(4) and jmphy(4) this includes changing these PHY drivers to no longer unconditionally advertise support for flow control but only if the selected media has IFM_FLOW set (or MIIF_FORCEPAUSE is set). - Rename {atphy,jmphy}_auto() to {atphy,jmphy}_setmedia() as these handle other media types as well. Reviewed by: yongari (plus additional testing) Obtained from: NetBSD (partially), OpenBSD (partially) MFC after: 2 weeks
Diffstat (limited to 'sys/dev/mii/gentbi.c')
-rw-r--r--sys/dev/mii/gentbi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/mii/gentbi.c b/sys/dev/mii/gentbi.c
index ee08efe..f5d3a8b 100644
--- a/sys/dev/mii/gentbi.c
+++ b/sys/dev/mii/gentbi.c
@@ -267,7 +267,8 @@ gentbi_status(struct mii_softc *sc)
anlpar = PHY_READ(sc, MII_ANLPAR);
if ((sc->mii_extcapabilities & EXTSR_1000XFDX) != 0 &&
(anlpar & ANLPAR_X_FD) != 0)
- mii->mii_media_active |= IFM_FDX;
+ mii->mii_media_active |=
+ IFM_FDX | mii_phy_flowstatus(sc);
else
mii->mii_media_active |= IFM_HDX;
} else
OpenPOWER on IntegriCloud