summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
authorZane Shelley <zshelle@us.ibm.com>2015-02-10 17:18:45 -0600
committerA. Patrick Williams III <iawillia@us.ibm.com>2015-03-01 16:42:17 -0600
commitdaf669b47a3ebf6fe8f116a25cd026b11ba9e2c6 (patch)
tree19680d620c53e498c51455ede93d6d0e0bd07180 /src/include
parent1b488dc46eca2655066988c238c4ba059e7afe7c (diff)
downloadblackbird-hostboot-daf669b47a3ebf6fe8f116a25cd026b11ba9e2c6.tar.gz
blackbird-hostboot-daf669b47a3ebf6fe8f116a25cd026b11ba9e2c6.zip
PRD: Support to write FIR data to HOMER.
Change-Id: I07af0734bbcc90f1b8988f865532ddf281ce47a5 RTC: 119828 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/15972 Tested-by: Jenkins Server Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com> Reviewed-by: Prem Shanker Jha <premjha2@in.ibm.com> Reviewed-by: Christopher T. Phan <cphan@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/include')
-rwxr-xr-xsrc/include/usr/diag/prdf/common/prdf_service_codes.H3
-rw-r--r--src/include/usr/diag/prdf/prdfWriteHomerFirData.H40
2 files changed, 42 insertions, 1 deletions
diff --git a/src/include/usr/diag/prdf/common/prdf_service_codes.H b/src/include/usr/diag/prdf/common/prdf_service_codes.H
index 14c3386ba..1db5f69ec 100755
--- a/src/include/usr/diag/prdf/common/prdf_service_codes.H
+++ b/src/include/usr/diag/prdf/common/prdf_service_codes.H
@@ -66,6 +66,7 @@ enum ModuleId
PRDF_START_SCRUB = 0x0E,
PRDF_SYNC_SVC = 0x0F,
PRDF_CS_FIRDATA_READ = 0x10,
+ PRDF_CS_FIRDATA_WRITE = 0x11,
};
/******************************************************************************/
@@ -121,7 +122,7 @@ enum ReasonCode
// general code for user error or unsupported configuration
PRDF_INVALID_CONFIG = PRDF_COMP_ID | 0x82,
- PRDF_NULL_VALUE_RETURNED = PRDF_COMP_ID | 0x81,
+ PRDF_NULL_VALUE_RETURNED = PRDF_COMP_ID | 0x83,
PRDF_LAST_REASONCODE = PRDF_COMP_ID | 0xFF,
};
diff --git a/src/include/usr/diag/prdf/prdfWriteHomerFirData.H b/src/include/usr/diag/prdf/prdfWriteHomerFirData.H
new file mode 100644
index 000000000..eb98f96bd
--- /dev/null
+++ b/src/include/usr/diag/prdf/prdfWriteHomerFirData.H
@@ -0,0 +1,40 @@
+/* IBM_PROLOG_BEGIN_TAG */
+/* This is an automatically generated prolog. */
+/* */
+/* $Source: src/usr/diag/prdf/occ_firdata/prdfWriteHomerFirData.H $ */
+/* */
+/* OpenPOWER HostBoot Project */
+/* */
+/* Contributors Listed Below - COPYRIGHT 2015 */
+/* [+] 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 */
+
+#include <errl/errlentry.H>
+
+namespace PRDF
+{
+
+/** @brief Writes register lists and hardware config in the HOMER data for
+ * the OCC to capture in the event of a system checkstop.
+ * @param i_hBuf SRAM pointer to the beginning of the HOMER data buffer.
+ * @param i_hBufSize Total size of the HOMER data buffer.
+ * @return An error log on failure. NULL on success.
+ */
+errlHndl_t writeHomerFirData( uint8_t * i_hBuf, size_t i_hBufSize );
+
+}; // end namespace PRDF
+
OpenPOWER on IntegriCloud