diff options
author | Michael Brown <mcb30@ipxe.org> | 2016-06-09 09:36:28 +0100 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2016-06-09 09:36:28 +0100 |
commit | f76210961c76a3f54f673d668e21e30d2eed9612 (patch) | |
tree | df0eb4b64085a587d2df39bcee478a6b320b9c01 /src/tests | |
parent | 2c197517f2a82970ab6866e197f06a3099418324 (diff) | |
download | ipxe-f76210961c76a3f54f673d668e21e30d2eed9612.zip ipxe-f76210961c76a3f54f673d668e21e30d2eed9612.tar.gz ipxe-f76210961c76a3f54f673d668e21e30d2eed9612.tar.bz2 |
[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/tests')
-rw-r--r-- | src/tests/settings_test.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tests/settings_test.c b/src/tests/settings_test.c index 89203d4..828901b 100644 --- a/src/tests/settings_test.c +++ b/src/tests/settings_test.c @@ -422,7 +422,9 @@ static void settings_test_exec ( void ) { /* "busdevfn" setting type (no store capability) */ fetchf_ok ( &test_settings, &test_busdevfn_setting, - RAW ( 0x03, 0x45 ), "03:08.5" ); + RAW ( 0x03, 0x45 ), "0000:03:08.5" ); + fetchf_ok ( &test_settings, &test_busdevfn_setting, + RAW ( 0x00, 0x02, 0x0a, 0x21 ), "0002:0a:04.1" ); /* Clear and unregister test settings block */ clear_settings ( &test_settings ); |