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

Function find_smbus_dev_rev

util/amdtool/amdtool.c:96–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94}
95
96int find_smbus_dev_rev(uint16_t vendor, uint16_t device)
97{
98 struct pci_dev *smbus_dev = pci_dev_find(vendor, device);
99 if (!smbus_dev) {
100 printf("No SMBus device with ID %04X:%04X found.\n", vendor, device);
101 perror("ERROR: SMBus device not found.\n");
102 return -1;
103 }
104 return pci_read_byte(smbus_dev, PCI_REVISION_ID);
105}
106
107static void print_version(void)
108{

Callers 11

print_espiFunction · 0.85
print_spi_cntrl0Function · 0.85
print_spi_alt_csFunction · 0.85
print_spi_speed_configFunction · 0.85
print_spi_host_prefetchFunction · 0.85
print_spibarFunction · 0.85
print_lpcFunction · 0.85
print_gpiosFunction · 0.85
print_irq_routingFunction · 0.85
init_acpimmioFunction · 0.85
print_acpimmioFunction · 0.85

Calls 4

printfFunction · 0.85
perrorFunction · 0.85
pci_read_byteFunction · 0.85
pci_dev_findFunction · 0.70

Tested by

no test coverage detected