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