1 #ifndef __LINUX_COMPAT_H__
2 #define __LINUX_COMPAT_H__
5 #include <linux/list.h>
6 #include <linux/compat.h>
8 #define pr_debug(fmt, args...) debug(fmt, ##args)
10 #define WARN(condition, fmt, args...) ({ \
11 int ret_warn = !!condition; \
13 printf(fmt, ##args); \
16 #define writesl(a, d, s) __raw_writesl((unsigned long)a, d, s)
17 #define readsl(a, d, s) __raw_readsl((unsigned long)a, d, s)
18 #define writesw(a, d, s) __raw_writesw((unsigned long)a, d, s)
19 #define readsw(a, d, s) __raw_readsw((unsigned long)a, d, s)
20 #define writesb(a, d, s) __raw_writesb((unsigned long)a, d, s)
21 #define readsb(a, d, s) __raw_readsb((unsigned long)a, d, s)
23 #define device_init_wakeup(dev, a) do {} while (0)
25 #define platform_data device_data
28 #define wmb() asm volatile ("" : : : "memory")
31 #define msleep(a) udelay(a * 1000)
34 * Map U-Boot config options to Linux ones
36 #ifdef CONFIG_OMAP34XX
37 #define CONFIG_SOC_OMAP3430
40 #endif /* __LINUX_COMPAT_H__ */