#include "types.h"
Go to the source code of this file.
Classes |
struct | config_nand |
Defines |
#define | LPA_MASK_SECT (-config_nand.sect_per_page) |
#define | LPA_F_SECT(sect) (((sect) & LPA_MASK_SECT) >> (config_nand.bit_sect_per_page)) |
#define | LSN_F_LPA(lpa) ((lpa)*config_nand.sect_per_page) |
Enumerations |
enum | config {
SECT_PER_PAGE = 8,
PAGE_PER_BLK = 128,
TOTALSIZE_GB = 32,
EXTRABLKS = 1967,
SECT_PER_PAGE = 8,
PAGE_PER_BLK = 128,
TOTALSIZE_GB = 32,
EXTRABLKS = 1967
} |
enum | { NAND_REQ_DATA = 0,
NAND_REQ_GC,
NAND_REQ_WARM
} |
Functions |
int | nand_open () |
void | nand_close () |
_t_sect | nand_page_read (unsigned int blk_no, unsigned int page_no, unsigned int lsn, int optStat) |
void | nand_page_write (unsigned int blk_no, unsigned int page_no, unsigned int lsn, int optStat) |
void | nand_block_erase (unsigned int blk_no, int optStat) |
Variables |
struct config_nand | config_nand |
Define Documentation
Enumeration Type Documentation
- Enumerator:
NAND_REQ_DATA |
|
NAND_REQ_GC |
|
NAND_REQ_WARM |
|
Definition at line 32 of file nand.h.
- Enumerator:
SECT_PER_PAGE |
|
PAGE_PER_BLK |
|
TOTALSIZE_GB |
|
EXTRABLKS |
|
SECT_PER_PAGE |
|
PAGE_PER_BLK |
|
TOTALSIZE_GB |
|
EXTRABLKS |
|
Definition at line 6 of file nand.h.
Function Documentation
void nand_block_erase |
( |
unsigned int |
blk_no, |
|
|
int |
optStat | |
|
) |
| | |
_t_sect nand_page_read |
( |
unsigned int |
blk_no, |
|
|
unsigned int |
page_no, |
|
|
unsigned int |
lsn, |
|
|
int |
optStat | |
|
) |
| | |
void nand_page_write |
( |
unsigned int |
blk_no, |
|
|
unsigned int |
page_no, |
|
|
unsigned int |
lsn, |
|
|
int |
optStat | |
|
) |
| | |
Variable Documentation