summaryrefslogtreecommitdiffstats
path: root/doc/opal-api/opal-pci-get-power-state-120.rst
blob: 9e6f94b7084d7481bc5c901d79b1d51223c82d01 (plain)
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
26
27
28
29
30
OPAL_PCI_GET_POWER_STATE
========================

Get PCI slot power state

Parameter
---------

``uint64_t id``
  PCI slot ID

``uint64_t data``
  memory buffer pointer for power state

Calling
-------

Retrieve PCI slot's power state. The retrieved power state is stored
in buffer pointed by @data.

Return Codes
------------
OPAL_SUCCESS
  PCI slot's power state is retrieved successfully

OPAL_PARAMETER
  The indicated PCI slot isn't found

OPAL_UNSUPPORTED
  Power state retrieval not supported on the PCI slot
OpenPOWER on IntegriCloud