aboutsummaryrefslogtreecommitdiff
path: root/include/skiboot.h
diff options
context:
space:
mode:
authorShilpasri G Bhat <shilpa.bhat@linux.vnet.ibm.com>2017-12-15 12:51:00 +0530
committerStewart Smith <stewart@linux.vnet.ibm.com>2018-02-21 11:58:19 +1100
commitfa3494602a3e3effe9f222193453d67ccc0c0606 (patch)
tree730c36fc14fb245578927ca98f11287a16833cde /include/skiboot.h
parent7f4c8e8ce0b78ca046643d7f4f63d81f4fd11746 (diff)
downloadskiboot-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 'include/skiboot.h')
-rw-r--r--include/skiboot.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/skiboot.h b/include/skiboot.h
index 2f81a05..d140ab2 100644
--- a/include/skiboot.h
+++ b/include/skiboot.h
@@ -352,7 +352,7 @@ extern int fake_nvram_write(uint32_t offset, void *src, uint32_t size);
/* OCC Inband Sensors */
extern void occ_sensors_init(void);
-extern int occ_sensor_read(u32 handle, u32 *data);
+extern int occ_sensor_read(u32 handle, u64 *data);
extern int occ_sensor_group_clear(u32 group_hndl, int token);
extern void occ_add_sensor_groups(struct dt_node *sg, u32 *phandles,
int nr_phandles, int chipid);