Subversion Repositories Kolibri OS

Rev

Rev 5078 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5078 Rev 5271
Line 54... Line 54...
54
#define PPSMC_STATEFLAG_AUTO_PULSE_SKIP    0x01
54
#define PPSMC_STATEFLAG_AUTO_PULSE_SKIP    0x01
55
#define PPSMC_STATEFLAG_POWERBOOST         0x02
55
#define PPSMC_STATEFLAG_POWERBOOST         0x02
56
#define PPSMC_STATEFLAG_DEEPSLEEP_THROTTLE 0x20
56
#define PPSMC_STATEFLAG_DEEPSLEEP_THROTTLE 0x20
57
#define PPSMC_STATEFLAG_DEEPSLEEP_BYPASS   0x40
57
#define PPSMC_STATEFLAG_DEEPSLEEP_BYPASS   0x40
Line -... Line 58...
-
 
58
 
-
 
59
#define FDO_MODE_HARDWARE 0
-
 
60
#define FDO_MODE_PIECE_WISE_LINEAR 1
-
 
61
 
-
 
62
enum FAN_CONTROL {
-
 
63
	FAN_CONTROL_FUZZY,
-
 
64
	FAN_CONTROL_TABLE
-
 
65
};
58
 
66
 
59
#define PPSMC_Result_OK             ((uint8_t)0x01)
67
#define PPSMC_Result_OK             ((uint8_t)0x01)
Line 60... Line 68...
60
#define PPSMC_Result_Failed         ((uint8_t)0xFF)
68
#define PPSMC_Result_Failed         ((uint8_t)0xFF)
Line 77... Line 85...
77
#define PPSMC_MSG_ResumeFromMinimumPower    ((uint8_t)0x52)
85
#define PPSMC_MSG_ResumeFromMinimumPower    ((uint8_t)0x52)
78
#define PPSMC_MSG_EnableCac                 ((uint8_t)0x53)
86
#define PPSMC_MSG_EnableCac                 ((uint8_t)0x53)
79
#define PPSMC_MSG_DisableCac                ((uint8_t)0x54)
87
#define PPSMC_MSG_DisableCac                ((uint8_t)0x54)
80
#define PPSMC_TDPClampingActive             ((uint8_t)0x59)
88
#define PPSMC_TDPClampingActive             ((uint8_t)0x59)
81
#define PPSMC_TDPClampingInactive           ((uint8_t)0x5A)
89
#define PPSMC_TDPClampingInactive           ((uint8_t)0x5A)
-
 
90
#define PPSMC_StartFanControl               ((uint8_t)0x5B)
-
 
91
#define PPSMC_StopFanControl                ((uint8_t)0x5C)
82
#define PPSMC_MSG_NoDisplay                 ((uint8_t)0x5D)
92
#define PPSMC_MSG_NoDisplay                 ((uint8_t)0x5D)
83
#define PPSMC_MSG_HasDisplay                ((uint8_t)0x5E)
93
#define PPSMC_MSG_HasDisplay                ((uint8_t)0x5E)
84
#define PPSMC_MSG_UVDPowerOFF               ((uint8_t)0x60)
94
#define PPSMC_MSG_UVDPowerOFF               ((uint8_t)0x60)
85
#define PPSMC_MSG_UVDPowerON                ((uint8_t)0x61)
95
#define PPSMC_MSG_UVDPowerON                ((uint8_t)0x61)
86
#define PPSMC_MSG_EnableULV                 ((uint8_t)0x62)
96
#define PPSMC_MSG_EnableULV                 ((uint8_t)0x62)
Line 104... Line 114...
104
#define PPSMC_MSG_VCEDPM_SetEnabledMask       ((uint16_t) 0x12E)
114
#define PPSMC_MSG_VCEDPM_SetEnabledMask       ((uint16_t) 0x12E)
105
#define PPSMC_MSG_ACPDPM_SetEnabledMask       ((uint16_t) 0x12F)
115
#define PPSMC_MSG_ACPDPM_SetEnabledMask       ((uint16_t) 0x12F)
106
#define PPSMC_MSG_SAMUDPM_SetEnabledMask      ((uint16_t) 0x130)
116
#define PPSMC_MSG_SAMUDPM_SetEnabledMask      ((uint16_t) 0x130)
107
#define PPSMC_MSG_MCLKDPM_ForceState          ((uint16_t) 0x131)
117
#define PPSMC_MSG_MCLKDPM_ForceState          ((uint16_t) 0x131)
108
#define PPSMC_MSG_MCLKDPM_NoForcedLevel       ((uint16_t) 0x132)
118
#define PPSMC_MSG_MCLKDPM_NoForcedLevel       ((uint16_t) 0x132)
-
 
119
#define PPSMC_MSG_Thermal_Cntl_Disable        ((uint16_t) 0x133)
109
#define PPSMC_MSG_Voltage_Cntl_Disable        ((uint16_t) 0x135)
120
#define PPSMC_MSG_Voltage_Cntl_Disable        ((uint16_t) 0x135)
110
#define PPSMC_MSG_PCIeDPM_Enable              ((uint16_t) 0x136)
121
#define PPSMC_MSG_PCIeDPM_Enable              ((uint16_t) 0x136)
111
#define PPSMC_MSG_PCIeDPM_Disable             ((uint16_t) 0x13d)
122
#define PPSMC_MSG_PCIeDPM_Disable             ((uint16_t) 0x13d)
112
#define PPSMC_MSG_ACPPowerOFF                 ((uint16_t) 0x137)
123
#define PPSMC_MSG_ACPPowerOFF                 ((uint16_t) 0x137)
113
#define PPSMC_MSG_ACPPowerON                  ((uint16_t) 0x138)
124
#define PPSMC_MSG_ACPPowerON                  ((uint16_t) 0x138)
Line 147... Line 158...
147
#define PPSMC_MSG_MCLKDPM_FreezeLevel         ((uint16_t) 0x18B)
158
#define PPSMC_MSG_MCLKDPM_FreezeLevel         ((uint16_t) 0x18B)
148
#define PPSMC_MSG_MCLKDPM_UnfreezeLevel       ((uint16_t) 0x18C)
159
#define PPSMC_MSG_MCLKDPM_UnfreezeLevel       ((uint16_t) 0x18C)
149
#define PPSMC_MSG_MASTER_DeepSleep_ON         ((uint16_t) 0x18F)
160
#define PPSMC_MSG_MASTER_DeepSleep_ON         ((uint16_t) 0x18F)
150
#define PPSMC_MSG_MASTER_DeepSleep_OFF        ((uint16_t) 0x190)
161
#define PPSMC_MSG_MASTER_DeepSleep_OFF        ((uint16_t) 0x190)
151
#define PPSMC_MSG_Remove_DC_Clamp             ((uint16_t) 0x191)
162
#define PPSMC_MSG_Remove_DC_Clamp             ((uint16_t) 0x191)
-
 
163
#define PPSMC_MSG_SetFanPwmMax                ((uint16_t) 0x19A)
-
 
164
 
-
 
165
#define PPSMC_MSG_ENABLE_THERMAL_DPM          ((uint16_t) 0x19C)
-
 
166
#define PPSMC_MSG_DISABLE_THERMAL_DPM         ((uint16_t) 0x19D)
Line 152... Line 167...
152
 
167
 
153
#define PPSMC_MSG_API_GetSclkFrequency        ((uint16_t) 0x200)
168
#define PPSMC_MSG_API_GetSclkFrequency        ((uint16_t) 0x200)
Line 154... Line 169...
154
#define PPSMC_MSG_API_GetMclkFrequency        ((uint16_t) 0x201)
169
#define PPSMC_MSG_API_GetMclkFrequency        ((uint16_t) 0x201)
155
 
170
 
156
/* TN */
171
/* TN */
157
#define PPSMC_MSG_DPM_Config                ((uint32_t) 0x102)
172
#define PPSMC_MSG_DPM_Config                ((uint32_t) 0x102)
158
#define PPSMC_MSG_DPM_ForceState            ((uint32_t) 0x104)
173
#define PPSMC_MSG_DPM_ForceState            ((uint32_t) 0x104)
159
#define PPSMC_MSG_PG_SIMD_Config            ((uint32_t) 0x108)
174
#define PPSMC_MSG_PG_SIMD_Config            ((uint32_t) 0x108)
160
#define PPSMC_MSG_DPM_N_LevelsDisabled      ((uint32_t) 0x112)
175
#define PPSMC_MSG_Thermal_Cntl_Enable       ((uint32_t) 0x10a)
161
#define PPSMC_MSG_Voltage_Cntl_Enable       ((uint32_t) 0x109)
176
#define PPSMC_MSG_Voltage_Cntl_Enable       ((uint32_t) 0x109)
-
 
177
#define PPSMC_MSG_VCEPowerOFF               ((uint32_t) 0x10e)
162
#define PPSMC_MSG_VCEPowerOFF               ((uint32_t) 0x10e)
178
#define PPSMC_MSG_VCEPowerON                ((uint32_t) 0x10f)
163
#define PPSMC_MSG_VCEPowerON                ((uint32_t) 0x10f)
179
#define PPSMC_MSG_DPM_N_LevelsDisabled      ((uint32_t) 0x112)
164
#define PPSMC_MSG_DCE_RemoveVoltageAdjustment   ((uint32_t) 0x11d)
180
#define PPSMC_MSG_DCE_RemoveVoltageAdjustment   ((uint32_t) 0x11d)
165
#define PPSMC_MSG_DCE_AllowVoltageAdjustment    ((uint32_t) 0x11e)
181
#define PPSMC_MSG_DCE_AllowVoltageAdjustment    ((uint32_t) 0x11e)
166
#define PPSMC_MSG_EnableBAPM                ((uint32_t) 0x120)
182
#define PPSMC_MSG_EnableBAPM                ((uint32_t) 0x120)