Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

osdep.h 806B

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. #include "callbacks.h"
  18. /* within 1MB of 4GB is too close.
  19. * MAX_ADDR is the maximum address we can easily do DMA to.
  20. */
  21. #define MAX_ADDR (0xfff00000UL)
  22. typedef unsigned long Address;
  23. /* ANSI prototyping macro */
  24. #ifdef __STDC__
  25. #define P(x) x
  26. #else
  27. #define P(x) ()
  28. #endif
  29. #endif
  30. /*
  31. * Local variables:
  32. * c-basic-offset: 8
  33. * End:
  34. */