posix-clock: Fix return code on the poll method's error path
[linux/fpc-iii.git] / drivers / gpu / drm / nouveau / include / nvkm / subdev / volt.h
blobb458d046dba7057c29fb2b74255af64c1d4c17c5
1 #ifndef __NVKM_VOLT_H__
2 #define __NVKM_VOLT_H__
3 #include <core/subdev.h>
5 struct nvkm_volt {
6 const struct nvkm_volt_func *func;
7 struct nvkm_subdev subdev;
9 u8 vid_mask;
10 u8 vid_nr;
11 struct {
12 u32 uv;
13 u8 vid;
14 } vid[256];
17 int nvkm_volt_get(struct nvkm_volt *);
18 int nvkm_volt_set_id(struct nvkm_volt *, u8 id, int condition);
20 int nv40_volt_new(struct nvkm_device *, int, struct nvkm_volt **);
21 int gk104_volt_new(struct nvkm_device *, int, struct nvkm_volt **);
22 int gk20a_volt_new(struct nvkm_device *, int, struct nvkm_volt **);
23 #endif