OPAL Sensor Groups¶
See ibm,opal/sensor-groups for device tree layout.
OPAL_SENSOR_GROUP_ENABLE¶
#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¶
- OPAL_SUCCESS
- Success 
- OPAL_UNSUPPORTED
- No support to enable/disable the sensor group 
- OPAL_HARDWARE
- Unable to procced due to the current hardware state 
- OPAL_PERMISSION
- Hardware cannot take the request 
- OPAL_ASYNC_COMPLETION
- Request was sent and an async completion message will be sent with token and status of the request. 
- OPAL_BUSY
- Previous request in progress 
- OPAL_INTERNAL_ERROR
- Error in request response 
- OPAL_TIMEOUT
- Timeout in request completion 
OPAL_SENSOR_GROUP_CLEAR¶
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¶
- OPAL_SUCCESS
- Success 
- OPAL_UNSUPPORTED
- No support for clearing the sensor group 
- OPAL_HARDWARE
- Unable to procced due to the current hardware state 
- OPAL_PERMISSION
- Hardware cannot take the request 
- OPAL_ASYNC_COMPLETION
- Request was sent and an async completion message will be sent with token and status of the request. 
- OPAL_BUSY
- Previous request in progress 
- OPAL_INTERNAL_ERROR
- Error in request response 
- OPAL_TIMEOUT
- Timeout in request completion