• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #ifndef JFFS2_CONFIG_H
2 #define JFFS2_CONFIG_H
3 
4 #include "mtd_partition.h"
5 
6 #ifdef __cplusplus
7 #if __cplusplus
8 extern "C" {
9 #endif /* __cplusplus */
10 #endif /* __cplusplus */
11 
12 #define JFFS_THREAD_PRIORITY_MAX       32
13 #define FILE_PATH_MAX                128  /* the longest file path */
14 #define CONFIG_JFFS2_ENTRY_NAME_MAX  256
15 #define JFFS2_NAME_MAX   CONFIG_JFFS2_ENTRY_NAME_MAX
16 #define JFFS2_PATH_MAX   FILE_PATH_MAX
17 #define JFFS_NOR_FLASH_BASE 0x100000
18 #define JFFS_NOR_FLASH_END_ADDR 0x2000000
19 #define DEVICE_PART_MAX   1  /* the max partions on a nand deivce*/
20 #define JFFS2_PAGE_SIZE      1024
21 /* memory page size in kernel/asm/page.h, it is correspond with flash read/write
22  * option, so this size has a great impact on reading/writing speed */
23 #define CONFIG_JFFS2_PAGE_SHIFT  12  /* (1<<12) 4096bytes*/
24 
25 #define CONFIG_JFFS2_NO_RELATIVEDIR
26 
27 #define CYGPKG_FS_JFFS2_RET_DIRENT_DTYPE
28 #if defined(CYGPKG_FS_JFFS2_RET_DIRENT_DTYPE)
29 	#define CYGPKG_FILEIO_DIRENT_DTYPE
30 #endif
31 
32 #define CYGOPT_FS_JFFS2_WRITE /* if not defined, jffs2 is read only*/
33 
34 /* jffs2 debug output opion */
35 #define CONFIG_JFFS2_FS_DEBUG       0  /* 1 or 2 */
36 
37 /* jffs2 gc thread section */
38 #define CYGOPT_FS_JFFS2_GCTHREAD
39 #define CYGNUM_JFFS2_GC_THREAD_PRIORITY  10 /* GC thread's priority */
40 #define CYGNUM_JFFS2_GS_THREAD_TICKS  20  /* event timeout ticks */
41 #define CYGNUM_JFFS2_GC_THREAD_TICKS  20  /* GC thread's running ticks */
42 
43 /* zlib section*/
44 #define CONFIG_JFFS2_ZLIB
45 #define CONFIG_JFFS2_RTIME
46 #define CONFIG_JFFS2_RUBIN
47 
48 #ifdef __cplusplus
49 #if __cplusplus
50 }
51 #endif /* __cplusplus */
52 #endif /* __cplusplus */
53 
54 #endif
55