diff options
Diffstat (limited to 'sbe/hwpf')
-rw-r--r-- | sbe/hwpf/include/fapi2_hw_access.H | 6 | ||||
-rw-r--r-- | sbe/hwpf/include/hw_access.H | 2 |
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) { |