summaryrefslogtreecommitdiffstats
path: root/src/import/generic
diff options
context:
space:
mode:
authorAndre Marin <aamarin@us.ibm.com>2019-07-18 07:18:31 -0400
committerChristian R Geddes <crgeddes@us.ibm.com>2019-08-15 12:18:21 -0500
commit491ac02e84c7fcc32d28fbf80a0f4c2015589dc3 (patch)
treeac91a566acad5c757d3313ee958ddac4c89a2947 /src/import/generic
parent7dce747041c57cddf8ee88727745c18a3b4ae53c (diff)
downloadtalos-hostboot-491ac02e84c7fcc32d28fbf80a0f4c2015589dc3.tar.gz
talos-hostboot-491ac02e84c7fcc32d28fbf80a0f4c2015589dc3.zip
Split nimbus and cumulus find API away from generic
Helps ease porting for p10 by removing chip specific code and targets that doesn't exit in p10 master Change-Id: Iaae2dc44f48d208bcf6b80e9555f7cfec060b390 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/80607 Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: STEPHEN GLANCY <sglancy@us.ibm.com> Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com> Tested-by: HWSV CI <hwsv-ci+hostboot@us.ibm.com> Reviewed-by: Mark Pizzutillo <mark.pizzutillo@ibm.com> Dev-Ready: ANDRE A MARIN <aamarin@us.ibm.com> Reviewed-by: Jennifer A Stofer <stofer@us.ibm.com> Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/81133 Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Reviewed-by: Christian R Geddes <crgeddes@us.ibm.com>
Diffstat (limited to 'src/import/generic')
-rw-r--r--src/import/generic/memory/lib/utils/find.H142
1 files changed, 0 insertions, 142 deletions
diff --git a/src/import/generic/memory/lib/utils/find.H b/src/import/generic/memory/lib/utils/find.H
index 3e67e765a..f96252913 100644
--- a/src/import/generic/memory/lib/utils/find.H
+++ b/src/import/generic/memory/lib/utils/find.H
@@ -148,30 +148,6 @@ inline fapi2::Target<M> find_target( const fapi2::Target<T>& i_target)
}
///
-/// @brief find the McBIST given a DIMM
-/// @param[in] i_target the fapi2 target DIMM
-/// @return a McBIST target.
-///
-template<>
-inline fapi2::Target<fapi2::TARGET_TYPE_MCBIST> find_target(const fapi2::Target<fapi2::TARGET_TYPE_DIMM>& i_target)
-{
- return i_target.getParent<fapi2::TARGET_TYPE_MCA>().getParent<fapi2::TARGET_TYPE_MCBIST>();
-}
-
-///
-/// @brief find the PROC_CHIP given a MBA
-/// @param[in] i_target the fapi2 target MBA
-/// @return a DMI target.
-///
-template<>
-inline fapi2::Target<fapi2::TARGET_TYPE_PROC_CHIP> find_target(const fapi2::Target<fapi2::TARGET_TYPE_MBA>& i_target)
-{
- return i_target.getParent<fapi2::TARGET_TYPE_MEMBUF_CHIP>()
- .getParent<fapi2::TARGET_TYPE_DMI>()
- .getParent<fapi2::TARGET_TYPE_PROC_CHIP>();
-}
-
-///
/// @brief find the PROC_CHIP given a OCMB_CHIP
/// @param[in] i_target the fapi2 target OCMB_CHIP
/// @return a PROC_CHIP target.
@@ -186,29 +162,6 @@ inline fapi2::Target<fapi2::TARGET_TYPE_PROC_CHIP> find_target(const fapi2::Targ
}
///
-/// @brief find the DMI given an MBA
-/// @param[in] i_target the fapi2 target MBA
-/// @return a DMI target.
-///
-template<>
-inline fapi2::Target<fapi2::TARGET_TYPE_DMI> find_target(const fapi2::Target<fapi2::TARGET_TYPE_MBA>& i_target)
-{
- return i_target.getParent<fapi2::TARGET_TYPE_MEMBUF_CHIP>().getParent<fapi2::TARGET_TYPE_DMI>();
-}
-
-///
-/// @brief find the PROC given a MEMBUF
-/// @param[in] i_target the fapi2 target MEMBUF
-/// @return a PROC target.
-///
-template<>
-inline fapi2::Target<fapi2::TARGET_TYPE_PROC_CHIP> find_target(const fapi2::Target<fapi2::TARGET_TYPE_MEMBUF_CHIP>&
- i_target)
-{
- return i_target.getParent<fapi2::TARGET_TYPE_DMI>().getParent<fapi2::TARGET_TYPE_PROC_CHIP>();
-}
-
-///
/// @brief find all the OCMB_CHIPs connected to a PROC_CHIP
/// @param[in] i_target a fapi2::Target PROC_CHIP
/// @return a vector of fapi2::TARGET_TYPE_OCMB_CHIP
@@ -305,101 +258,6 @@ find_targets( const fapi2::Target<fapi2::TARGET_TYPE_PROC_CHIP>& i_target,
}
///
-/// @brief find all the MBA connected to an DMI
-/// @param[in] i_target a fapi2::Target DMI
-/// @return a vector of fapi2::TARGET_TYPE_MBA
-///
-template<>
-inline std::vector< fapi2::Target<fapi2::TARGET_TYPE_MBA> >
-find_targets( const fapi2::Target<fapi2::TARGET_TYPE_DMI>& i_target,
- fapi2::TargetState i_state )
-{
- std::vector< fapi2::Target<fapi2::TARGET_TYPE_MBA> > l_mbas;
-
- for (const auto& membuf_chip : i_target.getChildren<fapi2::TARGET_TYPE_MEMBUF_CHIP>(i_state))
- {
- auto l_these_mbas( membuf_chip.getChildren<fapi2::TARGET_TYPE_MBA>(i_state) );
- l_mbas.insert(l_mbas.end(), l_these_mbas.begin(), l_these_mbas.end());
- }
-
- return l_mbas;
-}
-
-///
-/// @brief find all the DIMM connected to a centaur
-/// @param[in] i_target a fapi2::Target TARGET_TYPE_MEMBUF_CHIP
-/// @return a vector of fapi2::TARGET_TYPE_DIMM
-///
-template<>
-inline std::vector< fapi2::Target<fapi2::TARGET_TYPE_DIMM> >
-find_targets( const fapi2::Target<fapi2::TARGET_TYPE_MEMBUF_CHIP>& i_target,
- fapi2::TargetState i_state )
-{
- std::vector< fapi2::Target<fapi2::TARGET_TYPE_DIMM> > l_dimms;
-
- for (const auto& l_mba : i_target.getChildren<fapi2::TARGET_TYPE_MBA>(i_state))
- {
- auto l_these_dimms( l_mba.getChildren<fapi2::TARGET_TYPE_DIMM>(i_state) );
- l_dimms.insert(l_dimms.end(), l_these_dimms.begin(), l_these_dimms.end());
- }
-
- return l_dimms;
-}
-
-///
-/// @brief find all the dimm connected to an MCS
-/// @param[in] i_target a fapi2::Target MCS
-/// @return a vector of fapi2::TARGET_TYPE_DIMM
-///
-template<>
-inline std::vector< fapi2::Target<fapi2::TARGET_TYPE_DIMM> >
-find_targets( const fapi2::Target<fapi2::TARGET_TYPE_MCS>& i_target,
- fapi2::TargetState i_state )
-{
- std::vector< fapi2::Target<fapi2::TARGET_TYPE_DIMM> > l_dimms;
-
- for (const auto& p : i_target.getChildren<fapi2::TARGET_TYPE_MCA>(i_state))
- {
- auto l_these_dimms( p.getChildren<fapi2::TARGET_TYPE_DIMM>(i_state) );
- l_dimms.insert(l_dimms.end(), l_these_dimms.begin(), l_these_dimms.end());
- }
-
- return l_dimms;
-}
-
-///
-/// @brief find all the dimms connected to an MCBIST
-/// @param[in] i_target a fapi2::Target MCBIST
-/// @return a vector of fapi2::TARGET_TYPE_DIMM
-///
-template<>
-inline std::vector< fapi2::Target<fapi2::TARGET_TYPE_DIMM> >
-find_targets( const fapi2::Target<fapi2::TARGET_TYPE_MCBIST>& i_target,
- fapi2::TargetState i_state )
-{
- std::vector< fapi2::Target<fapi2::TARGET_TYPE_DIMM> > l_dimms;
-
- for (const auto& p : i_target.getChildren<fapi2::TARGET_TYPE_MCA>(i_state))
- {
- auto l_these_dimms( p.getChildren<fapi2::TARGET_TYPE_DIMM>(i_state) );
- l_dimms.insert(l_dimms.end(), l_these_dimms.begin(), l_these_dimms.end());
- }
-
- return l_dimms;
-}
-
-///
-/// @brief find the MCS given a DIMM
-/// @param[in] i_target the fapi2 target DIMM
-/// @return a MCS target.
-///
-template<>
-inline fapi2::Target<fapi2::TARGET_TYPE_MCS> find_target( const fapi2::Target<fapi2::TARGET_TYPE_DIMM>& i_target)
-{
- return i_target.getParent<fapi2::TARGET_TYPE_MCA>().getParent<fapi2::TARGET_TYPE_MCS>();
-}
-
-///
/// @brief find a key value from a vector of STL pairs
/// @tparam T input type
/// @tparam OT the output type to be returned
OpenPOWER on IntegriCloud