FreeBSD/sys/arm/cavium/cns11xx/if_ece.c
/*
 * Change media according to request.
 */
Change media according to request.
Change media according to request .
static int
ece_ifmedia_upd(struct ifnet *ifp)
{
	struct ece_softc *sc = ifp->if_softc;
	struct mii_data *mii;
	int error;
	mii = device_get_softc(sc->miibus);
	ECE_LOCK(sc);
	error = mii_mediachg(mii);
	ECE_UNLOCK(sc);
	return (error);
}
static int ece_ifmedia_upd ( struct ifnet * ifp ) { struct ece_softc * sc = ifp -> if_softc ; struct mii_data * mii ; int error ; mii = device_get_softc ( sc -> miibus ) ; ECE_LOCK ( sc ) ; error = mii_mediachg ( mii ) ; ECE_UNLOCK ( sc ) ; return ( error ) ; }
Change media according to request.
Change media according to request .