#include "types.h"
Go to the source code of this file.
Defines | |
#define | PAGE_MASK ((1<<(config_nand.bit_page_per_blk))-1) |
#define | BLK_F_PA(pa) ((pa)>>(config_nand.bit_page_per_blk)) |
#define | PN_F_PA(pa) ((pa) & PAGE_MASK) |
#define | MAKE_PA(blk, pn) (((blk)<<(config_nand.bit_page_per_blk)) + (pn)) |
Functions | |
int | ftl_open () |
void | ftl_close () |
_t_size | ftl_read (_t_sect lsn, _t_size size) |
_t_size | ftl_write (_t_sect lsn, _t_size size) |
#define BLK_F_PA | ( | pa | ) | ((pa)>>(config_nand.bit_page_per_blk)) |
#define MAKE_PA | ( | blk, | ||
pn | ||||
) | (((blk)<<(config_nand.bit_page_per_blk)) + (pn)) |
#define PAGE_MASK ((1<<(config_nand.bit_page_per_blk))-1) |
void ftl_close | ( | ) |
Definition at line 102 of file ftlsimple.c.
int ftl_open | ( | ) |
Definition at line 112 of file ftlsimple.c.