diff options
author | Elizabeth Liner <eliner@us.ibm.com> | 2017-01-25 15:14:11 -0600 |
---|---|---|
committer | Daniel M. Crowell <dcrowell@us.ibm.com> | 2017-03-13 17:31:39 -0400 |
commit | a0c2aa6132a0b49975327f5aa9238d1d3e2b750b (patch) | |
tree | 4b76e80d107d928e772e3b366fa96a1de5b369df /src/include/usr/errl/errlsrc.H | |
parent | 46f410aa48c8ed062a7cb664ab84d65892c9902d (diff) | |
download | talos-hostboot-a0c2aa6132a0b49975327f5aa9238d1d3e2b750b.tar.gz talos-hostboot-a0c2aa6132a0b49975327f5aa9238d1d3e2b750b.zip |
Adding in support for PHYP SRC and all 9 words
Change-Id: I82c5b42c2167970437dae1323aa4aabed62068c9
RTC:158762
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/37514
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/include/usr/errl/errlsrc.H')
-rw-r--r-- | src/include/usr/errl/errlsrc.H | 44 |
1 files changed, 35 insertions, 9 deletions
diff --git a/src/include/usr/errl/errlsrc.H b/src/include/usr/errl/errlsrc.H index 33f2a4fb0..e08be1893 100644 --- a/src/include/usr/errl/errlsrc.H +++ b/src/include/usr/errl/errlsrc.H @@ -5,7 +5,9 @@ /* */ /* OpenPOWER HostBoot Project */ /* */ -/* COPYRIGHT International Business Machines Corp. 2011,2014 */ +/* Contributors Listed Below - COPYRIGHT 2011,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. */ @@ -82,6 +84,14 @@ private: uint64_t i_user1, uint64_t i_user2 ); + /** + * @brief Constructor. Pass in items destined for the primary SRC + * section in the error log. + * + * @param[in] i_srcWords SRC Words + * + */ + ErrlSrc( uint32_t i_srcWords[9]); /** @brief Destructor. */ ~ErrlSrc(); @@ -150,15 +160,31 @@ private: */ uint64_t aschex2bin(char c) const; + /* + * @brief Fill in the SRC words with current data. This is called + * at the beginning of flatten() + */ + void setSRCWords(); + + /* + * @brief Fill in the other class variables from the src words. + * This is only called if we go through the correct constructor + */ + void formatSRCWords(); + // Instance data - srcType_t iv_srcType : 8; // SRC type, the ?? in SRC ??xxxxxx - uint8_t iv_modId; // module ID - uint16_t iv_reasonCode; // reason code - epubSubSystem_t iv_ssid : 8 ; // subsystem type, the ?? in SRC xx??xxxx - uint64_t iv_user1; // user data 1 - uint64_t iv_user2; // user data 2 - bool iv_deconfig; // true if there is a deconfigure callout - bool iv_gard; // true if there is a gard callout + srcType_t iv_srcType : 8; // SRC type, the ?? in SRC ??xxxxxx + uint8_t iv_modId; // module ID + uint16_t iv_reasonCode; // reason code + epubSubSystem_t iv_ssid : 8 ; // subsystem type, the ?? in SRC xx??xxxx + uint64_t iv_user1; // user data 1 + uint64_t iv_user2; // user data 2 + bool iv_deconfig; // true if there is a deconfigure callout + bool iv_gard; // true if there is a gard callout + uint32_t iv_srcWords[9]; // filled in to match what PRD needs + + //when true, the error log is formed from the given src words. + bool iv_fromSRCWords; }; |