| 78 | static struct pci_access *pacc; |
| 79 | |
| 80 | static 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 | |
| 96 | int find_smbus_dev_rev(uint16_t vendor, uint16_t device) |
| 97 | { |
no test coverage detected