mtd/include/linux/mtd nand.h,1.57,1.58

gleixner at infradead.org gleixner at infradead.org
Wed Jun 16 13:26:51 EDT 2004


Update of /home/cvs/mtd/include/linux/mtd
In directory phoenix.infradead.org:/tmp/cvs-serv5804

Modified Files:
	nand.h 
Log Message:
Add HWECC_SYNDROME option for hw generators which calculate syndromes. Add a state for calling hwecc_enable. Remove NAND_ECC_DISKONCHIP as its obsolete now

Index: nand.h
===================================================================
RCS file: /home/cvs/mtd/include/linux/mtd/nand.h,v
retrieving revision 1.57
retrieving revision 1.58
diff -u -r1.57 -r1.58
--- nand.h	16 Jun 2004 15:33:50 -0000	1.57
+++ nand.h	16 Jun 2004 17:26:48 -0000	1.58
@@ -136,8 +136,6 @@
 #define NAND_ECC_HW3_512	3
 /* Hardware ECC 3 byte ECC per 512 Byte data */
 #define NAND_ECC_HW6_512	4
-/* Hardware ECC 6 byte ECC per 512 Byte data DiskOnChip*/
-#define NAND_ECC_DISKONCHIP	5
 /* Hardware ECC 8 byte ECC per 512 Byte data */
 #define NAND_ECC_HW8_512	6
 
@@ -148,6 +146,8 @@
 #define NAND_ECC_READ		0
 /* Reset Hardware ECC for write */
 #define NAND_ECC_WRITE		1
+/* Enable Hardware ECC before syndrom is read back from flash */
+#define NAND_ECC_READSYN	2
 
 /* Option constants for bizarre disfunctionality and real
 *  features
@@ -186,6 +186,11 @@
 /* Use a flash based bad block table. This option is passed to the
  * default bad block table function. */
 #define NAND_USE_FLASH_BBT	0x00010000
+/* The hw ecc generator provides a syndrome instead a ecc value on read 
+ * This can only work if we have the ecc bytes directly behind the 
+ * data bytes. Applies for DOC and AG-AND Renesas HW Reed Solomon generators */
+#define NAND_HWECC_SYNDROME	0x00020000
+
 
 /* Options set by nand scan */
 /* Nand scan has allocated oob_buf */





More information about the linux-mtd-cvs mailing list