moduleconfig.h 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. /*
  2. * YAFFS: Yet another Flash File System . A NAND-flash specific file system.
  3. *
  4. * Copyright (C) 2002-2007 Aleph One Ltd.
  5. * for Toby Churchill Ltd and Brightstar Engineering
  6. *
  7. * Created by Martin Fouts <Martin.Fouts@palmsource.com>
  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. #ifndef __YAFFS_CONFIG_H__
  16. #define __YAFFS_CONFIG_H__
  17. #ifdef YAFFS_OUT_OF_TREE
  18. /* DO NOT UNSET THESE THREE. YAFFS2 will not compile if you do. */
  19. #define CONFIG_YAFFS_FS
  20. #define CONFIG_YAFFS_YAFFS1
  21. #define CONFIG_YAFFS_YAFFS2
  22. /* These options are independent of each other. Select those that matter. */
  23. /* Default: Not selected */
  24. /* Meaning: Yaffs does its own ECC, rather than using MTD ECC */
  25. //#define CONFIG_YAFFS_DOES_ECC
  26. /* Default: Not selected */
  27. /* Meaning: ECC byte order is 'wrong'. Only meaningful if */
  28. /* CONFIG_YAFFS_DOES_ECC is set */
  29. //#define CONFIG_YAFFS_ECC_WRONG_ORDER
  30. /* Default: Selected */
  31. /* Meaning: Disables testing whether chunks are erased before writing to them*/
  32. #define CONFIG_YAFFS_DISABLE_CHUNK_ERASED_CHECK
  33. /* Default: Selected */
  34. /* Meaning: Cache short names, taking more RAM, but faster look-ups */
  35. #define CONFIG_YAFFS_SHORT_NAMES_IN_RAM
  36. /* Default: 10 */
  37. /* Meaning: set the count of blocks to reserve for checkpointing */
  38. #define CONFIG_YAFFS_CHECKPOINT_RESERVED_BLOCKS 10
  39. /*
  40. Older-style on-NAND data format has a "pageStatus" byte to record
  41. chunk/page state. This byte is zeroed when the page is discarded.
  42. Choose this option if you have existing on-NAND data in this format
  43. that you need to continue to support. New data written also uses the
  44. older-style format.
  45. Note: Use of this option generally requires that MTD's oob layout be
  46. adjusted to use the older-style format. See notes on tags formats and
  47. MTD versions in yaffs_mtdif1.c.
  48. */
  49. /* Default: Not selected */
  50. /* Meaning: Use older-style on-NAND data format with pageStatus byte */
  51. //#define CONFIG_YAFFS_9BYTE_TAGS
  52. #endif /* YAFFS_OUT_OF_TREE */
  53. #endif /* __YAFFS_CONFIG_H__ */