WIP FPC-III support
[linux/fpc-iii.git] / drivers / gpu / drm / nouveau / include / nvkm / subdev / bios / power_budget.h
blob95306be163cc45af0dc5c27e19d5b28127fd81df
1 /* SPDX-License-Identifier: MIT */
2 #ifndef __NVBIOS_POWER_BUDGET_H__
3 #define __NVBIOS_POWER_BUDGET_H__
5 #include <nvkm/subdev/bios.h>
7 struct nvbios_power_budget_entry {
8 u32 min_w;
9 u32 avg_w;
10 u32 max_w;
13 struct nvbios_power_budget {
14 u32 offset;
15 u8 ver;
16 u8 hlen;
17 u8 elen;
18 u8 ecount;
19 u8 cap_entry;
22 int nvbios_power_budget_header(struct nvkm_bios *,
23 struct nvbios_power_budget *);
24 int nvbios_power_budget_entry(struct nvkm_bios *, struct nvbios_power_budget *,
25 u8 idx, struct nvbios_power_budget_entry *);
27 #endif