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

Function pci_dev_find

util/amdtool/amdtool.c:80–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78static struct pci_access *pacc;
79
80static struct pci_dev *pci_dev_find(uint16_t vendor, uint16_t device)
81{
82 struct pci_dev *temp;
83 struct pci_filter filter;
84
85 pci_filter_init(NULL, &filter);
86 filter.vendor = vendor;
87 filter.device = device;
88
89 for (temp = pacc->devices; temp; temp = temp->next)
90 if (pci_filter_match(&filter, temp))
91 return temp;
92
93 return NULL;
94}
95
96int find_smbus_dev_rev(uint16_t vendor, uint16_t device)
97{

Callers 1

find_smbus_dev_revFunction · 0.70

Calls 2

pci_filter_initFunction · 0.85
pci_filter_matchFunction · 0.85

Tested by

no test coverage detected