diff options
| author | Ladi Prosek | 2016-04-11 11:26:56 +0200 |
|---|---|---|
| committer | Michael Brown | 2016-04-15 18:27:35 +0200 |
| commit | 237949491860bf1ca6f704e586bf723b7d8001e7 (patch) | |
| tree | da2727dc1b3d8b559190053112584bc2a949c297 /src/include/ipxe/bitbash.h | |
| parent | [comboot] Support COMBOOT in 64-bit builds (diff) | |
| download | ipxe-237949491860bf1ca6f704e586bf723b7d8001e7.tar.gz ipxe-237949491860bf1ca6f704e586bf723b7d8001e7.tar.xz ipxe-237949491860bf1ca6f704e586bf723b7d8001e7.zip | |
[pci] Add pci_find_next_capability()
PCI devices may support more capabilities of the same type (for
example PCI_CAP_ID_VNDR) and there was no way to discover all of them.
This commit adds a new API pci_find_next_capability which provides
this functionality. It would typically be used like so:
for (pos = pci_find_capability(pci, PCI_CAP_ID_VNDR);
pos > 0;
pos = pci_find_next_capability(pci, pos, PCI_CAP_ID_VNDR)) {
...
}
Signed-off-by: Ladi Prosek <lprosek@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe/bitbash.h')
0 files changed, 0 insertions, 0 deletions
