Remove mii_media_from_bmcr(); all previous users have been converted to

use mii_phy_add_media()/mii_phy_setmedia().
This commit is contained in:
Marius Strobl 2007-01-13 00:14:45 +00:00
parent 75b1a030f1
commit 2bf52b991f
2 changed files with 0 additions and 20 deletions

View File

@ -325,24 +325,6 @@ mii_anar(int media)
return (rv);
}
/*
* Given a BMCR value, return the corresponding ifmedia word.
*/
int
mii_media_from_bmcr(int bmcr)
{
int rv = IFM_ETHER;
if (bmcr & BMCR_S100)
rv |= IFM_100_TX;
else
rv |= IFM_10_T;
if (bmcr & BMCR_FDX)
rv |= IFM_FDX;
return (rv);
}
/*
* Initialize generic PHY media based on BMSR, called when a PHY is
* attached. We expect to be set up to print a comma-separated list

View File

@ -215,8 +215,6 @@ int mii_phy_probe(device_t, device_t *, ifm_change_cb_t, ifm_stat_cb_t);
void mii_add_media(struct mii_softc *);
void mii_phy_add_media(struct mii_softc *);
int mii_media_from_bmcr(int);
int mii_phy_auto(struct mii_softc *);
int mii_phy_detach(device_t dev);
void mii_phy_down(struct mii_softc *);