Fix broken comment
[yaffs2.git] / direct / basic-test / yaffs_fileem2k.h
1 /*
2  * YAFFS: Yet another Flash File System . A NAND-flash specific file system. 
3  *
4  * Copyright (C) 2002-2011 Aleph One Ltd.
5  *   for Toby Churchill Ltd and Brightstar Engineering
6  *
7  * Created by Charles Manning <charles@aleph1.co.uk>
8  *
9  * This program is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU Lesser General Public License version 2.1 as
11  * published by the Free Software Foundation.
12  *
13  * Note: Only YAFFS headers are LGPL, YAFFS C code is covered by GPL.
14  */
15
16 #ifndef __FILEEM2K_H__
17 #define __FILEEM2K_H__
18
19 #if 1
20
21 #define SIZE_IN_MB 32
22 /* #define SIZE_IN_MB 128 */
23
24 #define PAGE_DATA_SIZE (2048)
25 #define PAGE_SPARE_SIZE  (64)
26 #define PAGE_SIZE  (PAGE_DATA_SIZE + PAGE_SPARE_SIZE)
27 #define PAGES_PER_BLOCK (64)
28 #define BLOCK_DATA_SIZE (PAGE_DATA_SIZE * PAGES_PER_BLOCK)
29 #define BLOCK_SIZE (PAGES_PER_BLOCK * (PAGE_SIZE))
30 #define BLOCKS_PER_MB ((1024*1024)/BLOCK_DATA_SIZE)
31 #define SIZE_IN_BLOCKS (BLOCKS_PER_MB * SIZE_IN_MB)
32
33 #else
34
35 #define SIZE_IN_MB 128
36 #define PAGE_DATA_SIZE (512)
37 #define SPARE_SIZE  (16)
38 #define PAGE_SIZE  (PAGE_DATA_SIZE + SPARE_SIZE)
39 #define PAGES_PER_BLOCK (32)
40 #define BLOCK_DATA_SIZE (PAGE_SIZE * PAGES_PER_BLOCK)
41 #define BLOCK_SIZE (PAGES_PER_BLOCK * (PAGE_SIZE))
42 #define BLOCKS_PER_MB ((1024*1024)/BLOCK_DATA_SIZE)
43 #define SIZE_IN_BLOCKS (BLOCKS_PER_MB * SIZE_IN_MB)
44
45 #endif
46
47
48 int yflash2_GetNumberOfBlocks(void);
49
50 #endif
51