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
)
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
))