]>
Commit | Line | Data |
---|---|---|
de3aaa66 BS |
1 | #ifndef __NVKM_VOLT_H__ |
2 | #define __NVKM_VOLT_H__ | |
c9c0ccae | 3 | #include <core/subdev.h> |
c9c0ccae | 4 | |
de3aaa66 | 5 | struct nvkm_volt { |
437b2296 | 6 | const struct nvkm_volt_func *func; |
6052dc57 | 7 | struct nvkm_subdev subdev; |
c9c0ccae | 8 | |
c9c0ccae BS |
9 | u8 vid_mask; |
10 | u8 vid_nr; | |
11 | struct { | |
12 | u32 uv; | |
13 | u8 vid; | |
14 | } vid[256]; | |
15 | }; | |
16 | ||
437b2296 BS |
17 | int nvkm_volt_get(struct nvkm_volt *); |
18 | int nvkm_volt_set_id(struct nvkm_volt *, u8 id, int condition); | |
c9c0ccae | 19 | |
437b2296 | 20 | int nv40_volt_new(struct nvkm_device *, int, struct nvkm_volt **); |
1531dbbb | 21 | int gk104_volt_new(struct nvkm_device *, int, struct nvkm_volt **); |
437b2296 | 22 | int gk20a_volt_new(struct nvkm_device *, int, struct nvkm_volt **); |
71757abf | 23 | int gm20b_volt_new(struct nvkm_device *, int, struct nvkm_volt **); |
c9c0ccae | 24 | #endif |