FreeBSD/sys/arm/cavium/cns11xx/if_ece.c
/*
 * Notify the world which media we're using.
 */
Notify the world which media we're using.
Notify the world which media we ' re using .
static void
ece_ifmedia_sts(struct ifnet *ifp, struct ifmediareq *ifmr)
{
	struct ece_softc *sc = ifp->if_softc;
	struct mii_data *mii;
	mii = device_get_softc(sc->miibus);
	ECE_LOCK(sc);
	mii_pollstat(mii);
	ifmr->ifm_active = mii->mii_media_active;
	ifmr->ifm_status = mii->mii_media_status;
	ECE_UNLOCK(sc);
}
static void ece_ifmedia_sts ( struct ifnet * ifp , struct ifmediareq * ifmr ) { struct ece_softc * sc = ifp -> if_softc ; struct mii_data * mii ; mii = device_get_softc ( sc -> miibus ) ; ECE_LOCK ( sc ) ; mii_pollstat ( mii ) ; ifmr -> ifm_active = mii -> mii_media_active ; ifmr -> ifm_status = mii -> mii_media_status ; ECE_UNLOCK ( sc ) ; }
Notify the world which media we're using.
Notify the world which media we ' re using .