mtd/include/linux/mtd mtd.h,1.47,1.48

gleixner at infradead.org gleixner at infradead.org
Wed Mar 31 02:43:45 EST 2004


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

Modified Files:
	mtd.h 
Log Message:
expand oob layout structure, define placement selectors

Index: mtd.h
===================================================================
RCS file: /home/cvs/mtd/include/linux/mtd/mtd.h,v
retrieving revision 1.47
retrieving revision 1.48
diff -u -r1.47 -r1.48
--- mtd.h	29 Mar 2004 11:25:01 -0000	1.47
+++ mtd.h	31 Mar 2004 07:43:43 -0000	1.48
@@ -69,6 +69,11 @@
 #define MTD_ECC_RS_DiskOnChip	1	// Automatic ECC on DiskOnChip
 #define MTD_ECC_SW		2	// SW ECC for Toshiba & Samsung devices
 
+/* ECC byte placement */
+#define MTD_NANDECC_OFF		0	// Switch off ECC (Not recommended)
+#define MTD_NANDECC_PLACE	1	// Use the given placement in the structure
+#define MTD_NANDECC_AUTOPLACE	2	// Use the default placement scheme
+
 struct mtd_info_user {
 	u_char type;
 	u_int32_t flags;
@@ -100,7 +105,7 @@
 
 struct nand_oobinfo {
 	int	useecc;
-	int	eccpos[6];	
+	int	eccpos[24];	
 };
 
 




More information about the linux-mtd-cvs mailing list