summaryrefslogtreecommitdiffstats
path: root/src/include/usr/hwas/common/deconfigGard.H
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/usr/hwas/common/deconfigGard.H')
-rw-r--r--src/include/usr/hwas/common/deconfigGard.H16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/include/usr/hwas/common/deconfigGard.H b/src/include/usr/hwas/common/deconfigGard.H
index 6a9c3e479..c1288978e 100644
--- a/src/include/usr/hwas/common/deconfigGard.H
+++ b/src/include/usr/hwas/common/deconfigGard.H
@@ -228,6 +228,19 @@ public:
errlHndl_t deconfigureTarget(TARGETING::Target & i_target,
const uint32_t i_errlEid,
bool i_evenAtRunTime = false);
+
+ /**
+ * @brief Get the Deconfigure Status
+ *
+ * This function returns a uint32_t counter that can be used to indicate
+ * whether Targets have been deconfigured. The counter wraps, so the user
+ * should just check for != to determine if a deconfigure has happened
+ * since the last time this was called.
+ *
+ * @return uint32_t 'counter' of deconfigure events
+ */
+ uint32_t getDeconfigureStatus();
+
/**
* @brief Registers a Deferred Deconfigure
*
@@ -568,6 +581,9 @@ private:
*/
bool iv_XABusEndpointDeconfigured;
+ // counter, used to tell if there were deconfigure 'events'.
+ uint32_t iv_deconfigCount;
+
}; // DeconfigGard
HWAS_DECLARE_SINGLETON(HWAS::DeconfigGard,theDeconfigGardSingleton);
OpenPOWER on IntegriCloud