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

Function soc_dump_decode_win

freebsd/arm/mv/mv_common.c:1086–1109  ·  view source on GitHub ↗

* Decode windows helper routines **************************************************************************/

Source from the content-addressed store, hash-verified

1084 * Decode windows helper routines
1085 **************************************************************************/
1086void
1087soc_dump_decode_win(void)
1088{
1089 int i;
1090
1091 for (i = 0; i < soc_decode_win_spec->mv_win_cpu_max; i++) {
1092 printf("CPU window#%d: c 0x%08x, b 0x%08x", i,
1093 win_cpu_cr_read(i),
1094 win_cpu_br_read(i));
1095
1096 if (win_cpu_can_remap(i))
1097 printf(", rl 0x%08x, rh 0x%08x",
1098 win_cpu_remap_l_read(i),
1099 win_cpu_remap_h_read(i));
1100
1101 printf("\n");
1102 }
1103 printf("Internal regs base: 0x%08x\n",
1104 bus_space_read_4(fdtbus_bs_tag, MV_INTREGS_BASE, 0));
1105
1106 for (i = 0; i < MV_WIN_DDR_MAX; i++)
1107 printf("DDR CS#%d: b 0x%08x, s 0x%08x\n", i,
1108 ddr_br_read(i), ddr_sz_read(i));
1109}
1110
1111/**************************************************************************
1112 * CPU windows routines

Callers 1

soc_decode_winFunction · 0.85

Calls 9

win_cpu_cr_readFunction · 0.85
win_cpu_br_readFunction · 0.85
win_cpu_can_remapFunction · 0.85
win_cpu_remap_l_readFunction · 0.85
win_cpu_remap_h_readFunction · 0.85
bus_space_read_4Function · 0.85
ddr_br_readFunction · 0.85
ddr_sz_readFunction · 0.85
printfFunction · 0.50

Tested by

no test coverage detected