From b45bea7a87b2625ce2b814f6b550f3850cdda4b5 Mon Sep 17 00:00:00 2001 From: crgeddes Date: Mon, 11 Jul 2016 10:49:15 -0500 Subject: 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 Tested-by: FSP CI Jenkins Reviewed-by: Andrew J. Geissler Reviewed-by: Vitaly Marin Reviewed-by: Daniel M. Crowell --- src/include/usr/fapi2/hw_access.H | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/include') 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& 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& 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. -- cgit v1.2.1