]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blame - drivers/gpu/drm/nouveau/include/nvkm/subdev/volt.h
Merge branch 'drm-next' of git://people.freedesktop.org/~airlied/linux
[mirror_ubuntu-artful-kernel.git] / drivers / gpu / drm / nouveau / include / nvkm / subdev / volt.h
CommitLineData
de3aaa66
BS
1#ifndef __NVKM_VOLT_H__
2#define __NVKM_VOLT_H__
c9c0ccae 3#include <core/subdev.h>
c9c0ccae 4
de3aaa66 5struct 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
17int nvkm_volt_get(struct nvkm_volt *);
18int nvkm_volt_set_id(struct nvkm_volt *, u8 id, int condition);
c9c0ccae 19
437b2296 20int nv40_volt_new(struct nvkm_device *, int, struct nvkm_volt **);
1531dbbb 21int gk104_volt_new(struct nvkm_device *, int, struct nvkm_volt **);
437b2296 22int gk20a_volt_new(struct nvkm_device *, int, struct nvkm_volt **);
71757abf 23int gm20b_volt_new(struct nvkm_device *, int, struct nvkm_volt **);
c9c0ccae 24#endif