Home | History | Annotate | Line # | Download | only in bios
      1 /*	$NetBSD: vmap.h,v 1.3 2021/12/18 23:45:33 riastradh Exp $	*/
      2 
      3 /* SPDX-License-Identifier: MIT */
      4 #ifndef __NVBIOS_VMAP_H__
      5 #define __NVBIOS_VMAP_H__
      6 struct nvbios_vmap {
      7 	u8  max0;
      8 	u8  max1;
      9 	u8  max2;
     10 };
     11 
     12 u32 nvbios_vmap_table(struct nvkm_bios *, u8 *ver, u8 *hdr, u8 *cnt, u8 *len);
     13 u32 nvbios_vmap_parse(struct nvkm_bios *, u8 *ver, u8 *hdr, u8 *cnt, u8 *len,
     14 		      struct nvbios_vmap *);
     15 
     16 struct nvbios_vmap_entry {
     17 	u8  mode;
     18 	u8  link;
     19 	u32 min;
     20 	u32 max;
     21 	s32 arg[6];
     22 };
     23 
     24 u32 nvbios_vmap_entry(struct nvkm_bios *, int idx, u8 *ver, u8 *len);
     25 u32 nvbios_vmap_entry_parse(struct nvkm_bios *, int idx, u8 *ver, u8 *len,
     26 			    struct nvbios_vmap_entry *);
     27 #endif
     28