summaryrefslogtreecommitdiffstats
path: root/src/hwpf/src/plat/target.C
diff options
context:
space:
mode:
authorSantosh Puranik <santosh.puranik@in.ibm.com>2016-09-13 11:31:46 -0500
committerSantosh S. Puranik <santosh.puranik@in.ibm.com>2016-09-19 01:45:34 -0400
commitd6dcd0125e002508ea665a5b71eb2019a0274c91 (patch)
tree15911e4b3f1722d5bec3083f8030288046329d4d /src/hwpf/src/plat/target.C
parent84f49a31edbf1f4dbdca4397194a498c97d4244c (diff)
downloadtalos-sbe-d6dcd0125e002508ea665a5b71eb2019a0274c91.tar.gz
talos-sbe-d6dcd0125e002508ea665a5b71eb2019a0274c91.zip
FAPI Plat Cleanup - III
-- Move completely to using FAPI from src/import Change-Id: Ifd27a900fea45ef0e7d6bd4a62192e50812b99ac Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/29581 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Shakeeb A. Pasha B K <shakeebbk@in.ibm.com> Reviewed-by: Santosh S. Puranik <santosh.puranik@in.ibm.com>
Diffstat (limited to 'src/hwpf/src/plat/target.C')
-rw-r--r--src/hwpf/src/plat/target.C23
1 files changed, 11 insertions, 12 deletions
diff --git a/src/hwpf/src/plat/target.C b/src/hwpf/src/plat/target.C
index 9600140a..4249c6ec 100644
--- a/src/hwpf/src/plat/target.C
+++ b/src/hwpf/src/plat/target.C
@@ -318,18 +318,17 @@ namespace fapi2
if (b_present)
{
- i_chiplet_target.setPresent();
- i_chiplet_target.setFunctional(true);
+ static_cast<plat_target_handle_t&>((i_chiplet_target.operator()())).setPresent();
+ static_cast<plat_target_handle_t&>((i_chiplet_target.operator()())).setFunctional(true);
}
else
{
- FAPI_DBG("Perv target NOT present (nor functional): chiplet_number = %d",
- i_chiplet_target.getChipletNumber());
+ FAPI_DBG("Perv target NOT present (nor functional): chiplet_number = %d", i_chiplet_target.getChipletNumber());
}
FAPI_DBG("Target present = %u, Target functional = %u",
- i_chiplet_target.getPresent(),
- i_chiplet_target.getFunctional());
+ static_cast<plat_target_handle_t>(i_chiplet_target.get()).getPresent(),
+ static_cast<plat_target_handle_t>(i_chiplet_target.get()).getFunctional());
fapi_try_exit:
return fapi2::current_err;
@@ -490,8 +489,8 @@ fapi_try_exit:
if(0 == l_eqAttrPg)
{
- target_name.setPresent();
- target_name.setFunctional(true);
+ static_cast<plat_target_handle_t&>(target_name.operator ()()).setPresent();
+ static_cast<plat_target_handle_t&>(target_name.operator ()()).setFunctional(true);
}
G_vec_targets.at(l_beginning_offset+i) = revle32((fapi2::plat_target_handle_t)(target_name.get()));
}
@@ -525,8 +524,8 @@ fapi_try_exit:
if(0 == l_attrPg)
{
- target_name.setPresent();
- target_name.setFunctional(true);
+ static_cast<plat_target_handle_t&>(target_name.operator ()()).setPresent();
+ static_cast<plat_target_handle_t&>(target_name.operator ()()).setFunctional(true);
}
G_vec_targets.at(l_beginning_offset+i) = revle32((fapi2::plat_target_handle_t)(target_name.get()));
@@ -572,7 +571,7 @@ fapi_try_exit:
FAPI_DBG("Making %d'th EQ non-functional", l_idx);
// EQ chiplet l_idx is to be marked non-functional
fapi2::Target<fapi2::TARGET_TYPE_EQ> l_target = G_vec_targets.at(l_idx + EQ_TARGET_OFFSET);
- l_target.setFunctional(false);
+ static_cast<plat_target_handle_t&>(l_target.operator ()()).setFunctional(false);
G_vec_targets.at(l_idx + EQ_TARGET_OFFSET) = l_target.get();
}
}
@@ -584,7 +583,7 @@ fapi_try_exit:
FAPI_DBG("Making %d'th EC non-functional", l_idx);
// EC chiplet l_idx is to be marked non-functional
fapi2::Target<fapi2::TARGET_TYPE_CORE> l_target = G_vec_targets.at(l_idx + CORE_TARGET_OFFSET);
- l_target.setFunctional(false);
+ static_cast<plat_target_handle_t&>(l_target.operator ()()).setFunctional(false);
G_vec_targets.at(l_idx + CORE_TARGET_OFFSET) = l_target.get();
}
else
OpenPOWER on IntegriCloud