summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
authorcrgeddes <crgeddes@us.ibm.com>2016-07-11 10:49:15 -0500
committerDaniel M. Crowell <dcrowell@us.ibm.com>2016-07-13 11:36:42 -0400
commitb45bea7a87b2625ce2b814f6b550f3850cdda4b5 (patch)
tree7d9f22e1a54e953fd0c390e32e4fc01be75bbe44 /src/include
parente26b33dda1db4c0b995fe5e8c2734ccd02ee91c0 (diff)
downloadtalos-hostboot-b45bea7a87b2625ce2b814f6b550f3850cdda4b5.tar.gz
talos-hostboot-b45bea7a87b2625ce2b814f6b550f3850cdda4b5.zip
Update overload putRing funtion in hw_access to accept 3 param
Note that I did not implement this function yet but I am declaring the interface so we can mirror HWPs over. Apparently this functionality isnt critical until we run on real hw and another team member is working on the implementation of this this sprint. Change-Id: Id3deabc266a08394591540cfcbd336f23c5ce7a9 RTC:132654 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/26860 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Andrew J. Geissler <andrewg@us.ibm.com> Reviewed-by: Vitaly Marin <mvitaly@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/include')
-rw-r--r--src/include/usr/fapi2/hw_access.H14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/include/usr/fapi2/hw_access.H b/src/include/usr/fapi2/hw_access.H
index a3bc8c92d..93413dd7b 100644
--- a/src/include/usr/fapi2/hw_access.H
+++ b/src/include/usr/fapi2/hw_access.H
@@ -230,6 +230,20 @@ inline ReturnCode putRing(const Target<K>& i_target,
return platPutRing(i_target, i_address, i_data, i_ringMode);
}
+/// @brief Platform-level implementation of putRing()
+/// @tparam K template parameter, passed in target.
+/// @param[in] i_target Target to operate on.
+/// @param[in] i_ringID Id of the Ring
+/// @param[in] i_ringMode Ring operation mode.
+/// @return fapi::ReturnCode. FAPI2_RC_SUCCESS if success, else error code.
+template< TargetType K >
+inline ReturnCode putRing(const Target<K>& i_target,
+ const RingID i_ringID,
+ const RingMode i_ringMode = RING_MODE_HEADER_CHECK)
+{
+ return platPutRing(i_target, i_ringID, i_ringMode);
+}
+
/// @brief Platform-level implementation of modifyRing()
/// @tparam K template parameter, passed in target.
/// @param[in] i_target Target to operate on.
OpenPOWER on IntegriCloud