X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=fs%2Fyaffs2%2Fdevextras.h;h=f6e53610d6b3995fce1a33b8c1814743114ca293;hb=c469a76025f96520fc68af027ffed61f1de35430;hp=9635c7a73813f095c657f5bd7a08fc05448c73db;hpb=0e8cc8bd92257da2e1df88cbc985e166e472ce61;p=u-boot diff --git a/fs/yaffs2/devextras.h b/fs/yaffs2/devextras.h index 9635c7a738..f6e53610d6 100644 --- a/fs/yaffs2/devextras.h +++ b/fs/yaffs2/devextras.h @@ -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. * */ @@ -28,13 +28,19 @@ #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 /* * 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 +#else +#include "common.h" +#endif #endif /*