summaryrefslogtreecommitdiffstats
path: root/src/tests
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/tests
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/tests')
-rw-r--r--src/tests/settings_test.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tests/settings_test.c b/src/tests/settings_test.c
index 89203d42..828901b0 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 );