You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

linux_compat.h 525B

12345678910111213141516171819202122232425
  1. #ifndef _GPXE_LINUX_COMPAT_H
  2. #define _GPXE_LINUX_COMPAT_H
  3. /** @file
  4. *
  5. * Linux code compatibility
  6. *
  7. * This file exists to ease the building of Linux source code within
  8. * gPXE. This is intended to facilitate quick testing; it is not
  9. * intended to be a substitute for proper porting.
  10. */
  11. #include <stdint.h>
  12. #include <errno.h>
  13. #include <stdio.h>
  14. #include <byteswap.h>
  15. #include <gpxe/bitops.h>
  16. #define __init
  17. #define __exit
  18. #define __initdata
  19. #define __exitdata
  20. #define printk printf
  21. #endif /* _GPXE_LINUX_COMPAT_H */