soc/intel/common/block/itss: Route PCI INT pin to PIRQ using PIR
[coreboot2.git] / util / superiotool / pci.c
blobee8b97d46c2b93103063a9159b77cd1c8a748e82
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 #include "superiotool.h"
5 struct pci_access *pacc;
7 struct pci_dev *pci_dev_find(uint16_t vendor, uint16_t device)
9 struct pci_dev *temp;
10 struct pci_filter filter;
12 pci_filter_init(NULL, &filter);
13 filter.vendor = vendor;
14 filter.device = device;
16 for (temp = pacc->devices; temp; temp = temp->next)
17 if (pci_filter_match(&filter, temp))
18 return temp;
20 return NULL;