summaryrefslogtreecommitdiffstats
path: root/src/import/chips/p9/procedures/hwp/memory/lib/mc/mc.H
diff options
context:
space:
mode:
authorBrian Silver <bsilver@us.ibm.com>2016-09-22 12:46:34 -0500
committerChristian R. Geddes <crgeddes@us.ibm.com>2016-09-30 15:34:22 -0400
commit06ae7b91ea3338508f3d32f83967f1083af5fe70 (patch)
tree977b660daf87471edfc068dd545ed12559f38856 /src/import/chips/p9/procedures/hwp/memory/lib/mc/mc.H
parent3ec21604a358d090e443facd69db44bf45dcc8f2 (diff)
downloadtalos-hostboot-06ae7b91ea3338508f3d32f83967f1083af5fe70.tar.gz
talos-hostboot-06ae7b91ea3338508f3d32f83967f1083af5fe70.zip
Add 3DS DIMM support
Change-Id: Iab21b0e0aae34053ea8eab70cca6d8e65b75c308 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/30354 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: ANDRE A. MARIN <aamarin@us.ibm.com> Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com> Reviewed-by: Matt K. Light <mklight@us.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/30358 Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Diffstat (limited to 'src/import/chips/p9/procedures/hwp/memory/lib/mc/mc.H')
-rw-r--r--src/import/chips/p9/procedures/hwp/memory/lib/mc/mc.H14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/import/chips/p9/procedures/hwp/memory/lib/mc/mc.H b/src/import/chips/p9/procedures/hwp/memory/lib/mc/mc.H
index 60be57802..5923fad0d 100644
--- a/src/import/chips/p9/procedures/hwp/memory/lib/mc/mc.H
+++ b/src/import/chips/p9/procedures/hwp/memory/lib/mc/mc.H
@@ -41,6 +41,7 @@
#include <p9_mc_scom_addresses.H>
#include <p9_mc_scom_addresses_fld.H>
#include <lib/mss_attribute_accessors.H>
+#include <lib/dimm/kind.H>
#include <lib/utils/scom.H>
namespace mss
@@ -184,6 +185,19 @@ fapi2::ReturnCode setup_perf2_register(const fapi2::Target<fapi2::TARGET_TYPE_MC
fapi2::ReturnCode calculate_perf2(const fapi2::Target<fapi2::TARGET_TYPE_MCA>& i_target, uint64_t& o_value);
///
+/// @brief Helper to setup the translation map - useful for testing
+/// @param[in] i_dimm_kinds std::vector of DIMM kind's representing the DIMM (Not const as we sort the vector)
+/// @param[out] fapi2::buffer<uint64_t> o_xlate0 - xlt register 0's value
+/// @param[out] fapi2::buffer<uint64_t> o_xlate1 - xlt register 1's value
+/// @param[out] fapi2::buffer<uint64_t> o_xlate2 - xlt register 2's value
+/// @return FAPI2_RC_SUCCESS iff ok
+///
+fapi2::ReturnCode setup_xlate_map_helper( std::vector<dimm::kind>& i_dimm_kinds,
+ fapi2::buffer<uint64_t>& o_xlate0,
+ fapi2::buffer<uint64_t>& o_xlate1,
+ fapi2::buffer<uint64_t>& o_xlate2 );
+
+///
/// @brief Perform initializations of the MC translation
/// @tparam P the fapi2::TargetType of the port
/// @tparam TT the mcTraits associated with P
OpenPOWER on IntegriCloud