Browse Source

[efi] Rename efi_pci.h to efi_pci_api.h

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 13 years ago
parent
commit
e2b5a58869
2 changed files with 6 additions and 6 deletions
  1. 5
    5
      src/include/ipxe/efi/efi_pci_api.h
  2. 1
    1
      src/include/ipxe/pci_io.h

src/include/ipxe/efi/efi_pci.h → src/include/ipxe/efi/efi_pci_api.h View File

@@ -1,5 +1,5 @@
1
-#ifndef _IPXE_EFI_PCI_H
2
-#define _IPXE_EFI_PCI_H
1
+#ifndef _IPXE_EFI_PCI_API_H
2
+#define _IPXE_EFI_PCI_API_H
3 3
 
4 4
 /** @file
5 5
  *
@@ -39,8 +39,8 @@ extern int efipci_write ( struct pci_device *pci, unsigned long location,
39 39
  */
40 40
 static inline __always_inline int
41 41
 PCIAPI_INLINE ( efi, pci_num_bus ) ( void ) {
42
-	/* No way to work this out via EFI */
43
-	return 0x100;
42
+	/* EFI does not want us to scan the PCI bus ourselves */
43
+	return 0;
44 44
 }
45 45
 
46 46
 /**
@@ -145,4 +145,4 @@ PCIAPI_INLINE ( efi, pci_write_config_dword ) ( struct pci_device *pci,
145 145
 			      value );
146 146
 }
147 147
 
148
-#endif /* _IPXE_EFI_PCI_H */
148
+#endif /* _IPXE_EFI_PCI_API_H */

+ 1
- 1
src/include/ipxe/pci_io.h View File

@@ -43,7 +43,7 @@ FILE_LICENCE ( GPL2_OR_LATER );
43 43
 	PROVIDE_SINGLE_API_INLINE ( PCIAPI_PREFIX_ ## _subsys, _api_func )
44 44
 
45 45
 /* Include all architecture-independent I/O API headers */
46
-#include <ipxe/efi/efi_pci.h>
46
+#include <ipxe/efi/efi_pci_api.h>
47 47
 
48 48
 /* Include all architecture-dependent I/O API headers */
49 49
 #include <bits/pci_io.h>

Loading…
Cancel
Save