summaryrefslogtreecommitdiffstats
path: root/src/usr/sbeio/runtime/test/sbeiotestRt.H
diff options
context:
space:
mode:
authorChristian Geddes <crgeddes@us.ibm.com>2019-07-15 11:02:27 -0500
committerDaniel M Crowell <dcrowell@us.ibm.com>2020-01-22 09:45:00 -0600
commitf32aff51f83dcbcaa3857100c6e4e36ee7a8b84a (patch)
tree8ae056af16db181e933eaedc2fd74adedd049a40 /src/usr/sbeio/runtime/test/sbeiotestRt.H
parent5820710976565a6b3d241bce91d97d3fdacd0396 (diff)
downloadtalos-hostboot-f32aff51f83dcbcaa3857100c6e4e36ee7a8b84a.tar.gz
talos-hostboot-f32aff51f83dcbcaa3857100c6e4e36ee7a8b84a.zip
Make RT_TARG id generation code common between IPL time and runtime
For axone we are writing the OMI mmio bars into hdat so the hypervisor know how to talk to the devices. IPL code needs to be able to lookup the hbrt-style ids so we can use them to make hdat entries that the hypervisor will be able to associate targets with. This commit also move rt_targeting.H to the correct include directory and updates everywhere that it is included. Change-Id: I31deaa1a9c5a7523622a8b3b12ad459e2b2feed3 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/80419 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/usr/sbeio/runtime/test/sbeiotestRt.H')
-rw-r--r--src/usr/sbeio/runtime/test/sbeiotestRt.H26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/usr/sbeio/runtime/test/sbeiotestRt.H b/src/usr/sbeio/runtime/test/sbeiotestRt.H
index a2a4b1996..c91a663bb 100644
--- a/src/usr/sbeio/runtime/test/sbeiotestRt.H
+++ b/src/usr/sbeio/runtime/test/sbeiotestRt.H
@@ -5,7 +5,7 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
-/* Contributors Listed Below - COPYRIGHT 2017,2018 */
+/* Contributors Listed Below - COPYRIGHT 2017,2020 */
/* [+] International Business Machines Corp. */
/* */
/* */
@@ -35,7 +35,7 @@
#include <runtime/interface.h>
#include <sbeio/runtime/sbe_msg_passing.H>
#include <sbeio/sbeioreasoncodes.H>
-#include <runtime/rt_targeting.H>
+#include <targeting/runtime/rt_targeting.H>
#include <targeting/common/attributes.H>
#include <targeting/common/utilFilter.H>
#include <errl/errlmanager.H>
@@ -88,7 +88,7 @@ class SbeMessagePassingRtTest : public CxxTest::TestSuite
*/
int initSbeMessagePassing(sbeMessage_t& o_request,
sbeMessage_t& o_expected_response,
- RT_TARG::rtChipId_t& o_chipId,
+ TARGETING::rtChipId_t& o_chipId,
uint64_t& o_sbeCommAddr,
runtimeInterfaces_t **o_rt_intf)
{
@@ -142,8 +142,8 @@ class SbeMessagePassingRtTest : public CxxTest::TestSuite
TargetHandle_t proc = procList[0];
// Get the chip ID for the proc
- RT_TARG::rtChipId_t o_chipId = 0;
- errlHndl_t err = RT_TARG::getRtTarget(proc, o_chipId);
+ TARGETING::rtChipId_t o_chipId = 0;
+ errlHndl_t err = TARGETING::getRtTarget(proc, o_chipId);
if(nullptr != err)
{
rc = -1;
@@ -311,7 +311,7 @@ class SbeMessagePassingRtTest : public CxxTest::TestSuite
*
* @return Return Code O if Successful, otherwise not 0.
*/
- int checkResetSbeMessagePassingCFAM(RT_TARG::rtChipId_t i_procChipId,
+ int checkResetSbeMessagePassingCFAM(TARGETING::rtChipId_t i_procChipId,
uint32_t i_checkMask = SBE_MSG_MASK)
{
// Test check / reset CFAM entry
@@ -402,7 +402,7 @@ class SbeMessagePassingRtTest : public CxxTest::TestSuite
"testSbeMessagePassingVersions");
sbeMessage_t l_request;
sbeMessage_t l_expected_response;
- RT_TARG::rtChipId_t chipId = 0;
+ TARGETING::rtChipId_t chipId = 0;
uint64_t l_sbeCommAddr = 0;
runtimeInterfaces_t *rt_intf = nullptr;
@@ -501,7 +501,7 @@ class SbeMessagePassingRtTest : public CxxTest::TestSuite
sbeMessage_t l_request;
sbeMessage_t l_expected_response;
- RT_TARG::rtChipId_t chipId = 0;
+ TARGETING::rtChipId_t chipId = 0;
uint64_t l_sbeCommAddr = 0;
runtimeInterfaces_t *rt_intf = nullptr;
@@ -567,7 +567,7 @@ class SbeMessagePassingRtTest : public CxxTest::TestSuite
sbeMessage_t l_request;
sbeMessage_t l_expected_response;
- RT_TARG::rtChipId_t chipId = 0;
+ TARGETING::rtChipId_t chipId = 0;
uint64_t l_sbeCommAddr = 0;
runtimeInterfaces_t *rt_intf = nullptr;
@@ -741,7 +741,7 @@ class SbeMessagePassingRtTest : public CxxTest::TestSuite
sbeMessage_t l_request;
sbeMessage_t l_expected_response;
- RT_TARG::rtChipId_t chipId = 0;
+ TARGETING::rtChipId_t chipId = 0;
uint64_t l_sbeCommAddr = 0;
runtimeInterfaces_t *rt_intf = nullptr;
@@ -832,7 +832,7 @@ class SbeMessagePassingRtTest : public CxxTest::TestSuite
sbeMessage_t l_request;
sbeMessage_t l_expected_response;
- RT_TARG::rtChipId_t chipId = 0;
+ TARGETING::rtChipId_t chipId = 0;
uint64_t l_sbeCommAddr = 0;
runtimeInterfaces_t *rt_intf = nullptr;
@@ -984,7 +984,7 @@ class SbeMessagePassingRtTest : public CxxTest::TestSuite
sbeMessage_t l_request;
sbeMessage_t l_expected_response;
- RT_TARG::rtChipId_t chipId = 0;
+ TARGETING::rtChipId_t chipId = 0;
uint64_t l_sbeCommAddr = 0;
runtimeInterfaces_t *rt_intf = nullptr;
@@ -1142,7 +1142,7 @@ class SbeMessagePassingRtTest : public CxxTest::TestSuite
sbeMessage_t l_request;
sbeMessage_t l_expected_response;
uint32_t l_hdrsSize = sizeof(sbeHeader_t) + sizeof(cmdHeader_t);
- RT_TARG::rtChipId_t chipId = 0;
+ TARGETING::rtChipId_t chipId = 0;
uint64_t l_sbeCommAddr = 0;
runtimeInterfaces_t *rt_intf = nullptr;
OpenPOWER on IntegriCloud