diff options
author | Brad Smith <brad@cvs.openbsd.org> | 2008-03-02 16:05:27 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 2008-03-02 16:05:27 +0000 |
commit | 1c7afa20d77ef1af57380ba7b4a2cc8afe27351c (patch) | |
tree | 9b0256050d31da7c860aa56422ca2f995c0cf0e8 /sys/dev/mii | |
parent | 81f3808ea6778ac9b1e66f2c90a92f8e639ad540 (diff) |
Add missing half duplex flag for 100baseT4.
ok kettenis@
Diffstat (limited to 'sys/dev/mii')
-rw-r--r-- | sys/dev/mii/brgphy.c | 4 | ||||
-rw-r--r-- | sys/dev/mii/nsphy.c | 4 | ||||
-rw-r--r-- | sys/dev/mii/qsphy.c | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/sys/dev/mii/brgphy.c b/sys/dev/mii/brgphy.c index 8b2c180cfb9..7283de7f4b2 100644 --- a/sys/dev/mii/brgphy.c +++ b/sys/dev/mii/brgphy.c @@ -1,4 +1,4 @@ -/* $OpenBSD: brgphy.c,v 1.74 2008/02/28 01:34:37 brad Exp $ */ +/* $OpenBSD: brgphy.c,v 1.75 2008/03/02 16:05:26 brad Exp $ */ /* * Copyright (c) 2000 @@ -375,7 +375,7 @@ brgphy_status(struct mii_softc *sc) mii->mii_media_active |= IFM_100_TX | IFM_FDX; break; case BRGPHY_RES_100T4: - mii->mii_media_active |= IFM_100_T4; + mii->mii_media_active |= IFM_100_T4 | IFM_HDX; break; case BRGPHY_RES_100HD: mii->mii_media_active |= IFM_100_TX | IFM_HDX; diff --git a/sys/dev/mii/nsphy.c b/sys/dev/mii/nsphy.c index 6500a9b17d5..7d0825e66f8 100644 --- a/sys/dev/mii/nsphy.c +++ b/sys/dev/mii/nsphy.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nsphy.c,v 1.20 2006/12/27 19:11:09 kettenis Exp $ */ +/* $OpenBSD: nsphy.c,v 1.21 2008/03/02 16:05:26 brad Exp $ */ /* $NetBSD: nsphy.c,v 1.25 2000/02/02 23:34:57 thorpej Exp $ */ /*- @@ -290,7 +290,7 @@ nsphy_status(struct mii_softc *sc) anlpar = PHY_READ(sc, MII_ANAR) & PHY_READ(sc, MII_ANLPAR); if (anlpar & ANLPAR_T4) - mii->mii_media_active |= IFM_100_T4; + mii->mii_media_active |= IFM_100_T4|IFM_HDX; else if (anlpar & ANLPAR_TX_FD) mii->mii_media_active |= IFM_100_TX|IFM_FDX; else if (anlpar & ANLPAR_TX) diff --git a/sys/dev/mii/qsphy.c b/sys/dev/mii/qsphy.c index ddacc2d38c7..a7820724ab9 100644 --- a/sys/dev/mii/qsphy.c +++ b/sys/dev/mii/qsphy.c @@ -1,4 +1,4 @@ -/* $OpenBSD: qsphy.c,v 1.14 2006/12/27 19:11:09 kettenis Exp $ */ +/* $OpenBSD: qsphy.c,v 1.15 2008/03/02 16:05:26 brad Exp $ */ /* $NetBSD: qsphy.c,v 1.19 2000/02/02 23:34:57 thorpej Exp $ */ /*- @@ -260,7 +260,7 @@ qsphy_status(struct mii_softc *sc) mii->mii_media_active |= IFM_100_TX|IFM_FDX; break; case PCTL_100_T4: - mii->mii_media_active |= IFM_100_T4; + mii->mii_media_active |= IFM_100_T4|IFM_HDX; break; default: /* Erg... this shouldn't happen. */ |