From 09a9a40daba90debbd3d33829eefb7b7716e5ae0 Mon Sep 17 00:00:00 2001 From: Andre Marin Date: Wed, 5 Sep 2018 14:51:17 -0500 Subject: Initial mss_field endian modification Change-Id: Ia865d776104c3b16cca3403f116c073935c2bc18 Original-Change-Id: Ia64288c78b36dc77cd0440a83e859650631e3c06 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/65722 Reviewed-by: Louis Stermole Tested-by: Jenkins Server Tested-by: HWSV CI Tested-by: Hostboot CI Reviewed-by: STEPHEN GLANCY Reviewed-by: Jennifer A. Stofer Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/80966 Reviewed-by: RAJA DAS --- .../procedures/hwp/memory/lib/i2c/exp_i2c_fields.H | 32 +++++++++++----------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'src/import/chips/ocmb') diff --git a/src/import/chips/ocmb/explorer/procedures/hwp/memory/lib/i2c/exp_i2c_fields.H b/src/import/chips/ocmb/explorer/procedures/hwp/memory/lib/i2c/exp_i2c_fields.H index df60c4e5..dd9fa1f6 100644 --- a/src/import/chips/ocmb/explorer/procedures/hwp/memory/lib/i2c/exp_i2c_fields.H +++ b/src/import/chips/ocmb/explorer/procedures/hwp/memory/lib/i2c/exp_i2c_fields.H @@ -50,25 +50,25 @@ namespace i2c /// /// @class fields /// @brief Explorer I2C command fields +/// @tparam E Endian type /// struct fields { // First value is byte index, then buffer extract start bit, and extract data length // Part of EXP_FW_BOOT_CONFIG - static constexpr mss::field_t BOOT_MODE{0, 0, 1}; - static constexpr mss::field_t LANE_MODE{0, 1, 3}; - static constexpr mss::field_t SERDES_FREQ{0, 4, 4}; - - static constexpr mss::field_t FW_MODE{1, 2, 1}; - static constexpr mss::field_t LOOPBACK_TEST{1, 3, 1}; - static constexpr mss::field_t TRANSPORT_LAYER{1, 4, 2}; - static constexpr mss::field_t DL_LAYER_BOOT_MODE{1, 6, 2}; + static constexpr mss::field_t BOOT_MODE{0, 0, 1}; + static constexpr mss::field_t LANE_MODE{0, 1, 3}; + static constexpr mss::field_t SERDES_FREQ{0, 4, 4}; + static constexpr mss::field_t FW_MODE{1, 2, 1}; + static constexpr mss::field_t LOOPBACK_TEST{1, 3, 1}; + static constexpr mss::field_t TRANSPORT_LAYER{1, 4, 2}; + static constexpr mss::field_t DL_LAYER_BOOT_MODE{1, 6, 2}; // Part of EXP_FW_STATUS - static constexpr mss::field_t CMD_ID{0, 0, 8}; - static constexpr mss::field_t STATUS_CODE{1, 0, 8}; - static constexpr mss::field_t BOOT_STAGE{2, 6, 2}; + static constexpr mss::field_t CMD_ID{0, 0, 8}; + static constexpr mss::field_t STATUS_CODE{1, 0, 8}; + static constexpr mss::field_t BOOT_STAGE{2, 6, 2}; }; /// @@ -76,7 +76,7 @@ struct fields /// @brief Traits assoiated with the Explorer I2C commands /// @tparam F the Explorer I2C field /// -template < const field_t& F > +template < const mss::field_t& F > struct fieldTraits; /// @@ -230,7 +230,7 @@ struct fieldTraits /// @param[out] o_value the output value received /// @return FAPI2_RC_SUCCESS iff okay /// -template< const field_t& F, +template< const mss::field_t& F, typename IT, typename OT, typename TT = fieldTraits > @@ -238,7 +238,7 @@ inline fapi2::ReturnCode get_field(const fapi2::Target& i_data, OT& o_value) { - return mss::get_field(i_target, i_data, EXP_I2C_GET_FIELD, o_value); + return mss::get_field(i_target, i_data, EXP_I2C_GET_FIELD, o_value); } /// @@ -251,7 +251,7 @@ inline fapi2::ReturnCode get_field(const fapi2::Target& F, typename IT, typename OT, typename TT = fieldTraits > @@ -260,7 +260,7 @@ inline fapi2::ReturnCode set_field(const fapi2::Target(i_target, i_value, EXP_I2C_SET_FIELD, io_data); + return mss::set_field(i_target, i_value, EXP_I2C_SET_FIELD, io_data); } namespace boot_cfg -- cgit v1.2.1