]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[efi] Rename efi_pci.h to efi_pci_api.h
authorMichael Brown <mcb30@ipxe.org>
Mon, 14 Feb 2011 01:37:44 +0000 (01:37 +0000)
committerMichael Brown <mcb30@ipxe.org>
Thu, 17 Feb 2011 01:59:30 +0000 (01:59 +0000)
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/include/ipxe/efi/efi_pci_api.h [moved from src/include/ipxe/efi/efi_pci.h with 95% similarity]
src/include/ipxe/pci_io.h

similarity index 95%
rename from src/include/ipxe/efi/efi_pci.h
rename to src/include/ipxe/efi/efi_pci_api.h
index e06473d3ec9892e4f0c3da9869f1dd256b696f83..1bc43e303ba4d5982865801657cf0c91a9a0d207 100644 (file)
@@ -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 */
index dab5b780729858c764cc611b16411d2f632786c2..7368cf48b4752f2fbda708324b84db64ba8ea3aa 100644 (file)
@@ -43,7 +43,7 @@ FILE_LICENCE ( GPL2_OR_LATER );
        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>