summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
authorPrachi Gupta <pragupta@us.ibm.com>2017-06-14 12:05:23 -0500
committerMatthew A. Ploetz <maploetz@us.ibm.com>2017-06-30 09:55:49 -0400
commitd25c0aa86167d8b61c406bfca80e22372c6f1e38 (patch)
treeea57000688fe2b27f2196dfc0bb8b55079b98fa6 /src/include
parentd0a8f18502ab3d62238aa4945068cd7c79d75ebc (diff)
downloadtalos-hostboot-d25c0aa86167d8b61c406bfca80e22372c6f1e38.tar.gz
talos-hostboot-d25c0aa86167d8b61c406bfca80e22372c6f1e38.zip
handle pibrc correctly from sbe fifo
Change-Id: I3f0ba875a47fdd00758c65b7982f300f0e05cd14 RTC: 170433 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/41847 Reviewed-by: Martin Gloff <mgloff@us.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Reviewed-by: Matthew A. Ploetz <maploetz@us.ibm.com>
Diffstat (limited to 'src/include')
-rw-r--r--src/include/usr/sbeio/sbe_ffdc_parser.H7
-rw-r--r--src/include/usr/xscom/piberror.H6
2 files changed, 11 insertions, 2 deletions
diff --git a/src/include/usr/sbeio/sbe_ffdc_parser.H b/src/include/usr/sbeio/sbe_ffdc_parser.H
index 5ca5dbcc8..a18d8a1ad 100644
--- a/src/include/usr/sbeio/sbe_ffdc_parser.H
+++ b/src/include/usr/sbeio/sbe_ffdc_parser.H
@@ -26,6 +26,8 @@
#ifndef __SBEFFDC_H
#define __SBEFFDC_H
+#include <xscom/piberror.H>
+
/**
* @file sbe_ffdc_parser.H
* @brief SBE FFDC package parser
@@ -94,6 +96,11 @@ class SbeFFDCParser
*/
uint32_t getPackageLength(uint8_t i_index);
+ /**
+ * @brief: converts fapi2 rc to pib rc
+ * @param[in]: i_index index in the ffdc package
+ */
+ PIB::PibError getPibRc (uint8_t i_index);
private:
/**
diff --git a/src/include/usr/xscom/piberror.H b/src/include/usr/xscom/piberror.H
index 5640c6ce1..ede858f9b 100644
--- a/src/include/usr/xscom/piberror.H
+++ b/src/include/usr/xscom/piberror.H
@@ -5,7 +5,9 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
-/* COPYRIGHT International Business Machines Corp. 2013,2014 */
+/* Contributors Listed Below - COPYRIGHT 2013,2017 */
+/* [+] 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. */
@@ -31,7 +33,7 @@ namespace PIB
/**
* @brief Enumerations for the each PIB error possbility
*/
- enum
+ enum PibError
{
PIB_NO_ERROR = 0,//0b000,
PIB_RESOURCE_OCCUPIED = 1,//0b001,
OpenPOWER on IntegriCloud