⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 boot.h

📁 启动代码
💻 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 + -