summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
Diffstat (limited to 'src/include')
-rw-r--r--src/include/usr/initservice/istepdispatcherif.H18
-rw-r--r--src/include/usr/ipmi/ipmiif.H10
2 files changed, 27 insertions, 1 deletions
diff --git a/src/include/usr/initservice/istepdispatcherif.H b/src/include/usr/initservice/istepdispatcherif.H
index 69cebf0a8..752f9ffff 100644
--- a/src/include/usr/initservice/istepdispatcherif.H
+++ b/src/include/usr/initservice/istepdispatcherif.H
@@ -70,6 +70,24 @@ bool isShutdownRequested ( void );
/**
* @brief This function is to be used by external code to tell
+ * this instance of istepdispatcher to stop executing steps
+ *
+ * @return Nothing
+ */
+void stopIpl( void );
+
+#ifdef CONFIG_BMC_IPMI
+/**
+ * @brief This function is to be used by external code to
+ * initate a system reboot via IPMI commands
+ *
+ * @return Nothing
+ */
+void requestReboot( void );
+#endif
+
+/**
+ * @brief This function is to be used by external code to tell
* this instance of istepdispatcher whether it should
* accept istep messages or not
*
diff --git a/src/include/usr/ipmi/ipmiif.H b/src/include/usr/ipmi/ipmiif.H
index 51bafb31d..09f0c4830 100644
--- a/src/include/usr/ipmi/ipmiif.H
+++ b/src/include/usr/ipmi/ipmiif.H
@@ -54,8 +54,11 @@ namespace IPMI
MSG_STATE_GRACEFUL_SHUTDOWN,
+ // initate a reboot request
+ MSG_STATE_INITATE_POWER_CYCLE,
+
// Used to check range. Leave as last.
- MSG_LAST_TYPE = MSG_STATE_GRACEFUL_SHUTDOWN,
+ MSG_LAST_TYPE = MSG_STATE_INITATE_POWER_CYCLE,
};
// chassis power off request types
@@ -345,6 +348,11 @@ namespace IPMI
*/
size_t max_buffer(void);
+ /**
+ * Tells ipmirp to start a graceful reboot sequence
+ *
+ */
+ void initiateReboot();
/**
* Structure to return BMC/IPMI information in
OpenPOWER on IntegriCloud