2014-04-03 16:12:35 +00:00
|
|
|
#ifndef ADL_H
|
|
|
|
#define ADL_H
|
|
|
|
|
2011-09-03 00:53:35 +00:00
|
|
|
#ifdef HAVE_ADL
|
2014-01-27 17:22:40 +00:00
|
|
|
extern bool adl_active;
|
|
|
|
extern bool opt_reorder;
|
|
|
|
extern int opt_hysteresis;
|
|
|
|
extern int opt_targettemp;
|
|
|
|
extern int opt_overheattemp;
|
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,
|
2014-06-09 16:20:38 +00:00
|
|
|
int *activity, int *fanspeed, int *fanpercent, int *powertune);
|
2012-01-30 10:15:47 +00:00
|
|
|
void change_gpusettings(int gpu);
|
2012-02-19 09:19:47 +00:00
|
|
|
void gpu_autotune(int gpu, enum dev_enable *denable);
|
2011-09-03 14:36:14 +00:00
|
|
|
void clear_adl(int nDevs);
|
2014-04-03 16:12:35 +00:00
|
|
|
|
2011-09-03 00:53:35 +00:00
|
|
|
#else /* HAVE_ADL */
|
2014-04-03 16:12:35 +00:00
|
|
|
|
2011-09-05 23:36:42 +00:00
|
|
|
#define adl_active (0)
|
2012-06-13 16:56:31 +00:00
|
|
|
static inline void init_adl(__maybe_unused int nDevs) {}
|
|
|
|
static inline void change_gpusettings(__maybe_unused int gpu) { }
|
|
|
|
static inline void clear_adl(__maybe_unused int nDevs) {}
|
2014-04-03 16:12:35 +00:00
|
|
|
|
|
|
|
#endif /* HAVE_ADL */
|
|
|
|
|
|
|
|
#endif /* ADL_H */
|