Squashed backup commit (no shallow-clone history issues) of xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2 branch, upstream commit 9eece662e) plus all fixes applied to get everpal_defconfig building clean against a modern (GCC 15.2.0) toolchain -- see the previous commit message on the lineage-23.2 branch (also in this repo history is not available here since this is a squashed snapshot; full incremental history lives in the local DL380 checkout and the upstream GitHub remote). Upstream: https://github.com/xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2)
45 lines
994 B
C
45 lines
994 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef __NVBIOS_PERF_H__
|
|
#define __NVBIOS_PERF_H__
|
|
u32 nvbios_perf_table(struct nvkm_bios *, u8 *ver, u8 *hdr,
|
|
u8 *cnt, u8 *len, u8 *snr, u8 *ssz);
|
|
|
|
struct nvbios_perfE {
|
|
u8 pstate;
|
|
u8 fanspeed;
|
|
u8 voltage;
|
|
u32 core;
|
|
u32 shader;
|
|
u32 memory;
|
|
u32 vdec;
|
|
u32 disp;
|
|
u32 script;
|
|
u8 pcie_speed;
|
|
u8 pcie_width;
|
|
};
|
|
|
|
u32 nvbios_perf_entry(struct nvkm_bios *, int idx,
|
|
u8 *ver, u8 *hdr, u8 *cnt, u8 *len);
|
|
u32 nvbios_perfEp(struct nvkm_bios *, int idx,
|
|
u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_perfE *);
|
|
|
|
struct nvbios_perfS {
|
|
union {
|
|
struct {
|
|
u32 freq;
|
|
} v40;
|
|
};
|
|
};
|
|
|
|
u32 nvbios_perfSe(struct nvkm_bios *, u32 data, int idx,
|
|
u8 *ver, u8 *hdr, u8 cnt, u8 len);
|
|
u32 nvbios_perfSp(struct nvkm_bios *, u32 data, int idx,
|
|
u8 *ver, u8 *hdr, u8 cnt, u8 len, struct nvbios_perfS *);
|
|
|
|
struct nvbios_perf_fan {
|
|
u32 pwm_divisor;
|
|
};
|
|
|
|
int nvbios_perf_fan_parse(struct nvkm_bios *, struct nvbios_perf_fan *);
|
|
#endif
|