Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: MIT */
0002 #ifndef __NVBIOS_VPSTATE_H__
0003 #define __NVBIOS_VPSTATE_H__
0004 struct nvbios_vpstate_header {
0005     u32 offset;
0006 
0007     u8 version;
0008     u8 hlen;
0009     u8 ecount;
0010     u8 elen;
0011     u8 scount;
0012     u8 slen;
0013 
0014     u8 base_id;
0015     u8 boost_id;
0016     u8 tdp_id;
0017 };
0018 struct nvbios_vpstate_entry {
0019     u8  pstate;
0020     u16 clock_mhz;
0021 };
0022 int nvbios_vpstate_parse(struct nvkm_bios *, struct nvbios_vpstate_header *);
0023 int nvbios_vpstate_entry(struct nvkm_bios *, struct nvbios_vpstate_header *,
0024              u8 idx, struct nvbios_vpstate_entry *);
0025 #endif