jffs2_config.h 1.6 KB
Newer Older
T
t00498749 已提交
1 2 3
#ifndef JFFS2_CONFIG_H
#define JFFS2_CONFIG_H

J
j00316535 已提交
4
#include "mtd_partition.h"
T
t00498749 已提交
5

J
j00316535 已提交
6 7 8 9 10
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
T
t00498749 已提交
11

J
j00316535 已提交
12 13 14 15 16 17 18
#define JFFS_THREAD_PRIORITY_MAX       32
#define FILE_PATH_MAX                128  /* the longest file path */
#define CONFIG_JFFS2_ENTRY_NAME_MAX  256
#define JFFS2_NAME_MAX   CONFIG_JFFS2_ENTRY_NAME_MAX
#define JFFS2_PATH_MAX   FILE_PATH_MAX
#define JFFS_NOR_FLASH_BASE 0x100000
#define JFFS_NOR_FLASH_END_ADDR 0x2000000
T
t00498749 已提交
19
#define DEVICE_PART_MAX   1  /* the max partions on a nand deivce*/
J
j00316535 已提交
20
#define JFFS2_PAGE_SIZE      1024
T
t00498749 已提交
21 22 23 24 25 26
/* memory page size in kernel/asm/page.h, it is correspond with flash read/write
 * option, so this size has a great impact on reading/writing speed */
#define CONFIG_JFFS2_PAGE_SHIFT  12  /* (1<<12) 4096bytes*/

#define CONFIG_JFFS2_NO_RELATIVEDIR

J
j00316535 已提交
27
#define CYGPKG_FS_JFFS2_RET_DIRENT_DTYPE
T
t00498749 已提交
28 29 30 31 32 33 34
#if defined(CYGPKG_FS_JFFS2_RET_DIRENT_DTYPE)
	#define CYGPKG_FILEIO_DIRENT_DTYPE
#endif

#define CYGOPT_FS_JFFS2_WRITE /* if not defined, jffs2 is read only*/

/* jffs2 debug output opion */
J
j00316535 已提交
35
#define CONFIG_JFFS2_FS_DEBUG       0  /* 1 or 2 */
T
t00498749 已提交
36 37

/* jffs2 gc thread section */
J
j00316535 已提交
38 39
#define CYGOPT_FS_JFFS2_GCTHREAD
#define CYGNUM_JFFS2_GC_THREAD_PRIORITY  10 /* GC thread's priority */
T
t00498749 已提交
40 41 42 43
#define CYGNUM_JFFS2_GS_THREAD_TICKS  20  /* event timeout ticks */
#define CYGNUM_JFFS2_GC_THREAD_TICKS  20  /* GC thread's running ticks */

/* zlib section*/
J
j00316535 已提交
44 45 46 47 48 49 50 51 52
#define CONFIG_JFFS2_ZLIB
#define CONFIG_JFFS2_RTIME
#define CONFIG_JFFS2_RUBIN

#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */
T
t00498749 已提交
53 54

#endif