Home | History | Annotate | Line # | Download | only in nvfw
      1  1.1  riastrad /*	$NetBSD: hs.h,v 1.2 2021/12/18 23:45:32 riastradh Exp $	*/
      2  1.1  riastrad 
      3  1.1  riastrad /* SPDX-License-Identifier: MIT */
      4  1.1  riastrad #ifndef __NVFW_HS_H__
      5  1.1  riastrad #define __NVFW_HS_H__
      6  1.1  riastrad #include <core/os.h>
      7  1.1  riastrad struct nvkm_subdev;
      8  1.1  riastrad 
      9  1.1  riastrad struct nvfw_hs_header {
     10  1.1  riastrad 	u32 sig_dbg_offset;
     11  1.1  riastrad 	u32 sig_dbg_size;
     12  1.1  riastrad 	u32 sig_prod_offset;
     13  1.1  riastrad 	u32 sig_prod_size;
     14  1.1  riastrad 	u32 patch_loc;
     15  1.1  riastrad 	u32 patch_sig;
     16  1.1  riastrad 	u32 hdr_offset;
     17  1.1  riastrad 	u32 hdr_size;
     18  1.1  riastrad };
     19  1.1  riastrad 
     20  1.1  riastrad const struct nvfw_hs_header *nvfw_hs_header(struct nvkm_subdev *, const void *);
     21  1.1  riastrad 
     22  1.1  riastrad struct nvfw_hs_load_header {
     23  1.1  riastrad 	u32 non_sec_code_off;
     24  1.1  riastrad 	u32 non_sec_code_size;
     25  1.1  riastrad 	u32 data_dma_base;
     26  1.1  riastrad 	u32 data_size;
     27  1.1  riastrad 	u32 num_apps;
     28  1.1  riastrad 	u32 apps[0];
     29  1.1  riastrad };
     30  1.1  riastrad 
     31  1.1  riastrad const struct nvfw_hs_load_header *
     32  1.1  riastrad nvfw_hs_load_header(struct nvkm_subdev *, const void *);
     33  1.1  riastrad #endif
     34