aboutsummaryrefslogtreecommitdiff
path: root/include/fsp.h
diff options
context:
space:
mode:
authorCédric Le Goater <clg@fr.ibm.com>2015-03-09 21:56:12 +0100
committerStewart Smith <stewart@linux.vnet.ibm.com>2015-03-24 18:22:55 +1100
commit132e593400f959074f72cf066e3e99c8cd8d7b82 (patch)
tree1525fccc1dc2d5976ee2d1b22b4dcb2bc69d2666 /include/fsp.h
parent95098fccb85fdd8e5911884f5ef3744bcc17478a (diff)
downloadskiboot-132e593400f959074f72cf066e3e99c8cd8d7b82.zip
skiboot-132e593400f959074f72cf066e3e99c8cd8d7b82.tar.gz
skiboot-132e593400f959074f72cf066e3e99c8cd8d7b82.tar.bz2
core: add a platform op to read sensors
This patch introduces an initial framework to define a sensor_read operation per platform. It also proposes a few helper routines to work on the sensor 'handler' which identifies a sensor and attribute in the OPAL_SENSOR_READ call. Signed-off-by: Cédric Le Goater <clg@fr.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'include/fsp.h')
-rw-r--r--include/fsp.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/fsp.h b/include/fsp.h
index b192490..54b7060 100644
--- a/include/fsp.h
+++ b/include/fsp.h
@@ -783,6 +783,8 @@ extern void fsp_memory_err_init(void);
/* Sensor */
extern void fsp_init_sensor(void);
+extern int64_t fsp_opal_read_sensor(uint32_t sensor_hndl, int token,
+ uint32_t *sensor_data);
/* Diagnostic */
extern void fsp_init_diag(void);