mx_nand512_define.h
来自「Nand Flash (SAMSUNG_K9K1G08U0B) boot loa」· C头文件 代码 · 共 36 行
H
36 行
#ifndef __MX21_NAND512_DEFINE_H_
#define __MX21_NAND512_DEFINE_H_
#include <common/types.h>
#include <nand/FlashReport.h>
typedef struct {
u8 man_id;
u8 dev_id;
u8 io_width;
u8 badblock_marker_offset;
u8 num_of_row_address_cycles;
u32 num_of_blocks; // number of blocks
u32 num_of_pages; // number of pages per block
}nand_t;
#define NAND_MAN_ID (gNAND->man_id)
#define NAND_DEV_ID (gNAND->dev_id)
#define NAND_NUM_OF_ROW_ADDR_CYCLES (gNAND->num_of_row_address_cycles)
#define NAND_NUM_OF_BLOCKS (gNAND->num_of_blocks)
#define NAND_NUM_OF_PAGES (gNAND->num_of_pages)
#define NAND_IO_WIDTH (gNAND->io_width)
#define NAND_MAIN_BYTESIZE (512)
#define NAND_SPARE_BYTESIZE (16)
#define NAND_BADBLOCK_MARKER_OFFSET (gNAND->badblock_marker_offset)
#define NAND_ERROR_NO 0
#define NAND_ERROR_ECC 1
#define NAND_ERROR_PROG 2
#define NAND_ERROR_ERASE 3
#define NAND_ERROR_VERIFY 4
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?