annotate moduleconfig.h @ 316:b644e5e824f4

Add first cut of python bindings
author charles
date Thu, 08 Oct 2009 02:58:52 +0100
parents c8620405d086
children 5d34d18f33e5
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
174
7d11ae6795e4 normalise licence headers and attributions
wookey
parents: 171
diff changeset
1 /*
205
f95fdc6123fb Cleanup patch - Remove all trailing whitespace and fix a few typos.
wookey
parents: 190
diff changeset
2 * YAFFS: Yet another Flash File System . A NAND-flash specific file system.
174
7d11ae6795e4 normalise licence headers and attributions
wookey
parents: 171
diff changeset
3 *
7d11ae6795e4 normalise licence headers and attributions
wookey
parents: 171
diff changeset
4 * Copyright (C) 2002-2007 Aleph One Ltd.
7d11ae6795e4 normalise licence headers and attributions
wookey
parents: 171
diff changeset
5 * for Toby Churchill Ltd and Brightstar Engineering
7d11ae6795e4 normalise licence headers and attributions
wookey
parents: 171
diff changeset
6 *
205
f95fdc6123fb Cleanup patch - Remove all trailing whitespace and fix a few typos.
wookey
parents: 190
diff changeset
7 * Created by Martin Fouts <Martin.Fouts@palmsource.com>
174
7d11ae6795e4 normalise licence headers and attributions
wookey
parents: 171
diff changeset
8 *
7d11ae6795e4 normalise licence headers and attributions
wookey
parents: 171
diff changeset
9 * This program is free software; you can redistribute it and/or modify
7d11ae6795e4 normalise licence headers and attributions
wookey
parents: 171
diff changeset
10 * it under the terms of the GNU Lesser General Public License version 2.1 as
7d11ae6795e4 normalise licence headers and attributions
wookey
parents: 171
diff changeset
11 * published by the Free Software Foundation.
7d11ae6795e4 normalise licence headers and attributions
wookey
parents: 171
diff changeset
12 *
7d11ae6795e4 normalise licence headers and attributions
wookey
parents: 171
diff changeset
13 * Note: Only YAFFS headers are LGPL, YAFFS C code is covered by GPL.
7d11ae6795e4 normalise licence headers and attributions
wookey
parents: 171
diff changeset
14 */
7d11ae6795e4 normalise licence headers and attributions
wookey
parents: 171
diff changeset
15
83
51cad800e99c Modified Makefile to allow 'out of kernel tree' module building for 2.6.x
marty
parents:
diff changeset
16 #ifndef __YAFFS_CONFIG_H__
51cad800e99c Modified Makefile to allow 'out of kernel tree' module building for 2.6.x
marty
parents:
diff changeset
17 #define __YAFFS_CONFIG_H__
51cad800e99c Modified Makefile to allow 'out of kernel tree' module building for 2.6.x
marty
parents:
diff changeset
18
88
126756b6912d Silly Marty, picked wrong guard for moduleconfig.h
marty
parents: 83
diff changeset
19 #ifdef YAFFS_OUT_OF_TREE
92
31598d35e840 Added some documentation to moduleconfig.h and set it to match the
marty
parents: 88
diff changeset
20
31598d35e840 Added some documentation to moduleconfig.h and set it to match the
marty
parents: 88
diff changeset
21 /* DO NOT UNSET THESE THREE. YAFFS2 will not compile if you do. */
83
51cad800e99c Modified Makefile to allow 'out of kernel tree' module building for 2.6.x
marty
parents:
diff changeset
22 #define CONFIG_YAFFS_FS
51cad800e99c Modified Makefile to allow 'out of kernel tree' module building for 2.6.x
marty
parents:
diff changeset
23 #define CONFIG_YAFFS_YAFFS1
51cad800e99c Modified Makefile to allow 'out of kernel tree' module building for 2.6.x
marty
parents:
diff changeset
24 #define CONFIG_YAFFS_YAFFS2
92
31598d35e840 Added some documentation to moduleconfig.h and set it to match the
marty
parents: 88
diff changeset
25
31598d35e840 Added some documentation to moduleconfig.h and set it to match the
marty
parents: 88
diff changeset
26 /* These options are independent of each other. Select those that matter. */
31598d35e840 Added some documentation to moduleconfig.h and set it to match the
marty
parents: 88
diff changeset
27
31598d35e840 Added some documentation to moduleconfig.h and set it to match the
marty
parents: 88
diff changeset
28 /* Default: Not selected */
31598d35e840 Added some documentation to moduleconfig.h and set it to match the
marty
parents: 88
diff changeset
29 /* Meaning: Yaffs does its own ECC, rather than using MTD ECC */
282
c8620405d086 Major whitespace/style changes to match Linux checkpatch.pl code style
wookey
parents: 205
diff changeset
30 /* #define CONFIG_YAFFS_DOES_ECC */
92
31598d35e840 Added some documentation to moduleconfig.h and set it to match the
marty
parents: 88
diff changeset
31
31598d35e840 Added some documentation to moduleconfig.h and set it to match the
marty
parents: 88
diff changeset
32 /* Default: Not selected */
31598d35e840 Added some documentation to moduleconfig.h and set it to match the
marty
parents: 88
diff changeset
33 /* Meaning: ECC byte order is 'wrong'. Only meaningful if */
31598d35e840 Added some documentation to moduleconfig.h and set it to match the
marty
parents: 88
diff changeset
34 /* CONFIG_YAFFS_DOES_ECC is set */
282
c8620405d086 Major whitespace/style changes to match Linux checkpatch.pl code style
wookey
parents: 205
diff changeset
35 /* #define CONFIG_YAFFS_ECC_WRONG_ORDER */
92
31598d35e840 Added some documentation to moduleconfig.h and set it to match the
marty
parents: 88
diff changeset
36
31598d35e840 Added some documentation to moduleconfig.h and set it to match the
marty
parents: 88
diff changeset
37 /* Default: Selected */
31598d35e840 Added some documentation to moduleconfig.h and set it to match the
marty
parents: 88
diff changeset
38 /* Meaning: Disables testing whether chunks are erased before writing to them*/
83
51cad800e99c Modified Makefile to allow 'out of kernel tree' module building for 2.6.x
marty
parents:
diff changeset
39 #define CONFIG_YAFFS_DISABLE_CHUNK_ERASED_CHECK
92
31598d35e840 Added some documentation to moduleconfig.h and set it to match the
marty
parents: 88
diff changeset
40
31598d35e840 Added some documentation to moduleconfig.h and set it to match the
marty
parents: 88
diff changeset
41 /* Default: Selected */
31598d35e840 Added some documentation to moduleconfig.h and set it to match the
marty
parents: 88
diff changeset
42 /* Meaning: Cache short names, taking more RAM, but faster look-ups */
83
51cad800e99c Modified Makefile to allow 'out of kernel tree' module building for 2.6.x
marty
parents:
diff changeset
43 #define CONFIG_YAFFS_SHORT_NAMES_IN_RAM
92
31598d35e840 Added some documentation to moduleconfig.h and set it to match the
marty
parents: 88
diff changeset
44
171
52ba5731a251 Add Phils checkpoint configuration
charles
parents: 92
diff changeset
45 /* Default: 10 */
52ba5731a251 Add Phils checkpoint configuration
charles
parents: 92
diff changeset
46 /* Meaning: set the count of blocks to reserve for checkpointing */
185
fa4e74c5013d Rolling in Ians and other changes
charles
parents: 174
diff changeset
47 #define CONFIG_YAFFS_CHECKPOINT_RESERVED_BLOCKS 10
fa4e74c5013d Rolling in Ians and other changes
charles
parents: 174
diff changeset
48
fa4e74c5013d Rolling in Ians and other changes
charles
parents: 174
diff changeset
49 /*
fa4e74c5013d Rolling in Ians and other changes
charles
parents: 174
diff changeset
50 Older-style on-NAND data format has a "pageStatus" byte to record
fa4e74c5013d Rolling in Ians and other changes
charles
parents: 174
diff changeset
51 chunk/page state. This byte is zeroed when the page is discarded.
fa4e74c5013d Rolling in Ians and other changes
charles
parents: 174
diff changeset
52 Choose this option if you have existing on-NAND data in this format
fa4e74c5013d Rolling in Ians and other changes
charles
parents: 174
diff changeset
53 that you need to continue to support. New data written also uses the
fa4e74c5013d Rolling in Ians and other changes
charles
parents: 174
diff changeset
54 older-style format.
fa4e74c5013d Rolling in Ians and other changes
charles
parents: 174
diff changeset
55 Note: Use of this option generally requires that MTD's oob layout be
fa4e74c5013d Rolling in Ians and other changes
charles
parents: 174
diff changeset
56 adjusted to use the older-style format. See notes on tags formats and
190
31b2ee96d3a0 Update comments about use of CONFIG_YAFFS_9BYTE_TAGS option.
imcd
parents: 188
diff changeset
57 MTD versions in yaffs_mtdif1.c.
185
fa4e74c5013d Rolling in Ians and other changes
charles
parents: 174
diff changeset
58 */
fa4e74c5013d Rolling in Ians and other changes
charles
parents: 174
diff changeset
59 /* Default: Not selected */
fa4e74c5013d Rolling in Ians and other changes
charles
parents: 174
diff changeset
60 /* Meaning: Use older-style on-NAND data format with pageStatus byte */
282
c8620405d086 Major whitespace/style changes to match Linux checkpatch.pl code style
wookey
parents: 205
diff changeset
61 /* #define CONFIG_YAFFS_9BYTE_TAGS */
171
52ba5731a251 Add Phils checkpoint configuration
charles
parents: 92
diff changeset
62
92
31598d35e840 Added some documentation to moduleconfig.h and set it to match the
marty
parents: 88
diff changeset
63 #endif /* YAFFS_OUT_OF_TREE */
83
51cad800e99c Modified Makefile to allow 'out of kernel tree' module building for 2.6.x
marty
parents:
diff changeset
64
51cad800e99c Modified Makefile to allow 'out of kernel tree' module building for 2.6.x
marty
parents:
diff changeset
65 #endif /* __YAFFS_CONFIG_H__ */