mtd/include/linux/mtd onenand.h,1.9,1.10

kyungmin.park at samsung.com kyungmin.park at samsung.com
Tue Dec 20 21:55:44 EST 2005


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

Modified Files:
	onenand.h 
Log Message:
[MTD] OneNAND: Reduce stack usage

Remove MAX_ONENAND_PAGESIZE (2048 + 64) in onenand code


Index: onenand.h
===================================================================
RCS file: /home/cvs/mtd/include/linux/mtd/onenand.h,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- onenand.h	2 Dec 2005 07:43:38 -0000	1.9
+++ onenand.h	21 Dec 2005 02:55:41 -0000	1.10
@@ -17,7 +17,6 @@
 #include <linux/mtd/bbm.h>
 
 #define MAX_BUFFERRAM		2
-#define MAX_ONENAND_PAGESIZE	(2048 + 64)
 
 /* Scan and identify a OneNAND device */
 extern int onenand_scan(struct mtd_info *mtd, int max_chips);
@@ -110,6 +109,7 @@
 	spinlock_t		chip_lock;
 	wait_queue_head_t	wq;
 	onenand_state_t		state;
+	unsigned char		*page_buf;
 
 	struct nand_oobinfo	*autooob;
 
@@ -134,7 +134,7 @@
  * Options bits
  */
 #define ONENAND_CONT_LOCK		(0x0001)
-
+#define ONENAND_PAGEBUF_ALLOC		(0x1000)
 
 /*
  * OneNAND Flash Manufacturer ID Codes





More information about the linux-mtd-cvs mailing list