diff options
| author | Mike Jones <mjjones@us.ibm.com> | 2013-05-24 19:35:47 -0500 |
|---|---|---|
| committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2013-06-06 10:16:08 -0500 |
| commit | 3d8ff73f2435dda59135776a751d692779b045bb (patch) | |
| tree | 2dbce7fa769f58b1317edeab7229c945f62ee794 /src/include/usr/hwpf/fapi/fapiErrorInfo.H | |
| parent | 960225b404132d567d096f75374ae13e74dfcea3 (diff) | |
| download | blackbird-hostboot-3d8ff73f2435dda59135776a751d692779b045bb.tar.gz blackbird-hostboot-3d8ff73f2435dda59135776a751d692779b045bb.zip | |
Allow HWPs to callout a bus
Change-Id: I587cfebfb6cb894f29ca38d0e4a068a016c333bf
RTC: 47147
Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/4702
Tested-by: Jenkins Server
Reviewed-by: Van H. Lee <vanlee@us.ibm.com>
Reviewed-by: Brian H. Horton <brianh@linux.ibm.com>
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/include/usr/hwpf/fapi/fapiErrorInfo.H')
| -rw-r--r-- | src/include/usr/hwpf/fapi/fapiErrorInfo.H | 59 |
1 files changed, 47 insertions, 12 deletions
diff --git a/src/include/usr/hwpf/fapi/fapiErrorInfo.H b/src/include/usr/hwpf/fapi/fapiErrorInfo.H index 6fa4d404d..e3570a92d 100644 --- a/src/include/usr/hwpf/fapi/fapiErrorInfo.H +++ b/src/include/usr/hwpf/fapi/fapiErrorInfo.H @@ -39,6 +39,7 @@ * structures into one * mjjones 09/19/2012 Replace FFDC type with ID * mjjones 03/22/2013 Support Procedure Callouts + * mjjones 05/20/2013 Support Bus Callouts */ #ifndef FAPIERRORINFO_H_ @@ -164,7 +165,37 @@ struct ErrorInfoProcedureCallout const ProcedureCallouts::ProcedureCallout i_procedure, const CalloutPriorities::CalloutPriority i_calloutPriority); + // The procedure to callout ProcedureCallouts::ProcedureCallout iv_procedure; + + // The callout priority + CalloutPriorities::CalloutPriority iv_calloutPriority; +}; + +/** + * @struct ErrorInfoBusCallout + * + * This struct contains a bus to callout + */ +struct ErrorInfoBusCallout +{ + /** + * @brief Constructor. + * + * @param[in] i_target1 Reference to target on one end of the bus + * @param[in] i_target2 Reference to target on other end of the bus + * @param[in] i_calloutPriority Priority of callout + */ + ErrorInfoBusCallout( + const Target & i_target1, + const Target & i_target2, + const CalloutPriorities::CalloutPriority i_calloutPriority); + + // The targets on each end of the bus to callout + Target iv_target1; + Target iv_target2; + + // The callout priority CalloutPriorities::CalloutPriority iv_calloutPriority; }; @@ -179,8 +210,16 @@ struct ErrorInfoCDG * @brief Constructor. * * @param[in] i_target Reference to the target to callout/deconfigure/GARD + * @param[in] i_callout True if Target should be called out + * @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 */ - ErrorInfoCDG(const Target & i_target); + ErrorInfoCDG(const Target & i_target, + const bool i_callout, + const bool i_deconfigure, + const bool i_gard, + const CalloutPriorities::CalloutPriority i_priority); // The target to callout/deconfigure/GARD Target iv_target; @@ -196,7 +235,6 @@ struct ErrorInfoCDG bool iv_gard; }; - /** * @struct ErrorInfo * @@ -210,16 +248,6 @@ struct ErrorInfo */ ~ErrorInfo(); - /** - * @brief Get a reference to the ErrorInfoCDG structure for the specified - * Target. If there is no existing structure then one is created - * - * @param[in] i_target Reference to Target to get the information for - * - * @return Reference to ErrorInfoCDG - */ - ErrorInfoCDG & getCreateErrorInfoCDG(const Target & i_target); - // Vector of FFDC Data std::vector<ErrorInfoFfdc *> iv_ffdcs; typedef std::vector<ErrorInfoFfdc *>::iterator ErrorInfoFfdcItr_t; @@ -232,6 +260,13 @@ struct ErrorInfo typedef std::vector<ErrorInfoProcedureCallout *>::const_iterator ErrorInfoProcedureCalloutCItr_t; + // Vector of buses to callout + std::vector<ErrorInfoBusCallout *> iv_busCallouts; + typedef std::vector<ErrorInfoBusCallout *>::iterator + ErrorInfoBusCalloutItr_t; + typedef std::vector<ErrorInfoBusCallout *>::const_iterator + ErrorInfoBusCalloutCItr_t; + // Vector of targets to callout/deconfigure/GARD std::vector<ErrorInfoCDG *> iv_CDGs; typedef std::vector<ErrorInfoCDG *>::iterator ErrorInfoCDGItr_t; |

