diff options
author | Brian Horton <brianh@linux.ibm.com> | 2013-10-09 19:35:22 -0500 |
---|---|---|
committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2013-11-13 10:56:52 -0600 |
commit | dc6883356b6269f01f40c4e688e2b27453314b78 (patch) | |
tree | f9ddc267a0857957a3e4cb3042eb86f475f329b0 /src/include/usr | |
parent | d0b46f99488db08b5d729ea1aa04d744d148d987 (diff) | |
download | talos-hostboot-dc6883356b6269f01f40c4e688e2b27453314b78.tar.gz talos-hostboot-dc6883356b6269f01f40c4e688e2b27453314b78.zip |
add plat calls to support RAT events in doGard.
Change-Id: If8f7b6829002ed746a3763a2292abe06751fb752
CMVC-Prereq: 900117
RTC: 87759
Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/6596
Tested-by: Jenkins Server
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/include/usr')
-rw-r--r-- | src/include/usr/hwas/common/deconfigGard.H | 25 | ||||
-rw-r--r-- | src/include/usr/hwas/common/hwasCommon.H | 17 |
2 files changed, 21 insertions, 21 deletions
diff --git a/src/include/usr/hwas/common/deconfigGard.H b/src/include/usr/hwas/common/deconfigGard.H index d321c0113..2c974c9fb 100644 --- a/src/include/usr/hwas/common/deconfigGard.H +++ b/src/include/usr/hwas/common/deconfigGard.H @@ -77,10 +77,15 @@ class DeconfigGard public: - enum - { - CLEAR_ALL_GARD_RECORDS = EMPTY_GARD_RECORDID, - GET_ALL_GARD_RECORDS = EMPTY_GARD_RECORDID, + // enums for events codes for Gard events + // used by platLogEvent() function + enum GardEvent + { // if GARD record: + GARD_APPLIED, // applied + MFG, // not applied due to MFG policy + PREDICTIVE, // not applied due to predictive policy + PREDICATE, // not applied due to predicate + GARD_NOT_APPLIED, // not applied for other reason }; // enums to indicated non-error reason for a targets deconfiguration. @@ -250,6 +255,18 @@ public: /** * @brief Platform specific function that + * logs a special trace event + * + * @param[in] i_pTarget Pointer to Target + * @param[in] i_eventType GardEvent enum + * + * @return errlHndl_t. Error log handle. + */ + errlHndl_t platLogEvent(const TARGETING::Target * const i_pTarget, + const GardEvent i_eventType); + + /** + * @brief Platform specific function that * Creates a GARD Record for a Target. * * @param[in] i_pTarget Pointer to Target to create GARD Record for. diff --git a/src/include/usr/hwas/common/hwasCommon.H b/src/include/usr/hwas/common/hwasCommon.H index 9a3b6f70f..277f13b0a 100644 --- a/src/include/usr/hwas/common/hwasCommon.H +++ b/src/include/usr/hwas/common/hwasCommon.H @@ -197,23 +197,6 @@ errlHndl_t platGetFCO( const TARGETING::TargetHandle_t &i_node, uint32_t &o_fco); - -/** - * @brief platform specific code to get the address in PNOR to read - * and write GARD data - * - * @param[out] o_addr pointer to where GARD data is in PNOR - * @param[out] o_size size (in bytes) of GARD data section in PNOR - * - * @return errlHndl_t valid errlHndl_t handle if there was an error - * NULL if no errors; - */ -errlHndl_t platGetGardPnorAddr(void *& o_addr, - uint64_t &o_size); - -const uint32_t EMPTY_GARD_RECORDID=0xFFFFFFFF; -const uint32_t EMPTY_GARD_VALUE=0xFF; - /** * @brief wrapper function to create new errlog in platform-specific manner. * |