Home | History | Annotate | Line # | Download | only in bios
      1 /*	$NetBSD: pcir.h,v 1.3 2021/12/18 23:45:33 riastradh Exp $	*/
      2 
      3 /* SPDX-License-Identifier: MIT */
      4 #ifndef __NVBIOS_PCIR_H__
      5 #define __NVBIOS_PCIR_H__
      6 struct nvbios_pcirT {
      7 	u16 vendor_id;
      8 	u16 device_id;
      9 	u8  class_code[3];
     10 	u32 image_size;
     11 	u16 image_rev;
     12 	u8  image_type;
     13 	bool last;
     14 };
     15 
     16 u32 nvbios_pcirTe(struct nvkm_bios *, u32, u8 *ver, u16 *hdr);
     17 u32 nvbios_pcirTp(struct nvkm_bios *, u32, u8 *ver, u16 *hdr,
     18 		  struct nvbios_pcirT *);
     19 #endif
     20