Merge tag 'block-5.11-2021-01-10' of git://git.kernel.dk/linux-block
[linux/fpc-iii.git] / drivers / gpu / drm / nouveau / include / nvkm / subdev / bios / vpstate.h
blobdf94e26f873af1f0fb61206518c4974c013a41e0
1 /* SPDX-License-Identifier: MIT */
2 #ifndef __NVBIOS_VPSTATE_H__
3 #define __NVBIOS_VPSTATE_H__
4 struct nvbios_vpstate_header {
5 u32 offset;
7 u8 version;
8 u8 hlen;
9 u8 ecount;
10 u8 elen;
11 u8 scount;
12 u8 slen;
14 u8 base_id;
15 u8 boost_id;
16 u8 tdp_id;
18 struct nvbios_vpstate_entry {
19 u8 pstate;
20 u16 clock_mhz;
22 int nvbios_vpstate_parse(struct nvkm_bios *, struct nvbios_vpstate_header *);
23 int nvbios_vpstate_entry(struct nvkm_bios *, struct nvbios_vpstate_header *,
24 u8 idx, struct nvbios_vpstate_entry *);
25 #endif