diff options
author | phk <phk@FreeBSD.org> | 2002-04-29 13:35:31 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2002-04-29 13:35:31 +0000 |
commit | 623b9c8449c71dee51ac80bd8c451872724d4f4e (patch) | |
tree | 9eea384f7eadc97b7396b1efe9eb6e5f002eae0b /sys/dev/mii/ukphy_subr.c | |
parent | f991342a3516788d7bdcf299d43518fc006fafe2 (diff) | |
download | FreeBSD-src-623b9c8449c71dee51ac80bd8c451872724d4f4e.zip FreeBSD-src-623b9c8449c71dee51ac80bd8c451872724d4f4e.tar.gz |
Convert exphy and ukphy over to the new code.
exphy is done flying blind, ukphy is tested on one card.
Diffstat (limited to 'sys/dev/mii/ukphy_subr.c')
-rw-r--r-- | sys/dev/mii/ukphy_subr.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/mii/ukphy_subr.c b/sys/dev/mii/ukphy_subr.c index ab5bc15..da14632 100644 --- a/sys/dev/mii/ukphy_subr.c +++ b/sys/dev/mii/ukphy_subr.c @@ -65,10 +65,10 @@ static const char rcsid[] = * by decoding the NWay autonegotiation, use this routine. */ void -ukphy_status(phy) - struct mii_softc *phy; +ukphy_status(struct mii_softc *phy) { struct mii_data *mii = phy->mii_pdata; + struct ifmedia_entry *ife = mii->mii_media.ifm_cur; int bmsr, bmcr, anlpar; mii->mii_media_status = IFM_AVALID; @@ -114,5 +114,5 @@ ukphy_status(phy) else mii->mii_media_active |= IFM_NONE; } else - mii->mii_media_active = mii_media_from_bmcr(bmcr); + mii->mii_media_active = ife->ifm_media; } |