FreeBSD/sys/arm/at91/if_macb.c
/*
 * Change media according to request.
 */
Change media according to request.
Change media according to request .
static int
macb_ifmedia_upd(struct ifnet *ifp)
{
	struct macb_softc *sc = ifp->if_softc;
	struct mii_data *mii;
	mii = device_get_softc(sc->miibus);
	MACB_LOCK(sc);
	mii_mediachg(mii);
	MACB_UNLOCK(sc);
	return (0);
}
static int macb_ifmedia_upd ( struct ifnet * ifp ) { struct macb_softc * sc = ifp -> if_softc ; struct mii_data * mii ; mii = device_get_softc ( sc -> miibus ) ; MACB_LOCK ( sc ) ; mii_mediachg ( mii ) ; MACB_UNLOCK ( sc ) ; return ( 0 ) ; }
Change media according to request.
Change media according to request .