diff options
Diffstat (limited to 'hw/thermal.h')
-rw-r--r-- | hw/thermal.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/hw/thermal.h b/hw/thermal.h index 08dd056..8eef95f 100644 --- a/hw/thermal.h +++ b/hw/thermal.h @@ -32,6 +32,13 @@ */ #define THERMAL_HARDWARE_DEVICE_VERSION MAKE_VERSION(0,1) +typedef enum +{ + DEVICE_THERMAL_AP, /* AP temperature */ + DEVICE_THERMAL_CP, /* CP temperature */ + DEVICE_THERMAL_BATTERY, /* Battery temperature */ +} device_thermal_e; + struct thermal_info { int temp; int adc; @@ -43,7 +50,7 @@ struct thermal_device { struct hw_common common; /* Get thermal state */ - int (*get_info)(struct thermal_info *info); + int (*get_info)(device_thermal_e type, struct thermal_info *info); /* Register thermal event */ int (*register_changed_event)(ThermalUpdated updated_cb, void *data); |