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

Function smn_read8

util/amdtool/smn.c:30–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28}
29
30uint8_t smn_read8(uint32_t addr)
31{
32 if (!nb_dev)
33 return UINT8_MAX;
34
35 pci_write_long(nb_dev, SMN_INDIRECT_INDEX, addr & 0xfffffffc);
36 return pci_read_byte(nb_dev, SMN_INDIRECT_DATA + (addr & 3));
37}
38
39void init_smn(struct pci_dev *nb)
40{

Callers 3

espi_read8Function · 0.85
spi_read8Function · 0.85
print_gpiosFunction · 0.85

Calls 2

pci_write_longFunction · 0.85
pci_read_byteFunction · 0.85

Tested by

no test coverage detected