nandps
Vitis Drivers API Documentation
|
Macros | |
#define | XNANDPS_BLOCK_GOOD 0x0 |
Block is good. More... | |
#define | XNANDPS_BLOCK_BAD 0x1 |
Block is bad. More... | |
#define | XNANDPS_BLOCK_RESERVED 0x2 |
Reserved block. More... | |
#define | XNANDPS_BLOCK_FACTORY_BAD 0x3 |
Factory marked bad block. More... | |
#define | XNANDPS_FLASH_BLOCK_GOOD 0x3 |
Block is good. More... | |
#define | XNANDPS_FLASH_BLOCK_BAD 0x2 |
Block is bad. More... | |
#define | XNANDPS_FLASH_BLOCK_RESERVED 0x1 |
Reserved block. More... | |
#define | XNANDPS_FLASH_BLOCK_FACTORY_BAD 0x0 |
Factory marked bad block. More... | |
#define | XNANDPS_BBT_SCAN_2ND_PAGE 0x00000001 |
Scan the second page for bad block information. More... | |
#define | XNANDPS_BBT_DESC_PAGE_OFFSET 0 |
Page offset of Bad Block Table Desc. More... | |
#define | XNANDPS_BBT_DESC_SIG_OFFSET 8 |
Bad Block Table signature offset. More... | |
#define | XNANDPS_BBT_DESC_VER_OFFSET 12 |
Bad block Table version offset. More... | |
#define | XNANDPS_BBT_DESC_SIG_LEN 4 |
Bad block Table signature length. More... | |
#define | XNANDPS_BBT_DESC_MAX_BLOCKS 4 |
Bad block Table max blocks. More... | |
#define | XNANDPS_BBT_BLOCK_SHIFT 2 |
Block shift value for a block in BBT. More... | |
#define | XNANDPS_BBT_ENTRY_NUM_BLOCKS 4 |
Num of blocks in one BBT entry. More... | |
#define | XNANDPS_BB_PATTERN_OFFSET_SMALL_PAGE 5 |
Bad block pattern offset in a page. More... | |
#define | XNANDPS_BB_PATTERN_LENGTH_SMALL_PAGE 1 |
Bad block pattern length. More... | |
#define | XNANDPS_BB_PATTERN_OFFSET_LARGE_PAGE 0 |
Bad block pattern offset in a large page. More... | |
#define | XNANDPS_BB_PATTERN_LENGTH_LARGE_PAGE 2 |
Bad block pattern length. More... | |
#define | XNANDPS_BB_PATTERN 0xFF |
Bad block pattern to search in a page. More... | |
#define | XNANDPS_BLOCK_TYPE_MASK 0x03 |
Block type mask. More... | |
#define | XNANDPS_BLOCK_SHIFT_MASK 0x06 |
Block shift mask for a Bad Block Table entry byte. More... | |
#define | XNandPs_BbtBlockShift(Block) ((Block * 2) & XNANDPS_BLOCK_SHIFT_MASK) |
This macro returns the Block shift value corresponding to a Block. More... | |
Functions | |
int | XNandPs_IsBlockBad (XNandPs *InstancePtr, u32 Block) |
This function checks whether a block is bad or not. More... | |
int | XNandPs_MarkBlockBad (XNandPs *InstancePtr, u32 Block) |
This function marks a block as bad in the RAM based Bad Block Table(BBT). More... | |