summaryrefslogtreecommitdiffstats
path: root/src/include/usr/diag
diff options
context:
space:
mode:
authorBrad Bishop <bradleyb@us.ibm.com>2012-03-27 15:34:19 -0500
committerA. Patrick Williams III <iawillia@us.ibm.com>2012-04-26 15:27:38 -0500
commit5cd51ece6aac9562c15e7366f8136ec7ba616f9b (patch)
treefec70a5867832322a4354bdc998bb9d1b61405ec /src/include/usr/diag
parentb30cea3aa6f56548bdbc8bf1fd0b790f598ca5aa (diff)
downloadtalos-hostboot-5cd51ece6aac9562c15e7366f8136ec7ba616f9b.tar.gz
talos-hostboot-5cd51ece6aac9562c15e7366f8136ec7ba616f9b.zip
State machine support
State machine functionaly to decide when and which pattern/workItem to run on each MBA as part of memory diagnostics. RTC: 38391 Change-Id: I1fa85bc343ca81f6a206df511307d53df0163cb4 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/817 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/include/usr/diag')
-rw-r--r--src/include/usr/diag/mdia/mdia.H32
-rw-r--r--src/include/usr/diag/mdia/mdiamevent.H52
2 files changed, 81 insertions, 3 deletions
diff --git a/src/include/usr/diag/mdia/mdia.H b/src/include/usr/diag/mdia/mdia.H
index 59a7132be..691a37d04 100644
--- a/src/include/usr/diag/mdia/mdia.H
+++ b/src/include/usr/diag/mdia/mdia.H
@@ -31,10 +31,36 @@
* @brief mdia component interface
*/
-class PrdfMdiaMessage;
-
namespace MDIA
{
+struct MaintCommandEvent;
+
+/**
+ * @brief MaintCommandEventType - maint command event types
+ */
+enum MaintCommandEventType
+{
+ /**
+ * @brief COMMAND_COMPLETE - command finished at end of last rank
+ */
+ COMMAND_COMPLETE,
+
+ /**
+ * @brief COMMAND_STOPPED - command finished at end of other rank
+ */
+ COMMAND_STOPPED,
+
+ /**
+ * @brief SKIP_MBA - stop testing mba
+ */
+ SKIP_MBA,
+
+ /**
+ * @brief RESET_TIMER - command done but expect long analysis
+ */
+ RESET_TIMER,
+};
+
/**
* @brief runStep istep dispatcher entry point.
*
@@ -67,6 +93,6 @@ errlHndl_t runStep(const TARGETING::TargetHandleList & i_targetList);
* @pre memory diagnostics ipl step in progress
* @post message processed
*/
-errlHndl_t processEvent(PrdfMdiaMessage & i_event);
+errlHndl_t processEvent(MaintCommandEvent & i_event);
}
#endif
diff --git a/src/include/usr/diag/mdia/mdiamevent.H b/src/include/usr/diag/mdia/mdiamevent.H
new file mode 100644
index 000000000..c4323493e
--- /dev/null
+++ b/src/include/usr/diag/mdia/mdiamevent.H
@@ -0,0 +1,52 @@
+// IBM_PROLOG_BEGIN_TAG
+// This is an automatically generated prolog.
+//
+// $Source: src/include/usr/diag/mdia/mdiamevent.H $
+//
+// IBM CONFIDENTIAL
+//
+// COPYRIGHT International Business Machines Corp. 2012
+//
+// p1
+//
+// Object Code Only (OCO) source materials
+// Licensed Internal Code Source Materials
+// IBM HostBoot Licensed Internal Code
+//
+// The source code for this program is not published or other-
+// wise divested of its trade secrets, irrespective of what has
+// been deposited with the U.S. Copyright Office.
+//
+// Origin: 30
+//
+// IBM_PROLOG_END
+#ifndef __MDIA_MDIAMEVENT_H
+#define __MDIA_MDIAMEVENT_H
+
+#include <diag/mdia/mdia.H>
+
+/**
+ * @file mdiamevent.H
+ * @brief mdia maint command event
+ */
+
+namespace MDIA
+{
+
+/**
+ * @brief MaintCommandEvent maint command event
+ */
+struct MaintCommandEvent
+{
+ /**
+ * @brief type the type associated with the event
+ */
+ MaintCommandEventType type;
+
+ /**
+ * @brief target the target associated with the event
+ */
+ TARGETING::TargetHandle_t target;
+};
+}
+#endif
OpenPOWER on IntegriCloud