2022-04-02 18:12:00 +05:00
|
|
|
/* SPDX-License-Identifier: MIT */
|
|
|
|
#ifndef __NVFW_HS_H__
|
|
|
|
#define __NVFW_HS_H__
|
|
|
|
#include <core/os.h>
|
|
|
|
struct nvkm_subdev;
|
|
|
|
|
|
|
|
struct nvfw_hs_header {
|
|
|
|
u32 sig_dbg_offset;
|
|
|
|
u32 sig_dbg_size;
|
|
|
|
u32 sig_prod_offset;
|
|
|
|
u32 sig_prod_size;
|
|
|
|
u32 patch_loc;
|
|
|
|
u32 patch_sig;
|
|
|
|
u32 hdr_offset;
|
|
|
|
u32 hdr_size;
|
|
|
|
};
|
|
|
|
|
|
|
|
const struct nvfw_hs_header *nvfw_hs_header(struct nvkm_subdev *, const void *);
|
|
|
|
|
|
|
|
struct nvfw_hs_load_header {
|
|
|
|
u32 non_sec_code_off;
|
|
|
|
u32 non_sec_code_size;
|
|
|
|
u32 data_dma_base;
|
|
|
|
u32 data_size;
|
|
|
|
u32 num_apps;
|
2022-05-12 10:47:00 -07:00
|
|
|
u32 apps[];
|
2022-04-02 18:12:00 +05:00
|
|
|
};
|
|
|
|
|
|
|
|
const struct nvfw_hs_load_header *
|
|
|
|
nvfw_hs_load_header(struct nvkm_subdev *, const void *);
|
|
|
|
#endif
|