summaryrefslogtreecommitdiffstats
path: root/import/hwpf
diff options
context:
space:
mode:
authorStephen Cprek <smcprek@us.ibm.com>2015-12-14 14:19:48 -0600
committerJoshua Hunsberger <jahunsbe@us.ibm.com>2017-10-23 15:54:02 -0500
commitdc758d85ac6658ad693d37edf8044e06e4e7c45c (patch)
tree7b02ef137b09a32ac3ea24d18944c9269cf63543 /import/hwpf
parent8e6875e0bd636cb5b5f511a09df3102f86361787 (diff)
downloadtalos-hcode-dc758d85ac6658ad693d37edf8044e06e4e7c45c.tar.gz
talos-hcode-dc758d85ac6658ad693d37edf8044e06e4e7c45c.zip
Fix all incorrect copyright prologs
Change-Id: I293e79b5a37bf4180f6dd19d259fac3434327fb3 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/22759 Tested-by: Jenkins Server Reviewed-by: Joseph J. McGill <jmcgill@us.ibm.com> Reviewed-by: PRACHI GUPTA <pragupta@us.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com>
Diffstat (limited to 'import/hwpf')
-rw-r--r--import/hwpf/fapi2/include/buffer_parameters.H28
-rw-r--r--import/hwpf/fapi2/include/hw_access_def.H60
-rw-r--r--import/hwpf/fapi2/include/return_code_defs.H76
-rw-r--r--import/hwpf/fapi2/include/target_states.H16
4 files changed, 93 insertions, 87 deletions
diff --git a/import/hwpf/fapi2/include/buffer_parameters.H b/import/hwpf/fapi2/include/buffer_parameters.H
index b5717188..d5dd6fdf 100644
--- a/import/hwpf/fapi2/include/buffer_parameters.H
+++ b/import/hwpf/fapi2/include/buffer_parameters.H
@@ -34,24 +34,30 @@
namespace fapi2
{
- /// @cond
- /// @brief Traits of buffer parameters - things passed in
- /// @tparam T is the type of i_value (typically an integral type)
- template<typename T>
- class parameterTraits
- {
+/// @cond
+/// @brief Traits of buffer parameters - things passed in
+/// @tparam T is the type of i_value (typically an integral type)
+template<typename T>
+class parameterTraits
+{
public:
// Why constexpr functions? Enums are hard to do math on, and
// static const doesn't work without -O1 (or greater.) That might
// be a bug in g++ but this works just the same.
constexpr static T mask(void)
- { return T(~0); }
+ {
+ return T(~0);
+ }
constexpr static uint32_t byte_length(void)
- { return sizeof(T); }
+ {
+ return sizeof(T);
+ }
constexpr static uint32_t bit_length(void)
- { return sizeof(T) * 8; }
+ {
+ return sizeof(T) * 8;
+ }
template<typename U>
inline static void write_element(void* i_data, T i_value, uint32_t i_offset)
@@ -63,8 +69,8 @@ namespace fapi2
#endif
*ptr = i_value;
}
- };
- /// @endcond
+};
+/// @endcond
}
#endif
diff --git a/import/hwpf/fapi2/include/hw_access_def.H b/import/hwpf/fapi2/include/hw_access_def.H
index 84beafe3..4f202c84 100644
--- a/import/hwpf/fapi2/include/hw_access_def.H
+++ b/import/hwpf/fapi2/include/hw_access_def.H
@@ -39,38 +39,38 @@ typedef uint64_t scanRingId_t;
namespace fapi2
{
- ///
- /// @enum fapi2::ChipOpModifyMode
- /// @brief Enumeration of modify modes used in HW access modify operations
- ///
- enum ChipOpModifyMode
- {
- CHIP_OP_MODIFY_MODE_OR = 1, ///< Modify or mode
- CHIP_OP_MODIFY_MODE_AND = 2, ///< Modify and mode
- CHIP_OP_MODIFY_MODE_XOR = 3, ///< Modify xor mode
- };
+///
+/// @enum fapi2::ChipOpModifyMode
+/// @brief Enumeration of modify modes used in HW access modify operations
+///
+enum ChipOpModifyMode
+{
+ CHIP_OP_MODIFY_MODE_OR = 1, ///< Modify or mode
+ CHIP_OP_MODIFY_MODE_AND = 2, ///< Modify and mode
+ CHIP_OP_MODIFY_MODE_XOR = 3, ///< Modify xor mode
+};
- ///
- /// @enum fapi2::RingMode
- /// @brief Enumeration of Ring access operation modes
- /// This is a bitmap to allow the user to specify multiple modes.
- ///
- enum RingMode
- {
- RING_MODE_SET_PULSE = 0x00000001, ///< Set pulse
- RING_MODE_NO_HEADER_CHECK = 0x00000002, ///< Dont' check header
- // FUTURE_MODE = 0x00000004,
- // FUTURE_MODE = 0x00000008,
- };
+///
+/// @enum fapi2::RingMode
+/// @brief Enumeration of Ring access operation modes
+/// This is a bitmap to allow the user to specify multiple modes.
+///
+enum RingMode
+{
+ RING_MODE_SET_PULSE = 0x00000001, ///< Set pulse
+ RING_MODE_NO_HEADER_CHECK = 0x00000002, ///< Dont' check header
+ // FUTURE_MODE = 0x00000004,
+ // FUTURE_MODE = 0x00000008,
+};
- /// @enum OpModes operational Mode Error Functions
- enum OpModes
- {
- // These are bit-masks in case they need to be or'd together
- NORMAL = 0x00,
- IGNORE_HW_ERROR = 0x01,
- DO_NOT_DO_WAKEUP = 0x02,
- };
+/// @enum OpModes operational Mode Error Functions
+enum OpModes
+{
+ // These are bit-masks in case they need to be or'd together
+ NORMAL = 0x00,
+ IGNORE_HW_ERROR = 0x01,
+ DO_NOT_DO_WAKEUP = 0x02,
+};
}
diff --git a/import/hwpf/fapi2/include/return_code_defs.H b/import/hwpf/fapi2/include/return_code_defs.H
index fd856292..4bd3e089 100644
--- a/import/hwpf/fapi2/include/return_code_defs.H
+++ b/import/hwpf/fapi2/include/return_code_defs.H
@@ -58,56 +58,56 @@
namespace fapi2
{
- ///
- /// @brief Enumeration of return codes
- ///
- enum ReturnCodes
- {
- ///< Success
- FAPI2_RC_SUCCESS = 0,
+///
+/// @brief Enumeration of return codes
+///
+enum ReturnCodes
+{
+ ///< Success
+ FAPI2_RC_SUCCESS = 0,
- // Flag bits indicating which code generated the error.
- FAPI2_RC_FAPI2_MASK = 0x04000000, ///< FAPI2 mask
- FAPI2_RC_PLAT_MASK = 0x02000000, ///< Platform mask
- FAPI2_RC_HWP_MASK = 0x00000000, ///< HWP mask
+ // Flag bits indicating which code generated the error.
+ FAPI2_RC_FAPI2_MASK = 0x04000000, ///< FAPI2 mask
+ FAPI2_RC_PLAT_MASK = 0x02000000, ///< Platform mask
+ FAPI2_RC_HWP_MASK = 0x00000000, ///< HWP mask
- //
- // FAPI generated return codes
- //
+ //
+ // FAPI generated return codes
+ //
- FAPI2_RC_INVALID_ATTR_GET = FAPI2_RC_FAPI2_MASK | 0x01,
- ///< Initfile requested an attribute with an invalid attribute ID
+ FAPI2_RC_INVALID_ATTR_GET = FAPI2_RC_FAPI2_MASK | 0x01,
+ ///< Initfile requested an attribute with an invalid attribute ID
- FAPI2_RC_INVALID_CHIP_EC_FEATURE_GET = FAPI2_RC_FAPI2_MASK | 0x02,
- ///< HWP requested a chip EC feature with an invalid attribute ID
+ FAPI2_RC_INVALID_CHIP_EC_FEATURE_GET = FAPI2_RC_FAPI2_MASK | 0x02,
+ ///< HWP requested a chip EC feature with an invalid attribute ID
- FAPI2_RC_INVALID_MULTISCOM_LENGTH = FAPI2_RC_FAPI2_MASK | 0x03,
- ///< Invalid multiscom parameters
+ FAPI2_RC_INVALID_MULTISCOM_LENGTH = FAPI2_RC_FAPI2_MASK | 0x03,
+ ///< Invalid multiscom parameters
- FAPI2_RC_INVALID_PARAMETER = FAPI2_RC_FAPI2_MASK | 0x04,
- ///< Invalid parameters to a FAPI2 function
+ FAPI2_RC_INVALID_PARAMETER = FAPI2_RC_FAPI2_MASK | 0x04,
+ ///< Invalid parameters to a FAPI2 function
- FAPI2_RC_OVERFLOW = FAPI2_RC_FAPI2_MASK | 0x05,
- ///< Overflow condition, typically a buffer operation
+ FAPI2_RC_OVERFLOW = FAPI2_RC_FAPI2_MASK | 0x05,
+ ///< Overflow condition, typically a buffer operation
- FAPI2_RC_FALSE = FAPI2_RC_FAPI2_MASK | 0x06,
- ///< The logical opposite of SUCCESS. Needed where procedures want
- ///< a multi-bool type of operation (e.g., true, false, scom error)
+ FAPI2_RC_FALSE = FAPI2_RC_FAPI2_MASK | 0x06,
+ ///< The logical opposite of SUCCESS. Needed where procedures want
+ ///< a multi-bool type of operation (e.g., true, false, scom error)
- //
- // PLAT generated return codes. Additional details may be contained in
- // ReturnCode platData (this can only be looked at by PLAT code)
- //
+ //
+ // PLAT generated return codes. Additional details may be contained in
+ // ReturnCode platData (this can only be looked at by PLAT code)
+ //
- FAPI2_RC_PLAT_ERR_SEE_DATA = FAPI2_RC_PLAT_MASK | 0x01,
- ///< Generic platform error
+ FAPI2_RC_PLAT_ERR_SEE_DATA = FAPI2_RC_PLAT_MASK | 0x01,
+ ///< Generic platform error
- FAPI2_RC_PLAT_ERR_ADU_LOCKED = FAPI2_RC_PLAT_MASK | 0x02,
- ///< Operation to AlterDisplay unit failed because it is locked
+ FAPI2_RC_PLAT_ERR_ADU_LOCKED = FAPI2_RC_PLAT_MASK | 0x02,
+ ///< Operation to AlterDisplay unit failed because it is locked
- FAPI2_RC_PLAT_NOT_SUPPORTED_AT_RUNTIME = FAPI2_RC_PLAT_MASK | 0x03,
- ///< Operation not supported by HB runtime
- };
+ FAPI2_RC_PLAT_NOT_SUPPORTED_AT_RUNTIME = FAPI2_RC_PLAT_MASK | 0x03,
+ ///< Operation not supported by HB runtime
+};
}
diff --git a/import/hwpf/fapi2/include/target_states.H b/import/hwpf/fapi2/include/target_states.H
index 03849dca..9168e6db 100644
--- a/import/hwpf/fapi2/include/target_states.H
+++ b/import/hwpf/fapi2/include/target_states.H
@@ -32,14 +32,14 @@
namespace fapi2
{
- ///
- /// @brief Enumeration of target state values (bitmask values)
- ///
- enum TargetState
- {
- TARGET_STATE_PRESENT = 0x00000001,
- TARGET_STATE_FUNCTIONAL = 0x00000002,
- };
+///
+/// @brief Enumeration of target state values (bitmask values)
+///
+enum TargetState
+{
+ TARGET_STATE_PRESENT = 0x00000001,
+ TARGET_STATE_FUNCTIONAL = 0x00000002,
+};
}
#endif
OpenPOWER on IntegriCloud