Displaying 1 result from an estimated 1 matches for "for_each_pci_func3".
Did you mean:
for_each_pci_func
2019 Apr 10
0
pci resource address
...struct pci_domain *domain;
struct pci_device *dev;
domain = pci_scan();
if (!domain) {
DBGPRINT("couldn't find PCI Domain\n");
return -1;
}
for_each_pci_func3(dev, domain, addr) {
/* TODO: should we do more checks on the device? Like class? */
if (dev->vendor == OUR_VENDOR_ID) {
DBGPRINT("PCI: Found Sigmatek device = %x\n", dev->p...