mtd/include/linux/mtd flashchip.h,1.10,1.11

Nicolas Pitre nico at infradead.org
Tue Jun 8 17:26:24 EDT 2004


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

Modified Files:
	flashchip.h 
Log Message:
Support for the multi hw partitions of the Intel L18 flash chips.
The non-partitioned cases should behave just like before.
However I'd like for someone else to look at the added logic for the
partitioned config in case I might have overlooked something.


Index: flashchip.h
===================================================================
RCS file: /home/cvs/mtd/include/linux/mtd/flashchip.h,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- flashchip.h	27 Jan 2004 10:16:20 -0000	1.10
+++ flashchip.h	8 Jun 2004 21:26:22 -0000	1.11
@@ -40,7 +40,10 @@
 	FL_UNKNOWN
 } flstate_t;
 
-
+struct flpart {
+	flstate_t state;
+	flstate_t oldstate;
+};
 
 /* NOTE: confusingly, this can be used to refer to more than one chip at a time, 
    if they're interleaved. */
@@ -59,9 +62,14 @@
 	flstate_t state;
 	flstate_t oldstate;
 
+	struct flpart *parts;
+	unsigned long partshift;
+
 	int write_suspended:1;
 	int erase_suspended:1;
+
 	unsigned long in_progress_block_addr;
+	unsigned long suspender_block_addr;
 
 	spinlock_t *mutex;
 	spinlock_t _spinlock; /* We do it like this because sometimes they'll be shared. */





More information about the linux-mtd-cvs mailing list