Blame view

kernel/linux-rt-4.4.41/drivers/gpu/drm/nouveau/include/nvkm/subdev/volt.h 545 Bytes
5113f6f70   김현기   kernel add
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
  #ifndef __NVKM_VOLT_H__
  #define __NVKM_VOLT_H__
  #include <core/subdev.h>
  
  struct nvkm_volt {
  	const struct nvkm_volt_func *func;
  	struct nvkm_subdev subdev;
  
  	u8 vid_mask;
  	u8 vid_nr;
  	struct {
  		u32 uv;
  		u8 vid;
  	} vid[256];
  };
  
  int nvkm_volt_get(struct nvkm_volt *);
  int nvkm_volt_set_id(struct nvkm_volt *, u8 id, int condition);
  
  int nv40_volt_new(struct nvkm_device *, int, struct nvkm_volt **);
  int gk104_volt_new(struct nvkm_device *, int, struct nvkm_volt **);
  int gk20a_volt_new(struct nvkm_device *, int, struct nvkm_volt **);
  #endif