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

Function espi_read16

util/amdtool/espi.c:92–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90}
91
92static uint32_t espi_read16(const io_register_t *reg, size_t espi_cntrlr)
93{
94 if (use_smn)
95 return smn_read16(espi_smn_addr[espi_cntrlr] + reg->addr);
96 else
97 return read16(espibar + (espi_cntrlr * ESPI_MMIO_SIZE) + reg->addr);
98}
99
100static uint32_t espi_read8(const io_register_t *reg, size_t espi_cntrlr)
101{

Callers 1

print_espiFunction · 0.70

Calls 2

smn_read16Function · 0.85
read16Function · 0.50

Tested by

no test coverage detected