summaryrefslogtreecommitdiffstats
path: root/src/interface/bofm
diff options
context:
space:
mode:
authorMichael Brown2016-06-09 10:36:28 +0200
committerMichael Brown2016-06-09 10:36:28 +0200
commitf76210961c76a3f54f673d668e21e30d2eed9612 (patch)
treedf0eb4b64085a587d2df39bcee478a6b320b9c01 /src/interface/bofm
parent[libc] Always use a non-zero seed for the (non-crypto) RNG (diff)
downloadipxe-f76210961c76a3f54f673d668e21e30d2eed9612.tar.gz
ipxe-f76210961c76a3f54f673d668e21e30d2eed9612.tar.xz
ipxe-f76210961c76a3f54f673d668e21e30d2eed9612.zip
[pci] Support systems with multiple PCI root bridges
Extend the 16-bit PCI bus:dev.fn address to a 32-bit seg:bus:dev.fn address, assuming a segment value of zero in contexts where multiple segments are unsupported by the underlying data structures (e.g. in the iBFT or BOFM tables). Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/interface/bofm')
-rw-r--r--src/interface/bofm/bofm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/interface/bofm/bofm.c b/src/interface/bofm/bofm.c
index 545088dc..54039193 100644
--- a/src/interface/bofm/bofm.c
+++ b/src/interface/bofm/bofm.c
@@ -313,12 +313,12 @@ int bofm ( userptr_t bofmtab, struct pci_device *pci ) {
}
DBG ( "BOFM: slot %d port %d%s is " PCI_FMT " mport %d\n",
en.slot, ( en.port + 1 ),
- ( ( en.slot || en.port ) ? "" : "(?)" ),
+ ( ( en.slot || en.port ) ? "" : "(?)" ), 0,
PCI_BUS ( en.busdevfn ), PCI_SLOT ( en.busdevfn ),
PCI_FUNC ( en.busdevfn ), en.mport );
bofm = bofm_find_busdevfn ( en.busdevfn );
if ( ! bofm ) {
- DBG ( "BOFM: " PCI_FMT " mport %d ignored\n",
+ DBG ( "BOFM: " PCI_FMT " mport %d ignored\n", 0,
PCI_BUS ( en.busdevfn ), PCI_SLOT ( en.busdevfn ),
PCI_FUNC ( en.busdevfn ), en.mport );
continue;