diff options
Diffstat (limited to 'sys/dev/mii/tqphy.c')
-rw-r--r-- | sys/dev/mii/tqphy.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/dev/mii/tqphy.c b/sys/dev/mii/tqphy.c index 09c74634410..2a1feec3c48 100644 --- a/sys/dev/mii/tqphy.c +++ b/sys/dev/mii/tqphy.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tqphy.c,v 1.4 2002/03/14 01:26:58 millert Exp $ */ +/* $OpenBSD: tqphy.c,v 1.5 2002/05/04 11:30:06 fgsch Exp $ */ /* $NetBSD: tqphy.c,v 1.9 2000/02/02 23:34:57 thorpej Exp $ */ /* @@ -235,19 +235,19 @@ tqphy_status(sc) PHY_READ(sc, MII_BMSR); if (bmsr & BMSR_LINK) mii->mii_media_status |= IFM_ACTIVE; - + bmcr = PHY_READ(sc, MII_BMCR); if (bmcr & BMCR_ISO) { mii->mii_media_active |= IFM_NONE; mii->mii_media_status = 0; return; } - + if (bmcr & BMCR_LOOP) mii->mii_media_active |= IFM_LOOP; - + if (bmcr & BMCR_AUTOEN) { - if ((bmsr & BMSR_ACOMP) == 0) { + if ((bmsr & BMSR_ACOMP) == 0) { /* Erg, still trying, I guess... */ mii->mii_media_active |= IFM_NONE; return; @@ -259,6 +259,6 @@ tqphy_status(sc) mii->mii_media_active |= IFM_10_T; if (diag & DIAG_DPLX) mii->mii_media_active |= IFM_FDX; - } else + } else mii->mii_media_active = ife->ifm_media; } |