?? boot.h
字號:
/**
* @file boot.h
* @brief nand boot implementation
* Copyright (C) 2006 Anyka (GuangZhou) Software Technology Co., Ltd.
* @author Junhua Zhao
* @date 2006-01-04
* @version 1.0
* @ref AK3221 technical spec.
*/
#ifndef _BOOT_H_
#define _BOOT_H_
#include "types.h"
typedef struct NandConfig{
UINT8 MainVer; // Main version no,主辦本號
UINT8 SubVer; // Subsidiary version no,副版本號
UINT32 Length; //the length of this structure data,這個結構體的長度
UINT32 FileStart; //the start address of file,file的起始地址
UINT32 *FileLdStart; //the start address of file is loaded to SRAM,file被加載到內存的起始地址
UINT32 FileLen; //the file's length(unit: byte),file的長度(單位:字節)
UINT32 FileEnd; //the end address of file,file的結束地址
UINT32 MapStart; //the start address of backup map
UINT32 CheckBIOSSum; //the xor check sum of BIOS,整個BIOS數據按字節異或的結果。
UINT8 CheckStructSum; //the xor check sum of this struct,一個字節的校驗和,是整個結構體前面全部按字節異或的結果。
}
__attribute__((packed))
T_NAND_CONFIG;
extern T_NAND_CONFIG m_NandConfig;
#define CONFIG_ADDR 0x3000
typedef void (*bfunc)(void);
#endif // _BOOT_H_
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -