diff options
author | Michael Brown <mcb30@ipxe.org> | 2022-09-15 14:55:26 +0100 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2022-09-15 15:20:58 +0100 |
commit | 8fc3c26eae8d45a5391a39ee698817449299bd76 (patch) | |
tree | 445b50f927ca1bcf75f2e64f8ce1a76b67625a96 /src/include/ipxe/pci.h | |
parent | 6459e3b7b18c0e6b200f5c5ad995660ca0e2dd43 (diff) | |
download | ipxe-8fc3c26eae8d45a5391a39ee698817449299bd76.tar.gz |
[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/ipxe/pci.h')
-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 ); |