1 #ifndef __NVBIOS_VOLT_H__ 2 #define __NVBIOS_VOLT_H__ 3 struct nvbios_volt { 4 u8 vidmask; 5 u32 min; 6 u32 max; 7 u32 base; 8 s16 step; 9 }; 10 11 u16 nvbios_volt_table(struct nvkm_bios *, u8 *ver, u8 *hdr, u8 *cnt, u8 *len); 12 u16 nvbios_volt_parse(struct nvkm_bios *, u8 *ver, u8 *hdr, u8 *cnt, u8 *len, 13 struct nvbios_volt *); 14 15 struct nvbios_volt_entry { 16 u32 voltage; 17 u8 vid; 18 }; 19 20 u16 nvbios_volt_entry(struct nvkm_bios *, int idx, u8 *ver, u8 *len); 21 u16 nvbios_volt_entry_parse(struct nvkm_bios *, int idx, u8 *ver, u8 *len, 22 struct nvbios_volt_entry *); 23 #endif 24