1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18#ifndef __YAFFS_NANDEMUL2K_H__
19#define __YAFFS_NANDEMUL2K_H__
20
21#include "yaffs_guts.h"
22
23int nandemul2k_WriteChunkWithTagsToNAND(struct yaffs_DeviceStruct *dev,
24 int chunkInNAND, const __u8 * data,
25 yaffs_ExtendedTags * tags);
26int nandemul2k_ReadChunkWithTagsFromNAND(struct yaffs_DeviceStruct *dev,
27 int chunkInNAND, __u8 * data,
28 yaffs_ExtendedTags * tags);
29int nandemul2k_MarkNANDBlockBad(struct yaffs_DeviceStruct *dev, int blockNo);
30int nandemul2k_QueryNANDBlock(struct yaffs_DeviceStruct *dev, int blockNo,
31 yaffs_BlockState * state, int *sequenceNumber);
32int nandemul2k_EraseBlockInNAND(struct yaffs_DeviceStruct *dev,
33 int blockInNAND);
34int nandemul2k_InitialiseNAND(struct yaffs_DeviceStruct *dev);
35int nandemul2k_GetBytesPerChunk(void);
36int nandemul2k_GetChunksPerBlock(void);
37int nandemul2k_GetNumberOfBlocks(void);
38
39#endif
40