1 #ifndef __NVBIOS_VPSTATE_H__ 2 #define __NVBIOS_VPSTATE_H__ 3 struct nvbios_vpstate_header { 4 u32 offset; 5 6 u8 version; 7 u8 hlen; 8 u8 ecount; 9 u8 elen; 10 u8 scount; 11 u8 slen; 12 13 u8 base_id; 14 u8 boost_id; 15 u8 tdp_id; 16 }; 17 struct nvbios_vpstate_entry { 18 u8 pstate; 19 u16 clock_mhz; 20 }; 21 int nvbios_vpstate_parse(struct nvkm_bios *, struct nvbios_vpstate_header *); 22 int nvbios_vpstate_entry(struct nvkm_bios *, struct nvbios_vpstate_header *, 23 u8 idx, struct nvbios_vpstate_entry *); 24 #endif 25