2 * YAFFS: Yet another FFS. A NAND-flash specific file system.
3 * yportenv.h: Portable services used by yaffs. This is done to allow
4 * simple migration from kernel space into app space for testing.
6 * Copyright (C) 2002 Aleph One Ltd.
7 * for Toby Churchill Ltd and Brightstar Engineering
9 * Created by Charles Manning <charles@aleph1.co.uk>
11 * This program is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License version 2 as
13 * published by the Free Software Foundation.
26 #define YPRINTF(x) printf x
27 #define YMALLOC(x) malloc(x)
28 #define YFREE(x) free(x)
31 #define YINFO(s) YPRINTF(( __FILE__ " %d %s\n",__LINE__,s))
32 #define YALERT(s) YINFO(s)
36 #include "linux/kernel.h"
38 #include "linux/string.h"
39 #include "linux/slab.h"
41 #define YPRINTF(x) printk x
42 #define YMALLOC(x) kmalloc(x,GFP_KERNEL)
43 #define YFREE(x) kfree(x)
49 #define YINFO(s) YPRINTF((KERN_DEBUG __FILE__ " %d %s\n",__LINE__,s))
50 #define YALERT(s) YINFO(s)