]> git.ipfire.org Git - thirdparty/kernel/linux.git/blame - drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/vpstate.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[thirdparty/kernel/linux.git] / drivers / gpu / drm / nouveau / include / nvkm / subdev / bios / vpstate.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
f26493d2
KH
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