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