xref: /linux/drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/vmap.h (revision bcb63314e2c23f1ed622418b65f9409512659c73)
1 #ifndef __NVBIOS_VMAP_H__
2 #define __NVBIOS_VMAP_H__
3 struct nvbios_vmap {
4 	u8  max0;
5 	u8  max1;
6 	u8  max2;
7 };
8 
9 u32 nvbios_vmap_table(struct nvkm_bios *, u8 *ver, u8 *hdr, u8 *cnt, u8 *len);
10 u32 nvbios_vmap_parse(struct nvkm_bios *, u8 *ver, u8 *hdr, u8 *cnt, u8 *len,
11 		      struct nvbios_vmap *);
12 
13 struct nvbios_vmap_entry {
14 	u8  mode;
15 	u8  link;
16 	u32 min;
17 	u32 max;
18 	s32 arg[6];
19 };
20 
21 u32 nvbios_vmap_entry(struct nvkm_bios *, int idx, u8 *ver, u8 *len);
22 u32 nvbios_vmap_entry_parse(struct nvkm_bios *, int idx, u8 *ver, u8 *len,
23 			    struct nvbios_vmap_entry *);
24 #endif
25