summaryrefslogtreecommitdiffstats
path: root/sys/dev/gx
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2002-04-28 20:34:20 +0000
committerphk <phk@FreeBSD.org>2002-04-28 20:34:20 +0000
commite67296b3b06948c8abac60000a1a1b3fd9d271f7 (patch)
tree57f15bd8169ec54566fa5890d74e3139943e0ce4 /sys/dev/gx
parentf8c369f7e5ced10460a44577e47774f38701b831 (diff)
downloadFreeBSD-src-e67296b3b06948c8abac60000a1a1b3fd9d271f7.zip
FreeBSD-src-e67296b3b06948c8abac60000a1a1b3fd9d271f7.tar.gz
Follow NetBSD and s/IFM_1000_TX/IFM_1000_T/
Diffstat (limited to 'sys/dev/gx')
-rw-r--r--sys/dev/gx/if_gx.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/gx/if_gx.c b/sys/dev/gx/if_gx.c
index 0ac3b71..38f63ff 100644
--- a/sys/dev/gx/if_gx.c
+++ b/sys/dev/gx/if_gx.c
@@ -725,7 +725,7 @@ gx_ifmedia_upd(struct ifnet *ifp)
* 1000TX half duplex does not work.
*/
if (IFM_TYPE(ifm->ifm_media) == IFM_ETHER &&
- IFM_SUBTYPE(ifm->ifm_media) == IFM_1000_TX &&
+ IFM_SUBTYPE(ifm->ifm_media) == IFM_1000_T &&
(IFM_OPTIONS(ifm->ifm_media) & IFM_FDX) == 0)
return (EINVAL);
mii = device_get_softc(gx->gx_miibus);
@@ -759,8 +759,8 @@ gx_ifmedia_sts(struct ifnet *ifp, struct ifmediareq *ifmr)
} else {
mii = device_get_softc(gx->gx_miibus);
mii_pollstat(mii);
- if ((mii->mii_media_active & (IFM_1000_TX | IFM_HDX)) ==
- (IFM_1000_TX | IFM_HDX))
+ if ((mii->mii_media_active & (IFM_1000_T | IFM_HDX)) ==
+ (IFM_1000_T | IFM_HDX))
mii->mii_media_active = IFM_ETHER | IFM_NONE;
ifmr->ifm_active = mii->mii_media_active;
ifmr->ifm_status = mii->mii_media_status;
OpenPOWER on IntegriCloud