summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2008-06-07 19:39:26 +0000
committerBrad Smith <brad@cvs.openbsd.org>2008-06-07 19:39:26 +0000
commit55cca8a232d18917a0e6f8a3921008ebfac8f867 (patch)
tree8ad29b2a0a8f30ef1790a616fa336d36cf929d16 /sys/dev
parentca0e47a3676416c8fad1d4625e3a2fc69739b0a8 (diff)
Currently unused at the moment but at least allow it to compile.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/mii/ipgphy.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/mii/ipgphy.c b/sys/dev/mii/ipgphy.c
index 8591f3c619a..811a33211c3 100644
--- a/sys/dev/mii/ipgphy.c
+++ b/sys/dev/mii/ipgphy.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ipgphy.c,v 1.7 2006/12/31 15:04:33 krw Exp $ */
+/* $OpenBSD: ipgphy.c,v 1.8 2008/06/07 19:39:25 brad Exp $ */
/*-
* Copyright (c) 2006, Pyun YongHyeon <yongari@FreeBSD.org>
@@ -331,7 +331,7 @@ ipgphy_status(struct mii_softc *sc)
}
int
-ipgphy_mii_phy_auto(struct mii_softc *mii)
+ipgphy_mii_phy_auto(struct mii_softc *sc)
{
uint32_t reg;
@@ -341,11 +341,11 @@ ipgphy_mii_phy_auto(struct mii_softc *mii)
if (sc->mii_flags & MIIF_DOPAUSE)
reg |= IPGPHY_ANAR_PAUSE | IPGPHY_ANAR_APAUSE;
- PHY_WRITE(mii, IPGPHY_MII_ANAR, reg);
+ PHY_WRITE(sc, IPGPHY_MII_ANAR, reg);
reg = IPGPHY_1000CR_1000T | IPGPHY_1000CR_1000T_FDX;
reg |= IPGPHY_1000CR_MASTER;
- PHY_WRITE(mii, IPGPHY_MII_1000CR, reg);
- PHY_WRITE(mii, IPGPHY_MII_BMCR, (IPGPHY_BMCR_FDX |
+ PHY_WRITE(sc, IPGPHY_MII_1000CR, reg);
+ PHY_WRITE(sc, IPGPHY_MII_BMCR, (IPGPHY_BMCR_FDX |
IPGPHY_BMCR_AUTOEN | IPGPHY_BMCR_STARTNEG));
return (EJUSTRETURN);