#ifndef _AMD_THERMAL_H
#define _AMD_THERMAL_H
enum {
drvOpGetThermalType = B_DEVICE_OP_CODES_END + 10001,
};
struct amd_thermal_type {
uint32 current_temp;
};
#define AMD_SMN_17H_ADDR 0x60
#define AMD_SMN_17H_DATA 0x64
#define AMD_SMU_17H_THM 0x59800
#define AMD_SMU_17H_CCD_THM(x, y) (AMD_SMU_17H_THM + (x) + ((y) * 4))
#define GET_CURTMP(reg) (((reg) >> 21) & 0x7ff)
#define CURTMP_17H_RANGE_SELECTION (1 << 19)
#define CURTMP_17H_RANGE_ADJUST 490
#define CURTMP_CCD_VALID (1 << 11)
#define CURTMP_CCD_MASK 0x7ff
#endif