diff options
| author | Gleb Smirnoff <glebius@FreeBSD.org> | 2015-01-14 12:46:38 +0000 |
|---|---|---|
| committer | Gleb Smirnoff <glebius@FreeBSD.org> | 2015-01-14 12:46:38 +0000 |
| commit | 501b391d56cfdf61ac27a60644a430170ea017db (patch) | |
| tree | dea7bcc30add9197d810d36c9f37e0e4772efd30 | |
| parent | 45a7a4a7860eb02ecd638ebd3646dc3f749f1b3e (diff) | |
Notes
| -rw-r--r-- | sys/dev/mii/mii.c | 12 | ||||
| -rw-r--r-- | sys/dev/mii/mii_physubr.c | 7 | ||||
| -rw-r--r-- | sys/dev/mii/miivar.h | 2 |
3 files changed, 0 insertions, 21 deletions
diff --git a/sys/dev/mii/mii.c b/sys/dev/mii/mii.c index 77c13470db1b..c4ff4ac092cf 100644 --- a/sys/dev/mii/mii.c +++ b/sys/dev/mii/mii.c @@ -612,18 +612,6 @@ mii_pollstat(struct mii_data *mii) } } -/* - * Inform the PHYs that the interface is down. - */ -void -mii_down(struct mii_data *mii) -{ - struct mii_softc *child; - - LIST_FOREACH(child, &mii->mii_phys, mii_list) - mii_phy_down(child); -} - static unsigned char mii_bitreverse(unsigned char x) { diff --git a/sys/dev/mii/mii_physubr.c b/sys/dev/mii/mii_physubr.c index c8ee613a9179..43e7a105339d 100644 --- a/sys/dev/mii/mii_physubr.c +++ b/sys/dev/mii/mii_physubr.c @@ -279,12 +279,6 @@ mii_phy_reset(struct mii_softc *sc) } void -mii_phy_down(struct mii_softc *sc) -{ - -} - -void mii_phy_update(struct mii_softc *sc, int cmd) { struct mii_data *mii = sc->mii_pdata; @@ -479,7 +473,6 @@ mii_phy_detach(device_t dev) struct mii_softc *sc; sc = device_get_softc(dev); - mii_phy_down(sc); sc->mii_dev = NULL; LIST_REMOVE(sc, mii_list); return (0); diff --git a/sys/dev/mii/miivar.h b/sys/dev/mii/miivar.h index a45717985241..bc2a91c3cab2 100644 --- a/sys/dev/mii/miivar.h +++ b/sys/dev/mii/miivar.h @@ -235,7 +235,6 @@ extern driver_t miibus_driver; int mii_attach(device_t, device_t *, if_t, ifm_change_cb_t, ifm_stat_cb_t, int, int, int, int); -void mii_down(struct mii_data *); int mii_mediachg(struct mii_data *); void mii_tick(struct mii_data *); void mii_pollstat(struct mii_data *); @@ -243,7 +242,6 @@ void mii_phy_add_media(struct mii_softc *); int mii_phy_auto(struct mii_softc *); int mii_phy_detach(device_t dev); -void mii_phy_down(struct mii_softc *); u_int mii_phy_flowstatus(struct mii_softc *); void mii_phy_reset(struct mii_softc *); void mii_phy_setmedia(struct mii_softc *sc); |
