1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16#ifndef __YAFFS_NAND_H__
17#define __YAFFS_NAND_H__
18#include "yaffs_guts.h"
19
20int yaffs_rd_chunk_tags_nand(struct yaffs_dev *dev, int nand_chunk,
21 u8 *buffer, struct yaffs_ext_tags *tags);
22
23int yaffs_wr_chunk_tags_nand(struct yaffs_dev *dev,
24 int nand_chunk,
25 const u8 *buffer, struct yaffs_ext_tags *tags);
26
27int yaffs_mark_bad(struct yaffs_dev *dev, int block_no);
28
29int yaffs_query_init_block_state(struct yaffs_dev *dev,
30 int block_no,
31 enum yaffs_block_state *state,
32 unsigned *seq_number);
33
34int yaffs_erase_block(struct yaffs_dev *dev, int flash_block);
35
36int yaffs_init_nand(struct yaffs_dev *dev);
37
38#endif
39