X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;f=direct%2Fydirectenv.h;h=c651394c80b0901de4aa2d115f8e3ba60f5d2159;hb=9da8de1ba0cd0748246a9d5e471e2db1636c04a5;hp=561c8b552c2cd0bd7837a68d53b71e4d2c1fa9e5;hpb=f67d10d7a5a6d1cc7d1cb6eaada2522873ce5e99;p=yaffs2.git diff --git a/direct/ydirectenv.h b/direct/ydirectenv.h index 561c8b5..c651394 100644 --- a/direct/ydirectenv.h +++ b/direct/ydirectenv.h @@ -14,7 +14,7 @@ * * Note: Only YAFFS headers are LGPL, YAFFS C code is covered by GPL. * - * $Id: ydirectenv.h,v 1.2 2005-10-07 03:48:50 charles Exp $ + * $Id: ydirectenv.h,v 1.4 2006-10-03 10:13:03 charles Exp $ * */ @@ -38,14 +38,22 @@ #define yaffs_sprintf sprintf #define yaffs_toupper(a) toupper(a) +#ifdef NO_Y_INLINE +#define Y_INLINE +#else #define Y_INLINE inline - +#endif #define YMALLOC(x) malloc(x) #define YFREE(x) free(x) #define YMALLOC_ALT(x) malloc(x) #define YFREE_ALT(x) free(x) +#define YMALLOC_DMA(x) malloc(x) + +#define YYIELD() do {} while(0) + + //#define YINFO(s) YPRINTF(( __FILE__ " %d %s\n",__LINE__,s)) //#define YALERT(s) YINFO(s)