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