diff options
author | Norman James <njames@us.ibm.com> | 2014-09-23 14:47:34 -0500 |
---|---|---|
committer | Andrew J. Geissler <andrewg@us.ibm.com> | 2014-12-18 09:13:52 -0600 |
commit | 492738975921b5eeab19573cc47a5536e867cb02 (patch) | |
tree | 5dbaa546c5f6b23231c75c377d99e02814ac01bb /src/usr/errl/errludcallout.C | |
parent | 9e91fa4f9e2ce76c458f8839e2f573c3cbc90797 (diff) | |
download | talos-hostboot-492738975921b5eeab19573cc47a5536e867cb02.tar.gz talos-hostboot-492738975921b5eeab19573cc47a5536e867cb02.zip |
Added callout interface for parts such as PNOR and SBE
Parts supported for callout are PNOR, SBE, VRM, GPIO, etc
Change-Id: I6734d58e8e44a7bfd71e87cc4f910bce9473f86d
RTC: 109945
CMVC-Coreq: 945677
Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/13547
Tested-by: Jenkins Server
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Reviewed-by: STEPHEN M. CPREK <smcprek@us.ibm.com>
Reviewed-by: Andrew J. Geissler <andrewg@us.ibm.com>
Diffstat (limited to 'src/usr/errl/errludcallout.C')
-rw-r--r-- | src/usr/errl/errludcallout.C | 37 |
1 files changed, 36 insertions, 1 deletions
diff --git a/src/usr/errl/errludcallout.C b/src/usr/errl/errludcallout.C index 380a901b0..2aa851d64 100644 --- a/src/usr/errl/errludcallout.C +++ b/src/usr/errl/errludcallout.C @@ -5,7 +5,9 @@ /* */ /* OpenPOWER HostBoot Project */ /* */ -/* COPYRIGHT International Business Machines Corp. 2012,2014 */ +/* Contributors Listed Below - COPYRIGHT 2012,2014 */ +/* [+] 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. */ @@ -70,6 +72,39 @@ ErrlUserDetailsCallout::ErrlUserDetailsCallout( } // Clock callout //------------------------------------------------------------------------------ +// Part callout +ErrlUserDetailsCallout::ErrlUserDetailsCallout( + const void *i_pTargetData, + uint32_t i_targetDataLength, + const HWAS::partTypeEnum i_partType, + const HWAS::callOutPriority i_priority, + const HWAS::DeconfigEnum i_deconfigState, + const HWAS::GARD_ErrorType i_gardErrorType) +{ + TRACDCOMP(g_trac_errl, "PartCallout entry"); + + // Set up ErrlUserDetails instance variables + iv_CompId = ERRL_COMP_ID; + iv_Version = 1; + iv_SubSection = ERRL_UDT_CALLOUT; + + uint32_t pDataLength = sizeof(HWAS::callout_ud_t) + i_targetDataLength; + HWAS::callout_ud_t *pData; + pData = reinterpret_cast<HWAS::callout_ud_t *> + (reallocUsrBuf(pDataLength)); + pData->type = HWAS::PART_CALLOUT; + pData->partType = i_partType; + pData->priority = i_priority; + pData->partDeconfigState = i_deconfigState; + pData->partGardErrorType = i_gardErrorType; + memcpy(pData + 1, i_pTargetData, i_targetDataLength); + + TRACDCOMP(g_trac_errl, "PartCallout exit; pDataLength %d", pDataLength); + +} // Part callout + + +//------------------------------------------------------------------------------ // Bus callout ErrlUserDetailsCallout::ErrlUserDetailsCallout( const void *i_pTarget1Data, |