diff options
author | Brian Horton <brianh@linux.ibm.com> | 2013-08-19 16:44:31 -0500 |
---|---|---|
committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2013-09-13 12:56:29 -0500 |
commit | 0b823dd9ef5579112cbbaae770028c75f7d19119 (patch) | |
tree | d15afcbcc31171c42b1915f45094f4101a0fb328 /src/usr/errl/plugins | |
parent | 97e007ba1b3c283bb7dcbd35e692385bb91fb5e6 (diff) | |
download | talos-hostboot-0b823dd9ef5579112cbbaae770028c75f7d19119.tar.gz talos-hostboot-0b823dd9ef5579112cbbaae770028c75f7d19119.zip |
add clock callout functionality
Change-Id: Id864e2baa0b69d0dfdbe9c9cfe56f7b4246269ab
RTC: 73480
Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/5842
Tested-by: Jenkins Server
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/errl/plugins')
-rw-r--r-- | src/usr/errl/plugins/errludcallout.H | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/usr/errl/plugins/errludcallout.H b/src/usr/errl/plugins/errludcallout.H index 8ea213d72..01d9000fd 100644 --- a/src/usr/errl/plugins/errludcallout.H +++ b/src/usr/errl/plugins/errludcallout.H @@ -73,6 +73,28 @@ public: switch (pData->type) { + case HWAS::CLOCK_CALLOUT: + { + switch (ntohl(pData->clockType)) + { +#define case_CLOCK_TYPE(_type) \ +case HWAS::_type: i_parser.PrintString( "Clock Type", #_type); break; + case_CLOCK_TYPE(TODCLK_TYPE) + case_CLOCK_TYPE(MEMCLK_TYPE) + case_CLOCK_TYPE(OSCREFCLK_TYPE) + case_CLOCK_TYPE(OSCPCICLK_TYPE) + default: + i_parser.PrintNumber( "Clock Type", "UNKNOWN: 0x%X", + ntohl(pData->clockType) ); + } // switch clockType + + // what follows the pData structure is one entity path + // print it out + uint8_t *l_ptr = reinterpret_cast<uint8_t *>(pData+1); + printEntityPath(l_ptr, i_parser, "Target"); + + break; // CLOCK_CALLOUT + } case HWAS::BUS_CALLOUT: { switch (ntohl(pData->busType)) @@ -144,6 +166,7 @@ case HWAS::_type: i_parser.PrintString( "GARD Error Type", #_type); break; break; // HW_CALLOUT } case HWAS::PROCEDURE_CALLOUT: + { i_parser.PrintString( "Callout type", "Procedure Callout"); switch (ntohl(pData->procedure)) { @@ -174,6 +197,7 @@ case HWAS::_type: i_parser.PrintString( "Procedure", #_type); break; break; } // switch procedure break; // PROCEDURE_CALLOUT + } default: i_parser.PrintNumber( "Callout type", "UNKNOWN: 0x%X", ntohl(pData->type) ); |