summaryrefslogtreecommitdiffstats
path: root/src/osx/smc.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/osx/smc.hpp')
-rw-r--r--src/osx/smc.hpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/osx/smc.hpp b/src/osx/smc.hpp
index 0aa02c1..87ed2ef 100644
--- a/src/osx/smc.hpp
+++ b/src/osx/smc.hpp
@@ -25,7 +25,9 @@
#define DATATYPE_SP78 "sp78"
// key values
-#define SMC_KEY_CPU_TEMP "TC0P"
+#define SMC_KEY_CPU_TEMP "TC0P" // proximity temp?
+#define SMC_KEY_CPU_DIODE_TEMP "TC0D" // diode temp?
+#define SMC_KEY_CPU_DIE_TEMP "TC0F" // die temp?
#define SMC_KEY_CPU1_TEMP "TC1C"
#define SMC_KEY_CPU2_TEMP "TC2C" // etc
#define SMC_KEY_FAN0_RPM_CUR "F0Ac"
@@ -85,6 +87,7 @@ namespace Cpu {
private:
kern_return_t SMCReadKey(UInt32Char_t key, SMCVal_t *val);
+ long long getSMCTemp(char *key);
kern_return_t SMCCall(int index, SMCKeyData_t *inputStructure, SMCKeyData_t *outputStructure);
io_connect_t conn;