diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2008-08-11 09:58:07 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2008-08-13 16:41:22 +0200 |
commit | 31cb2f0347e5484ae79d543dae6a887b6530bce6 (patch) | |
tree | 71f965085a89bf9be298417c9fe5777a446f32e2 /include/linux | |
parent | 4c01ac2e0e6f584feea933bd04ae2dfa82cfdbc4 (diff) | |
download | barebox-31cb2f0347e5484ae79d543dae6a887b6530bce6.tar.gz barebox-31cb2f0347e5484ae79d543dae6a887b6530bce6.tar.xz |
add wrapper macros for easier inclusion of kernel code
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/uboot-wrapper.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/include/linux/uboot-wrapper.h b/include/linux/uboot-wrapper.h new file mode 100644 index 0000000000..93d1a92226 --- /dev/null +++ b/include/linux/uboot-wrapper.h @@ -0,0 +1,33 @@ +#ifndef __INCLUDE_LINUX_U_BOOT_WRAPPER_H +#define __INCLUDE_LINUX_U_BOOT_WRAPPER_H + +#include <xfuncs.h> + +#define kmalloc(len, mode) malloc(len) +#define kzalloc(len, mode) xzalloc(len) +#define vmalloc(len) malloc(len) +#define kfree(ptr) free(ptr) +#define vfree(ptr) free(ptr) + +#define KERN_EMERG "" /* system is unusable */ +#define KERN_ALERT "" /* action must be taken immediately */ +#define KERN_CRIT "" /* critical conditions */ +#define KERN_ERR "" /* error conditions */ +#define KERN_WARNING "" /* warning conditions */ +#define KERN_NOTICE "" /* normal but significant condition */ +#define KERN_INFO "" /* informational */ +#define KERN_DEBUG "" /* debug-level messages */ + +#define printk printf + +#define __iomem +#define __init +#define __exit + +#define MODULE_AUTHOR(x) +#define MODULE_DESCRIPTION(x) +#define MODULE_LICENSE(x) + +#define pr_info printf + +#endif /* __INCLUDE_LINUX_U_BOOT_WRAPPER_H */ |