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.

osdep.h 783B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #ifndef ETHERBOOT_OSDEP_H
  2. #define ETHERBOOT_OSDEP_H
  3. #define __unused __attribute__((unused))
  4. #define __aligned __attribute__((aligned(16)))
  5. #define PACKED __attribute__((packed))
  6. /* Optimization barrier */
  7. /* The "volatile" is due to gcc bugs */
  8. #define barrier() __asm__ __volatile__("": : :"memory")
  9. #include "stdint.h"
  10. #include "limits.h"
  11. #include "string.h"
  12. #include "io.h"
  13. #include "endian.h"
  14. #include "byteswap.h"
  15. #include "setjmp.h"
  16. #include "latch.h"
  17. /* within 1MB of 4GB is too close.
  18. * MAX_ADDR is the maximum address we can easily do DMA to.
  19. */
  20. #define MAX_ADDR (0xfff00000UL)
  21. typedef unsigned long Address;
  22. /* ANSI prototyping macro */
  23. #ifdef __STDC__
  24. #define P(x) x
  25. #else
  26. #define P(x) ()
  27. #endif
  28. #endif
  29. /*
  30. * Local variables:
  31. * c-basic-offset: 8
  32. * End:
  33. */