
1. modified the function: int32_t osp_read_spe_cfg_file(char* path, uint8_t cellid), add the cellid 2. modified the function: int32_t osp_get_cfg_file(char* name, uint8_t cellid, uint64_t *paddr, uint32_t *psize);, add the cellid 3. modified the interface file 4. modified the testcase which used the functions 5. Test: 5.1 spu_case0_arm_case0_cpri: Pass 5.2 spu_case14_arm_caes20_cpri:Pass 5.3 spu_case20_arm_case20_cpri:Pass 5.4 spu_case24_arm_case24_cpri:Pass 5.5 spu_case34_arm_case5: Pass 5.6 spu_case44_arm_case5: Pass
37 lines
917 B
C
37 lines
917 B
C
#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)
|
||
#define APE_SPE_CFG_FILE_NAME_LEN (64)
|
||
|
||
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_SPE_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, uint8_t cellid);
|
||
extern int32_t osp_get_cfg_file(char* name, uint8_t cellid, 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__ */
|
||
|