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;
|
2012-01-30 04:21:14 +00:00
|
|
|
bool opt_reorder;
|
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;
|
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);
|
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);
|
2011-09-03 00:53:35 +00:00
|
|
|
#else /* HAVE_ADL */
|
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) {}
|
2011-09-03 00:53:35 +00:00
|
|
|
#endif
|
|
|
|
#endif
|