]> git.sur5r.net Git - u-boot/blobdiff - fs/yaffs2/devextras.h
Add support for Freescale MX25 SOC
[u-boot] / fs / yaffs2 / devextras.h
index 9635c7a73813f095c657f5bd7a08fc05448c73db..f6e53610d6b3995fce1a33b8c1814743114ca293 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * YAFFS: Yet another Flash File System . A NAND-flash specific file system. 
+ * YAFFS: Yet another Flash File System . A NAND-flash specific file system.
  *
  * Copyright (C) 2002-2007 Aleph One Ltd.
  *   for Toby Churchill Ltd and Brightstar Engineering
@@ -15,7 +15,7 @@
 
 /*
  * This file is just holds extra declarations used during development.
- * Most of these are from kernel includes placed here so we can use them in 
+ * Most of these are from kernel includes placed here so we can use them in
  * applications.
  *
  */
 #define new newHack
 #endif
 
-#if !(defined __KERNEL__) || (defined WIN32)
+/* XXX U-BOOT XXX */
+#if 1 /* !(defined __KERNEL__) || (defined WIN32) */
 
 /* User space defines */
 
+/* XXX U-BOOT XXX */
+#if 0
 typedef unsigned char __u8;
 typedef unsigned short __u16;
 typedef unsigned __u32;
+#endif
+
+#include <asm/types.h>
 
 /*
  * Simple doubly linked list implementation.
@@ -186,7 +192,7 @@ static __inline__ void list_splice(struct list_head *list,
  */
 #define list_for_each(pos, head) \
        for (pos = (head)->next, prefetch(pos->next); pos != (head); \
-               pos = pos->next, prefetch(pos->next))
+               pos = pos->next, prefetch(pos->next))
 
 /**
  * list_for_each_safe  -       iterate over a list safe against removal
@@ -213,7 +219,12 @@ static __inline__ void list_splice(struct list_head *list,
 #define DT_WHT         14
 
 #ifndef WIN32
+/* XXX U-BOOT XXX */
+#if 0
 #include <sys/stat.h>
+#else
+#include "common.h"
+#endif
 #endif
 
 /*