drm/nouveau/bios: add parsing of pmu image tables
[cascardo/linux.git] / drivers / gpu / drm / nouveau / core / include / subdev / bios / pmu.h
1 #ifndef __NVBIOS_PMU_H__
2 #define __NVBIOS_PMU_H__
3
4 struct nvbios_pmuT {
5 };
6
7 u32 nvbios_pmuTe(struct nouveau_bios *, u8 *ver, u8 *hdr, u8 *cnt, u8 *len);
8 u32 nvbios_pmuTp(struct nouveau_bios *, u8 *ver, u8 *hdr, u8 *cnt, u8 *len,
9                  struct nvbios_pmuT *);
10
11 struct nvbios_pmuE {
12         u8  type;
13         u32 data;
14 };
15
16 u32 nvbios_pmuEe(struct nouveau_bios *, int idx, u8 *ver, u8 *hdr);
17 u32 nvbios_pmuEp(struct nouveau_bios *, int idx, u8 *ver, u8 *hdr,
18                  struct nvbios_pmuE *);
19
20 struct nvbios_pmuR {
21         u32 boot_addr_pmu;
22         u32 boot_addr;
23         u32 boot_size;
24         u32 code_addr_pmu;
25         u32 code_addr;
26         u32 code_size;
27         u32 init_addr_pmu;
28
29         u32 data_addr_pmu;
30         u32 data_addr;
31         u32 data_size;
32         u32 args_addr_pmu;
33 };
34
35 bool nvbios_pmuRm(struct nouveau_bios *, u8 type, struct nvbios_pmuR *);
36
37 #endif