From fe372b80a09ce301e02dcc0bf0059f057a042be1 Mon Sep 17 00:00:00 2001 From: Santosh Puranik Date: Thu, 18 Feb 2016 06:30:40 -0600 Subject: Some changes to reduce image size 1) Force get/put scom plat functions to be inline 2) Inline ATTR get/set functions 3) FAPI RC is now 32-bit 4) Enable selective trace levels RTC: 141492 Change-Id: Ie8a5bce597751b5484b2e9c89d614999a555f366 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/21023 Tested-by: Jenkins Server Reviewed-by: Sachin Gupta Reviewed-by: AMIT J. TENDOLKAR Reviewed-by: Gregory S. Still --- sbe/hwpf/include/fapi2_hw_access.H | 6 ++++-- sbe/hwpf/include/hw_access.H | 2 ++ 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'sbe/hwpf') diff --git a/sbe/hwpf/include/fapi2_hw_access.H b/sbe/hwpf/include/fapi2_hw_access.H index 7ce2af37..f1e60b52 100644 --- a/sbe/hwpf/include/fapi2_hw_access.H +++ b/sbe/hwpf/include/fapi2_hw_access.H @@ -91,8 +91,9 @@ namespace fapi2 /// @param[out] o_data Buffer that holds data read from HW target. /// @return fapi2::ReturnCode. FAPI2_RC_SUCCESS if success, else error code. template< TargetType K > + __attribute__((always_inline)) inline ReturnCode getScom(const Target& i_target, const uint64_t i_address, - buffer& o_data); + buffer& o_data); /// @brief Writes a SCOM register on a chip. /// @tparam K template parameter, passed in target. @@ -101,8 +102,9 @@ namespace fapi2 /// @param[in] i_data Buffer that holds data to write into address. /// @return fapi2::ReturnCode. FAPI2_RC_SUCCESS if success, else error code. template< TargetType K > + __attribute__((always_inline)) inline ReturnCode putScom(const Target& i_target, const uint64_t i_address, - const buffer i_data); + const buffer i_data); /// @brief Writes a SCOM register under mask on a chip /// @tparam K template parameter, passed in target. diff --git a/sbe/hwpf/include/hw_access.H b/sbe/hwpf/include/hw_access.H index af688421..00079797 100644 --- a/sbe/hwpf/include/hw_access.H +++ b/sbe/hwpf/include/hw_access.H @@ -100,6 +100,7 @@ namespace fapi2 /// @param[out] o_data Buffer that holds data read from HW target. /// @return fapi::ReturnCode. FAPI2_RC_SUCCESS if success, else error code. template< TargetType K > + __attribute__((always_inline)) inline ReturnCode getScom(const Target& i_target, const uint64_t i_address, buffer& o_data) { @@ -119,6 +120,7 @@ namespace fapi2 /// @param[in] i_data Buffer that holds data to write into address. /// @return fapi::ReturnCode. FAPI2_RC_SUCCESS if success, else error code. template< TargetType K > + __attribute__((always_inline)) inline ReturnCode putScom(const Target& i_target, const uint64_t i_address, const buffer i_data) { -- cgit v1.2.1