From f76210961c76a3f54f673d668e21e30d2eed9612 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Thu, 9 Jun 2016 09:36:28 +0100 Subject: [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 --- src/tests/settings_test.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/tests') 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 ); -- cgit v1.2.3-55-g7522