mtd/include/linux/mtd nand.h,1.19,1.20
gleixner at infradead.org
gleixner at infradead.org
Tue Feb 18 06:15:37 EST 2003
Update of /home/cvs/mtd/include/linux/mtd
In directory phoenix.infradead.org:/tmp/cvs-serv12827
Modified Files:
nand.h
Log Message:
make it useful outside of kernel
Index: nand.h
===================================================================
RCS file: /home/cvs/mtd/include/linux/mtd/nand.h,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -r1.19 -r1.20
--- nand.h 2 Dec 2002 21:48:17 -0000 1.19
+++ nand.h 18 Feb 2003 11:15:34 -0000 1.20
@@ -48,8 +48,9 @@
#ifndef __LINUX_MTD_NAND_H
#define __LINUX_MTD_NAND_H
+#ifdef __KERNEL__
+
#include <linux/config.h>
-#include <linux/sched.h>
/*
* Searches for a NAND device
@@ -241,9 +242,6 @@
*/
#define NAND_BADBLOCK_POS 5
-#define NAND_NONE_OOB 0
-#define NAND_JFFS2_OOB 1
-#define NAND_YAFFS_OOB 2
#define NAND_NOOB_ECCPOS0 0
#define NAND_NOOB_ECCPOS1 1
@@ -270,5 +268,12 @@
#define NAND_JFFS2_OOB16_FSDAPOS 8
#define NAND_JFFS2_OOB8_FSDALEN 2
#define NAND_JFFS2_OOB16_FSDALEN 8
+
+#endif
+
+#define NAND_NONE_OOB 0
+#define NAND_JFFS2_OOB 1
+#define NAND_YAFFS_OOB 2
+
#endif /* __LINUX_MTD_NAND_H */
More information about the linux-mtd-cvs
mailing list