summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/M0209.h
blob: c7ff8d9526e771d3dd21c30ccd1e246ec0b2a830 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#ifndef __NVBIOS_M0209_H__
#define __NVBIOS_M0209_H__
u32 nvbios_M0209Te(struct nvkm_bios *,
		   u8 *ver, u8 *hdr, u8 *cnt, u8 *len, u8 *snr, u8 *ssz);

struct nvbios_M0209E {
	u8 v00_40;
	u8 bits;
	u8 modulo;
	u8 v02_40;
	u8 v02_07;
	u8 v03;
};

u32 nvbios_M0209Ee(struct nvkm_bios *, int idx,
		   u8 *ver, u8 *hdr, u8 *cnt, u8 *len);
u32 nvbios_M0209Ep(struct nvkm_bios *, int idx,
		   u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_M0209E *);

struct nvbios_M0209S {
	u32 data[0x200];
};

u32 nvbios_M0209Se(struct nvkm_bios *, int ent, int idx, u8 *ver, u8 *hdr);
u32 nvbios_M0209Sp(struct nvkm_bios *, int ent, int idx, u8 *ver, u8 *hdr,
		   struct nvbios_M0209S *);
#endif