xref: /linux/drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/M0203.h (revision e0bf6c5ca2d3281f231c5f0c9bf145e9513644de)
1 #ifndef __NVBIOS_M0203_H__
2 #define __NVBIOS_M0203_H__
3 struct nvbios_M0203T {
4 #define M0203T_TYPE_RAMCFG 0x00
5 	u8  type;
6 	u16 pointer;
7 };
8 
9 u32 nvbios_M0203Te(struct nvkm_bios *, u8 *ver, u8 *hdr, u8 *cnt, u8 *len);
10 u32 nvbios_M0203Tp(struct nvkm_bios *, u8 *ver, u8 *hdr, u8 *cnt, u8 *len,
11 		   struct nvbios_M0203T *);
12 
13 struct nvbios_M0203E {
14 #define M0203E_TYPE_DDR2  0x0
15 #define M0203E_TYPE_DDR3  0x1
16 #define M0203E_TYPE_GDDR3 0x2
17 #define M0203E_TYPE_GDDR5 0x3
18 #define M0203E_TYPE_SKIP  0xf
19 	u8 type;
20 	u8 strap;
21 	u8 group;
22 };
23 
24 u32 nvbios_M0203Ee(struct nvkm_bios *, int idx, u8 *ver, u8 *hdr);
25 u32 nvbios_M0203Ep(struct nvkm_bios *, int idx, u8 *ver, u8 *hdr,
26 		   struct nvbios_M0203E *);
27 u32 nvbios_M0203Em(struct nvkm_bios *, u8 ramcfg, u8 *ver, u8 *hdr,
28 		   struct nvbios_M0203E *);
29 #endif
30