2015-01-14 15:13:36 +10:00
|
|
|
#ifndef __NVKM_VOLT_H__
|
|
|
|
|
#define __NVKM_VOLT_H__
|
2013-02-08 09:34:56 +10:00
|
|
|
#include <core/subdev.h>
|
|
|
|
|
|
2015-01-14 15:13:36 +10:00
|
|
|
struct nvkm_volt {
|
2015-08-20 14:54:21 +10:00
|
|
|
const struct nvkm_volt_func *func;
|
2015-08-20 14:54:07 +10:00
|
|
|
struct nvkm_subdev subdev;
|
2013-02-08 09:34:56 +10:00
|
|
|
|
|
|
|
|
u8 vid_mask;
|
|
|
|
|
u8 vid_nr;
|
|
|
|
|
struct {
|
|
|
|
|
u32 uv;
|
|
|
|
|
u8 vid;
|
|
|
|
|
} vid[256];
|
|
|
|
|
};
|
|
|
|
|
|
2015-08-20 14:54:21 +10:00
|
|
|
int nvkm_volt_get(struct nvkm_volt *);
|
|
|
|
|
int nvkm_volt_set_id(struct nvkm_volt *, u8 id, int condition);
|
2013-02-08 09:34:56 +10:00
|
|
|
|
2015-08-20 14:54:21 +10:00
|
|
|
int nv40_volt_new(struct nvkm_device *, int, struct nvkm_volt **);
|
|
|
|
|
int gk20a_volt_new(struct nvkm_device *, int, struct nvkm_volt **);
|
2013-02-08 09:34:56 +10:00
|
|
|
#endif
|