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
-#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
 /** @file
4
 /** @file
5
  *
5
  *
39
  */
39
  */
40
 static inline __always_inline int
40
 static inline __always_inline int
41
 PCIAPI_INLINE ( efi, pci_num_bus ) ( void ) {
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
 			      value );
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
 	PROVIDE_SINGLE_API_INLINE ( PCIAPI_PREFIX_ ## _subsys, _api_func )
43
 	PROVIDE_SINGLE_API_INLINE ( PCIAPI_PREFIX_ ## _subsys, _api_func )
44
 
44
 
45
 /* Include all architecture-independent I/O API headers */
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
 /* Include all architecture-dependent I/O API headers */
48
 /* Include all architecture-dependent I/O API headers */
49
 #include <bits/pci_io.h>
49
 #include <bits/pci_io.h>

Loading…
Cancel
Save