aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/core/include/subdev/bios/M0203.h
blob: 1f84d3612dd824fb1ddd37da58b853f3d884085e (plain) (blame)
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
28
29
30
31
#ifndef __NVBIOS_M0203_H__
#define __NVBIOS_M0203_H__

struct nvbios_M0203T {
#define M0203T_TYPE_RAMCFG 0x00
	u8  type;
	u16 pointer;
};

u32 nvbios_M0203Te(struct nouveau_bios *, u8 *ver, u8 *hdr, u8 *cnt, u8 *len);
u32 nvbios_M0203Tp(struct nouveau_bios *, u8 *ver, u8 *hdr, u8 *cnt, u8 *len,
		   struct nvbios_M0203T *);

struct nvbios_M0203E {
#define M0203E_TYPE_DDR2  0x0
#define M0203E_TYPE_DDR3  0x1
#define M0203E_TYPE_GDDR3 0x2
#define M0203E_TYPE_GDDR5 0x3
#define M0203E_TYPE_SKIP  0xf
	u8 type;
	u8 strap;
	u8 group;
};

u32 nvbios_M0203Ee(struct nouveau_bios *, int idx, u8 *ver, u8 *hdr);
u32 nvbios_M0203Ep(struct nouveau_bios *, int idx, u8 *ver, u8 *hdr,
		   struct nvbios_M0203E *);
u32 nvbios_M0203Em(struct nouveau_bios *, u8 ramcfg, u8 *ver, u8 *hdr,
		   struct nvbios_M0203E *);

#endif