summaryrefslogtreecommitdiffstats
path: root/src/include/assert.h
diff options
context:
space:
mode:
authorLadi Prosek2016-04-11 11:26:56 +0200
committerMichael Brown2016-04-15 18:27:35 +0200
commit237949491860bf1ca6f704e586bf723b7d8001e7 (patch)
treeda2727dc1b3d8b559190053112584bc2a949c297 /src/include/assert.h
parent[comboot] Support COMBOOT in 64-bit builds (diff)
downloadipxe-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/assert.h')
0 files changed, 0 insertions, 0 deletions