2023-08-23 16:18:40 +08:00
|
|
|
|
#ifndef __OSP_CFGFILE_H__
|
|
|
|
|
#define __OSP_CFGFILE_H__
|
|
|
|
|
|
2023-07-13 11:27:03 +08:00
|
|
|
|
#include "osp_type_def.h"
|
2023-08-23 16:18:40 +08:00
|
|
|
|
|
2023-12-08 19:17:34 +08:00
|
|
|
|
#define APE_CFG_FILE_NAME_LEN (32) //(64) /* 为节省内存开销,文件名长度由64->32字节 */
|
2023-08-23 16:18:40 +08:00
|
|
|
|
#define APE_CFG_FILE_NUM (64)
|
|
|
|
|
|
2023-12-05 19:55:38 +08:00
|
|
|
|
#define OSP_CFG_FLAG_START (0xB0B0B0B0) /* 默认Flag,表示等待读配置文件 */
|
|
|
|
|
#define OSP_CFG_PHY_ADDR (0x10400000) /* 根据内存规划分配 */
|
2023-08-23 16:18:40 +08:00
|
|
|
|
|
|
|
|
|
typedef struct tag_osp_file_reg{
|
|
|
|
|
char name[APE_CFG_FILE_NAME_LEN];
|
|
|
|
|
uint32_t phy_addr;
|
|
|
|
|
uint32_t len;
|
|
|
|
|
}osp_file_reg;
|
|
|
|
|
|
|
|
|
|
extern int osp_get_cfgfile(char* name, uint32_t *pbuf, int* psize);
|
|
|
|
|
extern int osp_cfgfile_init(void);
|
|
|
|
|
extern void osp_cfgfile_rev(osp_file_reg *head, int num);
|
|
|
|
|
extern int osp_cfgfile_read();
|
|
|
|
|
|
2023-12-05 19:55:38 +08:00
|
|
|
|
#endif /* __OSP_CFGFILE_H__ */
|
2023-08-23 16:18:40 +08:00
|
|
|
|
|