MCPcopy Create free account
hub / github.com/coreboot/coreboot / write_1d0

Function write_1d0

util/inteltool/memory.c:50–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50static void write_1d0 (u32 val, u16 addr, int bits, int flag)
51{
52 write_mchbar32 (0x1d0, 0);
53 while (read_mchbar32 (0x1d0) & 0x800000);
54 write_mchbar32 (0x1d4, (val & ((1 << bits) - 1)) | (2 << bits) | (flag << bits));
55 write_mchbar32 (0x1d0, 0x40000000 | addr);
56 while (read_mchbar32 (0x1d0) & 0x800000);
57}
58
59static u16 read_1d0 (u16 addr, int split)
60{

Callers 1

read_1d0Function · 0.70

Calls 2

write_mchbar32Function · 0.85
read_mchbar32Function · 0.70

Tested by

no test coverage detected