File: opal-cec-power-down-5.txt

package info (click to toggle)
skiboot 5.3.3-1
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 13,280 kB
  • ctags: 13,840
  • sloc: ansic: 77,199; asm: 1,002; sh: 997; cpp: 894; tcl: 408; makefile: 325; python: 166; pascal: 65
file content (25 lines) | stat: -rw-r--r-- 796 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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.