summaryrefslogtreecommitdiffstats
path: root/src/import/chips/p9/common/scominfo/p9_scominfo.H
diff options
context:
space:
mode:
authorBen Gass <bgass@us.ibm.com>2016-09-22 13:25:03 -0500
committerDaniel M. Crowell <dcrowell@us.ibm.com>2016-10-10 13:55:13 -0400
commit745a68c9e92004c4bd45aeb2a49c7a30c9f6d83e (patch)
tree3727d2be9090cec9dcc6fee81e2591ab23df8d7c /src/import/chips/p9/common/scominfo/p9_scominfo.H
parent105e2057c8dba73c0ef601ddf862ce27f9aedd4a (diff)
downloadtalos-hostboot-745a68c9e92004c4bd45aeb2a49c7a30c9f6d83e.tar.gz
talos-hostboot-745a68c9e92004c4bd45aeb2a49c7a30c9f6d83e.zip
Adding prototype for fixChipUnitScomAddrOrTarget to scominfo.
Change-Id: Ida55f1f05f5448e7a8b4c1488a5c68735d64f6dc Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/30113 Dev-Ready: Brent Wieman <bwieman@us.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com> Reviewed-by: Thi N. Tran <thi@us.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/30119 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/import/chips/p9/common/scominfo/p9_scominfo.H')
-rw-r--r--src/import/chips/p9/common/scominfo/p9_scominfo.H14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/import/chips/p9/common/scominfo/p9_scominfo.H b/src/import/chips/p9/common/scominfo/p9_scominfo.H
index da0fa5041..fdabb9f1c 100644
--- a/src/import/chips/p9/common/scominfo/p9_scominfo.H
+++ b/src/import/chips/p9/common/scominfo/p9_scominfo.H
@@ -74,6 +74,20 @@ extern "C"
uint32_t p9_scominfo_isChipUnitScom(const uint64_t i_scomAddr, bool& o_chipUnitRelated,
std::vector<p9_chipUnitPairing_t>& o_chipUnitPairing, const uint32_t i_mode = 0);
+
+ /// @brief Alter the unit/unitnum of a target for spys where the clocks-on vs clocks-off targets are different.
+ /// @param[in] i_p9CU target used for the spy request
+ /// @param[in] i_targetChipUnitNum the instance number of the target used for the spy request
+ /// @param[in] i_scomaddr the scom from the clocks-on portion of the spy
+ /// @param[out] o_modifiedScomAddr the translated scom address (none may be needed)
+ /// @param[out] o_p9CU the translated target type
+ /// @param[out] o_modifiedChipUnitNum the translated target instance number
+ /// @param[in] i_mode Could be used in the future to indicate if the translation is from clocks-on or clocks-off state
+ /// @retval uint32_t Return non-zero for error
+ uint32_t p9_scominfo_fixChipUnitScomAddrOrTarget(const p9ChipUnits_t i_p9CU, const uint32_t i_targetChipUnitNum,
+ const uint64_t i_scomaddr, uint64_t& o_modifiedScomAddr, p9ChipUnits_t& o_p9CU,
+ uint32_t& o_modifiedChipUnitNum, const uint32_t i_mode = 0);
+
} // extern "C"
#endif /* P9_SCOMINFO_H */
OpenPOWER on IntegriCloud