diff options
author | Brad Smith <brad@cvs.openbsd.org> | 2004-09-26 00:59:59 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 2004-09-26 00:59:59 +0000 |
commit | 8e8d95d27df054585cfa2d500a840a20e3ebf363 (patch) | |
tree | 8943a7f0c99b56b78d31cd3c72aa1427b2ebc9db /sys/dev/mii/mii_physubr.c | |
parent | 2d35bc93d317846717f475b07c067c11816dae9d (diff) |
Restructure the PHY entry points to use a structure of
entry points instead of descrete function pointers, and
extend this to include a "reset" entry point. Make sure
any PHY-specific reset routine is always used.
From NetBSD
ok mcbride@
Diffstat (limited to 'sys/dev/mii/mii_physubr.c')
-rw-r--r-- | sys/dev/mii/mii_physubr.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/mii/mii_physubr.c b/sys/dev/mii/mii_physubr.c index 67889b95836..e05e7a9f8ac 100644 --- a/sys/dev/mii/mii_physubr.c +++ b/sys/dev/mii/mii_physubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mii_physubr.c,v 1.17 2004/08/03 19:05:56 brad Exp $ */ +/* $OpenBSD: mii_physubr.c,v 1.18 2004/09/26 00:59:58 brad Exp $ */ /* $NetBSD: mii_physubr.c,v 1.20 2001/04/13 23:30:09 thorpej Exp $ */ /*- @@ -187,7 +187,7 @@ mii_phy_auto_timeout(arg) bmsr = PHY_READ(sc, MII_BMSR); /* Update the media status. */ - (void) (*sc->mii_service)(sc, sc->mii_pdata, MII_POLLSTAT); + (void) PHY_SERVICE(sc, sc->mii_pdata, MII_POLLSTAT); splx(s); } @@ -231,7 +231,7 @@ mii_phy_tick(sc) return (EJUSTRETURN); sc->mii_ticks = 0; - mii_phy_reset(sc); + PHY_RESET(sc); if (mii_phy_auto(sc, 0) == EJUSTRETURN) return (EJUSTRETURN); @@ -283,7 +283,7 @@ mii_phy_status(sc) struct mii_softc *sc; { - (*sc->mii_status)(sc); + PHY_STATUS(sc); } void |