while (where);
}
-unsigned int
+void
pci_scan_caps(struct pci_dev *d, unsigned int want_fields)
{
- if ((want_fields & PCI_FILL_EXT_CAPS) && !(d->known_fields & PCI_FILL_CAPS))
+ if (want_fields & PCI_FILL_EXT_CAPS)
want_fields |= PCI_FILL_CAPS;
- if (want_fields & PCI_FILL_CAPS)
+ if (want_fill(d, want_fields, PCI_FILL_CAPS))
pci_scan_trad_caps(d);
- if (want_fields & PCI_FILL_EXT_CAPS)
+ if (want_fill(d, want_fields, PCI_FILL_EXT_CAPS))
pci_scan_ext_caps(d);
- return want_fields;
}
void
unsigned int target = (cap_number ? *cap_number : 0);
unsigned int index = 0;
- pci_fill_info_v35(d, ((type == PCI_CAP_NORMAL) ? PCI_FILL_CAPS : PCI_FILL_EXT_CAPS));
+ pci_fill_info_v38(d, ((type == PCI_CAP_NORMAL) ? PCI_FILL_CAPS : PCI_FILL_EXT_CAPS));
for (c=d->first_cap; c; c=c->next)
{