aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorStewart Smith <stewart@linux.vnet.ibm.com>2015-06-11 09:35:21 +1000
committerStewart Smith <stewart@linux.vnet.ibm.com>2015-06-11 09:35:21 +1000
commitaefd845cbafcf7764b19476789243aaf756fa78d (patch)
tree5da0eae3b7e0f7cbb20ee2b879b56481bcb8d189 /doc
parent50adb3cecdf21c351cf7b9559733c00a1facdf38 (diff)
downloadskiboot-aefd845cbafcf7764b19476789243aaf756fa78d.zip
skiboot-aefd845cbafcf7764b19476789243aaf756fa78d.tar.gz
skiboot-aefd845cbafcf7764b19476789243aaf756fa78d.tar.bz2
Add basic OPAL_CEC_POWER_DOWN documentation
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'doc')
-rw-r--r--doc/opal-api/opal-cec-power-down-5.txt25
1 files changed, 25 insertions, 0 deletions
diff --git a/doc/opal-api/opal-cec-power-down-5.txt b/doc/opal-api/opal-cec-power-down-5.txt
new file mode 100644
index 0000000..d18912a
--- /dev/null
+++ b/doc/opal-api/opal-cec-power-down-5.txt
@@ -0,0 +1,25 @@
+OPAL_CEC_POWER_DOWN
+-------------------
+
+#define OPAL_CEC_POWER_DOWN 5
+
+int64 opal_cec_power_down(uint64 request)
+
+Arguments:
+
+ uint64 request values as follows:
+ 0 - Power down normally
+ 1 - Power down immediately
+
+This OPAL call requests OPAL to power down the system. The exact difference
+between a normal and immediate shutdown is platform specific.
+
+Current Linux kernels just use power down normally (0). It is valid for a
+platform to only support some types of power down operations.
+
+Return Values:
+OPAL_SUCCESS: the power down was updated successful
+OPAL_BUSY: unable to power down, try again later
+OPAL_PARAMETER: a parameter was incorrect
+OPAL_INTERNAL_ERROR: hal code sent incorrect data to hardware device
+OPAL_UNSUPPORTED: this platform does not support being powered off.