summaryrefslogtreecommitdiffstats
path: root/sbe/hwpf
diff options
context:
space:
mode:
authorSantosh Puranik <santosh.puranik@in.ibm.com>2016-02-18 06:30:40 -0600
committerGregory S. Still <stillgs@us.ibm.com>2016-02-29 07:56:32 -0500
commitfe372b80a09ce301e02dcc0bf0059f057a042be1 (patch)
tree6aca53776acb2b4e2d643ad77bcb83e51bae6948 /sbe/hwpf
parent1ed76cca77ac405c8daec3ac3ff3bb6e4a2e6c6b (diff)
downloadtalos-sbe-fe372b80a09ce301e02dcc0bf0059f057a042be1.tar.gz
talos-sbe-fe372b80a09ce301e02dcc0bf0059f057a042be1.zip
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 <sgupta2m@in.ibm.com> Reviewed-by: AMIT J. TENDOLKAR <amit.tendolkar@in.ibm.com> Reviewed-by: Gregory S. Still <stillgs@us.ibm.com>
Diffstat (limited to 'sbe/hwpf')
-rw-r--r--sbe/hwpf/include/fapi2_hw_access.H6
-rw-r--r--sbe/hwpf/include/hw_access.H2
2 files changed, 6 insertions, 2 deletions
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<K>& i_target, const uint64_t i_address,
- buffer<uint64_t>& o_data);
+ buffer<uint64_t>& 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<K>& i_target, const uint64_t i_address,
- const buffer<uint64_t> i_data);
+ const buffer<uint64_t> 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<K>& i_target, const uint64_t i_address,
buffer<uint64_t>& 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<K>& i_target, const uint64_t i_address,
const buffer<uint64_t> i_data)
{
OpenPOWER on IntegriCloud