summaryrefslogtreecommitdiffstats
path: root/fs/yaffs2/yaffs_guts.h
diff options
context:
space:
mode:
authorWilliam Juul <william.juul@datarespons.no>2007-11-15 12:23:57 +0100
committerScott Wood <scottwood@freescale.com>2008-08-12 11:31:19 -0500
commit90ef117b68387d66763291af0117677644166611 (patch)
tree829e4954f6d1b0976734c0d2ef2b2bbd173d7572 /fs/yaffs2/yaffs_guts.h
parent0e8cc8bd92257da2e1df88cbc985e166e472ce61 (diff)
downloadtalos-obmc-uboot-90ef117b68387d66763291af0117677644166611.tar.gz
talos-obmc-uboot-90ef117b68387d66763291af0117677644166611.zip
Incorporate yaffs2 into U-boot
To use YAFFS2 define CONFIG_YAFFS2 Signed-off-by: William Juul <william.juul@tandberg.com> Signed-off-by: Scott Wood <scottwood@freescale.com>
Diffstat (limited to 'fs/yaffs2/yaffs_guts.h')
-rw-r--r--fs/yaffs2/yaffs_guts.h26
1 files changed, 16 insertions, 10 deletions
diff --git a/fs/yaffs2/yaffs_guts.h b/fs/yaffs2/yaffs_guts.h
index 87b539b05b..ecf701f5a0 100644
--- a/fs/yaffs2/yaffs_guts.h
+++ b/fs/yaffs2/yaffs_guts.h
@@ -446,9 +446,10 @@ struct yaffs_ObjectStruct {
YCHAR shortName[YAFFS_SHORT_NAME_LENGTH + 1];
#endif
-#ifndef __KERNEL__
+/* XXX U-BOOT XXX */
+/* #ifndef __KERNEL__ */
__u32 inUse;
-#endif
+/* #endif */
#ifdef CONFIG_YAFFS_WINCE
__u32 win_ctime[2];
@@ -464,10 +465,10 @@ struct yaffs_ObjectStruct {
__u32 yst_rdev;
-#ifdef __KERNEL__
+/* XXX U-BOOT XXX */
+/* #ifndef __KERNEL__ */
struct inode *myInode;
-
-#endif
+/* #endif */
yaffs_ObjectType variantType;
@@ -626,15 +627,18 @@ struct yaffs_DeviceStruct {
__u32 chunkMask;
-#ifdef __KERNEL__
+/* XXX U-BOOT XXX */
+#if 0
+#ifndef __KERNEL__
struct semaphore sem; /* Semaphore for waiting on erasure.*/
struct semaphore grossLock; /* Gross locking semaphore */
+ void (*putSuperFunc) (struct super_block * sb);
+#endif
+#endif
__u8 *spareBuffer; /* For mtdif2 use. Don't know the size of the buffer
* at compile time so we have to allocate it.
*/
- void (*putSuperFunc) (struct super_block * sb);
-#endif
int isMounted;
@@ -883,10 +887,12 @@ yaffs_Object *yaffs_LostNFound(yaffs_Device * dev);
void yfsd_WinFileTimeNow(__u32 target[2]);
#endif
-#ifdef __KERNEL__
-
+/* XXX U-BOOT XXX */
+#if 0
+#ifndef __KERNEL__
void yaffs_HandleDeferedFree(yaffs_Object * obj);
#endif
+#endif
/* Debug dump */
int yaffs_DumpObject(yaffs_Object * obj);
OpenPOWER on IntegriCloud