summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2009-07-25 12:17:43 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2009-07-25 12:17:43 +0000
commit209a6b4ee6b039628e2a5fb0fa638b8b3c87c3db (patch)
tree8f39229241048597f26281be2a68310053e28fff /sys
parent0d8dbd21adf13965256d41cc1effb7147d3b7c5e (diff)
Replace magic numbers for ANAR flow control bits with the appropriate
defines from mii.h. From Brad.
Diffstat (limited to 'sys')
-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 |