00001 #ifndef __FTL_GENERIC_H__ 00002 #define __FTL_GENERIC_H__ 00003 00004 /* Simple Bitmap(All in the Memory) */ 00005 void bitmap_s_invalidate(_t_blk pbn, _t_page ppn, _t_size length) ; 00006 void bitmap_s_end(); 00007 void bitmap_s_init(); 00008 void bitmap_s_get_block(int pbn, _u8 *block_bitmap) ; 00009 void bitmap_s_clear_block(_t_blk pbn); 00010 00011 /* General block management */ 00012 void vm_init(); 00013 void vm_end(); 00014 _u32 vm_alloc_page(_t_sect lsn, _t_blk *pbn, _t_page *ppn, int reqtype); 00015 int vm_gc_check(); 00016 void vm_gc_start(); 00017 void vm_invalidate(_t_blk victim, _t_page ppn, _t_size length); 00018 00019 00020 #endif // __FTL_GENERIC_H__