summaryrefslogtreecommitdiffstats
path: root/src/import/chips/p9/procedures/hwp/memory/lib/dimm/eff_dimm.H
diff options
context:
space:
mode:
Diffstat (limited to 'src/import/chips/p9/procedures/hwp/memory/lib/dimm/eff_dimm.H')
-rw-r--r--src/import/chips/p9/procedures/hwp/memory/lib/dimm/eff_dimm.H20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/import/chips/p9/procedures/hwp/memory/lib/dimm/eff_dimm.H b/src/import/chips/p9/procedures/hwp/memory/lib/dimm/eff_dimm.H
index 3c20dcd87..4e047e540 100644
--- a/src/import/chips/p9/procedures/hwp/memory/lib/dimm/eff_dimm.H
+++ b/src/import/chips/p9/procedures/hwp/memory/lib/dimm/eff_dimm.H
@@ -67,6 +67,19 @@ class eff_dimm
uint8_t iv_refresh_mode;
uint8_t iv_refresh_rate_request;
+ ///
+ ///@brief Encoding for QSID for RC08,
+ ///@note placing here so we can use the enum for calculate_chip_id and for RCBX
+ ///
+ enum qsid
+ {
+ ALL_ENABLE = 0b00,
+ ZERO_ENABLE = 0b10,
+ ZERO_ONE_ENABLE = 0b01,
+ ALL_DISABLE = 0b11,
+
+ };
+
//Delete the default
eff_dimm () = delete;
@@ -280,6 +293,13 @@ class eff_dimm
fapi2::ReturnCode dimm_rc06_07();
///
+ /// @brief Determines how many chip select ID bits are needed for the iv_dimm
+ /// @param[out] o_qs a qsid encoding denoting if 0, 1, 2, or all three QSID's are needed
+ /// @return fapi2::FAPI2_RC_SUCCESS if okay
+ ///
+ fapi2::ReturnCode calculate_chip_ids( qsid& o_qs);
+
+ ///
/// @brief Determines & sets effective config for DIMM RC08
/// @return fapi2::FAPI2_RC_SUCCESS if okay
///
OpenPOWER on IntegriCloud