summaryrefslogtreecommitdiffstats
path: root/src/usr/fapi2/test/fapi2TestUtils.H
diff options
context:
space:
mode:
authorNick Bofferding <bofferdn@us.ibm.com>2016-03-14 11:27:49 -0500
committerDaniel M. Crowell <dcrowell@us.ibm.com>2016-03-23 11:31:45 -0400
commit16ff4c0894f726ea97362536af36a413b1f255cd (patch)
tree78e5c57d3fe5307917dca729d444437db8ead3b3 /src/usr/fapi2/test/fapi2TestUtils.H
parentefb976fc64fc447d93015d3bb950431f341b6c19 (diff)
downloadtalos-hostboot-16ff4c0894f726ea97362536af36a413b1f255cd.tar.gz
talos-hostboot-16ff4c0894f726ea97362536af36a413b1f255cd.zip
Support getChildren and getParent FAPI2 tests
- Added FAPI reason codes to support tests - Added special handlers to getParent/getChildren for pervasive associations - Added new APIs to filtering utilities to walk pervasive associations - Updated getParent/getChildren tests to fully exercise pervasive associations RTC: 148577 Change-Id: I0d8ec427e6c2092852a32c7da605d1c47c554b50 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/22084 Tested-by: Jenkins Server Reviewed-by: Martin Gloff <mgloff@us.ibm.com> Tested-by: FSP CI Jenkins Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/usr/fapi2/test/fapi2TestUtils.H')
-rw-r--r--src/usr/fapi2/test/fapi2TestUtils.H45
1 files changed, 45 insertions, 0 deletions
diff --git a/src/usr/fapi2/test/fapi2TestUtils.H b/src/usr/fapi2/test/fapi2TestUtils.H
index 0a841d6a6..2fafc296b 100644
--- a/src/usr/fapi2/test/fapi2TestUtils.H
+++ b/src/usr/fapi2/test/fapi2TestUtils.H
@@ -63,6 +63,51 @@ enum{
NUM_TARGETS
};
+/**
+ * @brief Number of children of given type that applicable pervasive has
+ */
+enum PERVASIVE_CHILDREN {
+ PERV_EQ_CHILDREN = 1,
+ PERV_CORE_CHILDREN = 1,
+ PERV_XBUS_CHILDREN = 2,
+ PERV_OBUS_CHILDREN = 1,
+ PERV_CAPP_CHILDREN = 1,
+ PERV_NV_CHILDREN = 2,
+ PERV_MCBIST_CHILDREN = 1,
+ PERV_MCS_CHILDREN = 2,
+ PERV_MCA_CHILDREN = 4,
+ PERV_PEC_CHILDREN = 1,
+ PERV_PEC0_PHB_CHILDREN = 1,
+ PERV_PEC1_PHB_CHILDREN = 2,
+ PERV_PEC2_PHB_CHILDREN = 3,
+};
+
+/**
+ * @brief Unit ranges for pervasive function
+ *
+ * @par Detailed Description:
+ * Maps pervasive target with chip unit X to one or more unit types. For
+ * example, a pervasive chip unit of 18 maps to EQ type because
+ * EQ_LOW <= X <= EQ_HIGH .
+ */
+enum PERVASIVE_RANGE {
+ EQ_LOW = 16,
+ EQ_HIGH = 21,
+ CORE_LOW = 32,
+ CORE_HIGH = 55,
+ XBUS_RANGE = 6,
+ OBUS_LOW = 9,
+ OBUS_HIGH = 12,
+ CAPP0_RANGE = 2,
+ CAPP1_RANGE = 4,
+ NV_RANGE = 5,
+ MC_LOW = 7,
+ MC_HIGH = 8,
+ PEC_LOW = 13,
+ PEC_MID = 14,
+ PEC_HIGH = 15,
+};
+
///
/// @brief Generates a list of platform targets of all differnt types.
/// This comes in handy when testing out fapi2 target interfaces
OpenPOWER on IntegriCloud