diff options
author | Mike Jones <mjjones@us.ibm.com> | 2011-11-17 12:40:13 -0600 |
---|---|---|
committer | MIKE J. JONES <mjjones@us.ibm.com> | 2011-11-22 13:06:40 -0600 |
commit | d4c1403e772f0f8364d34bca3da8dbca5e9b7f08 (patch) | |
tree | 0f396ec22cb4e5381093ad8168ec313fcb11eb9c /src/include/usr | |
parent | ec713997f4b43ebfbea50c37330198208cf5a471 (diff) | |
download | talos-hostboot-d4c1403e772f0f8364d34bca3da8dbca5e9b7f08.tar.gz talos-hostboot-d4c1403e772f0f8364d34bca3da8dbca5e9b7f08.zip |
HWAS: Deconfigure Targets with GARD Records
Change-Id: I4131019c1f14d5038ace45c7e692994f135348ac
Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/501
Tested-by: Jenkins Server
Reviewed-by: MIKE J. JONES <mjjones@us.ibm.com>
Diffstat (limited to 'src/include/usr')
-rw-r--r-- | src/include/usr/hwas/deconfigGard.H | 42 | ||||
-rw-r--r-- | src/include/usr/hwas/hwas_reasoncodes.H | 7 |
2 files changed, 22 insertions, 27 deletions
diff --git a/src/include/usr/hwas/deconfigGard.H b/src/include/usr/hwas/deconfigGard.H index 25de080fc..c3254f50a 100644 --- a/src/include/usr/hwas/deconfigGard.H +++ b/src/include/usr/hwas/deconfigGard.H @@ -165,14 +165,13 @@ public: * Targets by association. Any errors deconfiguring targets are committed * and the function continues. The only errors returned are usage errors. * - * @param[in] i_target Reference to Target to deconfigure. - * @param[in] i_pErr Pointer to error log that will shortly be committed - * by the caller. + * @param[in] i_target Reference to Target to deconfigure. + * @param[in] i_errlPlid Error log PLID to store in Deconfigure Record. * * @return errlHndl_t. Error log handle. */ errlHndl_t deconfigureTarget(TARGETING::Target & i_target, - errlHndl_t i_pErr); + const uint32_t i_errlPlid); /** * @brief Creates a GARD Record for a Target. @@ -185,14 +184,13 @@ public: * Any error creating the GARD Record will be returned to the user. * * @param[in] i_target Reference to Target to create GARD Record for. - * @param[in] i_pErr Pointer to error log that will shortly be committed - * by the caller. + * @param[in] i_errlPlid Error log PLID to store in GARD Record. * @param[in] i_severity Severity of the GARD Record. * * @return errlHndl_t. Error log handle. */ errlHndl_t createGardRecord(const TARGETING::Target & i_target, - errlHndl_t i_pErr, + const uint32_t i_errlPlid, const GardSeverity i_severity); /** @@ -302,12 +300,11 @@ private: /** * @brief Deconfigures Targets by association. * - * @param[in] i_target Reference to base Target. - * @param[in] i_pErr Pointer to error log that will shortly be committed - * by the caller. + * @param[in] i_target Reference to base Target. + * @param[in] i_errlPlid Error log PLID to store in Deconfigure Record. */ void _deconfigureByAssoc(TARGETING::Target & i_target, - errlHndl_t i_pErr); + const uint32_t i_errlPlid); /** * @brief Deconfigures a Target. @@ -315,13 +312,12 @@ private: * This will Deconfigure the Target (set state to non-functional, do any * Deconfigure actions and create a Deconfigure Record). * - * @param[in] i_target Reference to Target to deconfigure. - * @param[in] i_pErr Pointer to error log that will shortly be committed - * by the caller. - * @param[in] i_cause Deconfigure cause. + * @param[in] i_target Reference to Target to deconfigure. + * @param[in] i_errlPlid Error log PLID to store in Deconfigure Record. + * @param[in] i_cause Deconfigure cause. */ void _deconfigureTarget(TARGETING::Target & i_target, - errlHndl_t i_pErr, + const uint32_t i_errlPlid, const DeconfigCause i_cause); /** @@ -334,13 +330,12 @@ private: /** * @brief Creates a Deconfigure Record * - * @param[in] i_target Reference to Target to create record for. - * @param[in] i_pErr Pointer to error log that will shortly be committed - * by the caller. - * @param[in] i_cause Deconfigure cause. + * @param[in] i_target Reference to Target to create record for. + * @param[in] i_errlPlid Error log PLID to store in Deconfigure Record. + * @param[in] i_cause Deconfigure cause. */ void _createDeconfigureRecord(const TARGETING::Target & i_target, - errlHndl_t i_pErr, + const uint32_t i_errlPlid, const DeconfigCause i_cause); public: @@ -374,14 +369,13 @@ private: * @brief Creates a GARD Record for a Target. * * @param[in] i_target Reference to Target to create GARD Record for. - * @param[in] i_pErr Pointer to error log that will shortly be committed - * by the caller. + * @param[in] i_errlPlid Error log PLID to store in GARD Record. * @param[in] i_severity Severity of the GARD Record. * * @return errlHndl_t. Error log handle. */ errlHndl_t _createGardRecord(const TARGETING::Target & i_target, - errlHndl_t i_pErr, + const uint32_t i_errlPlid, const GardSeverity i_severity); /** diff --git a/src/include/usr/hwas/hwas_reasoncodes.H b/src/include/usr/hwas/hwas_reasoncodes.H index 6e2b34858..a7ad56aae 100644 --- a/src/include/usr/hwas/hwas_reasoncodes.H +++ b/src/include/usr/hwas/hwas_reasoncodes.H @@ -34,9 +34,10 @@ namespace HWAS enum HwasReasonCode { - RC_TARGET_NOT_DECONFIGURABLE = HWAS_COMP_ID | 0x01, - RC_TARGET_NOT_GARDABLE = HWAS_COMP_ID | 0x02, - RC_GARD_REPOSITORY_FULL = HWAS_COMP_ID | 0x03, + RC_TARGET_NOT_DECONFIGURABLE = HWAS_COMP_ID | 0x01, + RC_TARGET_NOT_GARDABLE = HWAS_COMP_ID | 0x02, + RC_GARD_REPOSITORY_FULL = HWAS_COMP_ID | 0x03, + RC_TARGET_NOT_FOUND_FOR_GARD_RECORD = HWAS_COMP_ID | 0x04, }; }; |