diff options
author | marius <marius@FreeBSD.org> | 2007-01-13 00:14:45 +0000 |
---|---|---|
committer | marius <marius@FreeBSD.org> | 2007-01-13 00:14:45 +0000 |
commit | b7d2e0ec0c552eebcfd60bfd8afdd791ee33c0eb (patch) | |
tree | f9aad804e0112be380c69ac354d16006dd03503e /sys/dev/mii | |
parent | c892fcea73dc06f98e4ac8fe58c74bc260e70e3f (diff) | |
download | FreeBSD-src-b7d2e0ec0c552eebcfd60bfd8afdd791ee33c0eb.zip FreeBSD-src-b7d2e0ec0c552eebcfd60bfd8afdd791ee33c0eb.tar.gz |
Remove mii_media_from_bmcr(); all previous users have been converted to
use mii_phy_add_media()/mii_phy_setmedia().
Diffstat (limited to 'sys/dev/mii')
-rw-r--r-- | sys/dev/mii/mii_physubr.c | 18 | ||||
-rw-r--r-- | sys/dev/mii/miivar.h | 2 |
2 files changed, 0 insertions, 20 deletions
diff --git a/sys/dev/mii/mii_physubr.c b/sys/dev/mii/mii_physubr.c index dd82677..218f080 100644 --- a/sys/dev/mii/mii_physubr.c +++ b/sys/dev/mii/mii_physubr.c @@ -326,24 +326,6 @@ mii_anar(int media) } /* - * 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 * of media names. Does not print a newline. diff --git a/sys/dev/mii/miivar.h b/sys/dev/mii/miivar.h index 33ce299..569dced 100644 --- a/sys/dev/mii/miivar.h +++ b/sys/dev/mii/miivar.h @@ -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 *); |