summaryrefslogtreecommitdiffstats
path: root/src/import/generic
diff options
context:
space:
mode:
authorAndre Marin <aamarin@us.ibm.com>2017-04-05 09:18:27 -0500
committerDaniel M. Crowell <dcrowell@us.ibm.com>2017-04-10 15:37:04 -0400
commit8df4bc28dd0a5618c8ad9c9cec1812cf0f065e8e (patch)
tree81de27b3c5157059654f51b353d0e7f5f5638349 /src/import/generic
parent3b5685fd65c0ab8720dfa8c8562e99463326b816 (diff)
downloadtalos-hostboot-8df4bc28dd0a5618c8ad9c9cec1812cf0f065e8e.tar.gz
talos-hostboot-8df4bc28dd0a5618c8ad9c9cec1812cf0f065e8e.zip
Add const to the end of spd decoder methods to denote unchanged mem vars
Change-Id: I6be84549a46484d9d3d4ad3212e624b4cbbd6e07 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/38875 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com> Reviewed-by: STEPHEN GLANCY <sglancy@us.ibm.com> Reviewed-by: JACOB L. HARVEY <jlharvey@us.ibm.com> Reviewed-by: Louis Stermole <stermole@us.ibm.com> Reviewed-by: Thi N. Tran <thi@us.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/38880 Reviewed-by: Hostboot Team <hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/import/generic')
-rw-r--r--src/import/generic/memory/lib/spd/common/ddr4/spd_decoder_ddr4.H168
-rw-r--r--src/import/generic/memory/lib/spd/common/ddr4/spd_decoder_ddr4_v1_0.C136
-rw-r--r--src/import/generic/memory/lib/spd/common/ddr4/spd_decoder_ddr4_v1_1.C32
-rw-r--r--src/import/generic/memory/lib/spd/common/dimm_module_decoder.H78
-rw-r--r--src/import/generic/memory/lib/spd/common/spd_decoder_base.H138
-rw-r--r--src/import/generic/memory/lib/spd/lrdimm/ddr4/lrdimm_decoder_ddr4.H86
-rw-r--r--src/import/generic/memory/lib/spd/lrdimm/ddr4/lrdimm_decoder_ddr4_v1_0.C60
-rw-r--r--src/import/generic/memory/lib/spd/lrdimm/ddr4/lrdimm_decoder_ddr4_v1_1.C12
-rw-r--r--src/import/generic/memory/lib/spd/lrdimm/ddr4/lrdimm_decoder_ddr4_v1_2.C14
-rw-r--r--src/import/generic/memory/lib/spd/rdimm/ddr4/rdimm_decoder_ddr4.H46
-rw-r--r--src/import/generic/memory/lib/spd/rdimm/ddr4/rdimm_decoder_ddr4_v1_0.C34
-rw-r--r--src/import/generic/memory/lib/spd/rdimm/ddr4/rdimm_decoder_ddr4_v1_1.C12
12 files changed, 408 insertions, 408 deletions
diff --git a/src/import/generic/memory/lib/spd/common/ddr4/spd_decoder_ddr4.H b/src/import/generic/memory/lib/spd/common/ddr4/spd_decoder_ddr4.H
index 61d3eb476..63584075f 100644
--- a/src/import/generic/memory/lib/spd/common/ddr4/spd_decoder_ddr4.H
+++ b/src/import/generic/memory/lib/spd/common/ddr4/spd_decoder_ddr4.H
@@ -333,7 +333,7 @@ class decoder_v1_0 : public decoder
/// @param[out] o_logical_ranks number of logical ranks
/// @return fapi2::FAPI2_RC_SUCCESS if okay
///
- virtual fapi2::ReturnCode prim_sdram_logical_ranks( uint8_t& o_logical_ranks );
+ virtual fapi2::ReturnCode prim_sdram_logical_ranks( uint8_t& o_logical_ranks ) const;
public:
@@ -425,7 +425,7 @@ class decoder_v1_0 : public decoder
/// @note Page 14
/// @note DDR4 SPD Document Release 3
///
- virtual fapi2::ReturnCode number_of_used_bytes( uint16_t& o_value ) override;
+ virtual fapi2::ReturnCode number_of_used_bytes( uint16_t& o_value ) const override;
///
/// @brief Decodes total number of SPD bytes
@@ -436,7 +436,7 @@ class decoder_v1_0 : public decoder
/// @note Page 14
/// @note DDR4 SPD Document Release 3
///
- virtual fapi2::ReturnCode number_of_total_bytes( uint16_t& o_value ) override;
+ virtual fapi2::ReturnCode number_of_total_bytes( uint16_t& o_value ) const override;
///
/// @brief Decodes hybrid media field from SPD
@@ -447,7 +447,7 @@ class decoder_v1_0 : public decoder
/// @note Page 17
/// @note DDR4 SPD Document Release 3
///
- virtual fapi2::ReturnCode hybrid_media( uint8_t& o_value ) override;
+ virtual fapi2::ReturnCode hybrid_media( uint8_t& o_value ) const override;
///
/// @brief Decodes hybrid field from SPD
@@ -458,7 +458,7 @@ class decoder_v1_0 : public decoder
/// @note Page 17
/// @note DDR4 SPD Document Release 3
///
- virtual fapi2::ReturnCode hybrid( uint8_t& o_value ) override;
+ virtual fapi2::ReturnCode hybrid( uint8_t& o_value ) const override;
///
/// @brief Decodes SDRAM density from SPD
@@ -469,7 +469,7 @@ class decoder_v1_0 : public decoder
/// @note Page 18
/// @note DDR4 SPD Document Release 3
///
- virtual fapi2::ReturnCode sdram_density( uint8_t& o_value ) override;
+ virtual fapi2::ReturnCode sdram_density( uint8_t& o_value ) const override;
///
/// @brief Decodes number of SDRAM banks bits from SPD
@@ -480,7 +480,7 @@ class decoder_v1_0 : public decoder
/// @note Page 18
/// @note DDR4 SPD Document Release 3
///
- virtual fapi2::ReturnCode bank_bits( uint8_t& o_value ) override;
+ virtual fapi2::ReturnCode bank_bits( uint8_t& o_value ) const override;
///
/// @brief Decodes number of SDRAM bank groups bits from SPD
@@ -491,7 +491,7 @@ class decoder_v1_0 : public decoder
/// @note Page 18
/// @note DDR4 SPD Document Release 3
///
- virtual fapi2::ReturnCode bank_group_bits( uint8_t& o_value ) override;
+ virtual fapi2::ReturnCode bank_group_bits( uint8_t& o_value ) const override;
///
/// @brief Decodes number of SDRAM column address bits
@@ -501,7 +501,7 @@ class decoder_v1_0 : public decoder
/// @note Page 18
/// @note DDR4 SPD Document Release 3
///
- virtual fapi2::ReturnCode column_address_bits( uint8_t& o_value ) override;
+ virtual fapi2::ReturnCode column_address_bits( uint8_t& o_value ) const override;
///
/// @brief Decodes number of SDRAM row address bits
@@ -511,7 +511,7 @@ class decoder_v1_0 : public decoder
/// @note Page 18
/// @note DDR4 SPD Document Release 3
///
- virtual fapi2::ReturnCode row_address_bits( uint8_t& o_value ) override;
+ virtual fapi2::ReturnCode row_address_bits( uint8_t& o_value ) const override;
///
/// @brief Decodes Primary SDRAM signal loading
@@ -521,7 +521,7 @@ class decoder_v1_0 : public decoder
/// @note Page 19
/// @note DDR4 SPD Document Release 3
///
- virtual fapi2::ReturnCode prim_sdram_signal_loading( uint8_t& o_value ) override;
+ virtual fapi2::ReturnCode prim_sdram_signal_loading( uint8_t& o_value ) const override;
///
/// @brief Decodes Primary SDRAM die count
@@ -531,7 +531,7 @@ class decoder_v1_0 : public decoder
/// @note Page 19
/// @note DDR4 SPD Document Release 3
///
- virtual fapi2::ReturnCode prim_sdram_die_count( uint8_t& o_value ) override;
+ virtual fapi2::ReturnCode prim_sdram_die_count( uint8_t& o_value ) const override;
///
/// @brief Decodes Primary SDRAM package type
@@ -541,7 +541,7 @@ class decoder_v1_0 : public decoder
/// @note Page 19
/// @note DDR4 SPD Document Release 3
///
- virtual fapi2::ReturnCode prim_sdram_package_type( uint8_t& o_value ) override;
+ virtual fapi2::ReturnCode prim_sdram_package_type( uint8_t& o_value ) const override;
///
/// @brief Decode SDRAM Maximum activate count
@@ -551,7 +551,7 @@ class decoder_v1_0 : public decoder
/// @note Page 20
/// @note DDR4 SPD Document Release 3
///
- virtual fapi2::ReturnCode maximum_activate_count( uint32_t& o_value ) override;
+ virtual fapi2::ReturnCode maximum_activate_count( uint32_t& o_value ) const override;
///
/// @brief Decode SDRAM Maximum activate window (multiplier), tREFI uknown at this point
@@ -561,7 +561,7 @@ class decoder_v1_0 : public decoder
/// @note Page 20
/// @note DDR4 SPD Document Release 3
///
- virtual fapi2::ReturnCode maximum_activate_window_multiplier( uint32_t& o_value ) override;
+ virtual fapi2::ReturnCode maximum_activate_window_multiplier( uint32_t& o_value ) const override;
///
/// @brief Decode Post package repair (PPR)
@@ -571,7 +571,7 @@ class decoder_v1_0 : public decoder
/// @note Page 21
/// @note DDR4 SPD Document Release 3
///
- virtual fapi2::ReturnCode post_package_repair( uint8_t& o_value ) override;
+ virtual fapi2::ReturnCode post_package_repair( uint8_t& o_value ) const override;
///
/// @brief Decode Soft post package repair (soft PPR)
@@ -581,7 +581,7 @@ class decoder_v1_0 : public decoder
/// @note Page 21
/// @note DDR4 SPD Document Release 3
///
- virtual fapi2::ReturnCode soft_post_package_repair( uint8_t& o_value ) override;
+ virtual fapi2::ReturnCode soft_post_package_repair( uint8_t& o_value ) const override;
///
/// @brief Decodes Secondary SDRAM signal loading
@@ -591,7 +591,7 @@ class decoder_v1_0 : public decoder
/// @note Page 22
/// @note DDR4 SPD Document Release 3
///
- virtual fapi2::ReturnCode sec_sdram_signal_loading( uint8_t& o_value ) override;
+ virtual fapi2::ReturnCode sec_sdram_signal_loading( uint8_t& o_value ) const override;
///
/// @brief Decodes Secondary DRAM Density Ratio
@@ -601,7 +601,7 @@ class decoder_v1_0 : public decoder
/// @note Page 22
/// @note DDR4 SPD Document Release 3
///
- virtual fapi2::ReturnCode sec_dram_density_ratio( uint8_t& o_value ) override;
+ virtual fapi2::ReturnCode sec_dram_density_ratio( uint8_t& o_value ) const override;
///
/// @brief Decodes Secondary SDRAM die count
@@ -611,7 +611,7 @@ class decoder_v1_0 : public decoder
/// @note Page 22
/// @note DDR4 SPD Document Release 3
///
- virtual fapi2::ReturnCode sec_sdram_die_count( uint8_t& o_value ) override;
+ virtual fapi2::ReturnCode sec_sdram_die_count( uint8_t& o_value ) const override;
///
/// @brief Decodes Secondary SDRAM package type
@@ -621,7 +621,7 @@ class decoder_v1_0 : public decoder
/// @note Page 22
/// @note DDR4 SPD Document Release 3
///
- virtual fapi2::ReturnCode sec_sdram_package_type( uint8_t& o_value ) override;
+ virtual fapi2::ReturnCode sec_sdram_package_type( uint8_t& o_value ) const override;
///
/// @brief Decode Module Nominal Voltage, VDD
@@ -632,7 +632,7 @@ class decoder_v1_0 : public decoder
/// @note Page 23
/// @note DDR4 SPD Document Release 3
///
- virtual fapi2::ReturnCode operable_nominal_voltage( uint8_t& o_value ) override;
+ virtual fapi2::ReturnCode operable_nominal_voltage( uint8_t& o_value ) const override;
///
/// @brief Decode Module Nominal Voltage, VDD
@@ -643,7 +643,7 @@ class decoder_v1_0 : public decoder
/// @note Page 23
/// @note DDR4 SPD Document Release 3
///
- virtual fapi2::ReturnCode endurant_nominal_voltage( uint8_t& o_value ) override;
+ virtual fapi2::ReturnCode endurant_nominal_voltage( uint8_t& o_value ) const override;
///
/// @brief Decodes SDRAM device width
/// @param[out] o_value device width in bits
@@ -653,7 +653,7 @@ class decoder_v1_0 : public decoder
/// @note Page 23
/// @note DDR4 SPD Document Release 3
///
- virtual fapi2::ReturnCode device_width( uint8_t& o_value ) override;
+ virtual fapi2::ReturnCode device_width( uint8_t& o_value ) const override;
///
/// @brief Decodes number of package ranks per DIMM
@@ -664,7 +664,7 @@ class decoder_v1_0 : public decoder
/// @note Page 23
/// @note DDR4 SPD Document Release 3
///
- virtual fapi2::ReturnCode num_package_ranks_per_dimm( uint8_t& o_value ) override;
+ virtual fapi2::ReturnCode num_package_ranks_per_dimm( uint8_t& o_value ) const override;
///
/// @brief Decodes Rank Mix
@@ -675,7 +675,7 @@ class decoder_v1_0 : public decoder
/// @note Page 23
/// @note DDR4 SPD Document Release 3
///
- virtual fapi2::ReturnCode rank_mix( uint8_t& o_value ) override;
+ virtual fapi2::ReturnCode rank_mix( uint8_t& o_value ) const override;
///
/// @brief Decodes primary bus width
@@ -686,7 +686,7 @@ class decoder_v1_0 : public decoder
/// @note Page 27
/// @note DDR4 SPD Document Release 3
///
- virtual fapi2::ReturnCode prim_bus_width( uint8_t& o_value ) override;
+ virtual fapi2::ReturnCode prim_bus_width( uint8_t& o_value ) const override;
///
/// @brief Decodes bus width extension
@@ -697,7 +697,7 @@ class decoder_v1_0 : public decoder
/// @note Page 27
/// @note DDR4 SPD Document Release 3
///
- virtual fapi2::ReturnCode bus_width_extension( uint8_t& o_value ) override;
+ virtual fapi2::ReturnCode bus_width_extension( uint8_t& o_value ) const override;
///
/// @brief Decode Module Thermal Sensor
@@ -708,7 +708,7 @@ class decoder_v1_0 : public decoder
/// @note Page 28
/// @note DDR4 SPD Document Release 3
///
- virtual fapi2::ReturnCode thermal_sensor( uint8_t& o_value ) override;
+ virtual fapi2::ReturnCode thermal_sensor( uint8_t& o_value ) const override;
///
/// @brief Decode Extended Base Module Type
@@ -719,7 +719,7 @@ class decoder_v1_0 : public decoder
/// @note Page 28
/// @note DDR4 SPD Document Release 3
///
- virtual fapi2::ReturnCode extended_base_module_type( uint8_t& o_value ) override;
+ virtual fapi2::ReturnCode extended_base_module_type( uint8_t& o_value ) const override;
///
/// @brief Decode Fine Timebase
@@ -730,7 +730,7 @@ class decoder_v1_0 : public decoder
/// @note Page 29
/// @note DDR4 SPD Document Release 3
///
- virtual fapi2::ReturnCode fine_timebase( int64_t& o_value ) override;
+ virtual fapi2::ReturnCode fine_timebase( int64_t& o_value ) const override;
///
/// @brief Decode Medium Timebase
@@ -741,7 +741,7 @@ class decoder_v1_0 : public decoder
/// @note Page 29
/// @note DDR4 SPD Document Release 3
///
- virtual fapi2::ReturnCode medium_timebase( int64_t& o_value ) override;
+ virtual fapi2::ReturnCode medium_timebase( int64_t& o_value ) const override;
///
///
@@ -757,7 +757,7 @@ class decoder_v1_0 : public decoder
/// integer and the Fine Offset for tCKmin (SPD byte 125)
/// used for correction to get the actual value.
///
- virtual fapi2::ReturnCode min_tck( int64_t& o_value ) override;
+ virtual fapi2::ReturnCode min_tck( int64_t& o_value ) const override;
///
/// @brief Decodes SDRAM Maximum Cycle Time in MTB
@@ -772,7 +772,7 @@ class decoder_v1_0 : public decoder
/// integer and the Fine Offset for tCKmax (SPD byte 124)
/// used for correction to get the actual value.
///
- virtual fapi2::ReturnCode max_tck( int64_t& o_value ) override;
+ virtual fapi2::ReturnCode max_tck( int64_t& o_value ) const override;
///
/// @brief Decode CAS Latencies Supported
@@ -783,7 +783,7 @@ class decoder_v1_0 : public decoder
/// @note Page 33-34
/// @note DDR4 SPD Document Release 3
///
- virtual fapi2::ReturnCode supported_cas_latencies( uint64_t& o_value ) override;
+ virtual fapi2::ReturnCode supported_cas_latencies( uint64_t& o_value ) const override;
///
/// @brief Decodes SDRAM Minimum CAS Latency Time in MTB
@@ -798,7 +798,7 @@ class decoder_v1_0 : public decoder
/// integer and the Fine Offset for tAAmin (SPD byte 123)
/// used for correction to get the actual value.
///
- virtual fapi2::ReturnCode min_taa( int64_t& o_value ) override;
+ virtual fapi2::ReturnCode min_taa( int64_t& o_value ) const override;
///
/// @brief Decodes SDRAM Minimum RAS to CAS Delay Time in MTB
@@ -813,7 +813,7 @@ class decoder_v1_0 : public decoder
/// integer and the Fine Offset for tRCDmin (SPD byte 122)
/// used for correction to get the actual value
///
- virtual fapi2::ReturnCode min_trcd( int64_t& o_value ) override;
+ virtual fapi2::ReturnCode min_trcd( int64_t& o_value ) const override;
///
/// @brief Decodes SDRAM Minimum Row Precharge Delay Time in MTB
@@ -828,7 +828,7 @@ class decoder_v1_0 : public decoder
/// integer and the Fine Offset for tRPmin (SPD byte 121)
/// used for correction to get the actual value
///
- virtual fapi2::ReturnCode min_trp( int64_t& o_value ) override;
+ virtual fapi2::ReturnCode min_trp( int64_t& o_value ) const override;
///
/// @brief Decodes SDRAM Minimum Active to Precharge Delay Time in MTB
@@ -839,7 +839,7 @@ class decoder_v1_0 : public decoder
/// @note Page 38
/// @note DDR4 SPD Document Release 3
///
- virtual fapi2::ReturnCode min_tras( int64_t& o_value ) override;
+ virtual fapi2::ReturnCode min_tras( int64_t& o_value ) const override;
///
/// @brief Decodes SDRAM Minimum Active to Active/Refresh Delay Time in MTB
@@ -854,7 +854,7 @@ class decoder_v1_0 : public decoder
/// integer and the Fine Offset for tRCmin (SPD byte 120)
/// used for correction to get the actual value.
///
- virtual fapi2::ReturnCode min_trc( int64_t& o_value ) override;
+ virtual fapi2::ReturnCode min_trc( int64_t& o_value ) const override;
///
/// @brief Decodes SDRAM Minimum Refresh Recovery Delay Time 1
@@ -865,7 +865,7 @@ class decoder_v1_0 : public decoder
/// @note Page 39-40
/// @note DDR4 SPD Document Release 3
///
- virtual fapi2::ReturnCode min_trfc1( int64_t& o_value ) override;
+ virtual fapi2::ReturnCode min_trfc1( int64_t& o_value ) const override;
///
/// @brief Decodes SDRAM Minimum Refresh Recovery Delay Time 2
@@ -876,7 +876,7 @@ class decoder_v1_0 : public decoder
/// @note Page 40
/// @note DDR4 SPD Document Release 3
///
- virtual fapi2::ReturnCode min_trfc2( int64_t& o_value ) override;
+ virtual fapi2::ReturnCode min_trfc2( int64_t& o_value ) const override;
///
/// @brief Decodes SDRAM Minimum Refresh Recovery Delay Time 4
@@ -887,7 +887,7 @@ class decoder_v1_0 : public decoder
/// @note Page 40
/// @note DDR4 SPD Document Release 3
///
- virtual fapi2::ReturnCode min_trfc4( int64_t& o_value ) override;
+ virtual fapi2::ReturnCode min_trfc4( int64_t& o_value ) const override;
///
/// @brief Decodes SDRAM Minimum Four Activate Window Delay Time
@@ -898,7 +898,7 @@ class decoder_v1_0 : public decoder
/// @note Page 42
/// @note DDR4 SPD Document Release 3
///
- virtual fapi2::ReturnCode min_tfaw( int64_t& o_value ) override;
+ virtual fapi2::ReturnCode min_tfaw( int64_t& o_value ) const override;
///
/// @brief Decodes Minimum Activate to Activate Delay Time - Different Bank Group
@@ -913,7 +913,7 @@ class decoder_v1_0 : public decoder
/// integer and the Fine Offset for tRRD_Smin (SPD byte 119)
/// used for correction to get the actual value.
///
- virtual fapi2::ReturnCode min_trrd_s( int64_t& o_value ) override;
+ virtual fapi2::ReturnCode min_trrd_s( int64_t& o_value ) const override;
///
/// @brief Decodes Minimum Activate to Activate Delay Time - Same Bank Group
@@ -928,7 +928,7 @@ class decoder_v1_0 : public decoder
/// integer and the Fine Offset for tRRD_Lmin (SPD byte 118)
/// used for correction to get the actual value.
///
- virtual fapi2::ReturnCode min_trrd_l( int64_t& o_value ) override;
+ virtual fapi2::ReturnCode min_trrd_l( int64_t& o_value ) const override;
///
/// @brief Decodes Minimum CAS to CAS Delay Time - Same Bank Group
@@ -943,7 +943,7 @@ class decoder_v1_0 : public decoder
/// integer and the Fine Offset for tCCD_Lmin (SPD byte 117)
/// used for correction to get the actual value.
///
- virtual fapi2::ReturnCode min_tccd_l( int64_t& o_value ) override;
+ virtual fapi2::ReturnCode min_tccd_l( int64_t& o_value ) const override;
///
/// @brief Decodes Minimum Write Recovery Time
@@ -954,7 +954,7 @@ class decoder_v1_0 : public decoder
/// @note Page 40
/// @note DDR4 SPD Document Release 3
///
- virtual fapi2::ReturnCode min_twr( int64_t& o_value ) override;
+ virtual fapi2::ReturnCode min_twr( int64_t& o_value ) const override;
///
/// @brief Decodes Minimum Write to Read Time - Different Bank Group
@@ -965,7 +965,7 @@ class decoder_v1_0 : public decoder
/// @note Page 40
/// @note DDR4 SPD Document Release 3
///
- virtual fapi2::ReturnCode min_twtr_s( int64_t& o_value ) override;
+ virtual fapi2::ReturnCode min_twtr_s( int64_t& o_value ) const override;
///
/// @brief Decodes Minimum Write to Read Time - Same Bank Group
@@ -976,7 +976,7 @@ class decoder_v1_0 : public decoder
/// @note Page 46
/// @note DDR4 SPD Document Release 3
///
- virtual fapi2::ReturnCode min_twtr_l( int64_t& o_value ) override;
+ virtual fapi2::ReturnCode min_twtr_l( int64_t& o_value ) const override;
///
/// @brief Decodes Fine Offset for Minimum CAS to CAS Delay Time - Same Bank Group
@@ -987,7 +987,7 @@ class decoder_v1_0 : public decoder
/// @note Page 52
/// @note DDR4 SPD Document Release 3
///
- virtual fapi2::ReturnCode fine_offset_min_tccd_l( int64_t& o_value ) override;
+ virtual fapi2::ReturnCode fine_offset_min_tccd_l( int64_t& o_value ) const override;
///
/// @brief Decodes Fine Offset for Minimum Activate to Activate Delay Time - Same Bank Group
@@ -998,7 +998,7 @@ class decoder_v1_0 : public decoder
/// @note Page 52
/// @note DDR4 SPD Document Release 3
///
- virtual fapi2::ReturnCode fine_offset_min_trrd_l( int64_t& o_value ) override;
+ virtual fapi2::ReturnCode fine_offset_min_trrd_l( int64_t& o_value ) const override;
///
/// @brief Decodes Fine Offset for Minimum Activate to Activate Delay Time - Different Bank Group
@@ -1009,7 +1009,7 @@ class decoder_v1_0 : public decoder
/// @note Page 52
/// @note DDR4 SPD Document Release 3
///
- virtual fapi2::ReturnCode fine_offset_min_trrd_s( int64_t& o_value ) override;
+ virtual fapi2::ReturnCode fine_offset_min_trrd_s( int64_t& o_value ) const override;
///
/// @brief Decodes Fine Offset for Minimum Active to Active/Refresh Delay Time
@@ -1020,7 +1020,7 @@ class decoder_v1_0 : public decoder
/// @note Page 52
/// @note DDR4 SPD Document Release 3
///
- virtual fapi2::ReturnCode fine_offset_min_trc( int64_t& o_value ) override;
+ virtual fapi2::ReturnCode fine_offset_min_trc( int64_t& o_value ) const override;
///
/// @brief Decodes Fine Offset for Minimum Row Precharge Delay Time
@@ -1031,7 +1031,7 @@ class decoder_v1_0 : public decoder
/// @note Page 52
/// @note DDR4 SPD Document Release 3
///
- virtual fapi2::ReturnCode fine_offset_min_trp( int64_t& o_value ) override;
+ virtual fapi2::ReturnCode fine_offset_min_trp( int64_t& o_value ) const override;
///
/// @brief Decodes Fine Offset for SDRAM Minimum RAS to CAS Delay Time
@@ -1042,7 +1042,7 @@ class decoder_v1_0 : public decoder
/// @note Page 52
/// @note DDR4 SPD Document Release 3
///
- virtual fapi2::ReturnCode fine_offset_min_trcd( int64_t& o_value ) override;
+ virtual fapi2::ReturnCode fine_offset_min_trcd( int64_t& o_value ) const override;
///
/// @brief Decodes Fine Offset for SDRAM Minimum CAS Latency Time
@@ -1053,7 +1053,7 @@ class decoder_v1_0 : public decoder
/// @note Page 52
/// @note DDR4 SPD Document Release 3
///
- virtual fapi2::ReturnCode fine_offset_min_taa( int64_t& o_value ) override;
+ virtual fapi2::ReturnCode fine_offset_min_taa( int64_t& o_value ) const override;
///
/// @brief Decodes Fine Offset for SDRAM Maximum Cycle Time
@@ -1064,7 +1064,7 @@ class decoder_v1_0 : public decoder
/// @note Page 52
/// @note DDR4 SPD Document Release 3
///
- virtual fapi2::ReturnCode fine_offset_max_tck( int64_t& o_value ) override;
+ virtual fapi2::ReturnCode fine_offset_max_tck( int64_t& o_value ) const override;
///
/// @brief Decodes Fine Offset for SDRAM Minimum Cycle Time
@@ -1075,7 +1075,7 @@ class decoder_v1_0 : public decoder
/// @note Page 52
/// @note DDR4 SPD Document Release 3
///
- virtual fapi2::ReturnCode fine_offset_min_tck( int64_t& o_value ) override;
+ virtual fapi2::ReturnCode fine_offset_min_tck( int64_t& o_value ) const override;
///
/// @brief Decodes Cyclical Redundancy Code (CRC) for Base Configuration Section
@@ -1086,7 +1086,7 @@ class decoder_v1_0 : public decoder
/// @note Page 53
/// @note DDR4 SPD Document Release 3
///
- virtual fapi2::ReturnCode cyclical_redundancy_code( uint16_t& o_value ) override;
+ virtual fapi2::ReturnCode cyclical_redundancy_code( uint16_t& o_value ) const override;
///
/// @brief Decodes module manufacturer ID code
@@ -1097,7 +1097,7 @@ class decoder_v1_0 : public decoder
/// @note DDR4 SPD Document Release 3
/// @note Page 4.1.2.12 - 54
///
- virtual fapi2::ReturnCode module_manufacturer_id_code( uint16_t& o_value ) override;
+ virtual fapi2::ReturnCode module_manufacturer_id_code( uint16_t& o_value ) const override;
///
/// @brief Decodes Module Manufacturing Location
@@ -1108,7 +1108,7 @@ class decoder_v1_0 : public decoder
/// @note Page 55
/// @note DDR4 SPD Document Release 3
///
- virtual fapi2::ReturnCode module_manufacturing_location( uint8_t& o_value ) override;
+ virtual fapi2::ReturnCode module_manufacturing_location( uint8_t& o_value ) const override;
///
/// @brief Decodesmodule manufacturing date
/// @param[out] o_output the 2 byte date of manufacturing in BCD format
@@ -1120,7 +1120,7 @@ class decoder_v1_0 : public decoder
/// @note in Binary Coded Decimal (BCD)
/// @note MSB = year, LSB = week
///
- virtual fapi2::ReturnCode module_manufacturing_date( uint16_t& o_output ) override;
+ virtual fapi2::ReturnCode module_manufacturing_date( uint16_t& o_output ) const override;
///
/// @brief Decodes module's unique serial number
@@ -1131,7 +1131,7 @@ class decoder_v1_0 : public decoder
/// @note DDR4 SPD Document Release 2
/// @note Page 4.1.2.12 - 54
///
- virtual fapi2::ReturnCode module_serial_number( uint32_t& o_output ) override;
+ virtual fapi2::ReturnCode module_serial_number( uint32_t& o_output ) const override;
///
/// @brief Decodes Module Revision Code
@@ -1142,7 +1142,7 @@ class decoder_v1_0 : public decoder
/// @note Page 55
/// @note DDR4 SPD Document Release 3
///
- virtual fapi2::ReturnCode module_revision_code( uint8_t& o_value ) override;
+ virtual fapi2::ReturnCode module_revision_code( uint8_t& o_value ) const override;
///
/// @brief Decodes DRAM Manufacturer ID code
@@ -1153,7 +1153,7 @@ class decoder_v1_0 : public decoder
/// @note DDR4 SPD Document Release 2
/// @note Page 4.1.2.12 - 54
///
- virtual fapi2::ReturnCode dram_manufacturer_id_code( uint16_t& o_output ) override;
+ virtual fapi2::ReturnCode dram_manufacturer_id_code( uint16_t& o_output ) const override;
///
/// @brief Decodes DRAM Stepping
/// @param[out] o_value uint8_t DRAM Stepping val
@@ -1164,14 +1164,14 @@ class decoder_v1_0 : public decoder
/// @note DDR4 SPD Document Release 3
/// @note also called die revision level
///
- virtual fapi2::ReturnCode dram_stepping( uint8_t& o_value ) override;
+ virtual fapi2::ReturnCode dram_stepping( uint8_t& o_value ) const override;
///
/// @brief Returns Logical ranks per DIMM
/// @param[out] o_logical_ranks number of logical ranks
/// @return fapi2::FAPI2_RC_SUCCESS if okay
///
- virtual fapi2::ReturnCode logical_ranks_per_dimm( uint8_t& o_logical_rank_per_dimm ) override;
+ virtual fapi2::ReturnCode logical_ranks_per_dimm( uint8_t& o_logical_rank_per_dimm ) const override;
};// decoder
@@ -1188,7 +1188,7 @@ class decoder_v1_1 : public decoder_v1_0
/// @param[out] o_logical_ranks number of logical ranks
/// @return fapi2::FAPI2_RC_SUCCESS if okay
///
- virtual fapi2::ReturnCode sec_sdram_logical_ranks( uint8_t& o_logical_ranks );
+ virtual fapi2::ReturnCode sec_sdram_logical_ranks( uint8_t& o_logical_ranks ) const;
public:
///
@@ -1226,7 +1226,7 @@ class decoder_v1_1 : public decoder_v1_0
/// @note Page 17
/// @note DDR4 SPD Document Release 3
///
- virtual fapi2::ReturnCode hybrid_media( uint8_t& o_value) override;
+ virtual fapi2::ReturnCode hybrid_media( uint8_t& o_value) const override;
///
/// @brief Decodes hybrid field from SPD
@@ -1237,7 +1237,7 @@ class decoder_v1_1 : public decoder_v1_0
/// @note Page 17
/// @note DDR4 SPD Document Release 3
///
- virtual fapi2::ReturnCode hybrid( uint8_t& o_value ) override;
+ virtual fapi2::ReturnCode hybrid( uint8_t& o_value ) const override;
///
/// @brief Decodes SDRAM density from SPD
@@ -1248,7 +1248,7 @@ class decoder_v1_1 : public decoder_v1_0
/// @note Page 18
/// @note DDR4 SPD Document Release 3
///
- virtual fapi2::ReturnCode sdram_density( uint8_t& o_value ) override;
+ virtual fapi2::ReturnCode sdram_density( uint8_t& o_value ) const override;
///
/// @brief Decode Soft post package repair (soft PPR)
@@ -1258,7 +1258,7 @@ class decoder_v1_1 : public decoder_v1_0
/// @note Page 21
/// @note DDR4 SPD Document Release 3
///
- virtual fapi2::ReturnCode soft_post_package_repair( uint8_t& o_value ) override;
+ virtual fapi2::ReturnCode soft_post_package_repair( uint8_t& o_value ) const override;
///
/// @brief Decodes Secondary SDRAM signal loading
@@ -1268,7 +1268,7 @@ class decoder_v1_1 : public decoder_v1_0
/// @note Page 22
/// @note DDR4 SPD Document Release 3
///
- virtual fapi2::ReturnCode sec_sdram_signal_loading( uint8_t& o_value ) override;
+ virtual fapi2::ReturnCode sec_sdram_signal_loading( uint8_t& o_value ) const override;
///
/// @brief Decodes Secondary DRAM Density Ratio
@@ -1278,7 +1278,7 @@ class decoder_v1_1 : public decoder_v1_0
/// @note Page 22
/// @note DDR4 SPD Document Release 3
///
- virtual fapi2::ReturnCode sec_dram_density_ratio( uint8_t& o_value ) override;
+ virtual fapi2::ReturnCode sec_dram_density_ratio( uint8_t& o_value ) const override;
///
/// @brief Decodes Secondary SDRAM die count
@@ -1288,7 +1288,7 @@ class decoder_v1_1 : public decoder_v1_0
/// @note Page 22
/// @note DDR4 SPD Document Release 3
///
- virtual fapi2::ReturnCode sec_sdram_die_count( uint8_t& o_value ) override;
+ virtual fapi2::ReturnCode sec_sdram_die_count( uint8_t& o_value ) const override;
///
/// @brief Decodes Secondary SDRAM package type
@@ -1298,7 +1298,7 @@ class decoder_v1_1 : public decoder_v1_0
/// @note Page 22
/// @note DDR4 SPD Document Release 3
///
- virtual fapi2::ReturnCode sec_sdram_package_type( uint8_t& o_value ) override;
+ virtual fapi2::ReturnCode sec_sdram_package_type( uint8_t& o_value ) const override;
///
/// @brief Decodes number of package ranks per DIMM
@@ -1309,7 +1309,7 @@ class decoder_v1_1 : public decoder_v1_0
/// @note Page 23
/// @note DDR4 SPD Document Release 3
///
- virtual fapi2::ReturnCode num_package_ranks_per_dimm( uint8_t& o_value ) override;
+ virtual fapi2::ReturnCode num_package_ranks_per_dimm( uint8_t& o_value ) const override;
///
/// @brief Decodes Rank Mix
@@ -1320,7 +1320,7 @@ class decoder_v1_1 : public decoder_v1_0
/// @note Page 23
/// @note DDR4 SPD Document Release 3
///
- virtual fapi2::ReturnCode rank_mix( uint8_t& o_value ) override;
+ virtual fapi2::ReturnCode rank_mix( uint8_t& o_value ) const override;
///
/// @brief Decode CAS Latencies Supported
@@ -1331,7 +1331,7 @@ class decoder_v1_1 : public decoder_v1_0
/// @note Page 33-34
/// @note DDR4 SPD Document Release 3
///
- virtual fapi2::ReturnCode supported_cas_latencies( uint64_t& o_value) override;
+ virtual fapi2::ReturnCode supported_cas_latencies( uint64_t& o_value) const override;
///
/// @brief Decodes Minimum Write Recovery Time
@@ -1342,7 +1342,7 @@ class decoder_v1_1 : public decoder_v1_0
/// @note Page 40
/// @note DDR4 SPD Document Release 3
///
- virtual fapi2::ReturnCode min_twr( int64_t& o_value ) override;
+ virtual fapi2::ReturnCode min_twr( int64_t& o_value ) const override;
///
/// @brief Decodes Minimum Write to Read Time - Different Bank Group
@@ -1353,7 +1353,7 @@ class decoder_v1_1 : public decoder_v1_0
/// @note Page 40
/// @note DDR4 SPD Document Release 3
///
- virtual fapi2::ReturnCode min_twtr_s( int64_t& o_value ) override;
+ virtual fapi2::ReturnCode min_twtr_s( int64_t& o_value ) const override;
///
/// @brief Decodes Minimum Write to Read Time - Same Bank Group
@@ -1364,14 +1364,14 @@ class decoder_v1_1 : public decoder_v1_0
/// @note Page 46
/// @note DDR4 SPD Document Release 3
///
- virtual fapi2::ReturnCode min_twtr_l( int64_t& o_value ) override;
+ virtual fapi2::ReturnCode min_twtr_l( int64_t& o_value ) const override;
///
/// @brief Returns Logical ranks per DIMM
/// @param[out] o_logical_ranks number of logical ranks
/// @return fapi2::FAPI2_RC_SUCCESS if okay
///
- virtual fapi2::ReturnCode logical_ranks_per_dimm( uint8_t& o_logical_rank_per_dimm ) override;
+ virtual fapi2::ReturnCode logical_ranks_per_dimm( uint8_t& o_logical_rank_per_dimm ) const override;
};// spd_decoder_v1_1
diff --git a/src/import/generic/memory/lib/spd/common/ddr4/spd_decoder_ddr4_v1_0.C b/src/import/generic/memory/lib/spd/common/ddr4/spd_decoder_ddr4_v1_0.C
index 38ac4afe9..baca956f8 100644
--- a/src/import/generic/memory/lib/spd/common/ddr4/spd_decoder_ddr4_v1_0.C
+++ b/src/import/generic/memory/lib/spd/common/ddr4/spd_decoder_ddr4_v1_0.C
@@ -85,7 +85,7 @@ decoder_v1_0::decoder_v1_0(const fapi2::Target<fapi2::TARGET_TYPE_DIMM>& i_targe
/// @note Page 14
/// @note DDR4 SPD Document Release 3
///
-fapi2::ReturnCode decoder_v1_0::number_of_used_bytes( uint16_t& o_value )
+fapi2::ReturnCode decoder_v1_0::number_of_used_bytes( uint16_t& o_value ) const
{
// =========================================================
// Byte 0 maps
@@ -133,7 +133,7 @@ fapi_try_exit:
/// @note Page 14
/// @note DDR4 SPD Document Release 3
///
-fapi2::ReturnCode decoder_v1_0::number_of_total_bytes( uint16_t& o_value )
+fapi2::ReturnCode decoder_v1_0::number_of_total_bytes( uint16_t& o_value ) const
{
// =========================================================
@@ -180,7 +180,7 @@ fapi_try_exit:
/// @note Page 17
/// @note DDR4 SPD Document Release 3
///
-fapi2::ReturnCode decoder_v1_0::hybrid_media( uint8_t& o_value)
+fapi2::ReturnCode decoder_v1_0::hybrid_media( uint8_t& o_value) const
{
// For General Section rev 1.0 of the SPD,
// Decodes SPD Byte 3 (bits 4~6) were reserved
@@ -200,7 +200,7 @@ fapi2::ReturnCode decoder_v1_0::hybrid_media( uint8_t& o_value)
/// @note Page 17
/// @note DDR4 SPD Document Release 3
///
-fapi2::ReturnCode decoder_v1_0::hybrid( uint8_t& o_value)
+fapi2::ReturnCode decoder_v1_0::hybrid( uint8_t& o_value) const
{
// For General Section rev 1.0 of the SPD,
// Decodes SPD Byte 3 (bit 7) were reserved
@@ -219,7 +219,7 @@ fapi2::ReturnCode decoder_v1_0::hybrid( uint8_t& o_value)
/// @note Page 18
/// @note DDR4 SPD Document Release 3
///
-fapi2::ReturnCode decoder_v1_0::sdram_density( uint8_t& o_value)
+fapi2::ReturnCode decoder_v1_0::sdram_density( uint8_t& o_value) const
{
// =========================================================
// Byte 4 maps
@@ -269,7 +269,7 @@ fapi_try_exit:
/// @note Page 18
/// @note DDR4 SPD Document Release 3
///
-fapi2::ReturnCode decoder_v1_0::bank_bits( uint8_t& o_value)
+fapi2::ReturnCode decoder_v1_0::bank_bits( uint8_t& o_value) const
{
// =========================================================
@@ -316,7 +316,7 @@ fapi_try_exit:
/// @note Page 18
/// @note DDR4 SPD Document Release 3
///
-fapi2::ReturnCode decoder_v1_0::bank_group_bits( uint8_t& o_value)
+fapi2::ReturnCode decoder_v1_0::bank_group_bits( uint8_t& o_value) const
{
// =========================================================
// Byte 4 maps
@@ -363,7 +363,7 @@ fapi_try_exit:
/// @note Page 18
/// @note DDR4 SPD Document Release 3
///
-fapi2::ReturnCode decoder_v1_0::column_address_bits( uint8_t& o_value)
+fapi2::ReturnCode decoder_v1_0::column_address_bits( uint8_t& o_value) const
{
// =========================================================
// Byte 5 maps
@@ -411,7 +411,7 @@ fapi_try_exit:
/// @note Page 18
/// @note DDR4 SPD Document Release 3
///
-fapi2::ReturnCode decoder_v1_0::row_address_bits( uint8_t& o_value)
+fapi2::ReturnCode decoder_v1_0::row_address_bits( uint8_t& o_value) const
{
// =========================================================
// Byte 5 maps
@@ -463,7 +463,7 @@ fapi_try_exit:
/// @note Page 19
/// @note DDR4 SPD Document Release 3
///
-fapi2::ReturnCode decoder_v1_0::prim_sdram_signal_loading( uint8_t& o_value)
+fapi2::ReturnCode decoder_v1_0::prim_sdram_signal_loading( uint8_t& o_value) const
{
// =========================================================
// Byte 6 maps
@@ -510,7 +510,7 @@ fapi_try_exit:
/// @note Page 19
/// @note DDR4 SPD Document Release 3
///
-fapi2::ReturnCode decoder_v1_0::prim_sdram_die_count( uint8_t& o_value)
+fapi2::ReturnCode decoder_v1_0::prim_sdram_die_count( uint8_t& o_value) const
{
// =========================================================
// Byte 6 maps
@@ -562,7 +562,7 @@ fapi_try_exit:
/// @note Page 19
/// @note DDR4 SPD Document Release 3
///
-fapi2::ReturnCode decoder_v1_0::prim_sdram_package_type( uint8_t& o_value)
+fapi2::ReturnCode decoder_v1_0::prim_sdram_package_type( uint8_t& o_value) const
{
// =========================================================
// Byte 6 maps
@@ -609,7 +609,7 @@ fapi_try_exit:
/// @note Page 20
/// @note DDR4 SPD Document Release 3
///
-fapi2::ReturnCode decoder_v1_0::maximum_activate_count( uint32_t& o_value )
+fapi2::ReturnCode decoder_v1_0::maximum_activate_count( uint32_t& o_value ) const
{
// =========================================================
// Byte 7 maps
@@ -661,7 +661,7 @@ fapi_try_exit:
/// @note Page 20
/// @note DDR4 SPD Document Release 3
///
-fapi2::ReturnCode decoder_v1_0::maximum_activate_window_multiplier( uint32_t& o_value )
+fapi2::ReturnCode decoder_v1_0::maximum_activate_window_multiplier( uint32_t& o_value ) const
{
// =========================================================
// Byte 7 maps
@@ -709,7 +709,7 @@ fapi_try_exit:
/// @note Page 21
/// @note DDR4 SPD Document Release 3
///
-fapi2::ReturnCode decoder_v1_0::post_package_repair( uint8_t& o_value)
+fapi2::ReturnCode decoder_v1_0::post_package_repair( uint8_t& o_value) const
{
// =========================================================
// Byte 9 maps
@@ -755,7 +755,7 @@ fapi_try_exit:
/// @note Page 22
/// @note DDR4 SPD Document Release 3
///
-fapi2::ReturnCode decoder_v1_0::sec_sdram_signal_loading( uint8_t& o_value)
+fapi2::ReturnCode decoder_v1_0::sec_sdram_signal_loading( uint8_t& o_value) const
{
// For General Section rev 1.0 of the SPD,
// SPD Byte 10 (bits 1~0) were reserved
@@ -775,7 +775,7 @@ fapi2::ReturnCode decoder_v1_0::sec_sdram_signal_loading( uint8_t& o_value)
/// @note Page 21
/// @note DDR4 SPD Document Release 3
///
-fapi2::ReturnCode decoder_v1_0::soft_post_package_repair( uint8_t& o_value)
+fapi2::ReturnCode decoder_v1_0::soft_post_package_repair( uint8_t& o_value) const
{
// For General Section rev 1.0 of the SPD,
// SPD Byte 9 (bit 5) was reserved
@@ -794,7 +794,7 @@ fapi2::ReturnCode decoder_v1_0::soft_post_package_repair( uint8_t& o_value)
/// @note Page 22
/// @note DDR4 SPD Document Release 3
///
-fapi2::ReturnCode decoder_v1_0::sec_dram_density_ratio( uint8_t& o_value)
+fapi2::ReturnCode decoder_v1_0::sec_dram_density_ratio( uint8_t& o_value) const
{
// For General Section rev 1.0 of the SPD,
// SPD Byte 10 (bits 3~2) were reserved
@@ -814,7 +814,7 @@ fapi2::ReturnCode decoder_v1_0::sec_dram_density_ratio( uint8_t& o_value)
/// @note Page 22
/// @note DDR4 SPD Document Release 3
///
-fapi2::ReturnCode decoder_v1_0::sec_sdram_die_count( uint8_t& o_value)
+fapi2::ReturnCode decoder_v1_0::sec_sdram_die_count( uint8_t& o_value) const
{
// For General Section rev 1.0 of the SPD,
// SPD Byte 10 (bits 6~4) were reserved
@@ -834,7 +834,7 @@ fapi2::ReturnCode decoder_v1_0::sec_sdram_die_count( uint8_t& o_value)
/// @note Page 22
/// @note DDR4 SPD Document Release 3
///
-fapi2::ReturnCode decoder_v1_0::sec_sdram_package_type( uint8_t& o_value)
+fapi2::ReturnCode decoder_v1_0::sec_sdram_package_type( uint8_t& o_value) const
{
// For General Section rev 1.0 of the SPD,
// SPD Byte 10 (bit 7) was reserved
@@ -854,7 +854,7 @@ fapi2::ReturnCode decoder_v1_0::sec_sdram_package_type( uint8_t& o_value)
/// @note Page 23
/// @note DDR4 SPD Document Release 3
///
-fapi2::ReturnCode decoder_v1_0::operable_nominal_voltage( uint8_t& o_value)
+fapi2::ReturnCode decoder_v1_0::operable_nominal_voltage( uint8_t& o_value) const
{
// =========================================================
// Byte 11 maps
@@ -900,7 +900,7 @@ fapi_try_exit:
/// @note Page 23
/// @note DDR4 SPD Document Release 3
///
-fapi2::ReturnCode decoder_v1_0::endurant_nominal_voltage( uint8_t& o_value)
+fapi2::ReturnCode decoder_v1_0::endurant_nominal_voltage( uint8_t& o_value) const
{
// =========================================================
// Byte 11 maps
@@ -947,7 +947,7 @@ fapi_try_exit:
/// @note Page 23
/// @note DDR4 SPD Document Release 3
///
-fapi2::ReturnCode decoder_v1_0::device_width( uint8_t& o_value)
+fapi2::ReturnCode decoder_v1_0::device_width( uint8_t& o_value) const
{
// =========================================================
// Byte 12 maps
@@ -997,7 +997,7 @@ fapi_try_exit:
/// @note Page 23
/// @note DDR4 SPD Document Release 3
///
-fapi2::ReturnCode decoder_v1_0::num_package_ranks_per_dimm( uint8_t& o_value)
+fapi2::ReturnCode decoder_v1_0::num_package_ranks_per_dimm( uint8_t& o_value) const
{
// =========================================================
// Byte 12 maps
@@ -1046,7 +1046,7 @@ fapi_try_exit:
/// @note Page 23
/// @note DDR4 SPD Document Release 3
///
-fapi2::ReturnCode decoder_v1_0::rank_mix( uint8_t& o_value)
+fapi2::ReturnCode decoder_v1_0::rank_mix( uint8_t& o_value) const
{
// For General Section rev 1.0 of the SPD,
// Decodes SPD Byte 3 (bits 4~6) were reserved
@@ -1066,7 +1066,7 @@ fapi2::ReturnCode decoder_v1_0::rank_mix( uint8_t& o_value)
/// @note Page 27
/// @note DDR4 SPD Document Release 3
///
-fapi2::ReturnCode decoder_v1_0::prim_bus_width( uint8_t& o_value)
+fapi2::ReturnCode decoder_v1_0::prim_bus_width( uint8_t& o_value) const
{
// =========================================================
// Byte 13 maps
@@ -1115,7 +1115,7 @@ fapi_try_exit:
/// @note Page 28
/// @note DDR4 SPD Document Release 3
///
-fapi2::ReturnCode decoder_v1_0::bus_width_extension( uint8_t& o_value)
+fapi2::ReturnCode decoder_v1_0::bus_width_extension( uint8_t& o_value) const
{
// =========================================================
// Byte 13 maps
@@ -1162,7 +1162,7 @@ fapi_try_exit:
/// @note Page 28
/// @note DDR4 SPD Document Release 3
///
-fapi2::ReturnCode decoder_v1_0::thermal_sensor( uint8_t& o_value)
+fapi2::ReturnCode decoder_v1_0::thermal_sensor( uint8_t& o_value) const
{
// Extracting desired bits
const uint8_t l_field_bits = extract_spd_field< THERM_SENSOR >(iv_target, iv_spd_data);
@@ -1196,7 +1196,7 @@ fapi_try_exit:
/// @note Page 28
/// @note DDR4 SPD Document Release 3
///
-fapi2::ReturnCode decoder_v1_0::extended_base_module_type( uint8_t& o_value)
+fapi2::ReturnCode decoder_v1_0::extended_base_module_type( uint8_t& o_value) const
{
// Extracting desired bits
const uint8_t l_field_bits = extract_spd_field< EXTENDED_MODULE_TYPE >(iv_target, iv_spd_data);
@@ -1232,7 +1232,7 @@ fapi_try_exit:
/// @note Page 29
/// @note DDR4 SPD Document Release 3
///
-fapi2::ReturnCode decoder_v1_0::fine_timebase( int64_t& o_value)
+fapi2::ReturnCode decoder_v1_0::fine_timebase( int64_t& o_value) const
{
// =========================================================
// Byte 17 maps
@@ -1279,7 +1279,7 @@ fapi_try_exit:
/// @note Page 29
/// @note DDR4 SPD Document Release 3
///
-fapi2::ReturnCode decoder_v1_0::medium_timebase( int64_t& o_value)
+fapi2::ReturnCode decoder_v1_0::medium_timebase( int64_t& o_value) const
{
// =========================================================
// Byte 17 maps
@@ -1331,7 +1331,7 @@ fapi_try_exit:
/// integer and the Fine Offset for tCKmin (SPD byte 125)
/// used for correction to get the actual value.
///
-fapi2::ReturnCode decoder_v1_0::min_tck( int64_t& o_value )
+fapi2::ReturnCode decoder_v1_0::min_tck( int64_t& o_value ) const
{
// Explicit conversion
constexpr size_t BYTE_INDEX = 18;
@@ -1378,7 +1378,7 @@ fapi_try_exit:
/// integer and the Fine Offset for tCKmax (SPD byte 124)
/// used for correction to get the actual value.
///
-fapi2::ReturnCode decoder_v1_0::max_tck( int64_t& o_value )
+fapi2::ReturnCode decoder_v1_0::max_tck( int64_t& o_value ) const
{
// Explicit conversion
constexpr size_t BYTE_INDEX = 19;
@@ -1422,7 +1422,7 @@ fapi_try_exit:
/// @note Page 33-34
/// @note DDR4 SPD Document Release 3
///
-fapi2::ReturnCode decoder_v1_0::supported_cas_latencies( uint64_t& o_value )
+fapi2::ReturnCode decoder_v1_0::supported_cas_latencies( uint64_t& o_value ) const
{
// Trace print in the front assists w/ debug
constexpr size_t FIRST_BYTE = 20;
@@ -1499,7 +1499,7 @@ fapi_try_exit:
/// integer and the Fine Offset for tAAmin (SPD byte 123)
/// used for correction to get the actual value.
///
-fapi2::ReturnCode decoder_v1_0::min_taa( int64_t& o_value )
+fapi2::ReturnCode decoder_v1_0::min_taa( int64_t& o_value ) const
{
// Explicit conversion
constexpr size_t BYTE_INDEX = 24;
@@ -1546,7 +1546,7 @@ fapi_try_exit:
/// integer and the Fine Offset for tRCDmin (SPD byte 122)
/// used for correction to get the actual value
///
-fapi2::ReturnCode decoder_v1_0::min_trcd( int64_t& o_value )
+fapi2::ReturnCode decoder_v1_0::min_trcd( int64_t& o_value ) const
{
// Explicit conversion
constexpr size_t BYTE_INDEX = 25;
@@ -1593,7 +1593,7 @@ fapi_try_exit:
/// integer and the Fine Offset for tRPmin (SPD byte 121)
/// used for correction to get the actual value
///
-fapi2::ReturnCode decoder_v1_0::min_trp( int64_t& o_value )
+fapi2::ReturnCode decoder_v1_0::min_trp( int64_t& o_value ) const
{
// Explicit conversion
constexpr size_t BYTE_INDEX = 26;
@@ -1637,7 +1637,7 @@ fapi_try_exit:
/// @note Page 38
/// @note DDR4 SPD Document Release 3
///
-fapi2::ReturnCode decoder_v1_0::min_tras( int64_t& o_value)
+fapi2::ReturnCode decoder_v1_0::min_tras( int64_t& o_value) const
{
uint8_t tRASmin_MSN = extract_spd_field< TRASMIN_MSN >(iv_target, iv_spd_data);
FAPI_INF("MSN Field Bits value: %lu", tRASmin_MSN);
@@ -1700,7 +1700,7 @@ fapi_try_exit:
/// integer and the Fine Offset for tRCmin (SPD byte 120)
/// used for correction to get the actual value.
///
-fapi2::ReturnCode decoder_v1_0::min_trc( int64_t& o_value)
+fapi2::ReturnCode decoder_v1_0::min_trc( int64_t& o_value) const
{
uint8_t tRCmin_MSN = extract_spd_field< TRCMIN_MSN >(iv_target, iv_spd_data);
FAPI_INF("MSN Field Bits value: %lu", tRCmin_MSN);
@@ -1758,7 +1758,7 @@ fapi_try_exit:
/// @note Page 39-40
/// @note DDR4 SPD Document Release 3
///
-fapi2::ReturnCode decoder_v1_0::min_trfc1( int64_t& o_value)
+fapi2::ReturnCode decoder_v1_0::min_trfc1( int64_t& o_value) const
{
uint8_t tRFC1min_MSB = extract_spd_field< TRFC1MIN_MSB >(iv_target, iv_spd_data);
FAPI_INF("MSB Field Bits value: %lu", tRFC1min_MSB);
@@ -1816,7 +1816,7 @@ fapi_try_exit:
/// @note Page 40
/// @note DDR4 SPD Document Release 3
///
-fapi2::ReturnCode decoder_v1_0::min_trfc2( int64_t& o_value)
+fapi2::ReturnCode decoder_v1_0::min_trfc2( int64_t& o_value) const
{
uint8_t tRFC2min_MSB = extract_spd_field< TRFC2MIN_MSB >(iv_target, iv_spd_data);
FAPI_INF("MSB Field Bits value: %lu", tRFC2min_MSB);
@@ -1874,7 +1874,7 @@ fapi_try_exit:
/// @note Page 40
/// @note DDR4 SPD Document Release 3
///
-fapi2::ReturnCode decoder_v1_0::min_trfc4( int64_t& o_value)
+fapi2::ReturnCode decoder_v1_0::min_trfc4( int64_t& o_value) const
{
uint8_t tRFC4min_MSB = extract_spd_field< TRFC4MIN_MSB >(iv_target, iv_spd_data);
FAPI_INF("MSB Field Bits value: %lu", tRFC4min_MSB);
@@ -1932,7 +1932,7 @@ fapi_try_exit:
/// @note Page 42
/// @note DDR4 SPD Document Release 3
///
-fapi2::ReturnCode decoder_v1_0::min_tfaw( int64_t& o_value)
+fapi2::ReturnCode decoder_v1_0::min_tfaw( int64_t& o_value) const
{
uint8_t tFAWmin_MSN = extract_spd_field< TFAWMIN_MSN >(iv_target, iv_spd_data);
FAPI_INF("MSN Field Bits value: %lu", tFAWmin_MSN);
@@ -1994,7 +1994,7 @@ fapi_try_exit:
/// integer and the Fine Offset for tRRD_Smin (SPD byte 119)
/// used for correction to get the actual value.
///
-fapi2::ReturnCode decoder_v1_0::min_trrd_s( int64_t& o_value)
+fapi2::ReturnCode decoder_v1_0::min_trrd_s( int64_t& o_value) const
{
// Trace in the front assists w/ debug
constexpr size_t BYTE_INDEX = 38;
@@ -2043,7 +2043,7 @@ fapi_try_exit:
/// integer and the Fine Offset for tRRD_Lmin (SPD byte 118)
/// used for correction to get the actual value.
///
-fapi2::ReturnCode decoder_v1_0::min_trrd_l( int64_t& o_value)
+fapi2::ReturnCode decoder_v1_0::min_trrd_l( int64_t& o_value) const
{
// Trace in the front assists w/ debug
constexpr size_t BYTE_INDEX = 39;
@@ -2092,7 +2092,7 @@ fapi_try_exit:
/// integer and the Fine Offset for tCCD_Lmin (SPD byte 117)
/// used for correction to get the actual value.
///
-fapi2::ReturnCode decoder_v1_0::min_tccd_l( int64_t& o_value)
+fapi2::ReturnCode decoder_v1_0::min_tccd_l( int64_t& o_value) const
{
// Trace in the front assists w/ debug
constexpr size_t BYTE_INDEX = 40;
@@ -2137,7 +2137,7 @@ fapi_try_exit:
/// @note Page 40
/// @note DDR4 SPD Document Release 3
///
-fapi2::ReturnCode decoder_v1_0::min_twr( int64_t& o_value)
+fapi2::ReturnCode decoder_v1_0::min_twr( int64_t& o_value) const
{
// For General Section rev 1.0 of the SPD,
// SPD Byte 41 (bits 3~0) & Byte 42 (bits 7~0) were reserved
@@ -2159,7 +2159,7 @@ fapi2::ReturnCode decoder_v1_0::min_twr( int64_t& o_value)
/// @note Page 40
/// @note DDR4 SPD Document Release 3
///
-fapi2::ReturnCode decoder_v1_0::min_twtr_s( int64_t& o_value)
+fapi2::ReturnCode decoder_v1_0::min_twtr_s( int64_t& o_value) const
{
// For General Section rev 1.0 of the SPD,
// SPD Byte 43 (bits 3~0) & Byte 44 (bits 7~0) were reserved
@@ -2180,7 +2180,7 @@ fapi2::ReturnCode decoder_v1_0::min_twtr_s( int64_t& o_value)
/// @note Page 46
/// @note DDR4 SPD Document Release 3
///
-fapi2::ReturnCode decoder_v1_0::min_twtr_l( int64_t& o_value)
+fapi2::ReturnCode decoder_v1_0::min_twtr_l( int64_t& o_value) const
{
// For General Section rev 1.0 of the SPD,
// SPD Byte 43 (bits 7~4) & Byte 45 (bits 7~0) were reserved
@@ -2202,7 +2202,7 @@ fapi2::ReturnCode decoder_v1_0::min_twtr_l( int64_t& o_value)
/// @note Page 52
/// @note DDR4 SPD Document Release 3
///
-fapi2::ReturnCode decoder_v1_0::fine_offset_min_tccd_l( int64_t& o_value)
+fapi2::ReturnCode decoder_v1_0::fine_offset_min_tccd_l( int64_t& o_value) const
{
// Trace in the front assists w/ debug
constexpr size_t BYTE_INDEX = 117;
@@ -2248,7 +2248,7 @@ fapi_try_exit:
/// @note Page 52
/// @note DDR4 SPD Document Release 3
///
-fapi2::ReturnCode decoder_v1_0::fine_offset_min_trrd_l( int64_t& o_value)
+fapi2::ReturnCode decoder_v1_0::fine_offset_min_trrd_l( int64_t& o_value) const
{
// Trace in the front assists w/ debug
constexpr size_t BYTE_INDEX = 118;
@@ -2294,7 +2294,7 @@ fapi_try_exit:
/// @note Page 52
/// @note DDR4 SPD Document Release 3
///
-fapi2::ReturnCode decoder_v1_0::fine_offset_min_trrd_s( int64_t& o_value)
+fapi2::ReturnCode decoder_v1_0::fine_offset_min_trrd_s( int64_t& o_value) const
{
// Trace in the front assists w/ debug
constexpr size_t BYTE_INDEX = 119;
@@ -2340,7 +2340,7 @@ fapi_try_exit:
/// @note Page 52
/// @note DDR4 SPD Document Release 3
///
-fapi2::ReturnCode decoder_v1_0::fine_offset_min_trc( int64_t& o_value)
+fapi2::ReturnCode decoder_v1_0::fine_offset_min_trc( int64_t& o_value) const
{
// Trace in the front assists w/ debug
constexpr size_t BYTE_INDEX = 120;
@@ -2386,7 +2386,7 @@ fapi_try_exit:
/// @note Page 52
/// @note DDR4 SPD Document Release 3
///
-fapi2::ReturnCode decoder_v1_0::fine_offset_min_trp( int64_t& o_value)
+fapi2::ReturnCode decoder_v1_0::fine_offset_min_trp( int64_t& o_value) const
{
// Trace in the front assists w/ debug
constexpr size_t BYTE_INDEX = 121;
@@ -2431,7 +2431,7 @@ fapi_try_exit:
/// @note Page 52
/// @note DDR4 SPD Document Release 3
///
-fapi2::ReturnCode decoder_v1_0::fine_offset_min_trcd( int64_t& o_value)
+fapi2::ReturnCode decoder_v1_0::fine_offset_min_trcd( int64_t& o_value) const
{
// Trace in the front assists w/ debug
constexpr size_t BYTE_INDEX = 122;
@@ -2477,7 +2477,7 @@ fapi_try_exit:
/// @note Page 52
/// @note DDR4 SPD Document Release 3
///
-fapi2::ReturnCode decoder_v1_0::fine_offset_min_taa( int64_t& o_value )
+fapi2::ReturnCode decoder_v1_0::fine_offset_min_taa( int64_t& o_value ) const
{
// Trace in the front assists w/ debug
constexpr size_t BYTE_INDEX = 123;
@@ -2523,7 +2523,7 @@ fapi_try_exit:
/// @note Page 52
/// @note DDR4 SPD Document Release 3
///
-fapi2::ReturnCode decoder_v1_0::fine_offset_max_tck( int64_t& o_value )
+fapi2::ReturnCode decoder_v1_0::fine_offset_max_tck( int64_t& o_value ) const
{
// Trace in the front assists w/ debug
constexpr size_t BYTE_INDEX = 124;
@@ -2570,7 +2570,7 @@ fapi_try_exit:
/// @note Page 52
/// @note DDR4 SPD Document Release 3
///
-fapi2::ReturnCode decoder_v1_0::fine_offset_min_tck( int64_t& o_value )
+fapi2::ReturnCode decoder_v1_0::fine_offset_min_tck( int64_t& o_value ) const
{
// Trace in the front assists w/ debug
constexpr size_t BYTE_INDEX = 125;
@@ -2617,7 +2617,7 @@ fapi_try_exit:
/// @note Page 53
/// @note DDR4 SPD Document Release 3
///
-fapi2::ReturnCode decoder_v1_0::cyclical_redundancy_code( uint16_t& o_value )
+fapi2::ReturnCode decoder_v1_0::cyclical_redundancy_code( uint16_t& o_value ) const
{
uint8_t crc_MSB = extract_spd_field< CRC_MSB >(iv_target, iv_spd_data);
FAPI_INF("MSB Field Bits value: %lu", crc_MSB);
@@ -2655,7 +2655,7 @@ fapi2::ReturnCode decoder_v1_0::cyclical_redundancy_code( uint16_t& o_value )
/// @note DDR4 SPD Document Release 3
/// @note Page 4.1.2.12 - 54
///
-fapi2::ReturnCode decoder_v1_0::module_manufacturer_id_code( uint16_t& o_value )
+fapi2::ReturnCode decoder_v1_0::module_manufacturer_id_code( uint16_t& o_value ) const
{
constexpr size_t BYTE_INDEX_MSB = 320;
@@ -2692,7 +2692,7 @@ fapi2::ReturnCode decoder_v1_0::module_manufacturer_id_code( uint16_t& o_value )
/// @note Page 55
/// @note DDR4 SPD Document Release 3
///
-fapi2::ReturnCode decoder_v1_0::module_manufacturing_location( uint8_t& o_value)
+fapi2::ReturnCode decoder_v1_0::module_manufacturing_location( uint8_t& o_value) const
{
// Trace in the front assists w/ debug
constexpr size_t BYTE_INDEX = 322;
@@ -2722,7 +2722,7 @@ fapi2::ReturnCode decoder_v1_0::module_manufacturing_location( uint8_t& o_value)
/// @note in Binary Coded Decimal (BCD)
/// @note MSB = year, LSB = week
///
-fapi2::ReturnCode decoder_v1_0::module_manufacturing_date( uint16_t& o_value )
+fapi2::ReturnCode decoder_v1_0::module_manufacturing_date( uint16_t& o_value ) const
{
constexpr size_t BYTE_INDEX_MSB = 323;
@@ -2761,7 +2761,7 @@ fapi2::ReturnCode decoder_v1_0::module_manufacturing_date( uint16_t& o_value )
/// @note Page 4.1.2.12 - 54
/// @note in Binary Coded Decimal (BCD)
///
-fapi2::ReturnCode decoder_v1_0::module_serial_number( uint32_t& o_value )
+fapi2::ReturnCode decoder_v1_0::module_serial_number( uint32_t& o_value ) const
{
constexpr size_t BYTE_INDEX_0 = 325;
uint8_t sn_byte_0 = iv_spd_data[BYTE_INDEX_0];
@@ -2810,7 +2810,7 @@ fapi2::ReturnCode decoder_v1_0::module_serial_number( uint32_t& o_value )
/// @note Page 55
/// @note DDR4 SPD Document Release 3
///
-fapi2::ReturnCode decoder_v1_0::module_revision_code( uint8_t& o_value)
+fapi2::ReturnCode decoder_v1_0::module_revision_code( uint8_t& o_value) const
{
// Trace in the front assists w/ debug
constexpr size_t BYTE_INDEX = 349;
@@ -2838,7 +2838,7 @@ fapi2::ReturnCode decoder_v1_0::module_revision_code( uint8_t& o_value)
/// @note DDR4 SPD Document Release 2
/// @note Page 4.1.2.12 - 54
///
-fapi2::ReturnCode decoder_v1_0::dram_manufacturer_id_code( uint16_t& o_value )
+fapi2::ReturnCode decoder_v1_0::dram_manufacturer_id_code( uint16_t& o_value ) const
{
constexpr size_t BYTE_INDEX_MSB = 350;
uint8_t mfgid_MSB = iv_spd_data[BYTE_INDEX_MSB];
@@ -2875,7 +2875,7 @@ fapi2::ReturnCode decoder_v1_0::dram_manufacturer_id_code( uint16_t& o_value )
/// @note DDR4 SPD Document Release 3
/// @note also called die revision level
///
-fapi2::ReturnCode decoder_v1_0::dram_stepping( uint8_t& o_value)
+fapi2::ReturnCode decoder_v1_0::dram_stepping( uint8_t& o_value) const
{
// Trace in the front assists w/ debug
constexpr size_t BYTE_INDEX = 352;
@@ -2898,7 +2898,7 @@ fapi2::ReturnCode decoder_v1_0::dram_stepping( uint8_t& o_value)
/// @param[out] o_logical_ranks number of logical ranks
/// @return fapi2::FAPI2_RC_SUCCESS if okay
///
-fapi2::ReturnCode decoder_v1_0::prim_sdram_logical_ranks( uint8_t& o_logical_ranks )
+fapi2::ReturnCode decoder_v1_0::prim_sdram_logical_ranks( uint8_t& o_logical_ranks ) const
{
uint8_t l_signal_loading = 0;
uint8_t l_ranks_per_dimm = 0;
@@ -2932,7 +2932,7 @@ fapi_try_exit:
/// @param[out] o_logical_ranks number of logical ranks
/// @return fapi2::FAPI2_RC_SUCCESS if okay
///
-fapi2::ReturnCode decoder_v1_0::logical_ranks_per_dimm( uint8_t& o_logical_rank_per_dimm )
+fapi2::ReturnCode decoder_v1_0::logical_ranks_per_dimm( uint8_t& o_logical_rank_per_dimm ) const
{
FAPI_TRY( prim_sdram_logical_ranks(o_logical_rank_per_dimm) );
diff --git a/src/import/generic/memory/lib/spd/common/ddr4/spd_decoder_ddr4_v1_1.C b/src/import/generic/memory/lib/spd/common/ddr4/spd_decoder_ddr4_v1_1.C
index 9845a5b46..19b685261 100644
--- a/src/import/generic/memory/lib/spd/common/ddr4/spd_decoder_ddr4_v1_1.C
+++ b/src/import/generic/memory/lib/spd/common/ddr4/spd_decoder_ddr4_v1_1.C
@@ -79,7 +79,7 @@ decoder_v1_1::decoder_v1_1(const fapi2::Target<fapi2::TARGET_TYPE_DIMM>& i_targe
/// @note Page 18
/// @note DDR4 SPD Document Release 3
///
-fapi2::ReturnCode decoder_v1_1::sdram_density( uint8_t& o_value )
+fapi2::ReturnCode decoder_v1_1::sdram_density( uint8_t& o_value ) const
{
// =========================================================
// Byte 4 maps
@@ -132,7 +132,7 @@ fapi_try_exit:
/// @note Page 17
/// @note DDR4 SPD Document Release 3
///
-fapi2::ReturnCode decoder_v1_1::hybrid_media( uint8_t& o_value )
+fapi2::ReturnCode decoder_v1_1::hybrid_media( uint8_t& o_value ) const
{
// =========================================================
// Byte 3 maps
@@ -178,7 +178,7 @@ fapi_try_exit:
/// @note Page 17
/// @note DDR4 SPD Document Release 3
///
-fapi2::ReturnCode decoder_v1_1::hybrid( uint8_t& o_value )
+fapi2::ReturnCode decoder_v1_1::hybrid( uint8_t& o_value ) const
{
// =========================================================
// Byte 3 maps
@@ -224,7 +224,7 @@ fapi_try_exit:
/// @note Page 22
/// @note DDR4 SPD Document Release 3
///
-fapi2::ReturnCode decoder_v1_1::sec_sdram_signal_loading( uint8_t& o_value )
+fapi2::ReturnCode decoder_v1_1::sec_sdram_signal_loading( uint8_t& o_value ) const
{
// =========================================================
// Byte 10 maps
@@ -271,7 +271,7 @@ fapi_try_exit:
/// @note Page 21
/// @note DDR4 SPD Document Release 3
///
-fapi2::ReturnCode decoder_v1_1::soft_post_package_repair( uint8_t& o_value )
+fapi2::ReturnCode decoder_v1_1::soft_post_package_repair( uint8_t& o_value ) const
{
// =========================================================
// Byte 9 maps
@@ -317,7 +317,7 @@ fapi_try_exit:
/// @note Page 22
/// @note DDR4 SPD Document Release 3
///
-fapi2::ReturnCode decoder_v1_1::sec_dram_density_ratio( uint8_t& o_value )
+fapi2::ReturnCode decoder_v1_1::sec_dram_density_ratio( uint8_t& o_value ) const
{
// Extracting desired bits
const uint8_t l_field_bits = extract_spd_field< SEC_DENSITY_RATIO >(iv_target, iv_spd_data);
@@ -350,7 +350,7 @@ fapi_try_exit:
/// @note Page 22
/// @note DDR4 SPD Document Release 3
///
-fapi2::ReturnCode decoder_v1_1::sec_sdram_die_count( uint8_t& o_value )
+fapi2::ReturnCode decoder_v1_1::sec_sdram_die_count( uint8_t& o_value ) const
{
// =========================================================
// Byte 10 maps
@@ -403,7 +403,7 @@ fapi_try_exit:
/// @note Page 22
/// @note DDR4 SPD Document Release 3
///
-fapi2::ReturnCode decoder_v1_1::sec_sdram_package_type( uint8_t& o_value )
+fapi2::ReturnCode decoder_v1_1::sec_sdram_package_type( uint8_t& o_value ) const
{
// =========================================================
// Byte 10 maps
@@ -450,7 +450,7 @@ fapi_try_exit:
/// @note Page 23
/// @note DDR4 SPD Document Release 3
///
-fapi2::ReturnCode decoder_v1_1::num_package_ranks_per_dimm( uint8_t& o_value )
+fapi2::ReturnCode decoder_v1_1::num_package_ranks_per_dimm( uint8_t& o_value ) const
{
// =========================================================
// Byte 12 maps
@@ -502,7 +502,7 @@ fapi_try_exit:
/// @note Page 23
/// @note DDR4 SPD Document Release 3
///
-fapi2::ReturnCode decoder_v1_1::rank_mix( uint8_t& o_value )
+fapi2::ReturnCode decoder_v1_1::rank_mix( uint8_t& o_value ) const
{
// Extracting desired bits
const uint8_t l_field_bits = extract_spd_field< RANK_MIX >(iv_target, iv_spd_data);
@@ -537,7 +537,7 @@ fapi_try_exit:
/// @note Page 33-34
/// @note DDR4 SPD Document Release 3
///
-fapi2::ReturnCode decoder_v1_1::supported_cas_latencies( uint64_t& o_value )
+fapi2::ReturnCode decoder_v1_1::supported_cas_latencies( uint64_t& o_value ) const
{
// Trace print in the front assists w/ debug
constexpr size_t FIRST_BYTE = 20;
@@ -610,7 +610,7 @@ fapi_try_exit:
/// @note Page 40
/// @note DDR4 SPD Document Release 3
///
-fapi2::ReturnCode decoder_v1_1::min_twr( int64_t& o_value )
+fapi2::ReturnCode decoder_v1_1::min_twr( int64_t& o_value ) const
{
uint8_t tWRmin_MSN = extract_spd_field< TWRMIN_MSN >(iv_target, iv_spd_data);
FAPI_INF("MSN Field Bits value: %lu", tWRmin_MSN);
@@ -671,7 +671,7 @@ fapi_try_exit:
/// @note Page 40
/// @note DDR4 SPD Document Release 3
///
-fapi2::ReturnCode decoder_v1_1::min_twtr_s( int64_t& o_value )
+fapi2::ReturnCode decoder_v1_1::min_twtr_s( int64_t& o_value ) const
{
uint8_t tWTR_Smin_MSN = extract_spd_field< TWTRMIN_S_MSN >(iv_target, iv_spd_data);
FAPI_INF("MSN Field Bits value: %lu", tWTR_Smin_MSN);
@@ -732,7 +732,7 @@ fapi_try_exit:
/// @note Page 46
/// @note DDR4 SPD Document Release 3
///
-fapi2::ReturnCode decoder_v1_1::min_twtr_l( int64_t& o_value )
+fapi2::ReturnCode decoder_v1_1::min_twtr_l( int64_t& o_value ) const
{
// Extracting desired bits
uint8_t tWTR_Lmin_MSN = extract_spd_field< TWTRMIN_L_MSN >(iv_target, iv_spd_data);
@@ -789,7 +789,7 @@ fapi_try_exit:
/// @param[out] o_logical_ranks number of logical ranks
/// @return fapi2::FAPI2_RC_SUCCESS if okay
///
-fapi2::ReturnCode decoder_v1_1::sec_sdram_logical_ranks( uint8_t& o_logical_ranks )
+fapi2::ReturnCode decoder_v1_1::sec_sdram_logical_ranks( uint8_t& o_logical_ranks ) const
{
uint8_t l_signal_loading = 0;
uint8_t l_ranks_per_dimm = 0;
@@ -822,7 +822,7 @@ fapi_try_exit:
/// @param[out] o_logical_ranks number of logical ranks
/// @return fapi2::FAPI2_RC_SUCCESS if okay
///
-fapi2::ReturnCode decoder_v1_1::logical_ranks_per_dimm( uint8_t& o_logical_rank_per_dimm )
+fapi2::ReturnCode decoder_v1_1::logical_ranks_per_dimm( uint8_t& o_logical_rank_per_dimm ) const
{
uint8_t l_rank_mix = 0;
diff --git a/src/import/generic/memory/lib/spd/common/dimm_module_decoder.H b/src/import/generic/memory/lib/spd/common/dimm_module_decoder.H
index 67faa47a0..318bd6b86 100644
--- a/src/import/generic/memory/lib/spd/common/dimm_module_decoder.H
+++ b/src/import/generic/memory/lib/spd/common/dimm_module_decoder.H
@@ -69,7 +69,7 @@ class dimm_module_decoder
/// @param[out] o_output height range encoding from SPD
/// @return FAPI2_RC_SUCCESS if okay
///
- virtual fapi2::ReturnCode max_module_nominal_height(uint8_t& o_output)
+ virtual fapi2::ReturnCode max_module_nominal_height(uint8_t& o_output) const
{
o_output = 0;
return fapi2::FAPI2_RC_SUCCESS;
@@ -80,7 +80,7 @@ class dimm_module_decoder
/// @param[out] o_output height range encoding from SPD
/// @return FAPI2_RC_SUCCESS if okay
///
- virtual fapi2::ReturnCode raw_card_extension(uint8_t& o_output)
+ virtual fapi2::ReturnCode raw_card_extension(uint8_t& o_output) const
{
o_output = 0;
return fapi2::FAPI2_RC_SUCCESS;
@@ -91,7 +91,7 @@ class dimm_module_decoder
/// @param[out] o_output encoding from SPD
/// @return FAPI2_RC_SUCCESS if okay
///
- virtual fapi2::ReturnCode front_module_max_thickness(uint8_t& o_output)
+ virtual fapi2::ReturnCode front_module_max_thickness(uint8_t& o_output) const
{
o_output = 0;
return fapi2::FAPI2_RC_SUCCESS;
@@ -102,7 +102,7 @@ class dimm_module_decoder
/// @param[out] o_output encoding from SPD
/// @return FAPI2_RC_SUCCESS if okay
///
- virtual fapi2::ReturnCode back_module_max_thickness(uint8_t& o_output)
+ virtual fapi2::ReturnCode back_module_max_thickness(uint8_t& o_output) const
{
o_output = 0;
return fapi2::FAPI2_RC_SUCCESS;
@@ -113,7 +113,7 @@ class dimm_module_decoder
/// @param[out] o_output encoding from SPD
/// @return FAPI2_RC_SUCCESS if okay
///
- virtual fapi2::ReturnCode num_registers_used(uint8_t& o_output)
+ virtual fapi2::ReturnCode num_registers_used(uint8_t& o_output) const
{
o_output = 0;
return fapi2::FAPI2_RC_SUCCESS;
@@ -124,7 +124,7 @@ class dimm_module_decoder
/// @param[out] o_output encoding from SPD
/// @return FAPI2_RC_SUCCESS if okay
///
- virtual fapi2::ReturnCode num_rows_of_drams(uint8_t& o_output)
+ virtual fapi2::ReturnCode num_rows_of_drams(uint8_t& o_output) const
{
o_output = 0;
return fapi2::FAPI2_RC_SUCCESS;
@@ -135,7 +135,7 @@ class dimm_module_decoder
/// @param[out] o_output encoding from SPD
/// @return FAPI2_RC_SUCCESS if okay
///
- virtual fapi2::ReturnCode register_and_buffer_type(uint8_t& o_output)
+ virtual fapi2::ReturnCode register_and_buffer_type(uint8_t& o_output) const
{
o_output = 0;
return fapi2::FAPI2_RC_SUCCESS;
@@ -146,7 +146,7 @@ class dimm_module_decoder
/// @param[out] o_output drive strength encoding from SPD
/// @return FAPI2_RC_SUCCEawSS if okay
///
- virtual fapi2::ReturnCode heat_spreader_thermal_char(uint8_t& o_output)
+ virtual fapi2::ReturnCode heat_spreader_thermal_char(uint8_t& o_output) const
{
// Undefined must be coded as 0x00
o_output = 0;
@@ -158,7 +158,7 @@ class dimm_module_decoder
/// @param[out] o_output drive strength encoding from SPD
/// @return FAPI2_RC_SUCCESS if okay
///
- virtual fapi2::ReturnCode heat_spreader_solution(uint8_t& o_output)
+ virtual fapi2::ReturnCode heat_spreader_solution(uint8_t& o_output) const
{
o_output = 0;
return fapi2::FAPI2_RC_SUCCESS;
@@ -169,7 +169,7 @@ class dimm_module_decoder
/// @param[out] o_output drive strength encoding from SPD
/// @return FAPI2_RC_SUCCESS if okay
///
- virtual fapi2::ReturnCode num_continuation_codes(uint8_t& o_output)
+ virtual fapi2::ReturnCode num_continuation_codes(uint8_t& o_output) const
{
o_output = 0;
return fapi2::FAPI2_RC_SUCCESS;
@@ -180,7 +180,7 @@ class dimm_module_decoder
/// @param[out] o_output drive strength encoding from SPD
/// @return FAPI2_RC_SUCCESS if okay
///
- virtual fapi2::ReturnCode reg_manufacturer_id_code(uint8_t& o_output)
+ virtual fapi2::ReturnCode reg_manufacturer_id_code(uint8_t& o_output) const
{
o_output = 0;
return fapi2::FAPI2_RC_SUCCESS;
@@ -191,7 +191,7 @@ class dimm_module_decoder
/// @param[out] o_output drive strength encoding from SPD
/// @return FAPI2_RC_SUCCESS if okay
///
- virtual fapi2::ReturnCode register_rev_num(uint8_t& o_output)
+ virtual fapi2::ReturnCode register_rev_num(uint8_t& o_output) const
{
o_output = 0;
return fapi2::FAPI2_RC_SUCCESS;
@@ -202,7 +202,7 @@ class dimm_module_decoder
/// @param[out] o_output drive strength encoding from SPD
/// @return FAPI2_RC_SUCCESS if okay
///
- virtual fapi2::ReturnCode register_to_dram_addr_mapping(uint8_t& o_output)
+ virtual fapi2::ReturnCode register_to_dram_addr_mapping(uint8_t& o_output) const
{
o_output = 0;
return fapi2::FAPI2_RC_SUCCESS;
@@ -213,7 +213,7 @@ class dimm_module_decoder
/// @param[out] o_output encoding from SPD
/// @return FAPI2_RC_SUCCESS if okay
///
- virtual fapi2::ReturnCode cke_signal_output_driver(uint8_t& o_output)
+ virtual fapi2::ReturnCode cke_signal_output_driver(uint8_t& o_output) const
{
o_output = 0;
return fapi2::FAPI2_RC_SUCCESS;
@@ -224,7 +224,7 @@ class dimm_module_decoder
/// @param[out] o_output encoding from SPD
/// @return FAPI2_RC_SUCCESS if okay
///
- virtual fapi2::ReturnCode odt_signal_output_driver(uint8_t& o_output)
+ virtual fapi2::ReturnCode odt_signal_output_driver(uint8_t& o_output) const
{
o_output = 0;
return fapi2::FAPI2_RC_SUCCESS;
@@ -235,7 +235,7 @@ class dimm_module_decoder
/// @param[out] o_output drive strength encoding from SPD
/// @return FAPI2_RC_SUCCESS if okay
///
- virtual fapi2::ReturnCode ca_signal_output_driver(uint8_t& o_output)
+ virtual fapi2::ReturnCode ca_signal_output_driver(uint8_t& o_output) const
{
o_output = 0;
return fapi2::FAPI2_RC_SUCCESS;
@@ -246,7 +246,7 @@ class dimm_module_decoder
/// @param[out] o_output encoding from SPD
/// @return FAPI2_RC_SUCCESS if okay
///
- virtual fapi2::ReturnCode cs_signal_output_driver(uint8_t& o_output)
+ virtual fapi2::ReturnCode cs_signal_output_driver(uint8_t& o_output) const
{
o_output = 0;
return fapi2::FAPI2_RC_SUCCESS;
@@ -257,7 +257,7 @@ class dimm_module_decoder
/// @param[out] o_output drive strength encoding from SPD
/// @return FAPI2_RC_SUCCESS if okay
///
- virtual fapi2::ReturnCode b_side_clk_output_driver(uint8_t& o_output)
+ virtual fapi2::ReturnCode b_side_clk_output_driver(uint8_t& o_output) const
{
o_output = 0;
return fapi2::FAPI2_RC_SUCCESS;
@@ -268,7 +268,7 @@ class dimm_module_decoder
/// @param[out] o_output drive strength encoding from SPD
/// @return FAPI2_RC_SUCCESS if okay
///
- virtual fapi2::ReturnCode a_side_clk_output_driver(uint8_t& o_output)
+ virtual fapi2::ReturnCode a_side_clk_output_driver(uint8_t& o_output) const
{
o_output = 0;
return fapi2::FAPI2_RC_SUCCESS;
@@ -279,7 +279,7 @@ class dimm_module_decoder
/// @param[out] o_output encoded drive strength
/// @return FAPI2_RC_SUCCESS if okay
///
- virtual fapi2::ReturnCode bcom_bcke_bodt_drive_strength(uint8_t& o_output)
+ virtual fapi2::ReturnCode bcom_bcke_bodt_drive_strength(uint8_t& o_output) const
{
o_output = 0;
return fapi2::FAPI2_RC_SUCCESS;
@@ -291,7 +291,7 @@ class dimm_module_decoder
/// @param[out] o_output encoded drive strength
/// @return FAPI2_RC_SUCCESS if okay
///
- virtual fapi2::ReturnCode bck_output_drive_strength(uint8_t& o_output)
+ virtual fapi2::ReturnCode bck_output_drive_strength(uint8_t& o_output) const
{
o_output = 0;
return fapi2::FAPI2_RC_SUCCESS;
@@ -302,7 +302,7 @@ class dimm_module_decoder
/// @param[out] o_output encoded drive strength
/// @return FAPI2_RC_SUCCESS if okay
///
- virtual fapi2::ReturnCode slew_rate_control(uint8_t& o_output)
+ virtual fapi2::ReturnCode slew_rate_control(uint8_t& o_output) const
{
o_output = 0;
return fapi2::FAPI2_RC_SUCCESS;
@@ -313,7 +313,7 @@ class dimm_module_decoder
/// @param[out] o_output revision number
/// @return FAPI2_RC_SUCCESS if okay
///
- virtual fapi2::ReturnCode data_buffer_rev(uint8_t& o_output)
+ virtual fapi2::ReturnCode data_buffer_rev(uint8_t& o_output) const
{
o_output = 0;
return fapi2::FAPI2_RC_SUCCESS;
@@ -324,7 +324,7 @@ class dimm_module_decoder
/// @param[out] o_output encoding of MR6 A5:A0 in JESD790-4 spec
/// @return FAPI2_RC_SUCCESS if okay
///
- virtual fapi2::ReturnCode dram_vref_dq_rank0(uint8_t& o_output)
+ virtual fapi2::ReturnCode dram_vref_dq_rank0(uint8_t& o_output) const
{
o_output = 0;
return fapi2::FAPI2_RC_SUCCESS;
@@ -335,7 +335,7 @@ class dimm_module_decoder
/// @param[out] o_output encoding of MR6 A5:A0 in JESD790-4 spec
/// @return FAPI2_RC_SUCCESS if okay
///
- virtual fapi2::ReturnCode dram_vref_dq_rank1(uint8_t& o_output)
+ virtual fapi2::ReturnCode dram_vref_dq_rank1(uint8_t& o_output) const
{
o_output = 0;
return fapi2::FAPI2_RC_SUCCESS;
@@ -346,7 +346,7 @@ class dimm_module_decoder
/// @param[out] o_output encoding of MR6 A5:A0 in JESD790-4 spec
/// @return FAPI2_RC_SUCCESS if okay
///
- virtual fapi2::ReturnCode dram_vref_dq_rank2(uint8_t& o_output)
+ virtual fapi2::ReturnCode dram_vref_dq_rank2(uint8_t& o_output) const
{
o_output = 0;
return fapi2::FAPI2_RC_SUCCESS;
@@ -357,7 +357,7 @@ class dimm_module_decoder
/// @param[out] o_output encoding of MR6 A5:A0 in JESD790-4 spec
/// @return FAPI2_RC_SUCCESS if okay
///
- virtual fapi2::ReturnCode dram_vref_dq_rank3(uint8_t& o_output)
+ virtual fapi2::ReturnCode dram_vref_dq_rank3(uint8_t& o_output) const
{
o_output = 0;
return fapi2::FAPI2_RC_SUCCESS;
@@ -368,7 +368,7 @@ class dimm_module_decoder
/// @param[out] o_output encoding of F5BC6x in DDR4DB01 spec
/// @return FAPI2_RC_SUCCESS if okay
///
- virtual fapi2::ReturnCode data_buffer_vref_dq(uint8_t& o_output)
+ virtual fapi2::ReturnCode data_buffer_vref_dq(uint8_t& o_output) const
{
o_output = 0;
return fapi2::FAPI2_RC_SUCCESS;
@@ -381,7 +381,7 @@ class dimm_module_decoder
/// @param[out] o_output encoding of F5BC6x in
/// @return FAPI2_RC_SUCCESS if okay
///
- virtual fapi2::ReturnCode data_buffer_mdq_drive_strength(const uint64_t i_dimm_speed, uint8_t& o_output)
+ virtual fapi2::ReturnCode data_buffer_mdq_drive_strength(const uint64_t i_dimm_speed, uint8_t& o_output) const
{
o_output = 0;
return fapi2::FAPI2_RC_SUCCESS;
@@ -394,7 +394,7 @@ class dimm_module_decoder
/// @param[out] o_output encoding of F5BC6x in
/// @return FAPI2_RC_SUCCESS if okay
///
- virtual fapi2::ReturnCode data_buffer_mdq_rtt(const uint64_t i_dimm_speed, uint8_t& o_output)
+ virtual fapi2::ReturnCode data_buffer_mdq_rtt(const uint64_t i_dimm_speed, uint8_t& o_output) const
{
o_output = 0;
return fapi2::FAPI2_RC_SUCCESS;
@@ -407,7 +407,7 @@ class dimm_module_decoder
/// @param[out] o_output DRAM drive strength (in ohms)
/// @return FAPI2_RC_SUCCESS if okay
///
- virtual fapi2::ReturnCode dram_drive_strength(const uint64_t i_dimm_speed, uint8_t& o_output)
+ virtual fapi2::ReturnCode dram_drive_strength(const uint64_t i_dimm_speed, uint8_t& o_output) const
{
o_output = 0;
return fapi2::FAPI2_RC_SUCCESS;
@@ -420,7 +420,7 @@ class dimm_module_decoder
/// @param[out] o_output ODT termination strength (in ohms)
/// @return FAPI2_RC_SUCCESS if okay
///
- virtual fapi2::ReturnCode dram_rtt_nom(const uint64_t i_dimm_speed, uint8_t& o_output)
+ virtual fapi2::ReturnCode dram_rtt_nom(const uint64_t i_dimm_speed, uint8_t& o_output) const
{
o_output = 0;
return fapi2::FAPI2_RC_SUCCESS;
@@ -433,7 +433,7 @@ class dimm_module_decoder
/// @param[out] o_output ODT termination strength (in ohms)
/// @return FAPI2_RC_SUCCESS if okay
///
- virtual fapi2::ReturnCode dram_rtt_wr(const uint64_t i_dimm_speed, uint8_t& o_output)
+ virtual fapi2::ReturnCode dram_rtt_wr(const uint64_t i_dimm_speed, uint8_t& o_output) const
{
o_output = 0;
return fapi2::FAPI2_RC_SUCCESS;
@@ -446,7 +446,7 @@ class dimm_module_decoder
/// @param[out] o_output ODT termination strength (in ohms)
/// @return FAPI2_RC_SUCCESS if okay
///
- virtual fapi2::ReturnCode dram_rtt_park_ranks0_1(const uint64_t i_dimm_speed, uint8_t& o_output)
+ virtual fapi2::ReturnCode dram_rtt_park_ranks0_1(const uint64_t i_dimm_speed, uint8_t& o_output) const
{
o_output = 0;
return fapi2::FAPI2_RC_SUCCESS;
@@ -459,7 +459,7 @@ class dimm_module_decoder
/// @param[out] o_output ODT termination strength (in ohms)
/// @return FAPI2_RC_SUCCESS if okay
///
- virtual fapi2::ReturnCode dram_rtt_park_ranks2_3(const uint64_t i_dimm_speed, uint8_t& o_output)
+ virtual fapi2::ReturnCode dram_rtt_park_ranks2_3(const uint64_t i_dimm_speed, uint8_t& o_output) const
{
o_output = 0;
return fapi2::FAPI2_RC_SUCCESS;
@@ -470,7 +470,7 @@ class dimm_module_decoder
/// @param[out] o_output spd encoding
/// @return FAPI2_RC_SUCCESS if okay
///
- virtual fapi2::ReturnCode dram_vref_dq_range(uint8_t& o_output)
+ virtual fapi2::ReturnCode dram_vref_dq_range(uint8_t& o_output) const
{
o_output = 0;
return fapi2::FAPI2_RC_SUCCESS;
@@ -481,7 +481,7 @@ class dimm_module_decoder
/// @param[out] o_output spd encoding
/// @return FAPI2_RC_SUCCESS if okay
///
- virtual fapi2::ReturnCode data_buffer_vref_dq_range(uint8_t& o_output)
+ virtual fapi2::ReturnCode data_buffer_vref_dq_range(uint8_t& o_output) const
{
o_output = 0;
return fapi2::FAPI2_RC_SUCCESS;
@@ -492,7 +492,7 @@ class dimm_module_decoder
/// @param[out] o_output spd encoding
/// @return FAPI2_RC_SUCCESS if okay
///
- virtual fapi2::ReturnCode data_buffer_gain_adjustment(uint8_t& o_output)
+ virtual fapi2::ReturnCode data_buffer_gain_adjustment(uint8_t& o_output) const
{
o_output = 0;
return fapi2::FAPI2_RC_SUCCESS;
@@ -503,7 +503,7 @@ class dimm_module_decoder
/// @param[out] o_output spd encoding
/// @return FAPI2_RC_SUCCESS if okay
///
- virtual fapi2::ReturnCode data_buffer_dfe(uint8_t& o_output)
+ virtual fapi2::ReturnCode data_buffer_dfe(uint8_t& o_output) const
{
o_output = 0;
return fapi2::FAPI2_RC_SUCCESS;
diff --git a/src/import/generic/memory/lib/spd/common/spd_decoder_base.H b/src/import/generic/memory/lib/spd/common/spd_decoder_base.H
index ed67c42ac..c61983436 100644
--- a/src/import/generic/memory/lib/spd/common/spd_decoder_base.H
+++ b/src/import/generic/memory/lib/spd/common/spd_decoder_base.H
@@ -111,7 +111,7 @@ class decoder
/// @param[out] o_logical_ranks number of logical ranks
/// @return fapi2::FAPI2_RC_SUCCESS if okay
///
- virtual fapi2::ReturnCode prim_sdram_logical_ranks( uint8_t& o_logical_ranks )
+ virtual fapi2::ReturnCode prim_sdram_logical_ranks( uint8_t& o_logical_ranks ) const
{
o_logical_ranks = 0;
return fapi2::FAPI2_RC_SUCCESS;
@@ -122,7 +122,7 @@ class decoder
/// @param[out] o_logical_ranks number of logical ranks
/// @return fapi2::FAPI2_RC_SUCCESS if okay
///
- virtual fapi2::ReturnCode sec_sdram_logical_ranks( uint8_t& o_logical_ranks )
+ virtual fapi2::ReturnCode sec_sdram_logical_ranks( uint8_t& o_logical_ranks ) const
{
o_logical_ranks = 0;
return fapi2::FAPI2_RC_SUCCESS;
@@ -170,7 +170,7 @@ class decoder
/// @param[out] o_value number of SPD bytes used
/// @return FAPI2_RC_SUCCESS if okay
///
- virtual fapi2::ReturnCode number_of_used_bytes( uint16_t& o_value )
+ virtual fapi2::ReturnCode number_of_used_bytes( uint16_t& o_value ) const
{
o_value = 0;
return fapi2::FAPI2_RC_SUCCESS;
@@ -181,7 +181,7 @@ class decoder
/// @param[out] o_value number of total SPD bytes
/// @return FAPI2_RC_SUCCESS if okay
///
- virtual fapi2::ReturnCode number_of_total_bytes( uint16_t& o_value )
+ virtual fapi2::ReturnCode number_of_total_bytes( uint16_t& o_value ) const
{
o_value = 0;
return fapi2::FAPI2_RC_SUCCESS;
@@ -192,7 +192,7 @@ class decoder
/// @param[out] o_value hybrid media decoding
/// @return FAPI2_RC_SUCCESS if okay
///
- virtual fapi2::ReturnCode hybrid_media( uint8_t& o_value )
+ virtual fapi2::ReturnCode hybrid_media( uint8_t& o_value ) const
{
o_value = 0;
return fapi2::FAPI2_RC_SUCCESS;
@@ -203,7 +203,7 @@ class decoder
/// @param[out] o_value hybrid decoding
/// @return FAPI2_RC_SUCCESS if okay
///
- virtual fapi2::ReturnCode hybrid( uint8_t& o_value )
+ virtual fapi2::ReturnCode hybrid( uint8_t& o_value ) const
{
o_value = 0;
return fapi2::FAPI2_RC_SUCCESS;
@@ -214,7 +214,7 @@ class decoder
/// @param[out] o_value SDRAM density in GBs
/// @return FAPI2_RC_SUCCESS if okay
///
- virtual fapi2::ReturnCode sdram_density( uint8_t& o_value )
+ virtual fapi2::ReturnCode sdram_density( uint8_t& o_value ) const
{
o_value = 0;
return fapi2::FAPI2_RC_SUCCESS;
@@ -225,7 +225,7 @@ class decoder
/// @param[out] o_value Number of SDRAM bank bits
/// @return FAPI2_RC_SUCCESS if okay
///
- virtual fapi2::ReturnCode bank_bits( uint8_t& o_value )
+ virtual fapi2::ReturnCode bank_bits( uint8_t& o_value ) const
{
o_value = 0;
return fapi2::FAPI2_RC_SUCCESS;
@@ -236,7 +236,7 @@ class decoder
/// @param[out] o_value Number of SDRAM bank groups bits
/// @return FAPI2_RC_SUCCESS if okay
///
- virtual fapi2::ReturnCode bank_group_bits( uint8_t& o_value )
+ virtual fapi2::ReturnCode bank_group_bits( uint8_t& o_value ) const
{
o_value = 0;
return fapi2::FAPI2_RC_SUCCESS;
@@ -247,7 +247,7 @@ class decoder
/// @param[out] o_value Number of SDRAM bank bits
/// @return FAPI2_RC_SUCCESS if okay
///
- virtual fapi2::ReturnCode column_address_bits( uint8_t& o_value )
+ virtual fapi2::ReturnCode column_address_bits( uint8_t& o_value ) const
{
o_value = 0;
return fapi2::FAPI2_RC_SUCCESS;
@@ -258,7 +258,7 @@ class decoder
/// @param[out] o_value Number of SDRAM bank bits
/// @return FAPI2_RC_SUCCESS if okay
///
- virtual fapi2::ReturnCode row_address_bits( uint8_t& o_value )
+ virtual fapi2::ReturnCode row_address_bits( uint8_t& o_value ) const
{
o_value = 0;
return fapi2::FAPI2_RC_SUCCESS;
@@ -269,7 +269,7 @@ class decoder
/// @param[out] o_value Number of SDRAM bank bits
/// @return FAPI2_RC_SUCCESS if okay
///
- virtual fapi2::ReturnCode prim_sdram_signal_loading( uint8_t& o_value )
+ virtual fapi2::ReturnCode prim_sdram_signal_loading( uint8_t& o_value ) const
{
o_value = 0;
return fapi2::FAPI2_RC_SUCCESS;
@@ -280,7 +280,7 @@ class decoder
/// @param[out] o_value Number of SDRAM bank bits
/// @return FAPI2_RC_SUCCESS if okay
///
- virtual fapi2::ReturnCode prim_sdram_die_count( uint8_t& o_value )
+ virtual fapi2::ReturnCode prim_sdram_die_count( uint8_t& o_value ) const
{
o_value = 0;
return fapi2::FAPI2_RC_SUCCESS;
@@ -290,7 +290,7 @@ class decoder
/// @brief Decodes Primary SDRAM package type
/// @return FAPI2_RC_SUCCESS if okay
///
- virtual fapi2::ReturnCode prim_sdram_package_type( uint8_t& o_value )
+ virtual fapi2::ReturnCode prim_sdram_package_type( uint8_t& o_value ) const
{
o_value = 0;
return fapi2::FAPI2_RC_SUCCESS;
@@ -300,7 +300,7 @@ class decoder
/// @brief Decode SDRAM Maximum activate count
/// @return FAPI2_RC_SUCCESS if okay
///
- virtual fapi2::ReturnCode maximum_activate_count( uint32_t& o_value )
+ virtual fapi2::ReturnCode maximum_activate_count( uint32_t& o_value ) const
{
o_value = 0;
return fapi2::FAPI2_RC_SUCCESS;
@@ -310,7 +310,7 @@ class decoder
/// @brief Decode SDRAM Maximum activate window (multiplier), tREFI uknown at this point
/// @return FAPI2_RC_SUCCESS if okay
///
- virtual fapi2::ReturnCode maximum_activate_window_multiplier( uint32_t& o_value )
+ virtual fapi2::ReturnCode maximum_activate_window_multiplier( uint32_t& o_value ) const
{
o_value = 0;
return fapi2::FAPI2_RC_SUCCESS;
@@ -320,7 +320,7 @@ class decoder
/// @brief Decode Post package repair (PPR)
/// @return FAPI2_RC_SUCCESS if okay
///
- virtual fapi2::ReturnCode post_package_repair( uint8_t& o_value )
+ virtual fapi2::ReturnCode post_package_repair( uint8_t& o_value ) const
{
o_value = 0;
return fapi2::FAPI2_RC_SUCCESS;
@@ -330,7 +330,7 @@ class decoder
/// @brief Decode Soft post package repair (soft PPR)
/// @return FAPI2_RC_SUCCESS if okay
///
- virtual fapi2::ReturnCode soft_post_package_repair( uint8_t& o_value )
+ virtual fapi2::ReturnCode soft_post_package_repair( uint8_t& o_value ) const
{
o_value = 0;
return fapi2::FAPI2_RC_SUCCESS;
@@ -340,7 +340,7 @@ class decoder
/// @brief Decodes Secondary SDRAM signal loading
/// @return FAPI2_RC_SUCCESS if okay
///
- virtual fapi2::ReturnCode sec_sdram_signal_loading( uint8_t& o_value )
+ virtual fapi2::ReturnCode sec_sdram_signal_loading( uint8_t& o_value ) const
{
o_value = 0;
return fapi2::FAPI2_RC_SUCCESS;
@@ -350,7 +350,7 @@ class decoder
/// @brief Decodes Secondary DRAM Density Ratio
/// @return FAPI2_RC_SUCCESS if okay
///
- virtual fapi2::ReturnCode sec_dram_density_ratio( uint8_t& o_value )
+ virtual fapi2::ReturnCode sec_dram_density_ratio( uint8_t& o_value ) const
{
o_value = 0;
return fapi2::FAPI2_RC_SUCCESS;
@@ -360,7 +360,7 @@ class decoder
/// @brief Decodes Secondary SDRAM die count
/// @return FAPI2_RC_SUCCESS if okay
///
- virtual fapi2::ReturnCode sec_sdram_die_count( uint8_t& o_value )
+ virtual fapi2::ReturnCode sec_sdram_die_count( uint8_t& o_value ) const
{
o_value = 0;
return fapi2::FAPI2_RC_SUCCESS;
@@ -370,7 +370,7 @@ class decoder
/// @brief Decodes Secondary SDRAM package type
/// @return FAPI2_RC_SUCCESS if okay
///
- virtual fapi2::ReturnCode sec_sdram_package_type( uint8_t& o_value )
+ virtual fapi2::ReturnCode sec_sdram_package_type( uint8_t& o_value ) const
{
o_value = 0;
return fapi2::FAPI2_RC_SUCCESS;
@@ -381,7 +381,7 @@ class decoder
/// @param[out] o_value enum representing if 1.2V is operable
/// @return FAPI2_RC_SUCCESS if okay
///
- virtual fapi2::ReturnCode operable_nominal_voltage( uint8_t& o_value )
+ virtual fapi2::ReturnCode operable_nominal_voltage( uint8_t& o_value ) const
{
o_value = 0;
return fapi2::FAPI2_RC_SUCCESS;
@@ -392,7 +392,7 @@ class decoder
/// @param[out] o_value enum representing if 1.2V is endurant
/// @return FAPI2_RC_SUCCESS if okay
///
- virtual fapi2::ReturnCode endurant_nominal_voltage( uint8_t& o_value )
+ virtual fapi2::ReturnCode endurant_nominal_voltage( uint8_t& o_value ) const
{
o_value = 0;
return fapi2::FAPI2_RC_SUCCESS;
@@ -402,7 +402,7 @@ class decoder
/// @param[out] o_value device width in bits
/// @return FAPI2_RC_SUCCESS if okay
///
- virtual fapi2::ReturnCode device_width( uint8_t& o_value )
+ virtual fapi2::ReturnCode device_width( uint8_t& o_value ) const
{
o_value = 0;
return fapi2::FAPI2_RC_SUCCESS;
@@ -413,7 +413,7 @@ class decoder
/// @param[out] o_value number of package ranks per DIMM
/// @return FAPI2_RC_SUCCESS if okay
///
- virtual fapi2::ReturnCode num_package_ranks_per_dimm( uint8_t& o_value )
+ virtual fapi2::ReturnCode num_package_ranks_per_dimm( uint8_t& o_value ) const
{
o_value = 0;
return fapi2::FAPI2_RC_SUCCESS;
@@ -424,7 +424,7 @@ class decoder
/// @param[out] o_value rank mix value from SPD
/// @return FAPI2_RC_SUCCESS if okay
///
- virtual fapi2::ReturnCode rank_mix( uint8_t& o_value )
+ virtual fapi2::ReturnCode rank_mix( uint8_t& o_value ) const
{
o_value = 0;
return fapi2::FAPI2_RC_SUCCESS;
@@ -435,7 +435,7 @@ class decoder
/// @param[out] o_value primary bus width in bits
/// @return FAPI2_RC_SUCCESS if okay
///
- virtual fapi2::ReturnCode prim_bus_width( uint8_t& o_value )
+ virtual fapi2::ReturnCode prim_bus_width( uint8_t& o_value ) const
{
o_value = 0;
return fapi2::FAPI2_RC_SUCCESS;
@@ -446,7 +446,7 @@ class decoder
/// @param[out] o_value bus width extension in bits
/// @return FAPI2_RC_SUCCESS if okay
///
- virtual fapi2::ReturnCode bus_width_extension( uint8_t& o_value )
+ virtual fapi2::ReturnCode bus_width_extension( uint8_t& o_value ) const
{
o_value = 0;
return fapi2::FAPI2_RC_SUCCESS;
@@ -457,7 +457,7 @@ class decoder
/// @param[out] o_value thermal sensor value from SPD
/// @return FAPI2_RC_SUCCESS if okay
///
- virtual fapi2::ReturnCode thermal_sensor( uint8_t& o_value )
+ virtual fapi2::ReturnCode thermal_sensor( uint8_t& o_value ) const
{
o_value = 0;
return fapi2::FAPI2_RC_SUCCESS;
@@ -468,7 +468,7 @@ class decoder
/// @param[out] o_value extended base module type value from SPD
/// @return FAPI2_RC_SUCCESS if okay
///
- virtual fapi2::ReturnCode extended_base_module_type( uint8_t& o_value )
+ virtual fapi2::ReturnCode extended_base_module_type( uint8_t& o_value ) const
{
o_value = 0;
return fapi2::FAPI2_RC_SUCCESS;
@@ -479,7 +479,7 @@ class decoder
/// @param[out] o_value fine_timebase from SPD in picoseconds
/// @return FAPI2_RC_SUCCESS if okay
///
- virtual fapi2::ReturnCode fine_timebase( int64_t& o_value )
+ virtual fapi2::ReturnCode fine_timebase( int64_t& o_value ) const
{
o_value = 0;
return fapi2::FAPI2_RC_SUCCESS;
@@ -490,7 +490,7 @@ class decoder
/// @param[out] o_value fine_timebase from SPD in picoseconds
/// @return FAPI2_RC_SUCCESS if okay
///
- virtual fapi2::ReturnCode medium_timebase( int64_t& o_value )
+ virtual fapi2::ReturnCode medium_timebase( int64_t& o_value ) const
{
o_value = 0;
return fapi2::FAPI2_RC_SUCCESS;
@@ -502,7 +502,7 @@ class decoder
/// @param[out] o_value tCKmin in MTB units
/// @return FAPI2_RC_SUCCESS if okay
///
- virtual fapi2::ReturnCode min_tck( int64_t& o_value )
+ virtual fapi2::ReturnCode min_tck( int64_t& o_value ) const
{
o_value = 0;
return fapi2::FAPI2_RC_SUCCESS;
@@ -513,7 +513,7 @@ class decoder
/// @param[out] o_value tCKmax in MTB units
/// @return FAPI2_RC_SUCCESS if okay
///
- virtual fapi2::ReturnCode max_tck( int64_t& o_value )
+ virtual fapi2::ReturnCode max_tck( int64_t& o_value ) const
{
o_value = 0;
return fapi2::FAPI2_RC_SUCCESS;
@@ -524,7 +524,7 @@ class decoder
/// @param[out] o_value bitmap of supported CAS latencies
/// @return FAPI2_RC_SUCCESS if okay
///
- virtual fapi2::ReturnCode supported_cas_latencies( uint64_t& o_value )
+ virtual fapi2::ReturnCode supported_cas_latencies( uint64_t& o_value ) const
{
o_value = 0;
return fapi2::FAPI2_RC_SUCCESS;
@@ -535,7 +535,7 @@ class decoder
/// @param[out] o_value tAAmin in MTB units
/// @return FAPI2_RC_SUCCESS if okay
///
- virtual fapi2::ReturnCode min_taa( int64_t& o_value )
+ virtual fapi2::ReturnCode min_taa( int64_t& o_value ) const
{
o_value = 0;
return fapi2::FAPI2_RC_SUCCESS;
@@ -546,7 +546,7 @@ class decoder
/// @param[out] o_value tRCDmin in MTB units
/// @return FAPI2_RC_SUCCESS if okay
///
- virtual fapi2::ReturnCode min_trcd( int64_t& o_value )
+ virtual fapi2::ReturnCode min_trcd( int64_t& o_value ) const
{
o_value = 0;
return fapi2::FAPI2_RC_SUCCESS;
@@ -557,7 +557,7 @@ class decoder
/// @param[out] o_value tRPmin in MTB units
/// @return FAPI2_RC_SUCCESS if okay
///
- virtual fapi2::ReturnCode min_trp( int64_t& o_value )
+ virtual fapi2::ReturnCode min_trp( int64_t& o_value ) const
{
o_value = 0;
return fapi2::FAPI2_RC_SUCCESS;
@@ -568,7 +568,7 @@ class decoder
/// @param[out] o_value tRASmin in MTB units
/// @return FAPI2_RC_SUCCESS if okay
///
- virtual fapi2::ReturnCode min_tras( int64_t& o_value )
+ virtual fapi2::ReturnCode min_tras( int64_t& o_value ) const
{
o_value = 0;
return fapi2::FAPI2_RC_SUCCESS;
@@ -579,7 +579,7 @@ class decoder
/// @param[out] o_value tRCmin in MTB units
/// @return FAPI2_RC_SUCCESS if okay
///
- virtual fapi2::ReturnCode min_trc( int64_t& o_value )
+ virtual fapi2::ReturnCode min_trc( int64_t& o_value ) const
{
o_value = 0;
return fapi2::FAPI2_RC_SUCCESS;
@@ -590,7 +590,7 @@ class decoder
/// @param[out] o_value tRFC1min in MTB units
/// @return FAPI2_RC_SUCCESS if okay
///
- virtual fapi2::ReturnCode min_trfc1( int64_t& o_value )
+ virtual fapi2::ReturnCode min_trfc1( int64_t& o_value ) const
{
o_value = 0;
return fapi2::FAPI2_RC_SUCCESS;
@@ -601,7 +601,7 @@ class decoder
/// @param[out] o_value tRFC2min in MTB units
/// @return FAPI2_RC_SUCCESS if okay
///
- virtual fapi2::ReturnCode min_trfc2( int64_t& o_value )
+ virtual fapi2::ReturnCode min_trfc2( int64_t& o_value ) const
{
o_value = 0;
return fapi2::FAPI2_RC_SUCCESS;
@@ -612,7 +612,7 @@ class decoder
/// @param[out] o_value tRFC4min in MTB units
/// @return FAPI2_RC_SUCCESS if okay
///
- virtual fapi2::ReturnCode min_trfc4( int64_t& o_value )
+ virtual fapi2::ReturnCode min_trfc4( int64_t& o_value ) const
{
o_value = 0;
return fapi2::FAPI2_RC_SUCCESS;
@@ -623,7 +623,7 @@ class decoder
/// @param[out] o_value tFAWmin in MTB units
/// @return FAPI2_RC_SUCCESS if okay
///
- virtual fapi2::ReturnCode min_tfaw( int64_t& o_value )
+ virtual fapi2::ReturnCode min_tfaw( int64_t& o_value ) const
{
o_value = 0;
return fapi2::FAPI2_RC_SUCCESS;
@@ -634,7 +634,7 @@ class decoder
/// @param[out] o_value tRRD_Smin MTB units
/// @return FAPI2_RC_SUCCESS if okay
///
- virtual fapi2::ReturnCode min_trrd_s( int64_t& o_value )
+ virtual fapi2::ReturnCode min_trrd_s( int64_t& o_value ) const
{
o_value = 0;
return fapi2::FAPI2_RC_SUCCESS;
@@ -645,7 +645,7 @@ class decoder
/// @param[out] o_value tRRD_Lmin MTB units
/// @return FAPI2_RC_SUCCESS if okay
///
- virtual fapi2::ReturnCode min_trrd_l( int64_t& o_value )
+ virtual fapi2::ReturnCode min_trrd_l( int64_t& o_value ) const
{
o_value = 0;
return fapi2::FAPI2_RC_SUCCESS;
@@ -656,7 +656,7 @@ class decoder
/// @param[out] o_value tCCD_Lmin MTB units
/// @return FAPI2_RC_SUCCESS if okay
///
- virtual fapi2::ReturnCode min_tccd_l( int64_t& o_value )
+ virtual fapi2::ReturnCode min_tccd_l( int64_t& o_value ) const
{
o_value = 0;
return fapi2::FAPI2_RC_SUCCESS;
@@ -667,7 +667,7 @@ class decoder
/// @param[out] o_value tWRmin in MTB units
/// @return FAPI2_RC_SUCCESS if okay
///
- virtual fapi2::ReturnCode min_twr( int64_t& o_value )
+ virtual fapi2::ReturnCode min_twr( int64_t& o_value ) const
{
o_value = 0;
return fapi2::FAPI2_RC_SUCCESS;
@@ -678,7 +678,7 @@ class decoder
/// @param[out] o_value tWRT_Smin in MTB units
/// @return FAPI2_RC_SUCCESS if okay
///
- virtual fapi2::ReturnCode min_twtr_s( int64_t& o_value )
+ virtual fapi2::ReturnCode min_twtr_s( int64_t& o_value ) const
{
o_value = 0;
return fapi2::FAPI2_RC_SUCCESS;
@@ -689,7 +689,7 @@ class decoder
/// @param[out] o_value tWRT_Lmin in MTB units
/// @return FAPI2_RC_SUCCESS if okay
///
- virtual fapi2::ReturnCode min_twtr_l( int64_t& o_value )
+ virtual fapi2::ReturnCode min_twtr_l( int64_t& o_value ) const
{
o_value = 0;
return fapi2::FAPI2_RC_SUCCESS;
@@ -700,7 +700,7 @@ class decoder
/// @param[out] o_value tCCD_Lmin offset in FTB units
/// @return FAPI2_RC_SUCCESS if okay
///
- virtual fapi2::ReturnCode fine_offset_min_tccd_l( int64_t& o_value )
+ virtual fapi2::ReturnCode fine_offset_min_tccd_l( int64_t& o_value ) const
{
o_value = 0;
return fapi2::FAPI2_RC_SUCCESS;
@@ -711,7 +711,7 @@ class decoder
/// @param[out] o_value tRRD_Lmin offset in FTB units
/// @return FAPI2_RC_SUCCESS if okay
///
- virtual fapi2::ReturnCode fine_offset_min_trrd_l( int64_t& o_value )
+ virtual fapi2::ReturnCode fine_offset_min_trrd_l( int64_t& o_value ) const
{
o_value = 0;
return fapi2::FAPI2_RC_SUCCESS;
@@ -722,7 +722,7 @@ class decoder
/// @param[out] o_value tRRD_Smin offset in FTB units
/// @return FAPI2_RC_SUCCESS if okay
///
- virtual fapi2::ReturnCode fine_offset_min_trrd_s( int64_t& o_value )
+ virtual fapi2::ReturnCode fine_offset_min_trrd_s( int64_t& o_value ) const
{
o_value = 0;
return fapi2::FAPI2_RC_SUCCESS;
@@ -733,7 +733,7 @@ class decoder
/// @param[out] o_value tRCmin offset in FTB units
/// @return FAPI2_RC_SUCCESS if okay
///
- virtual fapi2::ReturnCode fine_offset_min_trc( int64_t& o_value )
+ virtual fapi2::ReturnCode fine_offset_min_trc( int64_t& o_value ) const
{
o_value = 0;
return fapi2::FAPI2_RC_SUCCESS;
@@ -744,7 +744,7 @@ class decoder
/// @param[out] o_value tRPmin offset in FTB units
/// @return FAPI2_RC_SUCCESS if okay
///
- virtual fapi2::ReturnCode fine_offset_min_trp( int64_t& o_value )
+ virtual fapi2::ReturnCode fine_offset_min_trp( int64_t& o_value ) const
{
o_value = 0;
return fapi2::FAPI2_RC_SUCCESS;
@@ -755,7 +755,7 @@ class decoder
/// @param[out] o_value tRCDmin offset in FTB units
/// @return FAPI2_RC_SUCCESS if okay
///
- virtual fapi2::ReturnCode fine_offset_min_trcd( int64_t& o_value )
+ virtual fapi2::ReturnCode fine_offset_min_trcd( int64_t& o_value ) const
{
o_value = 0;
return fapi2::FAPI2_RC_SUCCESS;
@@ -766,7 +766,7 @@ class decoder
/// @param[out] o_value tAAmin offset in FTB units
/// @return FAPI2_RC_SUCCESS if okay
///
- virtual fapi2::ReturnCode fine_offset_min_taa( int64_t& o_value )
+ virtual fapi2::ReturnCode fine_offset_min_taa( int64_t& o_value ) const
{
o_value = 0;
return fapi2::FAPI2_RC_SUCCESS;
@@ -777,7 +777,7 @@ class decoder
/// @param[out] o_value tCKmax offset in FTB units
/// @return FAPI2_RC_SUCCESS if okay
///
- virtual fapi2::ReturnCode fine_offset_max_tck( int64_t& o_value )
+ virtual fapi2::ReturnCode fine_offset_max_tck( int64_t& o_value ) const
{
o_value = 0;
return fapi2::FAPI2_RC_SUCCESS;
@@ -788,7 +788,7 @@ class decoder
/// @param[out] o_value tCKmin offset in FTB units
/// @return FAPI2_RC_SUCCESS if okay
///
- virtual fapi2::ReturnCode fine_offset_min_tck( int64_t& o_value )
+ virtual fapi2::ReturnCode fine_offset_min_tck( int64_t& o_value ) const
{
o_value = 0;
return fapi2::FAPI2_RC_SUCCESS;
@@ -799,7 +799,7 @@ class decoder
/// @param[out] o_value crc value from SPD
/// @return FAPI2_RC_SUCCESS if okay
///
- virtual fapi2::ReturnCode cyclical_redundancy_code( uint16_t& o_value )
+ virtual fapi2::ReturnCode cyclical_redundancy_code( uint16_t& o_value ) const
{
o_value = 0;
return fapi2::FAPI2_RC_SUCCESS;
@@ -810,7 +810,7 @@ class decoder
/// @param[out] o_output module manufacturing id code
/// @return FAPI2_RC_SUCCESS if okay
///
- virtual fapi2::ReturnCode module_manufacturer_id_code( uint16_t& o_value )
+ virtual fapi2::ReturnCode module_manufacturer_id_code( uint16_t& o_value ) const
{
o_value = 0;
return fapi2::FAPI2_RC_SUCCESS;
@@ -821,7 +821,7 @@ class decoder
/// @param[out] o_value uint8_t identifier for manufacturing location of memory module
/// @return FAPI2_RC_SUCCESS if okay
///
- virtual fapi2::ReturnCode module_manufacturing_location( uint8_t& o_value )
+ virtual fapi2::ReturnCode module_manufacturing_location( uint8_t& o_value ) const
{
o_value = 0;
return fapi2::FAPI2_RC_SUCCESS;
@@ -831,7 +831,7 @@ class decoder
/// @brief Decodesmodule manufacturing date
/// @param[out] o_value the 2 byte date of manufacturing in BCD format
/// @return FAPI2_RC_SUCCESS if okay
- virtual fapi2::ReturnCode module_manufacturing_date( uint16_t& o_value )
+ virtual fapi2::ReturnCode module_manufacturing_date( uint16_t& o_value ) const
{
o_value = 0;
return fapi2::FAPI2_RC_SUCCESS;
@@ -842,7 +842,7 @@ class decoder
/// @param[out] o_value module's serial number
/// @return FAPI2_RC_SUCCESS if okay
///
- virtual fapi2::ReturnCode module_serial_number( uint32_t& o_value )
+ virtual fapi2::ReturnCode module_serial_number( uint32_t& o_value ) const
{
o_value = 0;
return fapi2::FAPI2_RC_SUCCESS;
@@ -853,7 +853,7 @@ class decoder
/// @param[out] o_value uint8_t identifier for revision code
/// @return FAPI2_RC_SUCCESS if okay
///
- virtual fapi2::ReturnCode module_revision_code( uint8_t& o_value )
+ virtual fapi2::ReturnCode module_revision_code( uint8_t& o_value ) const
{
o_value = 0;
return fapi2::FAPI2_RC_SUCCESS;
@@ -864,7 +864,7 @@ class decoder
/// @param[out] o_value dram manufacturing id code
/// @return FAPI2_RC_SUCCESS if okay
///
- virtual fapi2::ReturnCode dram_manufacturer_id_code( uint16_t& o_value )
+ virtual fapi2::ReturnCode dram_manufacturer_id_code( uint16_t& o_value ) const
{
o_value = 0;
return fapi2::FAPI2_RC_SUCCESS;
@@ -875,7 +875,7 @@ class decoder
/// @param[out] o_value uint8_t DRAM Stepping val
/// @return FAPI2_RC_SUCCESS if okay
///
- virtual fapi2::ReturnCode dram_stepping( uint8_t& o_value )
+ virtual fapi2::ReturnCode dram_stepping( uint8_t& o_value ) const
{
o_value = 0;
return fapi2::FAPI2_RC_SUCCESS;
@@ -886,7 +886,7 @@ class decoder
/// @param[out] o_logical_ranks number of logical ranks
/// @return FAPI2_RC_SUCCESS if okay
///
- virtual fapi2::ReturnCode logical_ranks_per_dimm( uint8_t& o_logical_rank_per_dimm )
+ virtual fapi2::ReturnCode logical_ranks_per_dimm( uint8_t& o_logical_rank_per_dimm ) const
{
o_logical_rank_per_dimm = 0;
return fapi2::FAPI2_RC_SUCCESS;
diff --git a/src/import/generic/memory/lib/spd/lrdimm/ddr4/lrdimm_decoder_ddr4.H b/src/import/generic/memory/lib/spd/lrdimm/ddr4/lrdimm_decoder_ddr4.H
index 5f85c7105..ffa68d1fe 100644
--- a/src/import/generic/memory/lib/spd/lrdimm/ddr4/lrdimm_decoder_ddr4.H
+++ b/src/import/generic/memory/lib/spd/lrdimm/ddr4/lrdimm_decoder_ddr4.H
@@ -137,7 +137,7 @@ class decoder_v1_0 : public dimm_module_decoder
/// @note DDR4 SPD Document Release 2
/// @note Page 4.1.2.12.2 - 55
///
- virtual fapi2::ReturnCode max_module_nominal_height(uint8_t& o_output) override;
+ virtual fapi2::ReturnCode max_module_nominal_height(uint8_t& o_output) const override;
///
/// @brief Decodes raw card extension
@@ -148,7 +148,7 @@ class decoder_v1_0 : public dimm_module_decoder
/// @note DDR4 SPD Document Release 2
/// @note Page 4.1.2.12.2 - 55
///
- virtual fapi2::ReturnCode raw_card_extension(uint8_t& o_output) override;
+ virtual fapi2::ReturnCode raw_card_extension(uint8_t& o_output) const override;
///
/// @brief Decodes front module maximum thickness max
@@ -159,7 +159,7 @@ class decoder_v1_0 : public dimm_module_decoder
/// @note DDR4 SPD Document Release 2
/// @note Page 4.1.2.12.2 - 55
///
- virtual fapi2::ReturnCode front_module_max_thickness(uint8_t& o_output) override;
+ virtual fapi2::ReturnCode front_module_max_thickness(uint8_t& o_output) const override;
///
/// @brief Decodes back module maximum thickness max
@@ -170,7 +170,7 @@ class decoder_v1_0 : public dimm_module_decoder
/// @note DDR4 SPD Document Release 2
/// @note Page 4.1.2.12.2 - 55
///
- virtual fapi2::ReturnCode back_module_max_thickness(uint8_t& o_output) override;
+ virtual fapi2::ReturnCode back_module_max_thickness(uint8_t& o_output) const override;
///
/// @brief Decodes number of registers used on LRDIMM
@@ -181,7 +181,7 @@ class decoder_v1_0 : public dimm_module_decoder
/// @note DDR4 SPD Document Release 2
/// @note Page 4.1.2.12.2 - 57
///
- virtual fapi2::ReturnCode num_registers_used(uint8_t& o_output) override;
+ virtual fapi2::ReturnCode num_registers_used(uint8_t& o_output) const override;
///
/// @brief Decodes number of rows of DRAMs on LRDIMM
@@ -192,7 +192,7 @@ class decoder_v1_0 : public dimm_module_decoder
/// @note DDR4 SPD Document Release 2
/// @note Page 4.1.2.12.2 - 57
///
- virtual fapi2::ReturnCode num_rows_of_drams(uint8_t& o_output) override;
+ virtual fapi2::ReturnCode num_rows_of_drams(uint8_t& o_output) const override;
///
/// @brief Decodes heat spreader solution
@@ -203,7 +203,7 @@ class decoder_v1_0 : public dimm_module_decoder
/// @note DDR4 SPD Document Release 2
/// @note Page 4.1.2.12.2 - 58
///
- virtual fapi2::ReturnCode heat_spreader_solution(uint8_t& o_output) override;
+ virtual fapi2::ReturnCode heat_spreader_solution(uint8_t& o_output) const override;
///
/// @brief Decodes number of continuation codes
@@ -214,7 +214,7 @@ class decoder_v1_0 : public dimm_module_decoder
/// @note DDR4 SPD Document Release 2
/// @note Page 4.1.2.12.2 - 58
///
- virtual fapi2::ReturnCode num_continuation_codes(uint8_t& o_output) override;
+ virtual fapi2::ReturnCode num_continuation_codes(uint8_t& o_output) const override;
///
/// @brief Decodes register manufacturer ID code
@@ -225,7 +225,7 @@ class decoder_v1_0 : public dimm_module_decoder
/// @note DDR4 SPD Document Release 2
/// @note Page 4.1.2.12.2 - 58
///
- virtual fapi2::ReturnCode reg_manufacturer_id_code(uint8_t& o_output) override;
+ virtual fapi2::ReturnCode reg_manufacturer_id_code(uint8_t& o_output) const override;
///
/// @brief Decodes register revision number
@@ -236,7 +236,7 @@ class decoder_v1_0 : public dimm_module_decoder
/// @note DDR4 SPD Document Release 2
/// @note Page 4.1.2.12.2 - 58
///
- virtual fapi2::ReturnCode register_rev_num(uint8_t& o_output) override;
+ virtual fapi2::ReturnCode register_rev_num(uint8_t& o_output) const override;
///
/// @brief Decodes address mapping from register to dram
@@ -247,7 +247,7 @@ class decoder_v1_0 : public dimm_module_decoder
/// @note DDR4 SPD Document Release 2
/// @note Page 4.1.2.12.2 - 59
///
- virtual fapi2::ReturnCode register_to_dram_addr_mapping(uint8_t& o_output) override;
+ virtual fapi2::ReturnCode register_to_dram_addr_mapping(uint8_t& o_output) const override;
///
/// @brief Decodes register output drive strength for CKE signal
@@ -257,7 +257,7 @@ class decoder_v1_0 : public dimm_module_decoder
/// @note DDR4 SPD Document Release 2
/// @note Page 4.1.2.12.2 - 60
///
- virtual fapi2::ReturnCode cke_signal_output_driver(uint8_t& o_output) override;
+ virtual fapi2::ReturnCode cke_signal_output_driver(uint8_t& o_output) const override;
///
/// @brief Decodes register output drive strength for ODT signal
@@ -268,7 +268,7 @@ class decoder_v1_0 : public dimm_module_decoder
/// @note DDR4 SPD Document Release 2
/// @note Page 4.1.2.12.2 - 60
///
- virtual fapi2::ReturnCode odt_signal_output_driver(uint8_t& o_output) override;
+ virtual fapi2::ReturnCode odt_signal_output_driver(uint8_t& o_output) const override;
///
/// @brief Decodes register output drive strength for command/address (CA) signal
@@ -279,7 +279,7 @@ class decoder_v1_0 : public dimm_module_decoder
/// @note DDR4 SPD Document Release 2
/// @note Page 4.1.2.12.2 - 60
///
- virtual fapi2::ReturnCode ca_signal_output_driver(uint8_t& o_output) override;
+ virtual fapi2::ReturnCode ca_signal_output_driver(uint8_t& o_output) const override;
///
/// @brief Decodes register output drive strength for control signal (CS) signal
@@ -290,7 +290,7 @@ class decoder_v1_0 : public dimm_module_decoder
/// @note DDR4 SPD Document Release 2
/// @note Page 4.1.2.12.2 - 60
///
- virtual fapi2::ReturnCode cs_signal_output_driver(uint8_t& o_output) override;
+ virtual fapi2::ReturnCode cs_signal_output_driver(uint8_t& o_output) const override;
///
/// @brief Decodes register output drive strength for clock (B side)
@@ -301,7 +301,7 @@ class decoder_v1_0 : public dimm_module_decoder
/// @note DDR4 SPD Document Release 2
/// @note Page 4.1.2.12.2 - 60
///
- virtual fapi2::ReturnCode b_side_clk_output_driver(uint8_t& o_output) override;
+ virtual fapi2::ReturnCode b_side_clk_output_driver(uint8_t& o_output) const override;
///
/// @brief Decodes register output drive strength for clock (A side)
@@ -312,7 +312,7 @@ class decoder_v1_0 : public dimm_module_decoder
/// @note DDR4 SPD Document Release 2
/// @note Page 4.1.2.12.2 - 60
///
- virtual fapi2::ReturnCode a_side_clk_output_driver(uint8_t& o_output) override;
+ virtual fapi2::ReturnCode a_side_clk_output_driver(uint8_t& o_output) const override;
///
/// @brief Decodes data buffer revision number
@@ -323,7 +323,7 @@ class decoder_v1_0 : public dimm_module_decoder
/// @note DDR4 SPD Document Release 2
/// @note Page 4.1.2.12.2 - 60
///
- virtual fapi2::ReturnCode data_buffer_rev(uint8_t& o_output) override;
+ virtual fapi2::ReturnCode data_buffer_rev(uint8_t& o_output) const override;
///
/// @brief Decodes DRAM VrefDQ for Package Rank 0
@@ -334,7 +334,7 @@ class decoder_v1_0 : public dimm_module_decoder
/// @note DDR4 SPD Document Release 2
/// @note Page 4.1.2.12.2 - 61
///
- virtual fapi2::ReturnCode dram_vref_dq_rank0(uint8_t& o_output) override;
+ virtual fapi2::ReturnCode dram_vref_dq_rank0(uint8_t& o_output) const override;
///
/// @brief Decodes DRAM VrefDQ for Package Rank 1
@@ -345,7 +345,7 @@ class decoder_v1_0 : public dimm_module_decoder
/// @note DDR4 SPD Document Release 2
/// @note Page 4.1.2.12.2 - 61
///
- virtual fapi2::ReturnCode dram_vref_dq_rank1(uint8_t& o_output) override;
+ virtual fapi2::ReturnCode dram_vref_dq_rank1(uint8_t& o_output) const override;
///
/// @brief Decodes DRAM VrefDQ for Package Rank 2
@@ -356,7 +356,7 @@ class decoder_v1_0 : public dimm_module_decoder
/// @note DDR4 SPD Document Release 2
/// @note Page 4.1.2.12.2 - 61
///
- virtual fapi2::ReturnCode dram_vref_dq_rank2(uint8_t& o_output) override;
+ virtual fapi2::ReturnCode dram_vref_dq_rank2(uint8_t& o_output) const override;
///
/// @brief Decodes DRAM VrefDQ for Package Rank 3
@@ -367,7 +367,7 @@ class decoder_v1_0 : public dimm_module_decoder
/// @note DDR4 SPD Document Release 2
/// @note Page 4.1.2.12.2 - 61
///
- virtual fapi2::ReturnCode dram_vref_dq_rank3(uint8_t& o_output) override;
+ virtual fapi2::ReturnCode dram_vref_dq_rank3(uint8_t& o_output) const override;
///
/// @brief Decodes data buffer VrefDQ for DRAM interface
@@ -378,7 +378,7 @@ class decoder_v1_0 : public dimm_module_decoder
/// @note DDR4 SPD Document Release 2
/// @note Page 4.1.2.12.2 - 61
///
- virtual fapi2::ReturnCode data_buffer_vref_dq(uint8_t& o_output) override;
+ virtual fapi2::ReturnCode data_buffer_vref_dq(uint8_t& o_output) const override;
///
/// @brief Decodes DRAM interface MDQ Drive Strenth
@@ -392,7 +392,7 @@ class decoder_v1_0 : public dimm_module_decoder
/// @note Page 4.1.2.12.2 - 62
///
virtual fapi2::ReturnCode data_buffer_mdq_drive_strength(const uint64_t i_dimm_speed,
- uint8_t& o_output) override;
+ uint8_t& o_output) const override;
///
/// @brief Decodes DRAM interface MDQ read termination strength
@@ -405,7 +405,7 @@ class decoder_v1_0 : public dimm_module_decoder
/// @note DDR4 SPD Document Release 2
/// @note Page 4.1.2.12.2 - 62
///
- virtual fapi2::ReturnCode data_buffer_mdq_rtt(const uint64_t i_dimm_speed, uint8_t& o_output) override;
+ virtual fapi2::ReturnCode data_buffer_mdq_rtt(const uint64_t i_dimm_speed, uint8_t& o_output) const override;
///
/// @brief Decodes DRAM drive strenth
@@ -418,7 +418,7 @@ class decoder_v1_0 : public dimm_module_decoder
/// @note DDR4 SPD Document Release 2
/// @note Page 4.1.2.12.2 - 63
///
- virtual fapi2::ReturnCode dram_drive_strength(const uint64_t i_dimm_speed, uint8_t& o_output) override;
+ virtual fapi2::ReturnCode dram_drive_strength(const uint64_t i_dimm_speed, uint8_t& o_output) const override;
///
/// @brief Decodes DRAM ODT for RTT_NOM
@@ -431,7 +431,7 @@ class decoder_v1_0 : public dimm_module_decoder
/// @note DDR4 SPD Document Release 2
/// @note Page 4.1.2.12.2 - (64 - 65)
///
- virtual fapi2::ReturnCode dram_rtt_nom(const uint64_t i_dimm_speed, uint8_t& o_output) override;
+ virtual fapi2::ReturnCode dram_rtt_nom(const uint64_t i_dimm_speed, uint8_t& o_output) const override;
///
/// @brief Decodes DRAM ODT for RTT_WR
@@ -444,7 +444,7 @@ class decoder_v1_0 : public dimm_module_decoder
/// @note DDR4 SPD Document Release 2
/// @note Page 4.1.2.12.2 - (64 - 65)
///
- virtual fapi2::ReturnCode dram_rtt_wr(const uint64_t i_dimm_speed, uint8_t& o_output) override;
+ virtual fapi2::ReturnCode dram_rtt_wr(const uint64_t i_dimm_speed, uint8_t& o_output) const override;
///
/// @brief Decodes DRAM ODT for RTT_PARK, package ranks 0 & 1
@@ -457,7 +457,7 @@ class decoder_v1_0 : public dimm_module_decoder
/// @note DDR4 SPD Document Release 2
/// @note Page 4.1.2.12.2 - 65
///
- virtual fapi2::ReturnCode dram_rtt_park_ranks0_1(const uint64_t i_dimm_speed, uint8_t& o_output) override;
+ virtual fapi2::ReturnCode dram_rtt_park_ranks0_1(const uint64_t i_dimm_speed, uint8_t& o_output) const override;
///
/// @brief Decodes DRAM ODT for RTT_PARK, package ranks 2 & 3
@@ -470,7 +470,7 @@ class decoder_v1_0 : public dimm_module_decoder
/// @note DDR4 SPD Document Release 2
/// @note Page 4.1.2.12.2 - 65
///
- virtual fapi2::ReturnCode dram_rtt_park_ranks2_3(const uint64_t i_dimm_speed, uint8_t& o_output) override;
+ virtual fapi2::ReturnCode dram_rtt_park_ranks2_3(const uint64_t i_dimm_speed, uint8_t& o_output) const override;
};//decoder
@@ -508,7 +508,7 @@ class decoder_v1_1 : public decoder_v1_0
/// @note DDR4 SPD Document Release 3
/// @note Page 4.1.2.12.3 - 63
///
- virtual fapi2::ReturnCode register_and_buffer_type(uint8_t& o_output) override;
+ virtual fapi2::ReturnCode register_and_buffer_type(uint8_t& o_output) const override;
///
/// @brief Decodes register output drive strength for CKE signal
@@ -519,7 +519,7 @@ class decoder_v1_1 : public decoder_v1_0
/// @note DDR4 SPD Document Release 3
/// @note Page 4.1.2.12.3 - 65
///
- virtual fapi2::ReturnCode cke_signal_output_driver(uint8_t& o_output) override;
+ virtual fapi2::ReturnCode cke_signal_output_driver(uint8_t& o_output) const override;
///
/// @brief Decodes register output drive strength for ODT signal
@@ -530,7 +530,7 @@ class decoder_v1_1 : public decoder_v1_0
/// @note DDR4 SPD Document Release 3
/// @note Page 4.1.2.12.3 - 65
///
- virtual fapi2::ReturnCode odt_signal_output_driver(uint8_t& o_output) override;
+ virtual fapi2::ReturnCode odt_signal_output_driver(uint8_t& o_output) const override;
///
/// @brief Decodes register output drive strength for control signal (CS) signal
@@ -541,7 +541,7 @@ class decoder_v1_1 : public decoder_v1_0
/// @note DDR4 SPD Document Release 3
/// @note Page 4.1.2.12.3 - 65
///
- virtual fapi2::ReturnCode cs_signal_output_driver(uint8_t& o_output) override;
+ virtual fapi2::ReturnCode cs_signal_output_driver(uint8_t& o_output) const override;
///
/// @brief Decodes register output drive strength for clock (B side)
@@ -552,7 +552,7 @@ class decoder_v1_1 : public decoder_v1_0
/// @note DDR4 SPD Document Release 3
/// @note Page 4.1.2.12.3 - 66
///
- virtual fapi2::ReturnCode b_side_clk_output_driver(uint8_t& o_output) override;
+ virtual fapi2::ReturnCode b_side_clk_output_driver(uint8_t& o_output) const override;
///
/// @brief Decodes register output drive strength for clock (A side)
@@ -563,7 +563,7 @@ class decoder_v1_1 : public decoder_v1_0
/// @note DDR4 SPD Document Release 3
/// @note Page 4.1.2.12.3 - 66
///
- virtual fapi2::ReturnCode a_side_clk_output_driver(uint8_t& o_output) override;
+ virtual fapi2::ReturnCode a_side_clk_output_driver(uint8_t& o_output) const override;
};
///
@@ -600,7 +600,7 @@ class decoder_v1_2 : public decoder_v1_1
/// @note DDR4 SPD Document Release 3
/// @note Page 4.1.2.12.3 - 66
///
- virtual fapi2::ReturnCode bcom_bcke_bodt_drive_strength(uint8_t& o_output) override;
+ virtual fapi2::ReturnCode bcom_bcke_bodt_drive_strength(uint8_t& o_output) const override;
///
/// @brief Decodes register output drive strength for data buffer control (BCK)
@@ -611,7 +611,7 @@ class decoder_v1_2 : public decoder_v1_1
/// @note DDR4 SPD Document Release 3
/// @note Page 4.1.2.12.3 - 66
///
- virtual fapi2::ReturnCode bck_output_drive_strength(uint8_t& o_output) override;
+ virtual fapi2::ReturnCode bck_output_drive_strength(uint8_t& o_output) const override;
///
/// @brief Decodes RCD output slew rate control
@@ -622,7 +622,7 @@ class decoder_v1_2 : public decoder_v1_1
/// @note DDR4 SPD Document Release 4
/// @note Page 4.1.2.L-4 - 70
///
- virtual fapi2::ReturnCode slew_rate_control(uint8_t& o_output) override;
+ virtual fapi2::ReturnCode slew_rate_control(uint8_t& o_output) const override;
///
/// @brief Decodes VrefDQ range for DRAM interface range
@@ -633,7 +633,7 @@ class decoder_v1_2 : public decoder_v1_1
/// @note DDR4 SPD Document Release 4
/// @note Page 4.1.2.L-4 - 76
///
- virtual fapi2::ReturnCode dram_vref_dq_range(uint8_t& o_output) override;
+ virtual fapi2::ReturnCode dram_vref_dq_range(uint8_t& o_output) const override;
///
/// @brief Decodes data buffer VrefDQ range for DRAM interface range
@@ -644,7 +644,7 @@ class decoder_v1_2 : public decoder_v1_1
/// @note DDR4 SPD Document Release 4
/// @note Page 4.1.2.L-4 - 76
///
- virtual fapi2::ReturnCode data_buffer_vref_dq_range(uint8_t& o_output) override;
+ virtual fapi2::ReturnCode data_buffer_vref_dq_range(uint8_t& o_output) const override;
///
/// @brief Decodes data buffer gain adjustment
@@ -655,7 +655,7 @@ class decoder_v1_2 : public decoder_v1_1
/// @note DDR4 SPD Document Release 4
/// @note Page 4.1.2.L-4 - 77
///
- virtual fapi2::ReturnCode data_buffer_gain_adjustment(uint8_t& o_output) override;
+ virtual fapi2::ReturnCode data_buffer_gain_adjustment(uint8_t& o_output) const override;
///
/// @brief Decodes data buffer Decision Feedback Equalization (DFE)
@@ -666,7 +666,7 @@ class decoder_v1_2 : public decoder_v1_1
/// @note DDR4 SPD Document Release 4
/// @note Page 4.1.2.L-4 - 77
///
- virtual fapi2::ReturnCode data_buffer_dfe(uint8_t& o_output) override;
+ virtual fapi2::ReturnCode data_buffer_dfe(uint8_t& o_output) const override;
};
}// lrdimm
diff --git a/src/import/generic/memory/lib/spd/lrdimm/ddr4/lrdimm_decoder_ddr4_v1_0.C b/src/import/generic/memory/lib/spd/lrdimm/ddr4/lrdimm_decoder_ddr4_v1_0.C
index 3e3601a93..37c161ae5 100644
--- a/src/import/generic/memory/lib/spd/lrdimm/ddr4/lrdimm_decoder_ddr4_v1_0.C
+++ b/src/import/generic/memory/lib/spd/lrdimm/ddr4/lrdimm_decoder_ddr4_v1_0.C
@@ -211,7 +211,7 @@ static fapi2::ReturnCode rtt_park_byte_finder(const uint64_t i_dimm_speed, size_
/// @note DDR4 SPD Document Release 2
/// @note Page 4.1.2.12.2 - 55
///
-fapi2::ReturnCode decoder_v1_0::max_module_nominal_height(uint8_t& o_output)
+fapi2::ReturnCode decoder_v1_0::max_module_nominal_height(uint8_t& o_output) const
{
uint8_t l_field_bits = extract_spd_field< MODULE_NOMINAL_HEIGHT >(iv_target, iv_spd_data);
FAPI_INF("Field Bits value: %d", l_field_bits);
@@ -245,7 +245,7 @@ fapi_try_exit:
/// @note DDR4 SPD Document Release 2
/// @note Page 4.1.2.12.2 - 55
///
-fapi2::ReturnCode decoder_v1_0::raw_card_extension(uint8_t& o_output)
+fapi2::ReturnCode decoder_v1_0::raw_card_extension(uint8_t& o_output) const
{
uint8_t l_field_bits = extract_spd_field< RAW_CARD_EXTENSION >(iv_target, iv_spd_data);
FAPI_INF("Field Bits value: %d", l_field_bits);
@@ -279,7 +279,7 @@ fapi_try_exit:
/// @note DDR4 SPD Document Release 2
/// @note Page 4.1.2.12.2 - 55
///
-fapi2::ReturnCode decoder_v1_0::front_module_max_thickness(uint8_t& o_output)
+fapi2::ReturnCode decoder_v1_0::front_module_max_thickness(uint8_t& o_output) const
{
// Extracting desired bits
uint8_t l_field_bits = extract_spd_field< FRONT_MODULE_THICKNESS >(iv_target, iv_spd_data);
@@ -316,7 +316,7 @@ fapi_try_exit:
/// @note DDR4 SPD Document Release 2
/// @note Page 4.1.2.12.2 - 55
///
-fapi2::ReturnCode decoder_v1_0::back_module_max_thickness(uint8_t& o_output)
+fapi2::ReturnCode decoder_v1_0::back_module_max_thickness(uint8_t& o_output) const
{
// Extracting desired bits
uint8_t l_field_bits = extract_spd_field< BACK_MODULE_THICKNESS >(iv_target, iv_spd_data);
@@ -352,7 +352,7 @@ fapi_try_exit:
/// @note DDR4 SPD Document Release 2
/// @note Page 4.1.2.12.2 - 57
///
-fapi2::ReturnCode decoder_v1_0::num_registers_used(uint8_t& o_output)
+fapi2::ReturnCode decoder_v1_0::num_registers_used(uint8_t& o_output) const
{
// Extracting desired bits
uint8_t l_field_bits = extract_spd_field< NUM_REGISTERS_USED >(iv_target, iv_spd_data);
@@ -387,7 +387,7 @@ fapi_try_exit:
/// @note DDR4 SPD Document Release 2
/// @note Page 4.1.2.12.2 - 57
///
-fapi2::ReturnCode decoder_v1_0::num_rows_of_drams(uint8_t& o_output)
+fapi2::ReturnCode decoder_v1_0::num_rows_of_drams(uint8_t& o_output) const
{
// Extracting desired bits
uint8_t l_field_bits = extract_spd_field< NUM_ROWS_OF_DRAMS >(iv_target, iv_spd_data);
@@ -423,7 +423,7 @@ fapi_try_exit:
/// @note DDR4 SPD Document Release 2
/// @note Page 4.1.2.12.2 - 58
///
-fapi2::ReturnCode decoder_v1_0::heat_spreader_solution(uint8_t& o_output)
+fapi2::ReturnCode decoder_v1_0::heat_spreader_solution(uint8_t& o_output) const
{
// Extracting desired bits
uint8_t l_field_bits = extract_spd_field< HEAT_SPREADER_SOLUTION >(iv_target, iv_spd_data);
@@ -458,7 +458,7 @@ fapi_try_exit:
/// @note DDR4 SPD Document Release 2
/// @note Page 4.1.2.12.2 - 58
///
-fapi2::ReturnCode decoder_v1_0::num_continuation_codes(uint8_t& o_output)
+fapi2::ReturnCode decoder_v1_0::num_continuation_codes(uint8_t& o_output) const
{
// Extracting desired bits
uint8_t l_field_bits = extract_spd_field< CONTINUATION_CODES >(iv_target, iv_spd_data);
@@ -493,7 +493,7 @@ fapi_try_exit:
/// @note DDR4 SPD Document Release 2
/// @note Page 4.1.2.12.2 - 58
///
-fapi2::ReturnCode decoder_v1_0::reg_manufacturer_id_code(uint8_t& o_output)
+fapi2::ReturnCode decoder_v1_0::reg_manufacturer_id_code(uint8_t& o_output) const
{
constexpr size_t BYTE_INDEX = 134;
uint8_t l_raw_byte = iv_spd_data[BYTE_INDEX];
@@ -523,7 +523,7 @@ fapi2::ReturnCode decoder_v1_0::reg_manufacturer_id_code(uint8_t& o_output)
/// @note DDR4 SPD Document Release 2
/// @note Page 4.1.2.12.2 - 58
///
-fapi2::ReturnCode decoder_v1_0::register_rev_num(uint8_t& o_output)
+fapi2::ReturnCode decoder_v1_0::register_rev_num(uint8_t& o_output) const
{
constexpr size_t BYTE_INDEX = 135;
uint8_t l_raw_byte = iv_spd_data[BYTE_INDEX];
@@ -553,7 +553,7 @@ fapi2::ReturnCode decoder_v1_0::register_rev_num(uint8_t& o_output)
/// @note DDR4 SPD Document Release 2
/// @note Page 4.1.2.12.2 - 59
///
-fapi2::ReturnCode decoder_v1_0::register_to_dram_addr_mapping(uint8_t& o_output)
+fapi2::ReturnCode decoder_v1_0::register_to_dram_addr_mapping(uint8_t& o_output) const
{
// Extracting desired bits
uint8_t l_field_bits = extract_spd_field< ADDR_MAPPING >(iv_target, iv_spd_data);
@@ -588,7 +588,7 @@ fapi_try_exit:
/// @note DDR4 SPD Document Release 2
/// @note Page 4.1.2.12.2 - 60
///
-fapi2::ReturnCode decoder_v1_0::cke_signal_output_driver(uint8_t& o_output)
+fapi2::ReturnCode decoder_v1_0::cke_signal_output_driver(uint8_t& o_output) const
{
// Extracting desired bits
uint8_t l_field_bits = extract_spd_field< CKE_DRIVE_STRENGTH >(iv_target, iv_spd_data);
@@ -623,7 +623,7 @@ fapi_try_exit:
/// @note DDR4 SPD Document Release 2
/// @note Page 4.1.2.12.2 - 60
///
-fapi2::ReturnCode decoder_v1_0::odt_signal_output_driver(uint8_t& o_output)
+fapi2::ReturnCode decoder_v1_0::odt_signal_output_driver(uint8_t& o_output) const
{
// Extracting desired bits
uint8_t l_field_bits = extract_spd_field< ODT_DRIVE_STRENGTH >(iv_target, iv_spd_data);
@@ -658,7 +658,7 @@ fapi_try_exit:
/// @note DDR4 SPD Document Release 2
/// @note Page 4.1.2.12.2 - 60
///
-fapi2::ReturnCode decoder_v1_0::ca_signal_output_driver(uint8_t& o_output)
+fapi2::ReturnCode decoder_v1_0::ca_signal_output_driver(uint8_t& o_output) const
{
// Extracting desired bits
uint8_t l_field_bits = extract_spd_field< CA_DRIVE_STRENGTH >(iv_target, iv_spd_data);
@@ -693,7 +693,7 @@ fapi_try_exit:
/// @note DDR4 SPD Document Release 2
/// @note Page 4.1.2.12.2 - 60
///
-fapi2::ReturnCode decoder_v1_0::cs_signal_output_driver(uint8_t& o_output)
+fapi2::ReturnCode decoder_v1_0::cs_signal_output_driver(uint8_t& o_output) const
{
// Extracting desired bits
uint8_t l_field_bits = extract_spd_field< CS_DRIVE_STRENGTH >(iv_target, iv_spd_data);
@@ -728,7 +728,7 @@ fapi_try_exit:
/// @note DDR4 SPD Document Release 2
/// @note Page 4.1.2.12.2 - 60
///
-fapi2::ReturnCode decoder_v1_0::b_side_clk_output_driver(uint8_t& o_output)
+fapi2::ReturnCode decoder_v1_0::b_side_clk_output_driver(uint8_t& o_output) const
{
// Extracting desired bits
uint8_t l_field_bits = extract_spd_field< B_SIDE_DRIVE_STRENGTH >(iv_target, iv_spd_data);
@@ -763,7 +763,7 @@ fapi_try_exit:
/// @note DDR4 SPD Document Release 2
/// @note Page 4.1.2.12.2 - 60
///
-fapi2::ReturnCode decoder_v1_0::a_side_clk_output_driver(uint8_t& o_output)
+fapi2::ReturnCode decoder_v1_0::a_side_clk_output_driver(uint8_t& o_output) const
{
// Extracting desired bits
uint8_t l_field_bits = extract_spd_field< A_SIDE_DRIVE_STRENGTH >(iv_target, iv_spd_data);
@@ -798,7 +798,7 @@ fapi_try_exit:
/// @note DDR4 SPD Document Release 2
/// @note Page 4.1.2.12.2 - 60
///
-fapi2::ReturnCode decoder_v1_0::data_buffer_rev(uint8_t& o_output)
+fapi2::ReturnCode decoder_v1_0::data_buffer_rev(uint8_t& o_output) const
{
// Extracting desired bits
constexpr size_t BYTE_INDEX = 139;
@@ -840,7 +840,7 @@ fapi_try_exit:
/// @note DDR4 SPD Document Release 2
/// @note Page 4.1.2.12.2 - 61
///
-fapi2::ReturnCode decoder_v1_0::dram_vref_dq_rank0(uint8_t& o_output)
+fapi2::ReturnCode decoder_v1_0::dram_vref_dq_rank0(uint8_t& o_output) const
{
// Extracting desired bits
uint8_t l_field_bits = extract_spd_field< VREF_DQ_RANK0 >(iv_target, iv_spd_data);
@@ -875,7 +875,7 @@ fapi_try_exit:
/// @note DDR4 SPD Document Release 2
/// @note Page 4.1.2.12.2 - 61
///
-fapi2::ReturnCode decoder_v1_0::dram_vref_dq_rank1(uint8_t& o_output)
+fapi2::ReturnCode decoder_v1_0::dram_vref_dq_rank1(uint8_t& o_output) const
{
// Extracting desired bits
uint8_t l_field_bits = extract_spd_field< VREF_DQ_RANK1 >(iv_target, iv_spd_data);
@@ -910,7 +910,7 @@ fapi_try_exit:
/// @note DDR4 SPD Document Release 2
/// @note Page 4.1.2.12.2 - 61
///
-fapi2::ReturnCode decoder_v1_0::dram_vref_dq_rank2(uint8_t& o_output)
+fapi2::ReturnCode decoder_v1_0::dram_vref_dq_rank2(uint8_t& o_output) const
{
// Extracting desired bits
uint8_t l_field_bits = extract_spd_field< VREF_DQ_RANK2 >(iv_target, iv_spd_data);
@@ -945,7 +945,7 @@ fapi_try_exit:
/// @note DDR4 SPD Document Release 4
/// @note Page 4.1.2.12.2 - 61
///
-fapi2::ReturnCode decoder_v1_0::dram_vref_dq_rank3(uint8_t& o_output)
+fapi2::ReturnCode decoder_v1_0::dram_vref_dq_rank3(uint8_t& o_output) const
{
// Extracting desired bits
uint8_t l_field_bits = extract_spd_field< VREF_DQ_RANK3 >(iv_target, iv_spd_data);
@@ -980,7 +980,7 @@ fapi_try_exit:
/// @note DDR4 SPD Document Release 2
/// @note Page 4.1.2.12.2 - 61
///
-fapi2::ReturnCode decoder_v1_0::data_buffer_vref_dq(uint8_t& o_output)
+fapi2::ReturnCode decoder_v1_0::data_buffer_vref_dq(uint8_t& o_output) const
{
constexpr size_t BYTE_INDEX = 144;
uint8_t l_raw_data = iv_spd_data[BYTE_INDEX];
@@ -1022,7 +1022,7 @@ fapi_try_exit:
/// @note DDR4 SPD Document Release 2
/// @note Page 4.1.2.12.2 - 62
///
-fapi2::ReturnCode decoder_v1_0::data_buffer_mdq_drive_strength(const uint64_t i_dimm_speed, uint8_t& o_output)
+fapi2::ReturnCode decoder_v1_0::data_buffer_mdq_drive_strength(const uint64_t i_dimm_speed, uint8_t& o_output) const
{
uint8_t l_byte = 0;
uint8_t l_field_bits = 0;
@@ -1087,7 +1087,7 @@ fapi_try_exit:
/// @note DDR4 SPD Document Release 2
/// @note Page 4.1.2.12.2 - 62
///
-fapi2::ReturnCode decoder_v1_0::data_buffer_mdq_rtt(const uint64_t i_dimm_speed, uint8_t& o_output)
+fapi2::ReturnCode decoder_v1_0::data_buffer_mdq_rtt(const uint64_t i_dimm_speed, uint8_t& o_output) const
{
uint8_t l_byte = 0;
uint8_t l_field_bits = 0;
@@ -1133,7 +1133,7 @@ fapi_try_exit:
/// @note DDR4 SPD Document Release 2
/// @note Page 4.1.2.12.2 - 63
///
-fapi2::ReturnCode decoder_v1_0::dram_drive_strength(const uint64_t i_dimm_speed, uint8_t& o_output)
+fapi2::ReturnCode decoder_v1_0::dram_drive_strength(const uint64_t i_dimm_speed, uint8_t& o_output) const
{
size_t l_start = 0;
FAPI_TRY( drive_strength_start_bit_finder(i_dimm_speed, l_start) );
@@ -1178,7 +1178,7 @@ fapi_try_exit:
/// @note DDR4 SPD Document Release 2
/// @note Page 4.1.2.12.2 - (64 - 65)
///
-fapi2::ReturnCode decoder_v1_0::dram_rtt_nom(const uint64_t i_dimm_speed, uint8_t& o_output)
+fapi2::ReturnCode decoder_v1_0::dram_rtt_nom(const uint64_t i_dimm_speed, uint8_t& o_output) const
{
size_t l_byte = 0;
FAPI_TRY( rtt_wr_and_nom_byte_finder(i_dimm_speed, l_byte) );
@@ -1223,7 +1223,7 @@ fapi_try_exit:
/// @note DDR4 SPD Document Release 2
/// @note Page 4.1.2.12.2 - (64 - 65)
///
-fapi2::ReturnCode decoder_v1_0::dram_rtt_wr(const uint64_t i_dimm_speed, uint8_t& o_output)
+fapi2::ReturnCode decoder_v1_0::dram_rtt_wr(const uint64_t i_dimm_speed, uint8_t& o_output) const
{
size_t l_byte = 0;
FAPI_TRY( rtt_wr_and_nom_byte_finder(i_dimm_speed, l_byte) );
@@ -1285,7 +1285,7 @@ fapi_try_exit:
/// @note DDR4 SPD Document Release 2
/// @note Page 4.1.2.12.2 - 65
///
-fapi2::ReturnCode decoder_v1_0::dram_rtt_park_ranks0_1(const uint64_t i_dimm_speed, uint8_t& o_output)
+fapi2::ReturnCode decoder_v1_0::dram_rtt_park_ranks0_1(const uint64_t i_dimm_speed, uint8_t& o_output) const
{
size_t l_byte = 0;
FAPI_TRY( rtt_park_byte_finder(i_dimm_speed, l_byte) );
@@ -1330,7 +1330,7 @@ fapi_try_exit:
/// @note DDR4 SPD Document Release 2
/// @note Page 4.1.2.12.2 - 65
///
-fapi2::ReturnCode decoder_v1_0::dram_rtt_park_ranks2_3(const uint64_t i_dimm_speed, uint8_t& o_output)
+fapi2::ReturnCode decoder_v1_0::dram_rtt_park_ranks2_3(const uint64_t i_dimm_speed, uint8_t& o_output) const
{
size_t l_byte = 0;
FAPI_TRY( rtt_park_byte_finder(i_dimm_speed, l_byte) );
diff --git a/src/import/generic/memory/lib/spd/lrdimm/ddr4/lrdimm_decoder_ddr4_v1_1.C b/src/import/generic/memory/lib/spd/lrdimm/ddr4/lrdimm_decoder_ddr4_v1_1.C
index 2f235620c..05786a6a1 100644
--- a/src/import/generic/memory/lib/spd/lrdimm/ddr4/lrdimm_decoder_ddr4_v1_1.C
+++ b/src/import/generic/memory/lib/spd/lrdimm/ddr4/lrdimm_decoder_ddr4_v1_1.C
@@ -68,7 +68,7 @@ namespace lrdimm
/// @note DDR4 SPD Document Release 3
/// @note Page 4.1.2.12.3 - 63
///
-fapi2::ReturnCode decoder_v1_1::register_and_buffer_type(uint8_t& o_output)
+fapi2::ReturnCode decoder_v1_1::register_and_buffer_type(uint8_t& o_output) const
{
// Extracting desired bits
uint8_t l_field_bits = extract_spd_field< REGISTER_TYPE >(iv_target, iv_spd_data);
@@ -104,7 +104,7 @@ fapi_try_exit:
/// @note DDR4 SPD Document Release 3
/// @note Page 4.1.2.12.3 - 65
///
-fapi2::ReturnCode decoder_v1_1::cke_signal_output_driver(uint8_t& o_output)
+fapi2::ReturnCode decoder_v1_1::cke_signal_output_driver(uint8_t& o_output) const
{
// Extracting desired bits
uint8_t l_field_bits = extract_spd_field< CKE_DRIVE_STRENGTH >(iv_target, iv_spd_data);
@@ -139,7 +139,7 @@ fapi_try_exit:
/// @note DDR4 SPD Document Release 3
/// @note Page 4.1.2.12.3 - 65
///
-fapi2::ReturnCode decoder_v1_1::odt_signal_output_driver(uint8_t& o_output)
+fapi2::ReturnCode decoder_v1_1::odt_signal_output_driver(uint8_t& o_output) const
{
// Extracting desired bits
uint8_t l_field_bits = extract_spd_field< ODT_DRIVE_STRENGTH >(iv_target, iv_spd_data);
@@ -174,7 +174,7 @@ fapi_try_exit:
/// @note DDR4 SPD Document Release 3
/// @note Page 4.1.2.12.3 - 65
///
-fapi2::ReturnCode decoder_v1_1::cs_signal_output_driver(uint8_t& o_output)
+fapi2::ReturnCode decoder_v1_1::cs_signal_output_driver(uint8_t& o_output) const
{
// Extracting desired bits
uint8_t l_field_bits = extract_spd_field< CS_DRIVE_STRENGTH >(iv_target, iv_spd_data);
@@ -209,7 +209,7 @@ fapi_try_exit:
/// @note DDR4 SPD Document Release 3
/// @note Page 4.1.2.12.3 - 66
///
-fapi2::ReturnCode decoder_v1_1::b_side_clk_output_driver(uint8_t& o_output)
+fapi2::ReturnCode decoder_v1_1::b_side_clk_output_driver(uint8_t& o_output) const
{
// Extracting desired bits
uint8_t l_field_bits = extract_spd_field< B_SIDE_DRIVE_STRENGTH >(iv_target, iv_spd_data);
@@ -244,7 +244,7 @@ fapi_try_exit:
/// @note DDR4 SPD Document Release 3
/// @note Page 4.1.2.12.3 - 66
///
-fapi2::ReturnCode decoder_v1_1::a_side_clk_output_driver(uint8_t& o_output)
+fapi2::ReturnCode decoder_v1_1::a_side_clk_output_driver(uint8_t& o_output) const
{
// Extracting desired bits
uint8_t l_field_bits = extract_spd_field< A_SIDE_DRIVE_STRENGTH >(iv_target, iv_spd_data);
diff --git a/src/import/generic/memory/lib/spd/lrdimm/ddr4/lrdimm_decoder_ddr4_v1_2.C b/src/import/generic/memory/lib/spd/lrdimm/ddr4/lrdimm_decoder_ddr4_v1_2.C
index 55b8708a8..191d770e1 100644
--- a/src/import/generic/memory/lib/spd/lrdimm/ddr4/lrdimm_decoder_ddr4_v1_2.C
+++ b/src/import/generic/memory/lib/spd/lrdimm/ddr4/lrdimm_decoder_ddr4_v1_2.C
@@ -68,7 +68,7 @@ namespace lrdimm
/// @note DDR4 SPD Document Release 4
/// @note Page 4.1.2.12.3 - 76
///
-fapi2::ReturnCode decoder_v1_2::bcom_bcke_bodt_drive_strength(uint8_t& o_output)
+fapi2::ReturnCode decoder_v1_2::bcom_bcke_bodt_drive_strength(uint8_t& o_output) const
{
// Extracting desired bits
uint8_t l_field_bits = extract_spd_field< BCOM_BODT_BCKE_DRIVE_STRENGTH >(iv_target, iv_spd_data);
@@ -103,7 +103,7 @@ fapi_try_exit:
/// @note DDR4 SPD Document Release 4
/// @note Page 4.1.2.12.3 - 76
///
-fapi2::ReturnCode decoder_v1_2::bck_output_drive_strength(uint8_t& o_output)
+fapi2::ReturnCode decoder_v1_2::bck_output_drive_strength(uint8_t& o_output) const
{
// Extracting desired bits
uint8_t l_field_bits = extract_spd_field< BCK_DRIVE_STRENGTH >(iv_target, iv_spd_data);
@@ -138,7 +138,7 @@ fapi_try_exit:
/// @note DDR4 SPD Document Release 4
/// @note Page 4.1.2.L-4 - 76
///
-fapi2::ReturnCode decoder_v1_2::slew_rate_control(uint8_t& o_output)
+fapi2::ReturnCode decoder_v1_2::slew_rate_control(uint8_t& o_output) const
{
// Extracting desired bits
uint8_t l_field_bits = extract_spd_field< RCD_SLEW_CNTRL >(iv_target, iv_spd_data);
@@ -173,7 +173,7 @@ fapi_try_exit:
/// @note DDR4 SPD Document Release 4
/// @note Page 4.1.2.L-4 - 76
///
-fapi2::ReturnCode decoder_v1_2::dram_vref_dq_range(uint8_t& o_output)
+fapi2::ReturnCode decoder_v1_2::dram_vref_dq_range(uint8_t& o_output) const
{
// Extracting desired bits
uint8_t l_field_bits = extract_spd_field< DRAM_VREF_DQ_RANGE >(iv_target, iv_spd_data);
@@ -208,7 +208,7 @@ fapi_try_exit:
/// @note DDR4 SPD Document Release 4
/// @note Page 4.1.2.L-4 - 76
///
-fapi2::ReturnCode decoder_v1_2::data_buffer_vref_dq_range(uint8_t& o_output)
+fapi2::ReturnCode decoder_v1_2::data_buffer_vref_dq_range(uint8_t& o_output) const
{
// Extracting desired bits
uint8_t l_field_bits = extract_spd_field< DATA_BUFFER_VREF_DQ >(iv_target, iv_spd_data);
@@ -243,7 +243,7 @@ fapi_try_exit:
/// @note DDR4 SPD Document Release 4
/// @note Page 4.1.2.L-4 - 77
///
-fapi2::ReturnCode decoder_v1_2::data_buffer_gain_adjustment(uint8_t& o_output)
+fapi2::ReturnCode decoder_v1_2::data_buffer_gain_adjustment(uint8_t& o_output) const
{
// Extracting desired bits
uint8_t l_field_bits = extract_spd_field< DATA_BUFFER_GAIN_ADJUST >(iv_target, iv_spd_data);
@@ -278,7 +278,7 @@ fapi_try_exit:
/// @note DDR4 SPD Document Release 4
/// @note Page 4.1.2.L-4 - 77
///
-fapi2::ReturnCode decoder_v1_2::data_buffer_dfe(uint8_t& o_output)
+fapi2::ReturnCode decoder_v1_2::data_buffer_dfe(uint8_t& o_output) const
{
// Extracting desired bits
uint8_t l_field_bits = extract_spd_field< DATA_BUFFER_DFE >(iv_target, iv_spd_data);
diff --git a/src/import/generic/memory/lib/spd/rdimm/ddr4/rdimm_decoder_ddr4.H b/src/import/generic/memory/lib/spd/rdimm/ddr4/rdimm_decoder_ddr4.H
index 9d62ea4b3..b17e410ff 100644
--- a/src/import/generic/memory/lib/spd/rdimm/ddr4/rdimm_decoder_ddr4.H
+++ b/src/import/generic/memory/lib/spd/rdimm/ddr4/rdimm_decoder_ddr4.H
@@ -177,7 +177,7 @@ class decoder_v1_0 : public dimm_module_decoder
/// @note DDR4 SPD Document Release 2
/// @note Page 4.1.2.12 - 48
///
- virtual fapi2::ReturnCode max_module_nominal_height(uint8_t& o_output) override;
+ virtual fapi2::ReturnCode max_module_nominal_height(uint8_t& o_output) const override;
///
/// @brief Decodes front module maximum thickness max, in mm
@@ -188,7 +188,7 @@ class decoder_v1_0 : public dimm_module_decoder
/// @note DDR4 SPD Document Release 2
/// @note Page 4.1.2.12 - 48
///
- virtual fapi2::ReturnCode front_module_max_thickness(uint8_t& o_output) override;
+ virtual fapi2::ReturnCode front_module_max_thickness(uint8_t& o_output) const override;
///
/// @brief Decodes back module maximum thickness max, in mm
@@ -199,7 +199,7 @@ class decoder_v1_0 : public dimm_module_decoder
/// @note DDR4 SPD Document Release 2
/// @note Page 4.1.2.12 - 48
///
- virtual fapi2::ReturnCode back_module_max_thickness(uint8_t& o_output) override;
+ virtual fapi2::ReturnCode back_module_max_thickness(uint8_t& o_output) const override;
///
/// @brief Decodes number of registers used on RDIMM
@@ -210,7 +210,7 @@ class decoder_v1_0 : public dimm_module_decoder
/// @note DDR4 SPD Document Release 2
/// @note Page 4.1.2.12 - 50
///
- virtual fapi2::ReturnCode num_registers_used(uint8_t& o_output) override;
+ virtual fapi2::ReturnCode num_registers_used(uint8_t& o_output) const override;
///
/// @brief Decodes number of rows of DRAMs on RDIMM
@@ -221,7 +221,7 @@ class decoder_v1_0 : public dimm_module_decoder
/// @note DDR4 SPD Document Release 2
/// @note Page 4.1.2.12 - 50
///
- virtual fapi2::ReturnCode num_rows_of_drams(uint8_t& o_output) override;
+ virtual fapi2::ReturnCode num_rows_of_drams(uint8_t& o_output) const override;
///
/// @brief Decodes heat spreader thermal characteristics
@@ -232,7 +232,7 @@ class decoder_v1_0 : public dimm_module_decoder
/// @note DDR4 SPD Document Release 2
/// @note Page 4.1.2.12 - 51
///
- virtual fapi2::ReturnCode heat_spreader_thermal_char(uint8_t& o_output) override;
+ virtual fapi2::ReturnCode heat_spreader_thermal_char(uint8_t& o_output) const override;
///
/// @brief Decodes heat spreader solution
@@ -243,7 +243,7 @@ class decoder_v1_0 : public dimm_module_decoder
/// @note DDR4 SPD Document Release 2
/// @note Page 4.1.2.12 - 51
///
- virtual fapi2::ReturnCode heat_spreader_solution(uint8_t& o_output) override;
+ virtual fapi2::ReturnCode heat_spreader_solution(uint8_t& o_output) const override;
///
/// @brief Decodes number of continuation codes
@@ -254,7 +254,7 @@ class decoder_v1_0 : public dimm_module_decoder
/// @note DDR4 SPD Document Release 2
/// @note Page 4.1.2.12 - 51
///
- virtual fapi2::ReturnCode num_continuation_codes(uint8_t& o_output) override;
+ virtual fapi2::ReturnCode num_continuation_codes(uint8_t& o_output) const override;
///
/// @brief Decodes register manufacturer ID code
@@ -265,7 +265,7 @@ class decoder_v1_0 : public dimm_module_decoder
/// @note DDR4 SPD Document Release 2
/// @note Page 4.1.2.12 - 51
///
- virtual fapi2::ReturnCode reg_manufacturer_id_code(uint8_t& o_output) override;
+ virtual fapi2::ReturnCode reg_manufacturer_id_code(uint8_t& o_output) const override;
///
/// @brief Decodes register revision number
@@ -276,7 +276,7 @@ class decoder_v1_0 : public dimm_module_decoder
/// @note DDR4 SPD Document Release 2
/// @note Page 4.1.2.12 - 51
///
- virtual fapi2::ReturnCode register_rev_num(uint8_t& o_output) override;
+ virtual fapi2::ReturnCode register_rev_num(uint8_t& o_output) const override;
///
/// @brief Decodes address mapping from register to dram
@@ -287,7 +287,7 @@ class decoder_v1_0 : public dimm_module_decoder
/// @note DDR4 SPD Document Release 2
/// @note Page 4.1.2.12 - 52
///
- virtual fapi2::ReturnCode register_to_dram_addr_mapping(uint8_t& o_output) override;
+ virtual fapi2::ReturnCode register_to_dram_addr_mapping(uint8_t& o_output) const override;
///
/// @brief Decodes register output drive strength for CKE signal
@@ -298,7 +298,7 @@ class decoder_v1_0 : public dimm_module_decoder
/// @note DDR4 SPD Document Release 2
/// @note Page 4.1.2.12 - 53
///
- virtual fapi2::ReturnCode cke_signal_output_driver(uint8_t& o_output) override;
+ virtual fapi2::ReturnCode cke_signal_output_driver(uint8_t& o_output) const override;
///
/// @brief Decodes register output drive strength for ODT signal
@@ -309,7 +309,7 @@ class decoder_v1_0 : public dimm_module_decoder
/// @note DDR4 SPD Document Release 2
/// @note Page 4.1.2.12 - 53
///
- virtual fapi2::ReturnCode odt_signal_output_driver(uint8_t& o_output) override;
+ virtual fapi2::ReturnCode odt_signal_output_driver(uint8_t& o_output) const override;
///
/// @brief Decodes register output drive strength for command/address (CA) signal
@@ -320,7 +320,7 @@ class decoder_v1_0 : public dimm_module_decoder
/// @note DDR4 SPD Document Release 2
/// @note Page 4.1.2.12 - 53
///
- virtual fapi2::ReturnCode ca_signal_output_driver(uint8_t& o_output) override;
+ virtual fapi2::ReturnCode ca_signal_output_driver(uint8_t& o_output) const override;
///
/// @brief Decodes register output drive strength for control signal (CS) signal
@@ -331,7 +331,7 @@ class decoder_v1_0 : public dimm_module_decoder
/// @note DDR4 SPD Document Release 2
/// @note Page 4.1.2.12 - 53
///
- virtual fapi2::ReturnCode cs_signal_output_driver(uint8_t& o_output) override;
+ virtual fapi2::ReturnCode cs_signal_output_driver(uint8_t& o_output) const override;
///
/// @brief Decodes register output drive strength for clock (B side)
@@ -342,7 +342,7 @@ class decoder_v1_0 : public dimm_module_decoder
/// @note DDR4 SPD Document Release 2
/// @note Page 4.1.2.12 - 53
///
- virtual fapi2::ReturnCode b_side_clk_output_driver(uint8_t& o_output) override;
+ virtual fapi2::ReturnCode b_side_clk_output_driver(uint8_t& o_output) const override;
///
/// @brief Decodes register output drive strength for clock (A side)
@@ -353,7 +353,7 @@ class decoder_v1_0 : public dimm_module_decoder
/// @note DDR4 SPD Document Release 2
/// @note Page 4.1.2.12 - 53
///
- virtual fapi2::ReturnCode a_side_clk_output_driver(uint8_t& o_output) override;
+ virtual fapi2::ReturnCode a_side_clk_output_driver(uint8_t& o_output) const override;
protected:
const fapi2::Target<fapi2::TARGET_TYPE_DIMM> iv_target;
@@ -396,7 +396,7 @@ class decoder_v1_1 : public decoder_v1_0
/// @note DDR4 SPD Document Release 3
/// @note Page 4.1.2.12.3 - 63
///
- virtual fapi2::ReturnCode register_and_buffer_type(uint8_t& o_output) override;
+ virtual fapi2::ReturnCode register_and_buffer_type(uint8_t& o_output) const override;
///
/// @brief Decodes register output drive strength for CKE signal
@@ -407,7 +407,7 @@ class decoder_v1_1 : public decoder_v1_0
/// @note Page 76
/// @note DDR4 SPD Document Release 4
///
- virtual fapi2::ReturnCode cke_signal_output_driver(uint8_t& o_output) override;
+ virtual fapi2::ReturnCode cke_signal_output_driver(uint8_t& o_output) const override;
///
/// @brief Decodes register output drive strength for ODT signal
@@ -418,7 +418,7 @@ class decoder_v1_1 : public decoder_v1_0
/// @note Page 76
/// @note DDR4 SPD Document Release 4
///
- virtual fapi2::ReturnCode odt_signal_output_driver(uint8_t& o_output) override;
+ virtual fapi2::ReturnCode odt_signal_output_driver(uint8_t& o_output) const override;
///
/// @brief Decodes register output drive strength for control signal (CS) signal
@@ -429,7 +429,7 @@ class decoder_v1_1 : public decoder_v1_0
/// @note Page 76
/// @note DDR4 SPD Document Release 4
///
- virtual fapi2::ReturnCode cs_signal_output_driver(uint8_t& o_output) override;
+ virtual fapi2::ReturnCode cs_signal_output_driver(uint8_t& o_output) const override;
///
/// @brief Decodes register output drive strength for clock (B side)
@@ -440,7 +440,7 @@ class decoder_v1_1 : public decoder_v1_0
/// @note Page 76
/// @note DDR4 SPD Document Release 4
///
- virtual fapi2::ReturnCode b_side_clk_output_driver(uint8_t& o_output) override;
+ virtual fapi2::ReturnCode b_side_clk_output_driver(uint8_t& o_output) const override;
///
/// @brief Decodes register output drive strength for clock (A side)
@@ -451,7 +451,7 @@ class decoder_v1_1 : public decoder_v1_0
/// @note Page 76
/// @note DDR4 SPD Document Release 4
///
- virtual fapi2::ReturnCode a_side_clk_output_driver(uint8_t& o_output) override;
+ virtual fapi2::ReturnCode a_side_clk_output_driver(uint8_t& o_output) const override;
};//decoder_v1_1
diff --git a/src/import/generic/memory/lib/spd/rdimm/ddr4/rdimm_decoder_ddr4_v1_0.C b/src/import/generic/memory/lib/spd/rdimm/ddr4/rdimm_decoder_ddr4_v1_0.C
index 25ace3e70..a1f235606 100644
--- a/src/import/generic/memory/lib/spd/rdimm/ddr4/rdimm_decoder_ddr4_v1_0.C
+++ b/src/import/generic/memory/lib/spd/rdimm/ddr4/rdimm_decoder_ddr4_v1_0.C
@@ -74,7 +74,7 @@ namespace rdimm
/// @note DDR4 SPD Document Release 2
/// @note Page 4.1.2.12 - 48
///
-fapi2::ReturnCode decoder_v1_0::max_module_nominal_height(uint8_t& o_output)
+fapi2::ReturnCode decoder_v1_0::max_module_nominal_height(uint8_t& o_output) const
{
const uint8_t l_field_bits = extract_spd_field<MODULE_NOMINAL_HEIGHT>(iv_target, iv_spd_data);
FAPI_DBG("Field_Bits value: %d", l_field_bits);
@@ -107,7 +107,7 @@ fapi_try_exit:
/// @note DDR4 SPD Document Release 2
/// @note Page 4.1.2.12 - 48
///
-fapi2::ReturnCode decoder_v1_0::front_module_max_thickness(uint8_t& o_output)
+fapi2::ReturnCode decoder_v1_0::front_module_max_thickness(uint8_t& o_output) const
{
// Extracting desired bits
const uint8_t l_field_bits = extract_spd_field<FRONT_MODULE_THICKNESS>(iv_target, iv_spd_data);
@@ -142,7 +142,7 @@ fapi_try_exit:
/// @note DDR4 SPD Document Release 2
/// @note Page 4.1.2.12 - 48
///
-fapi2::ReturnCode decoder_v1_0::back_module_max_thickness(uint8_t& o_output)
+fapi2::ReturnCode decoder_v1_0::back_module_max_thickness(uint8_t& o_output) const
{
// Extracting desired bits
const uint8_t l_field_bits = extract_spd_field<BACK_MODULE_THICKNESS>(iv_target, iv_spd_data);
@@ -177,7 +177,7 @@ fapi_try_exit:
/// @note DDR4 SPD Document Release 2
/// @note Page 4.1.2.12 - 50
///
-fapi2::ReturnCode decoder_v1_0::num_registers_used(uint8_t& o_output)
+fapi2::ReturnCode decoder_v1_0::num_registers_used(uint8_t& o_output) const
{
// Extracting desired bits
const uint8_t l_field_bits = extract_spd_field<NUM_REGS_USED>(iv_target, iv_spd_data);
@@ -212,7 +212,7 @@ fapi_try_exit:
/// @note DDR4 SPD Document Release 2
/// @note Page 4.1.2.12 - 50
///
-fapi2::ReturnCode decoder_v1_0::num_rows_of_drams(uint8_t& o_output)
+fapi2::ReturnCode decoder_v1_0::num_rows_of_drams(uint8_t& o_output) const
{
// Extracting desired bits
const uint8_t l_field_bits = extract_spd_field<ROWS_OF_DRAMS>(iv_target, iv_spd_data);
@@ -247,7 +247,7 @@ fapi_try_exit:
/// @note DDR4 SPD Document Release 2
/// @note Page 4.1.2.12 - 51
///
-fapi2::ReturnCode decoder_v1_0::heat_spreader_thermal_char(uint8_t& o_output)
+fapi2::ReturnCode decoder_v1_0::heat_spreader_thermal_char(uint8_t& o_output) const
{
// Extracting desired bits
const uint8_t l_field_bits = extract_spd_field<HEAT_SPREADER_CHAR>(iv_target, iv_spd_data);
@@ -281,7 +281,7 @@ fapi_try_exit:
/// @note DDR4 SPD Document Release 2
/// @note Page 4.1.2.12 - 51
///
-fapi2::ReturnCode decoder_v1_0::heat_spreader_solution(uint8_t& o_output)
+fapi2::ReturnCode decoder_v1_0::heat_spreader_solution(uint8_t& o_output) const
{
// Extracting desired bits
const uint8_t l_field_bits = extract_spd_field<HEAT_SPREADER_SOL>(iv_target, iv_spd_data);
@@ -316,7 +316,7 @@ fapi_try_exit:
/// @note DDR4 SPD Document Release 2
/// @note Page 4.1.2.12 - 51
///
-fapi2::ReturnCode decoder_v1_0::num_continuation_codes(uint8_t& o_output)
+fapi2::ReturnCode decoder_v1_0::num_continuation_codes(uint8_t& o_output) const
{
// Extracting desired bits
const uint8_t l_field_bits = extract_spd_field<CONTINUATION_CODES>(iv_target, iv_spd_data);
@@ -351,7 +351,7 @@ fapi_try_exit:
/// @note DDR4 SPD Document Release 2
/// @note Page 4.1.2.12 - 51
///
-fapi2::ReturnCode decoder_v1_0::reg_manufacturer_id_code(uint8_t& o_output)
+fapi2::ReturnCode decoder_v1_0::reg_manufacturer_id_code(uint8_t& o_output) const
{
constexpr size_t BYTE_INDEX = 134;
uint8_t l_raw_byte = iv_spd_data[BYTE_INDEX];
@@ -380,7 +380,7 @@ fapi2::ReturnCode decoder_v1_0::reg_manufacturer_id_code(uint8_t& o_output)
/// @note DDR4 SPD Document Release 2
/// @note Page 4.1.2.12 - 51
///
-fapi2::ReturnCode decoder_v1_0::register_rev_num(uint8_t& o_output)
+fapi2::ReturnCode decoder_v1_0::register_rev_num(uint8_t& o_output) const
{
constexpr size_t BYTE_INDEX = 135;
uint8_t l_raw_byte = iv_spd_data[BYTE_INDEX];
@@ -409,7 +409,7 @@ fapi2::ReturnCode decoder_v1_0::register_rev_num(uint8_t& o_output)
/// @note DDR4 SPD Document Release 2
/// @note Page 4.1.2.12 - 52
///
-fapi2::ReturnCode decoder_v1_0::register_to_dram_addr_mapping(uint8_t& o_output)
+fapi2::ReturnCode decoder_v1_0::register_to_dram_addr_mapping(uint8_t& o_output) const
{
// Extracting desired bits
const uint8_t l_field_bits = extract_spd_field<ADDR_MAPPING>(iv_target, iv_spd_data);
@@ -443,7 +443,7 @@ fapi_try_exit:
/// @note DDR4 SPD Document Release 2
/// @note Page 4.1.2.12 - 53
///
-fapi2::ReturnCode decoder_v1_0::cke_signal_output_driver(uint8_t& o_output)
+fapi2::ReturnCode decoder_v1_0::cke_signal_output_driver(uint8_t& o_output) const
{
// Extracting desired bits
const uint8_t l_field_bits = extract_spd_field<CKE_DRIVER>(iv_target, iv_spd_data);
@@ -477,7 +477,7 @@ fapi_try_exit:
/// @note DDR4 SPD Document Release 2
/// @note Page 4.1.2.12 - 53
///
-fapi2::ReturnCode decoder_v1_0::odt_signal_output_driver(uint8_t& o_output)
+fapi2::ReturnCode decoder_v1_0::odt_signal_output_driver(uint8_t& o_output) const
{
// Extracting desired bits
const uint8_t l_field_bits = extract_spd_field<ODT_DRIVER>(iv_target, iv_spd_data);
@@ -511,7 +511,7 @@ fapi_try_exit:
/// @note DDR4 SPD Document Release 2
/// @note Page 4.1.2.12 - 53
///
-fapi2::ReturnCode decoder_v1_0::ca_signal_output_driver(uint8_t& o_output)
+fapi2::ReturnCode decoder_v1_0::ca_signal_output_driver(uint8_t& o_output) const
{
// Extracting desired bits
const uint8_t l_field_bits = extract_spd_field<CA_DRIVER>(iv_target, iv_spd_data);
@@ -545,7 +545,7 @@ fapi_try_exit:
/// @note DDR4 SPD Document Release 2
/// @note Page 4.1.2.12 - 53
///
-fapi2::ReturnCode decoder_v1_0::cs_signal_output_driver(uint8_t& o_output)
+fapi2::ReturnCode decoder_v1_0::cs_signal_output_driver(uint8_t& o_output) const
{
// Extracting desired bits
const uint8_t l_field_bits = extract_spd_field<CS_DRIVER>(iv_target, iv_spd_data);
@@ -579,7 +579,7 @@ fapi_try_exit:
/// @note DDR4 SPD Document Release 2
/// @note Page 4.1.2.12 - 53
///
-fapi2::ReturnCode decoder_v1_0::b_side_clk_output_driver(uint8_t& o_output)
+fapi2::ReturnCode decoder_v1_0::b_side_clk_output_driver(uint8_t& o_output) const
{
// Extracting desired bits
const uint8_t l_field_bits = extract_spd_field<YO_Y2_DRIVER>(iv_target, iv_spd_data);
@@ -613,7 +613,7 @@ fapi_try_exit:
/// @note DDR4 SPD Document Release 2
/// @note Page 4.1.2.12 - 53
///
-fapi2::ReturnCode decoder_v1_0::a_side_clk_output_driver(uint8_t& o_output)
+fapi2::ReturnCode decoder_v1_0::a_side_clk_output_driver(uint8_t& o_output) const
{
// Extracting desired bits
const uint8_t l_field_bits = extract_spd_field<Y1_Y3_DRIVER>(iv_target, iv_spd_data);
diff --git a/src/import/generic/memory/lib/spd/rdimm/ddr4/rdimm_decoder_ddr4_v1_1.C b/src/import/generic/memory/lib/spd/rdimm/ddr4/rdimm_decoder_ddr4_v1_1.C
index 753750fb9..a1549a6db 100644
--- a/src/import/generic/memory/lib/spd/rdimm/ddr4/rdimm_decoder_ddr4_v1_1.C
+++ b/src/import/generic/memory/lib/spd/rdimm/ddr4/rdimm_decoder_ddr4_v1_1.C
@@ -65,7 +65,7 @@ namespace rdimm
/// @note DDR4 SPD Document Release 3
/// @note Page 4.1.2.12.3 - 63
///
-fapi2::ReturnCode decoder_v1_1::register_and_buffer_type(uint8_t& o_output)
+fapi2::ReturnCode decoder_v1_1::register_and_buffer_type(uint8_t& o_output) const
{
// Extracting desired bits
const uint8_t l_field_bits = extract_spd_field<REGISTER_TYPE>(iv_target, iv_spd_data);
@@ -101,7 +101,7 @@ fapi_try_exit:
/// @note Page 76
/// @note DDR4 SPD Document Release 4
///
-fapi2::ReturnCode decoder_v1_1::cke_signal_output_driver(uint8_t& o_output)
+fapi2::ReturnCode decoder_v1_1::cke_signal_output_driver(uint8_t& o_output) const
{
// Extracting desired bits
const uint8_t l_field_bits = extract_spd_field<CKE_DRIVER>(iv_target, iv_spd_data);
@@ -135,7 +135,7 @@ fapi_try_exit:
/// @note Page 76
/// @note DDR4 SPD Document Release 4
///
-fapi2::ReturnCode decoder_v1_1::odt_signal_output_driver(uint8_t& o_output)
+fapi2::ReturnCode decoder_v1_1::odt_signal_output_driver(uint8_t& o_output) const
{
// Extracting desired bits
const uint8_t l_field_bits = extract_spd_field<ODT_DRIVER>(iv_target, iv_spd_data);
@@ -169,7 +169,7 @@ fapi_try_exit:
/// @note Page 76
/// @note DDR4 SPD Document Release 4
///
-fapi2::ReturnCode decoder_v1_1::cs_signal_output_driver(uint8_t& o_output)
+fapi2::ReturnCode decoder_v1_1::cs_signal_output_driver(uint8_t& o_output) const
{
// Extracting desired bits
const uint8_t l_field_bits = extract_spd_field<CS_DRIVER>(iv_target, iv_spd_data);
@@ -203,7 +203,7 @@ fapi_try_exit:
/// @note Page 76
/// @note DDR4 SPD Document Release 4
///
-fapi2::ReturnCode decoder_v1_1::b_side_clk_output_driver(uint8_t& o_output)
+fapi2::ReturnCode decoder_v1_1::b_side_clk_output_driver(uint8_t& o_output) const
{
// Extracting desired bits
const uint8_t l_field_bits = extract_spd_field<YO_Y2_DRIVER>(iv_target, iv_spd_data);
@@ -237,7 +237,7 @@ fapi_try_exit:
/// @note Page 76
/// @note DDR4 SPD Document Release 4
///
-fapi2::ReturnCode decoder_v1_1::a_side_clk_output_driver(uint8_t& o_output)
+fapi2::ReturnCode decoder_v1_1::a_side_clk_output_driver(uint8_t& o_output) const
{
// Extracting desired bits
const uint8_t l_field_bits = extract_spd_field<Y1_Y3_DRIVER>(iv_target, iv_spd_data);
OpenPOWER on IntegriCloud