summaryrefslogtreecommitdiffstats
path: root/src/import/hwpf/fapi2/include/fapi2_hw_access.H
diff options
context:
space:
mode:
Diffstat (limited to 'src/import/hwpf/fapi2/include/fapi2_hw_access.H')
-rw-r--r--src/import/hwpf/fapi2/include/fapi2_hw_access.H78
1 files changed, 39 insertions, 39 deletions
diff --git a/src/import/hwpf/fapi2/include/fapi2_hw_access.H b/src/import/hwpf/fapi2/include/fapi2_hw_access.H
index 1e8c012d9..d2a4d0191 100644
--- a/src/import/hwpf/fapi2/include/fapi2_hw_access.H
+++ b/src/import/hwpf/fapi2/include/fapi2_hw_access.H
@@ -5,7 +5,7 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
-/* Contributors Listed Below - COPYRIGHT 2015,2018 */
+/* Contributors Listed Below - COPYRIGHT 2015,2019 */
/* [+] International Business Machines Corp. */
/* */
/* */
@@ -85,8 +85,8 @@ inline OpModes getOpMode(void);
/// @param[in] i_address SCOM register address to read from.
/// @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, typename V >
-inline ReturnCode getScom(const Target<K, V>& i_target, const uint64_t i_address,
+template< TargetType K, MulticastType M, typename V >
+inline ReturnCode getScom(const Target<K, M, V>& i_target, const uint64_t i_address,
buffer<uint64_t>& o_data);
/// @brief Writes a SCOM register on a chip.
@@ -95,8 +95,8 @@ inline ReturnCode getScom(const Target<K, V>& i_target, const uint64_t i_address
/// @param[in] i_address SCOM register address to write to.
/// @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, typename V >
-inline ReturnCode putScom(const Target<K, V>& i_target, const uint64_t i_address,
+template< TargetType K, MulticastType M, typename V >
+inline ReturnCode putScom(const Target<K, M, V>& i_target, const uint64_t i_address,
const buffer<uint64_t> i_data);
/// @brief Writes a SCOM register under mask on a chip
@@ -106,8 +106,8 @@ inline ReturnCode putScom(const Target<K, V>& i_target, const uint64_t i_address
/// @param[in] i_data Buffer that holds data to write into address.
/// @param[in] i_mask Buffer that holds the mask value.
/// @return fapi2::ReturnCode. FAPI2_RC_SUCCESS if success, else error code.
-template< TargetType K, typename V >
-inline ReturnCode putScomUnderMask(const Target<K, V>& i_target,
+template< TargetType K, MulticastType M, typename V >
+inline ReturnCode putScomUnderMask(const Target<K, M, V>& i_target,
const uint64_t i_address,
const buffer<uint64_t> i_data,
const buffer<uint64_t> i_mask);
@@ -119,8 +119,8 @@ inline ReturnCode putScomUnderMask(const Target<K, V>& i_target,
/// @param[in] i_address CFAM register address to read from.
/// @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, typename V >
-inline ReturnCode getCfamRegister(const Target<K, V>& i_target,
+template< TargetType K, MulticastType M, typename V >
+inline ReturnCode getCfamRegister(const Target<K, M, V>& i_target,
const uint32_t i_address,
buffer<uint32_t>& o_data);
@@ -131,8 +131,8 @@ inline ReturnCode getCfamRegister(const Target<K, V>& i_target,
/// @param[in] i_address CFAM register address to write to.
/// @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, typename V >
-inline ReturnCode putCfamRegister(const Target<K, V>& i_target,
+template< TargetType K, MulticastType M, typename V >
+inline ReturnCode putCfamRegister(const Target<K, M, V>& i_target,
const uint32_t i_address,
const buffer<uint32_t> i_data);
@@ -144,8 +144,8 @@ inline ReturnCode putCfamRegister(const Target<K, V>& i_target,
/// @param[in] i_data Buffer that holds data to be modified.
/// @param[in] i_modifyMode The modify mode (or/and/xor).
/// @return fapi2::ReturnCode. FAPI2_RC_SUCCESS if success, else error code.
-template< TargetType K, typename V >
-inline ReturnCode modifyCfamRegister(const Target<K, V>& i_target,
+template< TargetType K, MulticastType M, typename V >
+inline ReturnCode modifyCfamRegister(const Target<K, M, V>& i_target,
const uint32_t i_address,
const buffer<uint32_t> i_data,
const ChipOpModifyMode i_modifyMode);
@@ -156,8 +156,8 @@ inline ReturnCode modifyCfamRegister(const Target<K, V>& i_target,
/// @param[in] i_ringID Ring ID that will identify the Ring in the image.
/// @param[in] i_ringMode Ring operation mode.
/// @return fapi2::ReturnCode. FAPI2_RC_SUCCESS if success, else error code.
-template< TargetType K, typename V >
-ReturnCode putRing(const Target<K, V>& i_target,
+template< TargetType K, MulticastType M, typename V >
+ReturnCode putRing(const Target<K, M, V>& i_target,
const RingId_t i_ringID,
const RingMode i_ringMode = RING_MODE_HEADER_CHECK);
@@ -170,8 +170,8 @@ ReturnCode putRing(const Target<K, V>& i_target,
/// @param[out] o_data Buffer that holds data read from HW target.
/// @param[in] i_ringMode Ring operation mode.
/// @return fapi2::ReturnCode. FAPI2_RC_SUCCESS if success, else error code.
-template< TargetType K, typename V >
-inline ReturnCode getRing(const Target<K, V>& i_target,
+template< TargetType K, MulticastType M, typename V >
+inline ReturnCode getRing(const Target<K, M, V>& i_target,
const scanRingId_t i_address,
variable_buffer& o_data,
const RingMode i_ringMode = RING_MODE_HEADER_CHECK);
@@ -185,8 +185,8 @@ inline ReturnCode getRing(const Target<K, V>& i_target,
/// @param[in] i_modifyMode The modify mode (or/and/xor)
/// @param[in] i_ringMode Ring operation mode.
/// @return fapi2::ReturnCode. FAPI2_RC_SUCCESS if success, else error code.
-template< TargetType K, typename V >
-inline ReturnCode modifyRing(const Target<K, V>& i_target,
+template< TargetType K, MulticastType M, typename V >
+inline ReturnCode modifyRing(const Target<K, M, V>& i_target,
const scanRingId_t i_address,
const variable_buffer& i_data,
const ChipOpModifyMode i_modifyMode,
@@ -242,8 +242,8 @@ inline ReturnCode modifyRing(const Target<K, V>& i_target,
#define FAPI_GET_SPY(TARGET, ID, DATA) fapi2::getSpy(TARGET, FAPI_SPY_NAMES::ID.value, DATA)
-template< TargetType K, typename V >
-inline ReturnCode getSpy(const Target<K, V>& i_target,
+template< TargetType K, MulticastType M, typename V >
+inline ReturnCode getSpy(const Target<K, M, V>& i_target,
const spyId_t i_spyId,
variable_buffer& o_data);
@@ -258,8 +258,8 @@ inline ReturnCode getSpy(const Target<K>& i_target,
#define FAPI_GET_SPY(TARGET, ID, DATA) fapi2::getSpy(TARGET, #ID, DATA)
-template< TargetType K, typename V >
-inline ReturnCode getSpy(const Target<K, V>& i_target,
+template< TargetType K, MulticastType M, typename V >
+inline ReturnCode getSpy(const Target<K, M, V>& i_target,
const char* const i_spyId,
variable_buffer& o_data);
@@ -313,8 +313,8 @@ inline ReturnCode getSpy(const Target<K>& i_target,
#define FAPI_PUT_SPY(TARGET, ID, DATA) fapi2::putSpy(TARGET, FAPI_SPY_NAMES::ID.value, DATA)
-template< TargetType K, typename V >
-inline ReturnCode putSpy(const Target<K, V>& i_target,
+template< TargetType K, MulticastType M, typename V >
+inline ReturnCode putSpy(const Target<K, M, V>& i_target,
const spyId_t i_spyId,
const variable_buffer& i_data);
#endif
@@ -323,19 +323,19 @@ inline ReturnCode putSpy(const Target<K, V>& i_target,
#define FAPI_PUT_SPY(TARGET, ID, DATA) fapi2::putSpy(TARGET, #ID, DATA)
-template< TargetType K, typename V >
-inline ReturnCode putSpy(const Target<K, V>& i_target,
+template< TargetType K, MulticastType M, typename V >
+inline ReturnCode putSpy(const Target<K, M, V>& i_target,
const char* const i_spyId,
const variable_buffer& i_data);
-template<TargetType K, typename V >
-inline ReturnCode putSpyWithCare(const Target<K, V>& i_target,
+template< TargetType K, MulticastType M, typename V >
+inline ReturnCode putSpyWithCare(const Target<K, M, V>& i_target,
const char* const i_spyId,
const variable_buffer& i_data,
const variable_buffer& i_care);
-template< TargetType K, typename V >
-inline ReturnCode putSpy(const Target<K, V>& i_target,
+template< TargetType K, MulticastType M, typename V >
+inline ReturnCode putSpy(const Target<K, M, V>& i_target,
const char* const i_spyId,
const char* i_enum);
#endif
@@ -366,8 +366,8 @@ inline ReturnCode putSpy(const Target<K, V>& i_target,
fapi2::putSpyImage(TARGET, FAPI_SPY_NAMES::ID.value, \
DATA1, DATA2)
-template< TargetType K, typename V >
-inline ReturnCode putSpyImage(const Target<K, V>& i_target,
+template< TargetType K, MulticastType M, typename V >
+inline ReturnCode putSpyImage(const Target<K, M, V>& i_target,
const spyId_t i_spyId,
const variable_buffer& i_data,
variable_buffer& o_imageData);
@@ -378,8 +378,8 @@ inline ReturnCode putSpyImage(const Target<K, V>& i_target,
#define FAPI_PUT_SPY_IMAGE(TARGET, ID, DATA1, DATA2) \
fapi2::putSpyImage(TARGET, #ID, DATA1,DATA2)
-template< TargetType K, typename V >
-inline ReturnCode putSpyImage(const Target<K, V>& i_target,
+template< TargetType K, MulticastType M, typename V >
+inline ReturnCode putSpyImage(const Target<K, M, V>& i_target,
const char* const i_spyId,
const variable_buffer& i_data,
variable_buffer& o_imageData);
@@ -408,8 +408,8 @@ inline ReturnCode putSpyImage(const Target<K, V>& i_target,
fapi2:getSpyImage(TARGET, FAPI_SPY_NAMES::ID.value, \
DATA1, DATA2)
-template< TargetType K, typename V >
-inline ReturnCode getSpyImage(const Target<K, V>& i_target,
+template< TargetType K, MulticastType M, typename V >
+inline ReturnCode getSpyImage(const Target<K, M, V>& i_target,
const spyId_t i_spyId,
variable_buffer& o_data,
const variable_buffer& i_imageData);
@@ -420,8 +420,8 @@ inline ReturnCode getSpyImage(const Target<K, V>& i_target,
#define FAPI_GET_SPY_IMAGE(TARGET, ID, DATA1, DATA2) \
fapi2::getSpyImage(TARGET, #ID, DATA1,DATA2)
-template< TargetType K, typename V >
-inline ReturnCode getSpyImage(const Target<K, V>& i_target,
+template< TargetType K, MulticastType M, typename V >
+inline ReturnCode getSpyImage(const Target<K, M, V>& i_target,
const char* const i_spyId,
variable_buffer& o_data,
const variable_buffer& i_imageData);
OpenPOWER on IntegriCloud