diff options
Diffstat (limited to 'sys/dev/mii/txphy.c')
-rw-r--r-- | sys/dev/mii/txphy.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/sys/dev/mii/txphy.c b/sys/dev/mii/txphy.c index ca8d0e1321a..368a26b540a 100644 --- a/sys/dev/mii/txphy.c +++ b/sys/dev/mii/txphy.c @@ -1,4 +1,4 @@ -/* $OpenBSD: txphy.c,v 1.6 2004/09/20 06:05:27 brad Exp $ */ +/* $OpenBSD: txphy.c,v 1.7 2004/09/26 00:59:58 brad Exp $ */ /* * Copyright (c) 1999 Jason L. Wright (jason@thought.net) @@ -58,6 +58,10 @@ struct cfdriver txphy_cd = { int txphy_service(struct mii_softc *, struct mii_data *, int); +const struct mii_phy_funcs txphy_funcs = { + txphy_service, ukphy_status, mii_phy_reset, +}; + int txphymatch(parent, match, aux) struct device *parent; @@ -86,12 +90,11 @@ txphyattach(parent, self, aux) sc->mii_inst = mii->mii_instance; sc->mii_phy = ma->mii_phyno; - sc->mii_service = txphy_service; - sc->mii_status = ukphy_status; + sc->mii_funcs = &txphy_funcs; sc->mii_pdata = mii; sc->mii_flags = mii->mii_flags; - mii_phy_reset(sc); + PHY_RESET(sc); sc->mii_capabilities = PHY_READ(sc, MII_BMSR) & ma->mii_capmask; |