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

Function espi_read32

util/amdtool/espi.c:84–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82static volatile uint8_t *espibar;
83
84static uint32_t espi_read32(const io_register_t *reg, size_t espi_cntrlr)
85{
86 if (use_smn)
87 return smn_read32(espi_smn_addr[espi_cntrlr] + reg->addr);
88 else
89 return read32(espibar + (espi_cntrlr * ESPI_MMIO_SIZE) + reg->addr);
90}
91
92static uint32_t espi_read16(const io_register_t *reg, size_t espi_cntrlr)
93{

Callers 1

print_espiFunction · 0.70

Calls 2

smn_read32Function · 0.70
read32Function · 0.50

Tested by

no test coverage detected