diff options
author | Shilpasri G Bhat <shilpa.bhat@linux.vnet.ibm.com> | 2017-12-15 12:51:00 +0530 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2018-02-21 11:58:19 +1100 |
commit | fa3494602a3e3effe9f222193453d67ccc0c0606 (patch) | |
tree | 730c36fc14fb245578927ca98f11287a16833cde /doc | |
parent | 7f4c8e8ce0b78ca046643d7f4f63d81f4fd11746 (diff) | |
download | skiboot-fa3494602a3e3effe9f222193453d67ccc0c0606.zip skiboot-fa3494602a3e3effe9f222193453d67ccc0c0606.tar.gz skiboot-fa3494602a3e3effe9f222193453d67ccc0c0606.tar.bz2 |
sensors: Support reading u64 sensor values
This patch adds support to read u64 sensor values. This also adds
changes to the core and the backend implementation code to make this
API as the base call. Host can use this new API to read sensors
upto 64bits.
This adds a list to store the pointer to the kernel u32 buffer, for
older kernels making async sensor u32 reads.
Signed-off-by: Shilpasri G Bhat <shilpa.bhat@linux.vnet.ibm.com>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/opal-api/opal-sensor-read-u64-158.rst | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/doc/opal-api/opal-sensor-read-u64-158.rst b/doc/opal-api/opal-sensor-read-u64-158.rst new file mode 100644 index 0000000..b75bcbc --- /dev/null +++ b/doc/opal-api/opal-sensor-read-u64-158.rst @@ -0,0 +1,16 @@ +OPAL_SENSOR_READ_U64 +==================== + +The OPAL sensor call to read sensor data of type u64. Unlike +opal_sensor_read which reads upto u32 this call can be used to +read values of sensors upto 64bits. The calling conventions and +return values are same as OPAL_SENSOR_READ. +(ref: doc/opal-api/opal-sensor-read-88.rst) + +Parameters +---------- +:: + + u32 sensor_handler + int token + u64 *sensor_data |