1 /* SPDX-License-Identifier: MIT */ 2 #ifndef __NVBIOS_VMAP_H__ 3 #define __NVBIOS_VMAP_H__ 4 struct nvbios_vmap { 5 u8 max0; 6 u8 max1; 7 u8 max2; 8 }; 9 10 u32 nvbios_vmap_table(struct nvkm_bios *, u8 *ver, u8 *hdr, u8 *cnt, u8 *len); 11 u32 nvbios_vmap_parse(struct nvkm_bios *, u8 *ver, u8 *hdr, u8 *cnt, u8 *len, 12 struct nvbios_vmap *); 13 14 struct nvbios_vmap_entry { 15 u8 mode; 16 u8 link; 17 u32 min; 18 u32 max; 19 s32 arg[6]; 20 }; 21 22 u32 nvbios_vmap_entry(struct nvkm_bios *, int idx, u8 *ver, u8 *len); 23 u32 nvbios_vmap_entry_parse(struct nvkm_bios *, int idx, u8 *ver, u8 *len, 24 struct nvbios_vmap_entry *); 25 #endif 26