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

Function zy7_pl_fclk_enabled

freebsd/arm/xilinx/zy7_slcr.c:485–499  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

483}
484
485int
486zy7_pl_fclk_enabled(int unit)
487{
488 struct zy7_slcr_softc *sc = zy7_slcr_softc_p;
489 uint32_t reg;
490
491 if (!sc)
492 return (-1);
493
494 ZSLCR_LOCK(sc);
495 reg = RD4(sc, ZY7_SLCR_FPGA_THR_CNT(unit));
496 ZSLCR_UNLOCK(sc);
497
498 return !(reg & 1);
499}
500
501int
502zy7_pl_level_shifters_enabled(void)

Callers 2

zy7_devcfg_attachFunction · 0.85

Calls 1

RD4Function · 0.50

Tested by

no test coverage detected