summaryrefslogtreecommitdiffstats
path: root/src/usr/isteps/plugins/fapi2PlatUdParserHwp.H
diff options
context:
space:
mode:
authorMatt Derksen <v2cibmd@us.ibm.com>2016-07-21 15:04:02 -0500
committerDaniel M. Crowell <dcrowell@us.ibm.com>2016-08-02 17:40:56 -0400
commit40247b31479f4c3d784e1a15a2b1b2b2375fb1df (patch)
tree8059ff885462bdb2dbbeea767906ee62286057c1 /src/usr/isteps/plugins/fapi2PlatUdParserHwp.H
parent5320654ff092cedeac94b65cfd70b88de72807ec (diff)
downloadtalos-hostboot-40247b31479f4c3d784e1a15a2b1b2b2375fb1df.tar.gz
talos-hostboot-40247b31479f4c3d784e1a15a2b1b2b2375fb1df.zip
Parse HWP errors
Change-Id: I2c12557c60cb903d8ab0e79d31074c2d249fd846 RTC:151336 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/27340 Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Richard J. Knight <rjknight@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/usr/isteps/plugins/fapi2PlatUdParserHwp.H')
-rw-r--r--src/usr/isteps/plugins/fapi2PlatUdParserHwp.H132
1 files changed, 132 insertions, 0 deletions
diff --git a/src/usr/isteps/plugins/fapi2PlatUdParserHwp.H b/src/usr/isteps/plugins/fapi2PlatUdParserHwp.H
new file mode 100644
index 000000000..d1e1c657a
--- /dev/null
+++ b/src/usr/isteps/plugins/fapi2PlatUdParserHwp.H
@@ -0,0 +1,132 @@
+/* IBM_PROLOG_BEGIN_TAG */
+/* This is an automatically generated prolog. */
+/* */
+/* $Source: src/usr/isteps/plugins/fapi2PlatUdParserHwp.H $ */
+/* */
+/* OpenPOWER HostBoot Project */
+/* */
+/* Contributors Listed Below - COPYRIGHT 2016 */
+/* [+] International Business Machines Corp. */
+/* */
+/* */
+/* Licensed under the Apache License, Version 2.0 (the "License"); */
+/* you may not use this file except in compliance with the License. */
+/* You may obtain a copy of the License at */
+/* */
+/* http://www.apache.org/licenses/LICENSE-2.0 */
+/* */
+/* Unless required by applicable law or agreed to in writing, software */
+/* distributed under the License is distributed on an "AS IS" BASIS, */
+/* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or */
+/* implied. See the License for the specific language governing */
+/* permissions and limitations under the License. */
+/* */
+/* IBM_PROLOG_END_TAG */
+#ifndef FAPI2PLATUDPARSERHWP_H
+#define FAPI2PLATUDPARSERHWP_H
+
+/**
+ * @file fapi2PlatUdParserHwp.H
+ *
+ * Defines ErrlUserDetailsParser subclasses to parse the different types of HWP
+ * FFDC added as user detail data to an error log.
+ *
+ * Note that there are no corresponding ErrlUserDetails subclasses to create
+ * the user detail data because it is created by the platform neutral
+ * fapi2::ReturnCode
+ */
+#include "errluserdetails.H"
+#include "hbfwPlatHwpErrParser.H"
+#include "hbfwPlatHwpErrParserFFDC.H"
+
+namespace fapi2
+{
+
+/**
+ * @class HbfwPlatUserDetailsParserHwpRcValue
+ *
+ * Parses the HWP RcValue in an error log.
+ */
+class HbfwPlatUserDetailsParserHwpRcValue : public ERRORLOG::ErrlUserDetailsParser
+{
+public:
+ /**
+ * @brief Constructor
+ */
+ HbfwPlatUserDetailsParserHwpRcValue() {}
+
+ /**
+ * @brief Destructor
+ */
+ virtual ~HbfwPlatUserDetailsParserHwpRcValue() {}
+
+ /**
+ * @brief Parses the HWP RcValue in an error log.
+ *
+ * @param i_version Version of the data
+ * @param i_parse ErrlUsrParser object for outputting information
+ * @param i_pBuffer Pointer to buffer containing detail data
+ * @param i_buflen Length of the buffer
+ */
+ virtual void parse(errlver_t i_version,
+ ErrlUsrParser & i_parser,
+ void * i_pBuffer,
+ const uint32_t i_buflen) const
+ {
+ // Call a FAPI generated function to parse the return code
+ hbfwParseHwpRc(i_parser, i_pBuffer, i_buflen);
+ }
+
+private:
+ // Disabled
+ HbfwPlatUserDetailsParserHwpRcValue(const HbfwPlatUserDetailsParserHwpRcValue &);
+ HbfwPlatUserDetailsParserHwpRcValue & operator=(
+ const HbfwPlatUserDetailsParserHwpRcValue &);
+};
+
+/**
+ * @class HbfwPlatUserDetailsParserHwpTarget
+ *
+ * Parses HWP FFDC in an error log.
+ */
+class HbfwPlatUserDetailsParserHwpFfdc : public ERRORLOG::ErrlUserDetailsParser
+{
+public:
+ /**
+ * @brief Constructor
+ */
+ HbfwPlatUserDetailsParserHwpFfdc() {}
+
+ /**
+ * @brief Destructor
+ */
+ virtual ~HbfwPlatUserDetailsParserHwpFfdc() {}
+
+ /**
+ * @brief Parses HWP FFDC in an error log.
+ *
+ * @param i_version Version of the data
+ * @param i_parse ErrlUsrParser object for outputting information
+ * @param i_pBuffer Pointer to buffer containing detail data
+ * @param i_buflen Length of the buffer
+ */
+ virtual void parse(errlver_t i_version,
+ ErrlUsrParser & i_parser,
+ void * i_pBuffer,
+ const uint32_t i_buflen) const
+ {
+ // Call a FAPI generated function to parse the FFDC
+ hbfwParseHwpFfdc(i_parser, i_pBuffer, i_buflen);
+ }
+
+private:
+ // Disabled
+ HbfwPlatUserDetailsParserHwpFfdc(const HbfwPlatUserDetailsParserHwpFfdc &);
+ HbfwPlatUserDetailsParserHwpFfdc & operator=(
+ const HbfwPlatUserDetailsParserHwpFfdc &);
+};
+
+}
+
+#endif
+
OpenPOWER on IntegriCloud