00001 #ifndef __STAT_NAND_H__ 00002 #define __STAT_NAND_H__ 00003 00004 #include "types.h" 00005 00006 struct __flash_stat_info { 00007 _u32 read; 00008 _u32 write; 00009 _u32 erase; 00010 }; 00011 00012 struct nand_stat_info { 00013 struct __flash_stat_info data; 00014 struct __flash_stat_info gc; 00015 }; 00016 00017 extern struct nand_stat_info nand_stat; 00018 00019 struct io_stat_info { 00020 _u32 cnt_read; 00021 _u32 cnt_write; 00022 _u32 cnt_trim; 00023 _u32 size_read; 00024 _u32 size_write; 00025 _u32 size_trim; 00026 }; 00027 00028 extern struct io_stat_info io_stat; 00029 00030 void nand_stat_reset(); 00031 void nand_stat_print(); 00032 00033 #endif