summaryrefslogtreecommitdiffstats
path: root/src/usr/i2c/runtime/rt_i2c.C
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/i2c/runtime/rt_i2c.C
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/i2c/runtime/rt_i2c.C')
-rwxr-xr-xsrc/usr/i2c/runtime/rt_i2c.C8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/usr/i2c/runtime/rt_i2c.C b/src/usr/i2c/runtime/rt_i2c.C
index 16f62c76e..d3f5537c6 100755
--- a/src/usr/i2c/runtime/rt_i2c.C
+++ b/src/usr/i2c/runtime/rt_i2c.C
@@ -5,7 +5,7 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
-/* Contributors Listed Below - COPYRIGHT 2015,2019 */
+/* Contributors Listed Below - COPYRIGHT 2015,2020 */
/* [+] International Business Machines Corp. */
/* */
/* */
@@ -41,7 +41,7 @@
#include <devicefw/driverif.H>
#include <i2c/i2creasoncodes.H>
#include <runtime/interface.h>
-#include <runtime/rt_targeting.H>
+#include <targeting/runtime/rt_targeting.H>
#include "../errlud_i2c.H"
// ----------------------------------------------
@@ -146,10 +146,10 @@ errlHndl_t i2cPerformOp( DeviceFW::OperationType i_opType,
int rc = 0;
bool l_host_if_enabled = true;
- RT_TARG::rtChipId_t proc_id = 0;
+ TARGETING::rtChipId_t proc_id = 0;
// Convert target to proc id
- err = RT_TARG::getRtTarget( i_target,
+ err = TARGETING::getRtTarget( i_target,
proc_id);
if(err)
{
OpenPOWER on IntegriCloud