summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
authorMichael Brown2011-02-12 03:08:28 +0100
committerMichael Brown2011-02-17 02:25:11 +0100
commitabb5590b297076f071b72f347d8d3204163e097b (patch)
treeb526d735f41a850977edce756f8f7c1020d35ccd /src/include
parent[pci] Use single "busdevfn" field in struct pci_device (diff)
downloadipxe-abb5590b297076f071b72f347d8d3204163e097b.tar.gz
ipxe-abb5590b297076f071b72f347d8d3204163e097b.tar.xz
ipxe-abb5590b297076f071b72f347d8d3204163e097b.zip
[pci] Replace pci_max_bus() with pci_num_bus()
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include')
-rw-r--r--src/include/ipxe/efi/efi_pci.h8
-rw-r--r--src/include/ipxe/pci_io.h6
2 files changed, 7 insertions, 7 deletions
diff --git a/src/include/ipxe/efi/efi_pci.h b/src/include/ipxe/efi/efi_pci.h
index b280d801d..e06473d3e 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;
}
/**
diff --git a/src/include/ipxe/pci_io.h b/src/include/ipxe/pci_io.h
index 118809072..dab5b7807 100644
--- a/src/include/ipxe/pci_io.h
+++ b/src/include/ipxe/pci_io.h
@@ -49,11 +49,11 @@ FILE_LICENCE ( GPL2_OR_LATER );
#include <bits/pci_io.h>
/**
- * 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
*/
-int pci_max_bus ( void );
+int pci_num_bus ( void );
/**
* Read byte from PCI configuration space