| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- //-------------------------------------------------------------------------------
- // parse mergeImage Config & program argument
- //-------------------------------------------------------------------------------
- #ifndef _PARSECONFIG_H_
- #define _PARSECONFIG_H_
- //-------------------------------------------------------------------------------
- #include "mergeImage.h"
- //-------------------------------------------------------------------------------
- //-------------------------------------------------------------------------------
- typedef struct _NorFlashModuleInfo
- {
- bool isValid; /* fileName is valid ? */
- bool isProtected; /* Protect in saveinfo ? */
- bool isInitModuleNameByUser; /* #define fileName by cfg ? */
- bool isInitProtectedByUser; /* #define protect by cfg ? */
- u32 flashAddr1;
- u32 flashSize1;
- u32 flashAddr2;
- u32 flashSize2;
- u32 max_module_size;
- char moduleName[32]; //"ShellROM"=SHELLROM/SHELL.bin
- char fileName[FILENAME_SIZE];
- char tmpBinName[FILENAME_SIZE];
- #ifdef CONFIG_APPEND_NAME_TO_CIKEY_HDCPKEY
- char eachfileName[FILENAME_SIZE];
- #endif
- }NorFlashModuleInfo;
- typedef struct _NorFlashModulePathInfo
- {
- char moduleName[32];
- char pathName[FILENAME_SIZE];
- }NorFlashModulePathInfo;
- typedef struct _NVMData
- {
- u32 id;
- char pathName[FILENAME_SIZE];
- }NVMData;
- #define PATHINFO_MAX 2
- #define ACTION_MAX 8
- extern NorFlashModuleInfo flashModuleInfo[MODULE_MAX];
- extern NorFlashModulePathInfo flashModulePathInfo[PATHINFO_MAX];
- extern NVMData gNVMData[MODULE_MAX];
- extern u32 gNVMData_count;
- //-------------------------------------------------------------------------------
- bool loadNorFlashModuleInfo();
- NorFlashModuleInfo* searchModuleInfo( const char *moduleName );
- NorFlashModulePathInfo* searchModulePathInfo( const char *moduleName );
- char* fgetLine( char *s, int size, FILE *fpIn );
- bool parseProgArg( int argc, char *argv[] );
- //-------------------------------------------------------------------------------
- #endif
- char module_extend1[12];
- char module_extend2[12];
- char module_extend3[12];
- char module_extend4[12];
- char module_extend5[12];
- char module_extend6[12];
- char module_extend7[12];
|