yb_arm/osp/inc/ospCfgToBin.h
lishuang.xie d9d432d316 update Feature Enhancement#1370 to dev_ck_v2.1
1. SPU and ARM both need modify
2. confige file's name length: 64 -> 32
3. Test:
   3.1 spu(case0)+arm(case0):   pass
   3.2 spu(case14)+arm(case20): pass
   3.3 spu(case20)+arm(case20): pass
   3.4 spu(case21)+arm(case21): pass
   3.5 spu(case34)+arm(case5):  pass
   3.6 spu(case44)+arm(case5):  pass
2023-12-08 09:58:01 +08:00

36 lines
875 B
C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#ifndef __OSP_CFG_TO_BIN_H__
#define __OSP_CFG_TO_BIN_H__
#define APE_CFG_FILE_NAME_LEN (32) //(64) /* 为节省内存开销文件名长度由64->32字节 */
#define APE_CFG_FILE_NUM (64)
#define APE_SPE_CFG_FILE_NUM (128)
typedef struct OSP_CFG_FILE_REG
{
char name[APE_CFG_FILE_NAME_LEN];
uint32_t phy_addr;
uint32_t len;
}osp_cfg_file_reg;
typedef struct OSP_SPE_CFG_FILE_REG
{
char name[APE_CFG_FILE_NAME_LEN];
uint64_t vir_addr;
uint32_t len;
}osp_spe_cfg_file_reg;
extern int32_t osp_read_cfg_file(void);
/* TestMac interface */
extern int32_t osp_read_spe_cfg_file(char* path);
extern int32_t osp_get_cfg_file(char* name, uint64_t *paddr, uint32_t *psize);
#ifdef HEARTBEAT_ENABLE
extern int8_t osp_get_im2ddr_to_file(uint8_t u8CoreId);
#endif
#endif /* __OSP_CFG_TO_BIN_H__ */