From f1074af217829f4a678032f44e5bc29c26298a6a Mon Sep 17 00:00:00 2001 From: Sumit Kumar Date: Thu, 30 May 2019 12:34:23 -0500 Subject: Fapi_Infra:Add new member to structure ErrorInfoCDG Enabling addition of new member - gardType to the structure to pass on the type of gard when target gets garded. Change-Id: I4c14f8bab585bfbee71b43ee4353b9b243bf7469 CQ: SW462950 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/78076 Tested-by: FSP CI Jenkins Tested-by: Jenkins Server Tested-by: Hostboot CI Tested-by: PPE CI Tested-by: HWSV CI Reviewed-by: Manish K. Chowdhary Reviewed-by: Sumit Kumar Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/78093 Tested-by: Jenkins OP Build CI Tested-by: Jenkins OP HW Reviewed-by: Daniel M Crowell --- src/import/hwpf/fapi2/src/error_info.C | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'src/import/hwpf/fapi2/src') diff --git a/src/import/hwpf/fapi2/src/error_info.C b/src/import/hwpf/fapi2/src/error_info.C index a3ee3c8c6..861393eb5 100644 --- a/src/import/hwpf/fapi2/src/error_info.C +++ b/src/import/hwpf/fapi2/src/error_info.C @@ -118,18 +118,21 @@ ErrorInfoBusCallout::ErrorInfoBusCallout( /// @param[in] i_deconfigure True if Target should be deconfigured /// @param[in] i_gard True if Target should be GARDed /// @param[in] i_priority The priority of any callout +/// @param[in] i_gardType Type of GARD /// ErrorInfoCDG::ErrorInfoCDG( const Target& i_target, const bool i_callout, const bool i_deconfigure, const bool i_gard, - const CalloutPriorities::CalloutPriority i_priority): + const CalloutPriorities::CalloutPriority i_priority, + const GardTypes::GardType i_gardType): iv_target(i_target), iv_callout(i_callout), iv_calloutPriority(i_priority), iv_deconfigure(i_deconfigure), - iv_gard(i_gard) + iv_gard(i_gard), + iv_gardType(i_gardType) {} /// @@ -336,13 +339,15 @@ void ErrorInfoEntryTargetCDG::addErrorInfo( iv_deconfigure, iv_gard, static_cast - (iv_calloutPriority) + (iv_calloutPriority), + static_cast(iv_gardType) ); - FAPI_DBG("addErrorInfo: Adding target 0x%lx cdg (%d:%d:%d), pri: %d", + FAPI_INF("addErrorInfo: Adding target 0x%lx cdg (%d:%d:%d), pri: %d, gtyp: %d", ei->iv_target.get(), ei->iv_callout, ei->iv_deconfigure, - ei->iv_gard, ei->iv_calloutPriority); + ei->iv_gard, ei->iv_calloutPriority, + ei->iv_gardType); // Add the ErrorInfo i_info->iv_CDGs.push_back(std::shared_ptr(ei)); -- cgit v1.2.1