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

Function awg_setup_core

freebsd/arm/allwinner/if_awg.c:460–472  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

458}
459
460static void
461awg_setup_core(struct awg_softc *sc)
462{
463 uint32_t val;
464
465 AWG_ASSERT_LOCKED(sc);
466 /* Configure DMA burst length and priorities */
467 val = awg_burst_len << BASIC_CTL_BURST_LEN_SHIFT;
468 if (awg_rx_tx_pri)
469 val |= BASIC_CTL_RX_TX_PRI;
470 WR4(sc, EMAC_BASIC_CTL_1, val);
471
472}
473
474static void
475awg_enable_mac(struct awg_softc *sc, bool enable)

Callers 1

awg_init_lockedFunction · 0.85

Calls 1

WR4Function · 0.50

Tested by

no test coverage detected