linux-compat.h 705 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #ifndef __LINUX_COMPAT_H__
  2. #define __LINUX_COMPAT_H__
  3. #include <malloc.h>
  4. #include <linux/list.h>
  5. #include <linux/compat.h>
  6. #define pr_debug(fmt, args...) debug(fmt, ##args)
  7. #define WARN(condition, fmt, args...) ({ \
  8. int ret_warn = !!condition; \
  9. if (ret_warn) \
  10. printf(fmt, ##args); \
  11. ret_warn; })
  12. #define device_init_wakeup(dev, a) do {} while (0)
  13. #define platform_data device_data
  14. #ifndef wmb
  15. #define wmb() asm volatile ("" : : : "memory")
  16. #endif
  17. #define msleep(a) udelay(a * 1000)
  18. /*
  19. * Map U-Boot config options to Linux ones
  20. */
  21. #ifdef CONFIG_OMAP34XX
  22. #define CONFIG_SOC_OMAP3430
  23. #endif
  24. #ifdef CONFIG_OMAP4430
  25. #define CONFIG_ARCH_OMAP4
  26. #endif
  27. #endif /* __LINUX_COMPAT_H__ */