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

Function decode_win_idma_dump

freebsd/arm/mv/mv_common.c:2027–2048  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2025}
2026
2027void
2028decode_win_idma_dump(u_long base)
2029{
2030 int i;
2031
2032 if (pm_is_disabled(CPU_PM_CTRL_IDMA))
2033 return;
2034
2035 for (i = 0; i < MV_WIN_IDMA_MAX; i++) {
2036 printf("IDMA window#%d: b 0x%08x, s 0x%08x", i,
2037 win_idma_br_read(base, i), win_idma_sz_read(base, i));
2038
2039 if (win_idma_can_remap(i))
2040 printf(", ha 0x%08x", win_idma_har_read(base, i));
2041
2042 printf("\n");
2043 }
2044 for (i = 0; i < MV_IDMA_CHAN_MAX; i++)
2045 printf("IDMA channel#%d: ap 0x%08x\n", i,
2046 win_idma_cap_read(base, i));
2047 printf("IDMA windows: bare 0x%08x\n", win_idma_bare_read(base));
2048}
2049#else
2050
2051/* Provide dummy functions to satisfy the build for SoCs not equipped with IDMA */

Callers

nothing calls this directly

Calls 3

pm_is_disabledFunction · 0.85
win_idma_can_remapFunction · 0.85
printfFunction · 0.50

Tested by

no test coverage detected