summaryrefslogtreecommitdiffstats
path: root/src/include/ipxe/efi
diff options
context:
space:
mode:
authorMichael Brown2011-02-14 02:37:44 +0100
committerMichael Brown2011-02-17 02:59:30 +0100
commite2b5a588691c6b0bdb99ca4b27cb8c5ea0ac712b (patch)
tree21e9e3cbaa7c0810d3ec6a89aa0a2a52c855db3b /src/include/ipxe/efi
parent[pci] Modularise PCI device support (diff)
downloadipxe-e2b5a588691c6b0bdb99ca4b27cb8c5ea0ac712b.tar.gz
ipxe-e2b5a588691c6b0bdb99ca4b27cb8c5ea0ac712b.tar.xz
ipxe-e2b5a588691c6b0bdb99ca4b27cb8c5ea0ac712b.zip
[efi] Rename efi_pci.h to efi_pci_api.h
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe/efi')
-rw-r--r--src/include/ipxe/efi/efi_pci_api.h (renamed from src/include/ipxe/efi/efi_pci.h)10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/include/ipxe/efi/efi_pci.h b/src/include/ipxe/efi/efi_pci_api.h
index e06473d3e..1bc43e303 100644
--- a/src/include/ipxe/efi/efi_pci.h
+++ b/src/include/ipxe/efi/efi_pci_api.h
@@ -1,5 +1,5 @@
-#ifndef _IPXE_EFI_PCI_H
-#define _IPXE_EFI_PCI_H
+#ifndef _IPXE_EFI_PCI_API_H
+#define _IPXE_EFI_PCI_API_H
/** @file
*
@@ -39,8 +39,8 @@ extern int efipci_write ( struct pci_device *pci, unsigned long location,
*/
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;
}
/**
@@ -145,4 +145,4 @@ PCIAPI_INLINE ( efi, pci_write_config_dword ) ( struct pci_device *pci,
value );
}
-#endif /* _IPXE_EFI_PCI_H */
+#endif /* _IPXE_EFI_PCI_API_H */