aboutsummaryrefslogtreecommitdiff
path: root/src/include/ipxe/efi
diff options
context:
space:
mode:
authorMichael Brown <mcb30@ipxe.org>2011-02-12 02:08:28 +0000
committerMichael Brown <mcb30@ipxe.org>2011-02-17 01:25:11 +0000
commitabb5590b297076f071b72f347d8d3204163e097b (patch)
treeb526d735f41a850977edce756f8f7c1020d35ccd /src/include/ipxe/efi
parentf9b3fae8d46a6b1862b3f5b02490e5a8c224286f (diff)
downloadipxe-abb5590b297076f071b72f347d8d3204163e097b.zip
ipxe-abb5590b297076f071b72f347d8d3204163e097b.tar.gz
ipxe-abb5590b297076f071b72f347d8d3204163e097b.tar.bz2
[pci] Replace pci_max_bus() with pci_num_bus()
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe/efi')
-rw-r--r--src/include/ipxe/efi/efi_pci.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/include/ipxe/efi/efi_pci.h b/src/include/ipxe/efi/efi_pci.h
index b280d80..e06473d 100644
--- a/src/include/ipxe/efi/efi_pci.h
+++ b/src/include/ipxe/efi/efi_pci.h
@@ -33,14 +33,14 @@ extern int efipci_write ( struct pci_device *pci, unsigned long location,
unsigned long value );
/**
- * Determine maximum PCI bus number within system
+ * Determine number of PCI buses within system
*
- * @ret max_bus Maximum bus number
+ * @ret num_bus Number of buses
*/
static inline __always_inline int
-PCIAPI_INLINE ( efi, pci_max_bus ) ( void ) {
+PCIAPI_INLINE ( efi, pci_num_bus ) ( void ) {
/* No way to work this out via EFI */
- return 0xff;
+ return 0x100;
}
/**