FreeBSD/sys/dev/stge/if_stge.c
/*
 * stge_mediastatus:	[ifmedia interface function]
 *
 *	Get the current interface media status.
 */
[ifmedia interface function]
Get the current interface media status.
[ ifmedia interface function ] Get the current interface media status .
static void
stge_mediastatus(struct ifnet *ifp, struct ifmediareq *ifmr)
{
	struct stge_softc *sc;
	struct mii_data *mii;
	sc = ifp->if_softc;
	mii = device_get_softc(sc->sc_miibus);
	mii_pollstat(mii);
	ifmr->ifm_status = mii->mii_media_status;
	ifmr->ifm_active = mii->mii_media_active;
}
static void stge_mediastatus ( struct ifnet * ifp , struct ifmediareq * ifmr ) { struct stge_softc * sc ; struct mii_data * mii ; sc = ifp -> if_softc ; mii = device_get_softc ( sc -> sc_miibus ) ; mii_pollstat ( mii ) ; ifmr -> ifm_status = mii -> mii_media_status ; ifmr -> ifm_active = mii -> mii_media_active ; }
stge_mediastatus:    [ifmedia interface function]
      Get the current interface media status.
stge_mediastatus : [ ifmedia interface function ] Get the current interface media status .