#include <stdlib.h>
#include <string.h>
#include "types.h"
#include "debug.h"
#include "nand.h"
#include "vmbitmap.h"
Go to the source code of this file.
Classes | |
struct | bitmap_t |
Defines | |
#define | BITS_PER_RECORD 32 |
#define | NUMSUB ((config_nand.page_per_blk + BITS_PER_RECORD - 1) / BITS_PER_RECORD) |
#define | CREATE_BITMAP_KEY(blkno, i) ((MUFTL_BITMAP_H) | (((blkno)*(NUMSUB)) + (i))) |
Functions | |
void | bitmap_s_invalidate_page (_t_blk pbn, _t_page ppn, _t_size length) |
void | bitmap_s_invalidate (_t_blk pbn, _t_page ppn, _t_size length) |
void | bitmap_s_end () |
void | bitmap_s_init () |
void | bitmap_s_get_block (int pbn, _u8 *block_bitmap) |
void | bitmap_s_clear_block (_t_blk pbn) |
Variables | |
struct bitmap_t | bitmap |
#define CREATE_BITMAP_KEY | ( | blkno, | ||
i | ||||
) | ((MUFTL_BITMAP_H) | (((blkno)*(NUMSUB)) + (i))) |
#define NUMSUB ((config_nand.page_per_blk + BITS_PER_RECORD - 1) / BITS_PER_RECORD) |
void bitmap_s_clear_block | ( | _t_blk | pbn | ) |
void bitmap_s_end | ( | ) |
void bitmap_s_get_block | ( | int | pbn, | |
_u8 * | block_bitmap | |||
) |
void bitmap_s_init | ( | ) |