github.com/isyscore/isc-gobase@v1.5.3-0.20231218061332-cbc7451899e9/system/host/smc_darwin.h (about) 1 #ifndef __SMC_H__ 2 #define __SMC_H__ 1 3 4 #include <IOKit/IOKitLib.h> 5 6 #define AMBIENT_AIR_0 "TA0P" 7 #define AMBIENT_AIR_1 "TA1P" 8 #define CPU_0_DIODE "TC0D" 9 #define CPU_0_HEATSINK "TC0H" 10 #define CPU_0_PROXIMITY "TC0P" 11 #define ENCLOSURE_BASE_0 "TB0T" 12 #define ENCLOSURE_BASE_1 "TB1T" 13 #define ENCLOSURE_BASE_2 "TB2T" 14 #define ENCLOSURE_BASE_3 "TB3T" 15 #define GPU_0_DIODE "TG0D" 16 #define GPU_0_HEATSINK "TG0H" 17 #define GPU_0_PROXIMITY "TG0P" 18 #define HARD_DRIVE_BAY "TH0P" 19 #define MEMORY_SLOT_0 "TM0S" 20 #define MEMORY_SLOTS_PROXIMITY "TM0P" 21 #define NORTHBRIDGE "TN0H" 22 #define NORTHBRIDGE_DIODE "TN0D" 23 #define NORTHBRIDGE_PROXIMITY "TN0P" 24 #define THUNDERBOLT_0 "TI0P" 25 #define THUNDERBOLT_1 "TI1P" 26 #define WIRELESS_MODULE "TW0P" 27 28 kern_return_t open_smc(void); 29 kern_return_t close_smc(void); 30 double get_temperature(char *); 31 32 #endif // __SMC_H__