Now that all previous users of mii_phy_probe() have been converted
in r213893 and r213894 to use mii_attach() instead remove the former and along with it the "EVIL HACK". MFC after: never
This commit is contained in:
parent
09631173be
commit
e60f6da1d6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=213900
@ -454,21 +454,6 @@ mii_attach(device_t dev, device_t *miibus, struct ifnet *ifp,
|
||||
return (rv);
|
||||
}
|
||||
|
||||
int
|
||||
mii_phy_probe(device_t dev, device_t *child, ifm_change_cb_t ifmedia_upd,
|
||||
ifm_stat_cb_t ifmedia_sts)
|
||||
{
|
||||
struct ifnet *ifp;
|
||||
|
||||
/*
|
||||
* Note that each NIC's softc must start with an ifnet pointer.
|
||||
* XXX: EVIL HACK!
|
||||
*/
|
||||
ifp = *(struct ifnet **)device_get_softc(dev);
|
||||
return (mii_attach(dev, child, ifp, ifmedia_upd, ifmedia_sts,
|
||||
BMSR_DEFCAPMASK, MII_PHY_ANY, MII_OFFSET_ANY, 0));
|
||||
}
|
||||
|
||||
/*
|
||||
* Media changed; notify all PHYs.
|
||||
*/
|
||||
|
@ -232,7 +232,6 @@ void mii_down(struct mii_data *);
|
||||
int mii_mediachg(struct mii_data *);
|
||||
void mii_tick(struct mii_data *);
|
||||
void mii_pollstat(struct mii_data *);
|
||||
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 *);
|
||||
|
||||
|
@ -14,7 +14,6 @@ SRCS+= xmphy.c
|
||||
|
||||
EXPORT_SYMS= mii_attach \
|
||||
mii_mediachg \
|
||||
mii_phy_probe \
|
||||
mii_phy_reset \
|
||||
mii_pollstat \
|
||||
mii_tick
|
||||
|
Loading…
Reference in New Issue
Block a user