mtd/include/linux/mtd nand.h,1.31,1.32

gleixner at infradead.org gleixner at infradead.org
Sun Feb 8 18:08:33 EST 2004


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

Modified Files:
	nand.h 
Log Message:
option field added to nand structure. support for chips without page autoincrement

Index: nand.h
===================================================================
RCS file: /home/cvs/mtd/include/linux/mtd/nand.h,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -r1.31 -r1.32
--- nand.h	11 Jul 2003 15:07:02 -0000	1.31
+++ nand.h	8 Feb 2004 23:08:30 -0000	1.32
@@ -44,6 +44,8 @@
  *			NAND_YAFFS_OOB
  *  11-25-2002 tglx	Added Manufacturer code FUJITSU, NATIONAL
  *			Split manufacturer and device ID structures 
+ *
+ *  02-08-2004 tglx 	added option field to nand structure for chip anomalities
  */
 #ifndef __LINUX_MTD_NAND_H
 #define __LINUX_MTD_NAND_H
@@ -106,7 +108,15 @@
 */
 #define NAND_ECC_READ		0
 #define NAND_ECC_WRITE		1
+
+
+/* Option constants for bizarre disfunctionality */
+/* Chip can not auto increment pages */
+#define NAND_NO_AUTOINCR	0x01
 	
+/* Macros to identify the above anomalities */
+#define NAND_CANAUTOINCR(chip) (!(chip->options & NAND_NO_AUTOINCR))
+
 /*
  * Enumeration for NAND flash chip state
  */
@@ -190,6 +200,7 @@
 	int 		page_shift;
 	u_char 		*data_buf;
 	u_char		*data_poi;
+	unsigned int	options;
 	void		*priv;
 };
 




More information about the linux-mtd-cvs mailing list