diff options
| author | 2009-07-25 12:17:42 +0000 | |
|---|---|---|
| committer | 2009-07-25 12:17:42 +0000 | |
| commit | d667382333f93845ffb10fa48496df8ccac8d2ca (patch) | |
| tree | efba009dfa9c18c241ace40482e2805356f7c4ff | |
| parent | int is big enough to fully represent exponents of all supported fp (diff) | |
| download | wireguard-openbsd-d667382333f93845ffb10fa48496df8ccac8d2ca.tar.xz wireguard-openbsd-d667382333f93845ffb10fa48496df8ccac8d2ca.zip | |
Replace magic numbers for ANAR flow control bits with the appropriate
defines from mii.h. From Brad.
| -rw-r--r-- | sys/dev/mii/atphy.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/mii/atphy.c b/sys/dev/mii/atphy.c index efbf912c3d2..41328f0a8bb 100644 --- a/sys/dev/mii/atphy.c +++ b/sys/dev/mii/atphy.c @@ -1,4 +1,4 @@ -/* $OpenBSD: atphy.c,v 1.2 2009/03/23 05:26:47 kevlo Exp $ */ +/* $OpenBSD: atphy.c,v 1.3 2009/07/25 12:17:42 kettenis Exp $ */ /*- * Copyright (c) 2008, Pyun YongHyeon <yongari@FreeBSD.org> @@ -202,7 +202,7 @@ atphy_service(struct mii_softc *sc, struct mii_data *mii, int cmd) bmcr |= BMCR_FDX; /* Enable pause. */ if (sc->mii_flags & MIIF_DOPAUSE) - anar |= (3 << 10); + anar |= ANAR_PAUSE_TOWARDS; } if ((sc->mii_extcapabilities & (EXTSR_1000TFDX | @@ -374,7 +374,7 @@ atphy_mii_phy_auto(struct mii_softc *sc) anar = BMSR_MEDIA_TO_ANAR(sc->mii_capabilities) | ANAR_CSMA; if (sc->mii_flags & MIIF_DOPAUSE) - anar |= (3 << 10); + anar |= ANAR_PAUSE_TOWARDS; PHY_WRITE(sc, MII_ANAR, anar); if (sc->mii_extcapabilities & (EXTSR_1000TFDX | EXTSR_1000THDX)) PHY_WRITE(sc, MII_100T2CR, GTCR_ADV_1000TFDX | |
