Signed-off-by: Michael Brown <mcb30@ipxe.org>
-#ifndef _IPXE_EFI_PCI_H
-#define _IPXE_EFI_PCI_H
+#ifndef _IPXE_EFI_PCI_API_H
+#define _IPXE_EFI_PCI_API_H
/** @file
*
*/
static inline __always_inline int
PCIAPI_INLINE ( efi, pci_num_bus ) ( void ) {
- /* No way to work this out via EFI */
- return 0x100;
+ /* EFI does not want us to scan the PCI bus ourselves */
+ return 0;
}
/**
value );
}
-#endif /* _IPXE_EFI_PCI_H */
+#endif /* _IPXE_EFI_PCI_API_H */
PROVIDE_SINGLE_API_INLINE ( PCIAPI_PREFIX_ ## _subsys, _api_func )
/* Include all architecture-independent I/O API headers */
-#include <ipxe/efi/efi_pci.h>
+#include <ipxe/efi/efi_pci_api.h>
/* Include all architecture-dependent I/O API headers */
#include <bits/pci_io.h>