diff options
author | Chris Phan <cphan@us.ibm.com> | 2013-08-01 13:33:41 -0500 |
---|---|---|
committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2013-08-19 08:57:05 -0500 |
commit | 08d4d98624011c0a6523e0af660928be5ce112af (patch) | |
tree | 4f5c7aa42b23ebb62ebc79e55c683066a054aae9 | |
parent | 602320b582dd8a733a39d910ae5f7c3f1945f25d (diff) | |
download | talos-hostboot-08d4d98624011c0a6523e0af660928be5ce112af.tar.gz talos-hostboot-08d4d98624011c0a6523e0af660928be5ce112af.zip |
PRD: change to use new common hwas enums
- Update mboxSelMemMirroringCmd usage
Change-Id: Iddfd70a42a4ffff161c23955a6303b5c5cd1dc3f
RTC: 62867
Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/5668
Tested-by: Jenkins Server
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Reviewed-by: Zane Shelley <zshelle@us.ibm.com>
Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/5819
-rw-r--r-- | src/usr/diag/prdf/common/framework/service/prdfRasServices_common.C | 35 | ||||
-rwxr-xr-x | src/usr/diag/prdf/common/prdfEnums.H | 15 |
2 files changed, 17 insertions, 33 deletions
diff --git a/src/usr/diag/prdf/common/framework/service/prdfRasServices_common.C b/src/usr/diag/prdf/common/framework/service/prdfRasServices_common.C index e1e1358ef..eea40bbb1 100644 --- a/src/usr/diag/prdf/common/framework/service/prdfRasServices_common.C +++ b/src/usr/diag/prdf/common/framework/service/prdfRasServices_common.C @@ -50,7 +50,6 @@ #include <stdio.h> #else #include <srcisrc.H> - #include <GardExtInt.H> //for GARD_ErrorType #include <utilreg.H> //For registry functions #include <evenmgt.H> #include <rmgrBaseClientLib.H> //for rmgrSyncFile @@ -262,8 +261,8 @@ errlHndl_t ErrDataService::GenerateSrcPfa( ATTENTION_TYPE i_attnType, GardResolution::ErrorType prdGardErrType; HWSV::hwsvGardEnum gardState; // defined in src/hwsv/server/hwsvTypes.H - GARD_ErrorType gardErrType = GARD_NULL; - HWSV::hwsvDeconfigEnum deconfigState = HWSV::HWSV_NO_DECONFIG; + HWAS::GARD_ErrorType gardErrType = HWAS::GARD_NULL; + HWAS::DeconfigEnum deconfigState = HWAS::NO_DECONFIG; bool ReturnELog = false; bool ForceTerminate = false; @@ -308,7 +307,7 @@ errlHndl_t ErrDataService::GenerateSrcPfa( ATTENTION_TYPE i_attnType, // If LtntMck and last recoverable Stored use it. if ( latentMachineCheck && savedLatentSdc ) { - gardErrType = GARD_Func; + gardErrType = HWAS::GARD_Func; sdc = latentSdc; causeAttnPreviouslyReported = true; } @@ -336,7 +335,7 @@ errlHndl_t ErrDataService::GenerateSrcPfa( ATTENTION_TYPE i_attnType, { //set the sdc to the Saved SDC for UE sdc = sdcBuffer; - gardErrType = GARD_Func; + gardErrType = HWAS::GARD_Func; causeAttnPreviouslyReported = true; } } @@ -351,7 +350,7 @@ errlHndl_t ErrDataService::GenerateSrcPfa( ATTENTION_TYPE i_attnType, { //set the sdc to the Saved SDC for SUE sdc = sdcBuffer; - gardErrType = GARD_Func; + gardErrType = HWAS::GARD_Func; causeAttnPreviouslyReported = true; } } @@ -463,39 +462,39 @@ errlHndl_t ErrDataService::GenerateSrcPfa( ATTENTION_TYPE i_attnType, // If gardErrType was determined during latent/UE/SUE processing for Check Stop, // use that and not determine gardErrType from the sdc values. - if (gardErrType != GARD_Func) + if (gardErrType != HWAS::GARD_Func) { prdGardErrType = sdc.QueryGard(); switch (prdGardErrType) { case GardResolution::NoGard: gardState = HWSV::HWSV_NO_GARD; - gardErrType = GARD_NULL; + gardErrType = HWAS::GARD_NULL; break; case GardResolution::Predictive: - gardErrType = GARD_Predictive; + gardErrType = HWAS::GARD_Predictive; break; case GardResolution::Fatal: - gardErrType = GARD_Func; + gardErrType = HWAS::GARD_Func; break; case GardResolution::CheckStopOnlyGard: if (MACHINE_CHECK == i_attnType) { - gardErrType = GARD_Func; + gardErrType = HWAS::GARD_Func; } else { gardState = HWSV::HWSV_NO_GARD; - gardErrType = GARD_NULL; + gardErrType = HWAS::GARD_NULL; } break; case GardResolution::DeconfigNoGard: gardState = HWSV::HWSV_NO_GARD; - gardErrType = GARD_NULL; + gardErrType = HWAS::GARD_NULL; break; default: gardState = HWSV::HWSV_NO_GARD; - gardErrType = GARD_NULL; + gardErrType = HWAS::GARD_NULL; PRDF_DTRAC( PRDF_FUNC"Unknown prdGardErrType" ); break; } @@ -507,7 +506,7 @@ errlHndl_t ErrDataService::GenerateSrcPfa( ATTENTION_TYPE i_attnType, if ( sdc.QueryGard() == GardResolution::NoGard ) { gardState = HWSV::HWSV_NO_GARD; - gardErrType = GARD_NULL; + gardErrType = HWAS::GARD_NULL; prdGardErrType = GardResolution::NoGard; } else @@ -519,7 +518,7 @@ errlHndl_t ErrDataService::GenerateSrcPfa( ATTENTION_TYPE i_attnType, if (sdc.IsThermalEvent() && (MACHINE_CHECK != i_attnType) ) { //Force No Gard gardState = HWSV::HWSV_NO_GARD; - gardErrType = GARD_NULL; + gardErrType = HWAS::GARD_NULL; } //************************************************************** @@ -616,7 +615,7 @@ errlHndl_t ErrDataService::GenerateSrcPfa( ATTENTION_TYPE i_attnType, GardResolution::DeconfigNoGard == prdGardErrType ) ) { deferDeconfig = true; - deconfigState = HWSV::HWSV_DECONFIG; + deconfigState = HWAS::DECONFIG; // NOTE: deconfigSched is not actually used in Hostboot. Will remove in // the refactoring effort. } @@ -675,7 +674,7 @@ errlHndl_t ErrDataService::GenerateSrcPfa( ATTENTION_TYPE i_attnType, thiscallout = (*i).callout; if ( PRDcalloutData::TYPE_TARGET == thiscallout.getType() ) { - HWSV::hwsvDeconfigEnum thisDeconfigState = deconfigState; + HWAS::DeconfigEnum thisDeconfigState = deconfigState; #ifdef __HOSTBOOT_MODULE // Special case for Hostboot. diff --git a/src/usr/diag/prdf/common/prdfEnums.H b/src/usr/diag/prdf/common/prdfEnums.H index ee2caff46..3b2d24c7c 100755 --- a/src/usr/diag/prdf/common/prdfEnums.H +++ b/src/usr/diag/prdf/common/prdfEnums.H @@ -35,20 +35,6 @@ // fail. #include <hwas/common/hwasCallout.H> - // FIXME: RTC: 62867 will resolve this - namespace HWSV - { - enum - { - // hwsvDeconfigEnum - // mapping from HWSV enums to HB ones - // eventually these HWAS will make it way to fips - HWSV_NO_DECONFIG = HWAS::NO_DECONFIG, - HWSV_DECONFIG = HWAS::DECONFIG, - HWSV_DEFER_DECONFIG = HWAS::DELAYED_DECONFIG - }; - }; - // FIXME: remove these mapping once the enums are made common #define EPUB_PRC_ALL_PROCS HWAS::EPUB_PRC_ALL_PROCS #define EPUB_PRC_SP_CODE HWAS::EPUB_PRC_SP_CODE @@ -105,7 +91,6 @@ typedef uint32_t hwsvHCDBUpdate; typedef uint32_t hwsvTermEnum; typedef uint32_t hwsvGardEnum; - typedef uint32_t hwsvDeconfigEnum; typedef uint32_t hwsvDeconfigSchedule; enum |