From 8fc3c26eae8d45a5391a39ee698817449299bd76 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Thu, 15 Sep 2022 14:55:26 +0100 Subject: [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 --- src/include/ipxe/pci.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/include') 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 ); -- cgit v1.2.3-55-g7522