xref: /linux/drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/cstep.h (revision e58e871becec2d3b04ed91c0c16fe8deac9c9dfa)
1 #ifndef __NVBIOS_CSTEP_H__
2 #define __NVBIOS_CSTEP_H__
3 u32 nvbios_cstepTe(struct nvkm_bios *,
4 		   u8 *ver, u8 *hdr, u8 *cnt, u8 *len, u8 *xnr, u8 *xsz);
5 
6 struct nvbios_cstepE {
7 	u8  pstate;
8 	u8  index;
9 };
10 
11 u32 nvbios_cstepEe(struct nvkm_bios *, int idx, u8 *ver, u8 *hdr);
12 u32 nvbios_cstepEp(struct nvkm_bios *, int idx, u8 *ver, u8 *hdr,
13 		   struct nvbios_cstepE *);
14 u32 nvbios_cstepEm(struct nvkm_bios *, u8 pstate, u8 *ver, u8 *hdr,
15 		   struct nvbios_cstepE *);
16 
17 struct nvbios_cstepX {
18 	u32 freq;
19 	u8  unkn[2];
20 	u8  voltage;
21 };
22 
23 u32 nvbios_cstepXe(struct nvkm_bios *, int idx, u8 *ver, u8 *hdr);
24 u32 nvbios_cstepXp(struct nvkm_bios *, int idx, u8 *ver, u8 *hdr,
25 		   struct nvbios_cstepX *);
26 #endif
27