summaryrefslogtreecommitdiffstats
path: root/src/include/usr/targeting
diff options
context:
space:
mode:
authorVan Lee <vanlee@us.ibm.com>2012-05-16 19:55:35 -0500
committerA. Patrick Williams III <iawillia@us.ibm.com>2012-06-06 17:05:08 -0500
commit068764225969bfd45cc47ad1e6f2d00a2d7331f2 (patch)
tree76a8e24f2846736488c26b61cc3d4243e44675e5 /src/include/usr/targeting
parent200c99f2adcf88697a2fce80becee61ef405094d (diff)
downloadtalos-hostboot-068764225969bfd45cc47ad1e6f2d00a2d7331f2.tar.gz
talos-hostboot-068764225969bfd45cc47ad1e6f2d00a2d7331f2.zip
Pick up latest mss_eff_config HWP
Implemented util functions getAllChips, getAllChiplets, getChildChiplets, getAffinityChips. RTC: 41712 Change-Id: I625695a85d768e03365a91fb44b4f9d6525a4276 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/1073 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.H98
1 files changed, 98 insertions, 0 deletions
diff --git a/src/include/usr/targeting/common/utilFilter.H b/src/include/usr/targeting/common/utilFilter.H
new file mode 100644
index 000000000..215cc9644
--- /dev/null
+++ b/src/include/usr/targeting/common/utilFilter.H
@@ -0,0 +1,98 @@
+/* IBM_PROLOG_BEGIN_TAG
+ * This is an automatically generated prolog.
+ *
+ * $Source: src/include/usr/targeting/common/utilFilter.H $
+ *
+ * IBM CONFIDENTIAL
+ *
+ * COPYRIGHT International Business Machines Corp. 2012
+ *
+ * p1
+ *
+ * Object Code Only (OCO) source materials
+ * Licensed Internal Code Source Materials
+ * IBM HostBoot Licensed Internal Code
+ *
+ * The source code for this program is not published or other-
+ * wise divested of its trade secrets, irrespective of what has
+ * been deposited with the U.S. Copyright Office.
+ *
+ * Origin: 30
+ *
+ * IBM_PROLOG_END_TAG
+ */
+#ifndef __TARGETING_COMMON_UTIL_FILTER_H
+#define __TARGETING_COMMON_UTIL_FILTER_H
+
+/**
+ * @file targeting/common/utilFilter.H
+ *
+ * @brief Targeting Filter utility functions
+ */
+
+#include <attributeenums.H>
+#include <targeting/common/predicates/predicatebase.H>
+#include <targeting/common/iterators/targetiterator.H>
+#include <targeting/common/iterators/rangefilter.H>
+
+
+namespace TARGETING
+{
+
+/**
+ * @brief Populate the o_vector with target chip pointers based on the
+ * requested type, and functional state.
+ *
+ * @parm[out] o_vector, reference of vector of target pointers.
+ * @parm[in] i_type, the type of the chip targets to be obtained
+ * @parm[in] i_functional, set to true to return only functional targets
+ *
+ * @return N/A
+ */
+void getAllChips(TARGETING::TargetHandleList & o_vector,
+ TYPE i_type, bool i_functional = true );
+
+/**
+ * @brief Populate the o_vector with target chiplet pointers based on the
+ * requested type, and functional state.
+ *
+ * @parm[out] o_vector, reference of vector of target pointers.
+ * @parm[in] i_type, the type of the chiplet targets to be obtained
+ * @parm[in] i_functional, set to true to return only functional targets
+ *
+ * @return N/A
+ */
+void getAllChiplets(TARGETING::TargetHandleList & o_vector,
+ TYPE i_type, bool i_functional = true );
+
+/**
+ * @brief Populate the o_vector with chiplet target object pointers associated
+ * to the input chip
+ *
+ * @parm[out] o_vector, reference of vector of target pointers.
+ * @parm[in] i_chip, the chip target for retrieving its child chiplets
+ * @parm[in] i_type, the type of the chiplet targets to be obtained
+ * @parm[in] i_functional, set to true to return only functional targets
+ *
+ * @return N/A
+ */
+void getChildChiplets(TARGETING::TargetHandleList & o_vector,
+ const Target * i_chip, TYPE i_type, bool i_functional = true );
+
+/**
+ * @brief Populate the o_vector with chip target object pointers which is
+ * affinity child of the input chiplet
+ *
+ * @parm[out] o_vector, reference of vector of target pointers.
+ * @parm[in] i_chiplet, the chiplet target for retrieving affinity-child chip
+ * @parm[in] i_type, the type of the chip target to be obtained
+ * @parm[in] i_functional, set to true to return only functional targets
+ *
+ * @return N/A
+ */
+void getAffinityChips( TARGETING::TargetHandleList& o_vector,
+ const Target * i_chiplet, TYPE i_type, bool i_functional = true );
+
+}
+
+#endif // __TARGETING_COMMON_UTIL_H
OpenPOWER on IntegriCloud