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