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

gleixner at infradead.org gleixner at infradead.org
Sun Mar 28 14:13:56 EST 2004


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

Modified Files:
	nand.h 
Log Message:
Change the device id table structure

Index: nand.h
===================================================================
RCS file: /home/cvs/mtd/include/linux/mtd/nand.h,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -r1.32 -r1.33
--- nand.h	8 Feb 2004 23:08:30 -0000	1.32
+++ nand.h	28 Mar 2004 19:13:53 -0000	1.33
@@ -217,39 +217,28 @@
  *
  * Structure overview:
  *
- *  name - Identify the device type
- *
- *  id -  device ID code
- *
- *  chipshift - total number of address bits for the device which
- *              is used to calculate address offsets and the total
- *              number of bytes the device is capable of.
- *
- *  page256 - denotes if flash device has 256 byte pages or not.
- *
- *  pageadrlen - number of bytes minus one needed to hold the
- *               complete address into the flash array. Keep in
- *               mind that when a read or write is done to a
- *               specific address, the address is input serially
- *               8 bits at a time. This structure member is used
- *               by the read/write routines as a loop index for
- *               shifting the address out 8 bits at a time.
- *
- *  erasesize - size of an erase block in the flash device.
+ *  name  	Identify the device type
+ *  id   	device ID code
+ *  pagesize   	Pagesize in bytes. Either 256 or 512 or 0
+ *		If the pagesize is 0, then the real pagesize 
+ *		and the eraseize are determined from the
+ *		extended id bytes in the chip
+ *  erasesize 	Size of an erase block in the flash device.
+ *  chipsize  	Total chipsize in Mega Bytes
+ *  options	Bitfield to store chip relevant options
  */
 struct nand_flash_dev {
-	char * name;
+	char *name;
 	int id;
-	int chipshift;
+	unsigned long pagesize;
 	unsigned long erasesize;
-	char page256;
+	unsigned long chipsize;
+	unsigned long options;
 };
 
 /*
  * NAND Flash Manufacturer ID Structure
- *
  *  name - Manufacturer name
- *
  *  id - manufacturer ID code of device.
 */
 struct nand_manufacturers {




More information about the linux-mtd-cvs mailing list