summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/dev/mii/atphy.c6
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 |