summaryrefslogtreecommitdiffstats
path: root/src/usr/hwas/test/hwasGardTest.H
diff options
context:
space:
mode:
authorBrian Horton <brianh@linux.ibm.com>2012-06-26 16:30:33 -0500
committerA. Patrick Williams III <iawillia@us.ibm.com>2012-08-13 12:25:09 -0500
commit11c8a7dc6e0ec3c31f081d1e30a04a6e7038f918 (patch)
treec1e8babefc8a5447d606a4d13a43f914c50bce95 /src/usr/hwas/test/hwasGardTest.H
parent99f217daf307b3cd963bcbce8eb7b025d58f734e (diff)
downloadtalos-hostboot-11c8a7dc6e0ec3c31f081d1e30a04a6e7038f918.tar.gz
talos-hostboot-11c8a7dc6e0ec3c31f081d1e30a04a6e7038f918.zip
ERRL: Hardware Callouts
Support for HW and Procedure Callouts, including GARD and deconfigure information. . Add errl functions to get the information; . Add errlog userdetail code to package callout data; . Add to errlog commit function to find callout user-detail sections and call a HWAS:common function to process the callout. . Remove gardLevel from Targeting hwasState field Change-Id: I01c7c3721e6fd843a0ba2ad4df8399f6db68b590 RTC: 41276 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/1266 Tested-by: Jenkins Server Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/hwas/test/hwasGardTest.H')
-rw-r--r--src/usr/hwas/test/hwasGardTest.H67
1 files changed, 34 insertions, 33 deletions
diff --git a/src/usr/hwas/test/hwasGardTest.H b/src/usr/hwas/test/hwasGardTest.H
index 9338678e9..f1d10c032 100644
--- a/src/usr/hwas/test/hwasGardTest.H
+++ b/src/usr/hwas/test/hwasGardTest.H
@@ -1,25 +1,26 @@
-// IBM_PROLOG_BEGIN_TAG
-// This is an automatically generated prolog.
-//
-// $Source: src/usr/hwas/test/hwasGardTest.H $
-//
-// IBM CONFIDENTIAL
-//
-// COPYRIGHT International Business Machines Corp. 2011
-//
-// 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
+/* IBM_PROLOG_BEGIN_TAG
+ * This is an automatically generated prolog.
+ *
+ * $Source: src/usr/hwas/test/hwasGardTest.H $
+ *
+ * IBM CONFIDENTIAL
+ *
+ * COPYRIGHT International Business Machines Corp. 2011-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 _HWASGARDTEST_H
#define _HWASGARDTEST_H
@@ -445,7 +446,7 @@ public:
// valid PLID
l_pErr = HWAS::theDeconfigGard().
createGardRecord(*l_pTarget, 0,
- HWAS::DeconfigGard::GARD_SEVERITY_PREDICTIVE);
+ HWAS::GARD_Predictive);
if (l_pErr)
{
@@ -469,11 +470,11 @@ public:
break;
}
- if (l_records[0].iv_severity !=
- HWAS::DeconfigGard::GARD_SEVERITY_PREDICTIVE)
+ if (l_records[0].iv_errorType !=
+ HWAS::GARD_Predictive)
{
- TS_FAIL("testGard4: Record severity %d, expected predictive",
- l_records[0].iv_severity);
+ TS_FAIL("testGard4: Record errorType %d, expected predictive",
+ l_records[0].iv_errorType);
break;
}
@@ -552,7 +553,7 @@ public:
// valid PLID
l_pErr = HWAS::theDeconfigGard().
createGardRecord(*l_pTarget, 0,
- HWAS::DeconfigGard::GARD_SEVERITY_PREDICTIVE);
+ HWAS::GARD_Predictive);
if (l_pErr)
{
@@ -563,7 +564,7 @@ public:
// Create another GARD Record for the chip
l_pErr = HWAS::theDeconfigGard().
createGardRecord(*l_pTarget, 0,
- HWAS::DeconfigGard::GARD_SEVERITY_FATAL);
+ HWAS::GARD_Fatal);
if (l_pErr)
{
@@ -662,7 +663,7 @@ public:
// valid PLID
l_pErr = HWAS::theDeconfigGard().
createGardRecord(*l_pTarget, 0,
- HWAS::DeconfigGard::GARD_SEVERITY_PREDICTIVE);
+ HWAS::GARD_Predictive);
if (l_pErr)
{
@@ -673,7 +674,7 @@ public:
// Create another GARD Record for the chip
l_pErr = HWAS::theDeconfigGard().
createGardRecord(*l_pTarget, 0,
- HWAS::DeconfigGard::GARD_SEVERITY_FATAL);
+ HWAS::GARD_Fatal);
if (l_pErr)
{
@@ -801,7 +802,7 @@ public:
// valid PLID
l_pErr = HWAS::theDeconfigGard().
createGardRecord(*l_pTarget, 0,
- HWAS::DeconfigGard::GARD_SEVERITY_PREDICTIVE);
+ HWAS::GARD_Predictive);
if (l_pErr)
{
@@ -812,7 +813,7 @@ public:
// Create another GARD Record for the chip
l_pErr = HWAS::theDeconfigGard().
createGardRecord(*l_pTarget, 0,
- HWAS::DeconfigGard::GARD_SEVERITY_FATAL);
+ HWAS::GARD_Fatal);
if (l_pErr)
{
OpenPOWER on IntegriCloud