mtd/include/linux/mtd nand.h,1.17,1.18 nand_ids.h,1.2,NONE
gleixner at infradead.org
gleixner at infradead.org
Mon Nov 25 16:05:34 EST 2002
Update of /home/cvs/mtd/include/linux/mtd
In directory phoenix.infradead.org:/tmp/cvs-serv29526
Modified Files:
nand.h
Removed Files:
nand_ids.h
Log Message:
defines for splitted device / manufacturer ID, remove obsolete nand_ids,h
Index: nand.h
===================================================================
RCS file: /home/cvs/mtd/include/linux/mtd/nand.h,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- nand.h 13 Sep 2002 14:35:32 -0000 1.17
+++ nand.h 25 Nov 2002 21:05:30 -0000 1.18
@@ -42,6 +42,8 @@
* read_ecc, write_ecc extended for different oob-layout
* oob layout selections: NAND_NONE_OOB, NAND_JFFS2_OOB,
* NAND_YAFFS_OOB
+ * 11-25-2002 tglx Added Manufacturer code FUJITSU, NATIONAL
+ * Split manufacturer and device ID structures
*/
#ifndef __LINUX_MTD_NAND_H
#define __LINUX_MTD_NAND_H
@@ -183,17 +185,17 @@
*/
#define NAND_MFR_TOSHIBA 0x98
#define NAND_MFR_SAMSUNG 0xec
+#define NAND_MFR_FUJITSU 0x04
+#define NAND_MFR_NATIONAL 0x8f
/*
* NAND Flash Device ID Structure
*
* Structure overview:
*
- * name - Complete name of device
+ * name - Identify the device type
*
- * manufacture_id - manufacturer ID code of device.
- *
- * model_id - model ID code of device.
+ * id - device ID code
*
* chipshift - total number of address bits for the device which
* is used to calculate address offsets and the total
@@ -213,12 +215,22 @@
*/
struct nand_flash_dev {
char * name;
- int manufacture_id;
- int model_id;
+ int id;
int chipshift;
- char page256;
- char pageadrlen;
unsigned long erasesize;
+ char page256;
+};
+
+/*
+ * NAND Flash Manufacturer ID Structure
+ *
+ * name - Manufacturer name
+ *
+ * id - manufacturer ID code of device.
+*/
+struct nand_manufacturers {
+ int id;
+ char * name;
};
/*
--- nand_ids.h DELETED ---
More information about the linux-mtd-cvs
mailing list