]> xenbits.xensource.com Git - osstest/seabios.git/commit
pci: allow to loop over capabilities
authorGerd Hoffmann <kraxel@redhat.com>
Thu, 25 Jun 2015 08:49:10 +0000 (10:49 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 30 Jun 2015 06:19:25 +0000 (08:19 +0200)
commite38be2d12c4aa6f3552ff189928e323703dd2476
tree916dfaef9ab219c49792285ac856970a980e341e
parentf24eb2f853d4aa28814761e0bbc7df78149f8029
pci: allow to loop over capabilities

Add a parameter to pci_find_capability, to specify the start point.
This allows to find multiple capabilities of the same type, by calling
pci_find_capability again with the offset of the last capability found.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
src/fw/pciinit.c
src/hw/pci.c
src/hw/pci.h