On Fri, Jul 13, 2012 at 3:57 PM, Bjorn Helgaas <bhelgaas@xxxxxxxxxx> wrote: > This adds pci_find_next_ext_capability(), analogous to > pci_find_next_capability(), which allows drivers to iterate through > multiple capabilities of the same type. I applied these patches to my "next" branch. > Many devices include multiple Vendor-Specific extended capabilities, for > example: > > 00:00.0 Host bridge: Intel Corporation Sandy Bridge DMI2 (rev 06) > Capabilities: [100 v1] Vendor Specific Information: ID=0002 Rev=0 Len=00c <?> > Capabilities: [144 v1] Vendor Specific Information: ID=0004 Rev=1 Len=03c <?> > Capabilities: [1d0 v1] Vendor Specific Information: ID=0003 Rev=1 Len=00a <?> > Capabilities: [280 v1] Vendor Specific Information: ID=0004 Rev=2 Len=018 <?> > > > --- > > Bjorn Helgaas (2): > PCI: add pci_find_next_ext_capability() > PCI: add Vendor-Specific Extended Capability header info > > > drivers/pci/pci.c | 40 ++++++++++++++++++++++++++++++---------- > include/linux/pci.h | 3 +-- > include/linux/pci_regs.h | 6 ++++++ > 3 files changed, 37 insertions(+), 12 deletions(-) > > -- > Bjorn -- To unsubscribe from this list: send the line "unsubscribe linux-pci" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html