2011-09-03 00:53:35 +00:00
|
|
|
#ifndef __ADL_H__
|
|
|
|
#define __ADL_H__
|
|
|
|
#ifdef HAVE_ADL
|
2011-09-05 23:36:42 +00:00
|
|
|
bool adl_active;
|
2011-09-03 23:43:53 +00:00
|
|
|
int opt_hysteresis;
|
2011-09-08 03:53:10 +00:00
|
|
|
const int opt_targettemp;
|
|
|
|
const int opt_overheattemp;
|
|
|
|
const int opt_cutofftemp;
|
2011-09-03 00:53:35 +00:00
|
|
|
void init_adl(int nDevs);
|
|
|
|
float gpu_temp(int gpu);
|
|
|
|
int gpu_engineclock(int gpu);
|
|
|
|
int gpu_memclock(int gpu);
|
|
|
|
float gpu_vddc(int gpu);
|
|
|
|
int gpu_activity(int gpu);
|
|
|
|
int gpu_fanspeed(int gpu);
|
2011-09-03 23:43:53 +00:00
|
|
|
int gpu_fanpercent(int gpu);
|
2011-09-04 00:19:29 +00:00
|
|
|
bool gpu_stats(int gpu, float *temp, int *engineclock, int *memclock, float *vddc,
|
2011-09-04 12:56:19 +00:00
|
|
|
int *activity, int *fanspeed, int *fanpercent, int *powertune);
|
2011-09-03 03:02:21 +00:00
|
|
|
void change_gpusettings(int gpu);
|
2011-09-07 00:43:26 +00:00
|
|
|
void gpu_autotune(int gpu, bool *enable);
|
2011-09-03 14:36:14 +00:00
|
|
|
void clear_adl(int nDevs);
|
2011-09-03 00:53:35 +00:00
|
|
|
#else /* HAVE_ADL */
|
2011-09-05 23:36:42 +00:00
|
|
|
#define adl_active (0)
|
2011-09-05 23:01:24 +00:00
|
|
|
static inline void init_adl(int nDevs) {}
|
|
|
|
static inline void change_gpusettings(int gpu) { }
|
|
|
|
static inline void clear_adl(int nDevs) {}
|
2011-09-03 00:53:35 +00:00
|
|
|
#endif
|
|
|
|
#endif
|