summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Geissler <andrewg@us.ibm.com>2017-03-16 14:15:31 -0500
committerPatrick Williams <patrick@stwcx.xyz>2017-03-28 13:07:32 +0000
commitd345966c9e9b32b19b95e3ad8e4f8992dfa80987 (patch)
treeb8c3b64b7206d7fe26ddd95d08af32a2579e0ccd
parent78ddb7af1ca8eb13dbfbb4913eb5139e1f4ac445 (diff)
downloadphosphor-dbus-interfaces-d345966c9e9b32b19b95e3ad8e4f8992dfa80987.tar.gz
phosphor-dbus-interfaces-d345966c9e9b32b19b95e3ad8e4f8992dfa80987.zip
Host interface commands
At times the OpenBMC needs to interface with the host. These are the supported commands to send to the host. Change-Id: I376716336af7b8f3fdfd1a385d7ed5c4e6ba058b Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
-rw-r--r--xyz/openbmc_project/Control/Host.errors.yaml4
-rw-r--r--xyz/openbmc_project/Control/Host.interface.yaml53
2 files changed, 57 insertions, 0 deletions
diff --git a/xyz/openbmc_project/Control/Host.errors.yaml b/xyz/openbmc_project/Control/Host.errors.yaml
new file mode 100644
index 0000000..c4918a6
--- /dev/null
+++ b/xyz/openbmc_project/Control/Host.errors.yaml
@@ -0,0 +1,4 @@
+#xyz.openbmc_project.Control.Host.CommandNotSupported
+- name: CommandNotSupported
+ description: Command is not supported
+
diff --git a/xyz/openbmc_project/Control/Host.interface.yaml b/xyz/openbmc_project/Control/Host.interface.yaml
new file mode 100644
index 0000000..52abf5f
--- /dev/null
+++ b/xyz/openbmc_project/Control/Host.interface.yaml
@@ -0,0 +1,53 @@
+description: >
+ Implement to provide host interface support
+
+methods:
+ - name: Execute
+ description: >
+ Execute the requested command by the caller. This command will be
+ processed in first in first out order. See the Command enum
+ description below for details on all supported commands.
+ parameters:
+ - name: command
+ type: enum[self.Command]
+ description: Requested command to execute against the host
+ errors:
+ - self.Error.CommandNotSupported
+
+signals:
+ - name: CommandComplete
+ description: >
+ Signal indicating that a Command has completed
+ properties:
+ - name: command
+ type: enum[self.Command]
+ description: Executed command
+ - name: result
+ type: enum[self.Result]
+ description: Result of the command execution
+
+enumerations:
+ - name: Command
+ description: >
+ The command to execute against the host
+ values:
+ - name: SoftOff
+ description: >
+ Host firmware should do a clean shutdown and request a chassis power
+ off to the BMC when complete. This command will return once the
+ command has been sent to the host.
+ - name: Heartbeat
+ description: >
+ Used to determine if the host is running and functional. This
+ command will return once the command has been sent to the host.
+ The response to the attention and the reading of the command
+ provides the needed functional information.
+
+ - name: Result
+ description: >
+ The result of the command execution
+ values:
+ - name: Success
+ description: Command execution was a success
+ - name: Failure
+ description: Command execution was a failure
OpenPOWER on IntegriCloud