summaryrefslogtreecommitdiffstats
path: root/src/include/usr/hwas/hwasPlatError.H
diff options
context:
space:
mode:
authorBrian Horton <brianh@linux.ibm.com>2012-05-30 15:18:33 -0500
committerA. Patrick Williams III <iawillia@us.ibm.com>2012-06-11 15:22:24 -0500
commitfffa10e2abde6ee52b9d3dec77ca669867625d87 (patch)
tree433d15df7034cddb0f200e3528129aec67755a51 /src/include/usr/hwas/hwasPlatError.H
parent13bb136b9d635d3737ae270d8dc9c0924a5495cf (diff)
downloadblackbird-hostboot-fffa10e2abde6ee52b9d3dec77ca669867625d87.tar.gz
blackbird-hostboot-fffa10e2abde6ee52b9d3dec77ca669867625d87.zip
HWAS code common between hostboot and FSP
Corrections to common and hostboot platform-specific code to make this code work for both hostboot and FSP. In addition, make printing of HUID consistant with other previous changes. Also, added hwas/common files to fsp distribution tools so that they are included in the fsp.tar for common usage. Change-Id: Ia761606ab446dd794bf8e112430cc2e072f46991 RTC: 39793 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/1130 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/include/usr/hwas/hwasPlatError.H')
-rw-r--r--src/include/usr/hwas/hwasPlatError.H60
1 files changed, 60 insertions, 0 deletions
diff --git a/src/include/usr/hwas/hwasPlatError.H b/src/include/usr/hwas/hwasPlatError.H
new file mode 100644
index 000000000..be382e290
--- /dev/null
+++ b/src/include/usr/hwas/hwasPlatError.H
@@ -0,0 +1,60 @@
+/* IBM_PROLOG_BEGIN_TAG
+ * This is an automatically generated prolog.
+ *
+ * $Source: src/include/usr/hwas/hwasPlatError.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 __HWAS_PLAT_ERROR_H
+#define __HWAS_PLAT_ERROR_H
+
+/**
+* @file hwas/hwasPlatError.H
+*
+* @brief Adapts platform neutral error log requests to the platform
+*/
+
+//******************************************************************************
+// Includes
+//******************************************************************************
+
+// Include the platform specific errlentry.H file and pick up the platform
+// specific errlHndlt_t typedef. This is enough for common code to use pass
+// errlHndl_t pointers around and check for NULL
+#include <errl/errlmanager.H>
+
+namespace HWAS
+{
+
+namespace COMMON
+{
+/**
+* @brief Import the ::ERRORLOG namespace into the ::HWAS:COMMON
+* namespace. This allows all the common hwas code to use the
+* same namespacing yet directly invoke platform specific error log
+* support. Since nothing else is declared in the namespace, there is
+* no danger of a namespace collision.
+*/
+using namespace ::ERRORLOG;
+
+} // End namespace COMMON
+
+} // End namespace HWAS
+
+#endif // __HWAS_PLAT_ERROR_H
OpenPOWER on IntegriCloud