blob: dbf5e3a66e3a6945f60cd61c75422d86bc059007 (
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
|
.. _opal-sensor-groups:
==================
OPAL Sensor Groups
==================
See :ref:`device-tree/ibm,opal/sensor-groups` for device tree layout.
.. _OPAL_SENSOR_GROUP_ENABLE:
OPAL_SENSOR_GROUP_ENABLE
========================
.. code-block:: c
#define OPAL_SENSOR_GROUP_ENABLE 163
int opal_sensor_group_enable(u32 group_hndl, int token, bool enable);
OPAL call to enable/disable the sensor group using a handle to identify
the type of sensor group provided in the device tree.
For example this call is used to disable/enable copying of sensor
group by OCC to main memory.
The call can be asynchronus, where the token parameter is used to wait
for the completion.
Returns
-------
:ref:`OPAL_SUCCESS`
Success
:ref:`OPAL_UNSUPPORTED`
No support to enable/disable the sensor group
:ref:`OPAL_HARDWARE`
Unable to procced due to the current hardware state
:ref:`OPAL_PERMISSION`
Hardware cannot take the request
:ref:`OPAL_ASYNC_COMPLETION`
Request was sent and an async completion message will be sent with
token and status of the request.
:ref:`OPAL_BUSY`
Previous request in progress
:ref:`OPAL_INTERNAL_ERROR`
Error in request response
:ref:`OPAL_TIMEOUT`
Timeout in request completion
.. _OPAL_SENSOR_GROUP_CLEAR:
OPAL_SENSOR_GROUP_CLEAR
=======================
.. code-block:: c
int opal_sensor_group_clear(u32 group_hndl, int token);
#define OPAL_SENSOR_GROUP_CLEAR 156
OPAL call to clear the sensor groups data using a handle to identify
the type of sensor group which is exported via DT.
The call can be asynchronus, where the token parameter is used to wait
for the completion.
Returns
-------
:ref:`OPAL_SUCCESS`
Success
:ref:`OPAL_UNSUPPORTED`
No support for clearing the sensor group
:ref:`OPAL_HARDWARE`
Unable to procced due to the current hardware state
:ref:`OPAL_PERMISSION`
Hardware cannot take the request
:ref:`OPAL_ASYNC_COMPLETION`
Request was sent and an async completion message will be sent with
token and status of the request.
:ref:`OPAL_BUSY`
Previous request in progress
:ref:`OPAL_INTERNAL_ERROR`
Error in request response
:ref:`OPAL_TIMEOUT`
Timeout in request completion
|