diff options
| author | Michael Brown | 2022-09-15 15:55:26 +0200 |
|---|---|---|
| committer | Michael Brown | 2022-09-15 16:20:58 +0200 |
| commit | 8fc3c26eae8d45a5391a39ee698817449299bd76 (patch) | |
| tree | 445b50f927ca1bcf75f2e64f8ce1a76b67625a96 /src/include | |
| parent | [linux] Add missing PROVIDE_PCIAPI_INLINE() macros (diff) | |
| download | ipxe-8fc3c26eae8d45a5391a39ee698817449299bd76.tar.gz ipxe-8fc3c26eae8d45a5391a39ee698817449299bd76.tar.xz ipxe-8fc3c26eae8d45a5391a39ee698817449299bd76.zip | |
[pci] Allow pci_find_next() to return non-zero PCI segments
Separate the return status code from the returned PCI bus:dev.fn
address, in order to allow pci_find_next() to be used to find devices
with a non-zero PCI segment number.
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/ipxe/pci.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/ipxe/pci.h b/src/include/ipxe/pci.h index bf6174c23..bd123679a 100644 --- a/src/include/ipxe/pci.h +++ b/src/include/ipxe/pci.h @@ -301,7 +301,7 @@ extern void adjust_pci_device ( struct pci_device *pci ); extern unsigned long pci_bar_start ( struct pci_device *pci, unsigned int reg ); extern int pci_read_config ( struct pci_device *pci ); -extern int pci_find_next ( struct pci_device *pci, unsigned int busdevfn ); +extern int pci_find_next ( struct pci_device *pci, uint32_t *busdevfn ); extern int pci_find_driver ( struct pci_device *pci ); extern int pci_probe ( struct pci_device *pci ); extern void pci_remove ( struct pci_device *pci ); |
