FreeBSD/sys/dev/cadence/if_cgem.c
/* Turn on interface and load up receive ring with buffers. */
Turn on interface and load up receive ring with buffers.
Turn on interface and load up receive ring with buffers .
static void
cgem_init_locked(struct cgem_softc *sc)
{
	struct mii_data *mii;
	CGEM_ASSERT_LOCKED(sc);
	if ((if_getdrvflags(sc->ifp) & IFF_DRV_RUNNING) != 0)
		return;
	cgem_config(sc);
	cgem_fill_rqueue(sc);
	if_setdrvflagbits(sc->ifp, IFF_DRV_RUNNING, IFF_DRV_OACTIVE);
	mii = device_get_softc(sc->miibus);
	mii_mediachg(mii);
	callout_reset(&sc->tick_ch, hz, cgem_tick, sc);
}
static void cgem_init_locked ( struct cgem_softc * sc ) { struct mii_data * mii ; CGEM_ASSERT_LOCKED ( sc ) ; if ( ( if_getdrvflags ( sc -> ifp ) & IFF_DRV_RUNNING ) != 0 ) return ; cgem_config ( sc ) ; cgem_fill_rqueue ( sc ) ; if_setdrvflagbits ( sc -> ifp , IFF_DRV_RUNNING , IFF_DRV_OACTIVE ) ; mii = device_get_softc ( sc -> miibus ) ; mii_mediachg ( mii ) ; callout_reset ( & sc -> tick_ch , hz , cgem_tick , sc ) ; }
Turn on interface and load up receive ring with buffers.
Turn on interface and load up receive ring with buffers .