xref: /linux/drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/pmu.h (revision bfd5bb6f90af092aa345b15cd78143956a13c2a8)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __NVBIOS_PMU_H__
3 #define __NVBIOS_PMU_H__
4 struct nvbios_pmuT {
5 };
6 
7 u32 nvbios_pmuTe(struct nvkm_bios *, u8 *ver, u8 *hdr, u8 *cnt, u8 *len);
8 
9 struct nvbios_pmuE {
10 	u8  type;
11 	u32 data;
12 };
13 
14 u32 nvbios_pmuEe(struct nvkm_bios *, int idx, u8 *ver, u8 *hdr);
15 u32 nvbios_pmuEp(struct nvkm_bios *, int idx, u8 *ver, u8 *hdr,
16 		 struct nvbios_pmuE *);
17 
18 struct nvbios_pmuR {
19 	u32 boot_addr_pmu;
20 	u32 boot_addr;
21 	u32 boot_size;
22 	u32 code_addr_pmu;
23 	u32 code_addr;
24 	u32 code_size;
25 	u32 init_addr_pmu;
26 
27 	u32 data_addr_pmu;
28 	u32 data_addr;
29 	u32 data_size;
30 	u32 args_addr_pmu;
31 };
32 
33 bool nvbios_pmuRm(struct nvkm_bios *, u8 type, struct nvbios_pmuR *);
34 #endif
35