22 lines
684 B
C
22 lines
684 B
C
#ifndef __SYSFS_GPU_CONTROLS_H
|
|
#define __SYSFS_GPU_CONTROLS_H
|
|
|
|
extern bool has_sysfs_hwcontrols;
|
|
|
|
void sysfs_cleanup(int);
|
|
bool init_sysfs_hwcontrols(int nDevs);
|
|
float sysfs_gpu_temp(int gpu);
|
|
int sysfs_gpu_engineclock(int gpu);
|
|
int sysfs_gpu_memclock(int gpu);
|
|
float sysfs_gpu_vddc(int gpu);
|
|
int sysfs_gpu_activity(int gpu);
|
|
int sysfs_gpu_fanspeed(int gpu);
|
|
float sysfs_gpu_fanpercent(int gpu);
|
|
int sysfs_set_powertune(int gpu, int iPercentage);
|
|
|
|
bool sysfs_gpu_stats(int gpu, float *temp, int *engineclock, int *memclock, float *vddc,
|
|
int *activity, int *fanspeed, int *fanpercent, int *powertune);
|
|
void sysfs_gpu_autotune(int gpu, enum dev_enable *denable);
|
|
|
|
#endif
|