summaryrefslogtreecommitdiffstats
path: root/src/include/usr/targeting
diff options
context:
space:
mode:
authorayma <ayma@us.ibm.com>2014-03-04 16:19:49 -0600
committerA. Patrick Williams III <iawillia@us.ibm.com>2014-03-15 12:25:22 -0500
commit9ef3e1b8cd5d2ee02984478b1882677331da08fa (patch)
tree7cb7804214eedc70826242dadd78c1e117fde854 /src/include/usr/targeting
parentd05eda21bf62fe34d0dcbdd786794707c5c9f048 (diff)
downloadtalos-hostboot-9ef3e1b8cd5d2ee02984478b1882677331da08fa.tar.gz
talos-hostboot-9ef3e1b8cd5d2ee02984478b1882677331da08fa.zip
change to check all present MBA and MCS in host_prd_hwreconfig
need to change host_prd_hwreconfig to use all present targets instead of only functional targets. This allows the HWP to mask FIRS appropriately Change-Id: I795adf302ff4da5c731d2356433fd775b5f1ba45 CQ: SW245901 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/9297 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/include/usr/targeting')
-rw-r--r--src/include/usr/targeting/common/utilFilter.H60
1 files changed, 54 insertions, 6 deletions
diff --git a/src/include/usr/targeting/common/utilFilter.H b/src/include/usr/targeting/common/utilFilter.H
index dde563531..0e381286d 100644
--- a/src/include/usr/targeting/common/utilFilter.H
+++ b/src/include/usr/targeting/common/utilFilter.H
@@ -130,6 +130,24 @@ void getChildChiplets(TARGETING::TargetHandleList & o_vector,
/**
* @brief Populate the o_vector with target object pointers which are
+ * affinity children of the input target and filters based on a
+ * functional state
+ *
+ * @parm[out] o_vector, reference of vector of target pointers.
+ * @parm[in] i_target, the target for retrieving affinity-parent targets
+ * @parm[in] i_class, the class of the target to be obtained
+ * @parm[in] i_type, the type of the target to be obtained
+ * @parm[in] i_functional, set to true to return only functional targets
+ * @parm[in] i_state, Selection filter based on ResourceState enum
+ *
+ * @return N/A
+ */
+void getChildAffinityTargetsByState ( TARGETING::TargetHandleList& o_vector,
+ const Target * i_target, CLASS i_class, TYPE i_type,
+ ResourceState i_state );
+
+/**
+ * @brief Populate the o_vector with target object pointers which are
* affinity children of the input target
*
* @parm[out] o_vector, reference of vector of target pointers.
@@ -140,9 +158,33 @@ void getChildChiplets(TARGETING::TargetHandleList & o_vector,
*
* @return N/A
*/
+inline
void getChildAffinityTargets ( TARGETING::TargetHandleList& o_vector,
- const Target * i_target, CLASS i_class, TYPE i_type,
- bool i_functional = true );
+ const Target * i_target, CLASS i_class, TYPE i_type,
+ bool i_functional = true )
+{
+ getChildAffinityTargetsByState(o_vector, i_target, i_class, i_type,
+ i_functional ? UTIL_FILTER_FUNCTIONAL :
+ UTIL_FILTER_ALL);
+}
+
+/**
+ * @brief Populate the o_vector with target object pointers which are
+ * affinity parents of the input target and filters based on a
+ * functional state
+ *
+ * @parm[out] o_vector, reference of vector of target pointers.
+ * @parm[in] i_target, the target for retrieving affinity-parent targets
+ * @parm[in] i_class, the class of the target to be obtained
+ * @parm[in] i_type, the type of the target to be obtained
+ * @parm[in] i_functional, set to true to return only functional targets
+ * @parm[in] i_state, Selection filter based on ResourceState enum
+ *
+ * @return N/A
+ */
+void getParentAffinityTargetsByState ( TARGETING::TargetHandleList& o_vector,
+ const Target * i_target, CLASS i_class, TYPE i_type,
+ ResourceState i_state );
/**
* @brief Populate the o_vector with target object pointers which are
@@ -156,9 +198,15 @@ void getChildAffinityTargets ( TARGETING::TargetHandleList& o_vector,
*
* @return N/A
*/
+inline
void getParentAffinityTargets ( TARGETING::TargetHandleList& o_vector,
- const Target * i_target, CLASS i_class, TYPE i_type,
- bool i_functional = true );
+ const Target * i_target, CLASS i_class, TYPE i_type,
+ bool i_functional = true )
+{
+ getParentAffinityTargetsByState(o_vector, i_target, i_class, i_type,
+ i_functional ? UTIL_FILTER_FUNCTIONAL :
+ UTIL_FILTER_ALL);
+}
/**
* @brief return the parent chip target of the specified input chiplet
@@ -210,7 +258,7 @@ void getAllLogicalCards( TARGETING::TargetHandleList & o_vector,
/**
* @brief Returns the list of targets which is an immediate peer of the source
- * target provided by the user.
+ * target provided by the user.
*
* @par Detailed Description:
*
@@ -245,7 +293,7 @@ void getAllLogicalCards( TARGETING::TargetHandleList & o_vector,
* has PEER Target Attribute, as provided by user.
* i_pPeerFilter Pointer to a predicate to be evaluated against each
* candidate target (as determined by the source target, type, and
- * recursion level parameters).
+ * recursion level parameters).
* @param[in] i_pResultFilter to be applied on self and the Parent chain of
* Peer Targets of the source target & target leaf provided by user
* or evaluated on the basis of the i_pPeerFilter given by user.
OpenPOWER on IntegriCloud