38 lines
1.1 KiB
C
38 lines
1.1 KiB
C
#ifndef __SMC_H__
|
|
#define __SMC_H__ 1
|
|
|
|
#include <IOKit/IOKitLib.h>
|
|
|
|
#define AMBIENT_AIR_0 "TA0P"
|
|
#define AMBIENT_AIR_1 "TA1P"
|
|
#define CPU_0_DIODE "TC0D"
|
|
#define CPU_0_HEATSINK "TC0H"
|
|
#define CPU_0_PROXIMITY "TC0P"
|
|
#define ENCLOSURE_BASE_0 "TB0T"
|
|
#define ENCLOSURE_BASE_1 "TB1T"
|
|
#define ENCLOSURE_BASE_2 "TB2T"
|
|
#define ENCLOSURE_BASE_3 "TB3T"
|
|
#define GPU_0_DIODE "TG0D"
|
|
#define GPU_0_HEATSINK "TG0H"
|
|
#define GPU_0_PROXIMITY "TG0P"
|
|
#define HARD_DRIVE_BAY "TH0P"
|
|
#define MEMORY_SLOT_0 "TM0S"
|
|
#define MEMORY_SLOTS_PROXIMITY "TM0P"
|
|
#define NORTHBRIDGE "TN0H"
|
|
#define NORTHBRIDGE_DIODE "TN0D"
|
|
#define NORTHBRIDGE_PROXIMITY "TN0P"
|
|
#define THUNDERBOLT_0 "TI0P"
|
|
#define THUNDERBOLT_1 "TI1P"
|
|
#define WIRELESS_MODULE "TW0P"
|
|
|
|
kern_return_t gopsutil_v3_open_smc(void);
|
|
kern_return_t gopsutil_v3_close_smc(void);
|
|
double gopsutil_v3_get_temperature(char *);
|
|
|
|
#if (MAC_OS_X_VERSION_MIN_REQUIRED < 120000) // Before macOS 12 Monterey
|
|
#define kIOMainPortDefault kIOMasterPortDefault
|
|
#endif
|
|
|
|
|
|
#endif // __SMC_H__
|