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 655B

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