1 1.1 riastrad /* $NetBSD: fw.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_FW_H__ 5 1.1 riastrad #define __NVFW_FW_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_bin_hdr { 10 1.1 riastrad u32 bin_magic; 11 1.1 riastrad u32 bin_ver; 12 1.1 riastrad u32 bin_size; 13 1.1 riastrad u32 header_offset; 14 1.1 riastrad u32 data_offset; 15 1.1 riastrad u32 data_size; 16 1.1 riastrad }; 17 1.1 riastrad 18 1.1 riastrad const struct nvfw_bin_hdr *nvfw_bin_hdr(struct nvkm_subdev *, const void *); 19 1.1 riastrad 20 1.1 riastrad struct nvfw_bl_desc { 21 1.1 riastrad u32 start_tag; 22 1.1 riastrad u32 dmem_load_off; 23 1.1 riastrad u32 code_off; 24 1.1 riastrad u32 code_size; 25 1.1 riastrad u32 data_off; 26 1.1 riastrad u32 data_size; 27 1.1 riastrad }; 28 1.1 riastrad 29 1.1 riastrad const struct nvfw_bl_desc *nvfw_bl_desc(struct nvkm_subdev *, const void *); 30 1.1 riastrad #endif 31