Home | History | Annotate | Line # | Download | only in nvfw
      1 /*	$NetBSD: fw.h,v 1.2 2021/12/18 23:45:32 riastradh Exp $	*/
      2 
      3 /* SPDX-License-Identifier: MIT */
      4 #ifndef __NVFW_FW_H__
      5 #define __NVFW_FW_H__
      6 #include <core/os.h>
      7 struct nvkm_subdev;
      8 
      9 struct nvfw_bin_hdr {
     10 	u32 bin_magic;
     11 	u32 bin_ver;
     12 	u32 bin_size;
     13 	u32 header_offset;
     14 	u32 data_offset;
     15 	u32 data_size;
     16 };
     17 
     18 const struct nvfw_bin_hdr *nvfw_bin_hdr(struct nvkm_subdev *, const void *);
     19 
     20 struct nvfw_bl_desc {
     21 	u32 start_tag;
     22 	u32 dmem_load_off;
     23 	u32 code_off;
     24 	u32 code_size;
     25 	u32 data_off;
     26 	u32 data_size;
     27 };
     28 
     29 const struct nvfw_bl_desc *nvfw_bl_desc(struct nvkm_subdev *, const void *);
     30 #endif
     31