volt.h 613 B

123456789101112131415161718192021222324
  1. #ifndef __NVKM_VOLT_H__
  2. #define __NVKM_VOLT_H__
  3. #include <core/subdev.h>
  4. struct nvkm_volt {
  5. const struct nvkm_volt_func *func;
  6. struct nvkm_subdev subdev;
  7. u8 vid_mask;
  8. u8 vid_nr;
  9. struct {
  10. u32 uv;
  11. u8 vid;
  12. } vid[256];
  13. };
  14. int nvkm_volt_get(struct nvkm_volt *);
  15. int nvkm_volt_set_id(struct nvkm_volt *, u8 id, int condition);
  16. int nv40_volt_new(struct nvkm_device *, int, struct nvkm_volt **);
  17. int gk104_volt_new(struct nvkm_device *, int, struct nvkm_volt **);
  18. int gk20a_volt_new(struct nvkm_device *, int, struct nvkm_volt **);
  19. int gm20b_volt_new(struct nvkm_device *, int, struct nvkm_volt **);
  20. #endif