MCPcopy Create free account
hub / github.com/F-Stack/f-stack / emac_reset

Function emac_reset

freebsd/arm/allwinner/if_emac.c:274–282  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

272}
273
274static void
275emac_reset(struct emac_softc *sc)
276{
277
278 EMAC_WRITE_REG(sc, EMAC_CTL, 0);
279 DELAY(200);
280 EMAC_WRITE_REG(sc, EMAC_CTL, 1);
281 DELAY(200);
282}
283
284static void
285emac_drain_rxfifo(struct emac_softc *sc)

Callers 1

emac_attachFunction · 0.85

Calls 1

DELAYFunction · 0.50

Tested by

no test coverage detected