types.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. #ifndef _M68K_TYPES_H
  2. #define _M68K_TYPES_H
  3. /*
  4. * This file is never included by application software unless
  5. * explicitly requested (e.g., via linux/types.h) in which case the
  6. * application is Linux specific so (user-) name space pollution is
  7. * not a major issue. However, for interoperability, libraries still
  8. * need to be careful to avoid a name clashes.
  9. */
  10. #ifndef __ASSEMBLY__
  11. typedef unsigned short umode_t;
  12. /*
  13. * __xx is ok: it doesn't pollute the POSIX namespace. Use these in the
  14. * header files exported to user space
  15. */
  16. typedef __signed__ char __s8;
  17. typedef unsigned char __u8;
  18. typedef __signed__ short __s16;
  19. typedef unsigned short __u16;
  20. typedef __signed__ int __s32;
  21. typedef unsigned int __u32;
  22. #if defined(__GNUC__) && !defined(__STRICT_ANSI__)
  23. typedef __signed__ long long __s64;
  24. typedef unsigned long long __u64;
  25. #endif
  26. #endif /* __ASSEMBLY__ */
  27. /*
  28. * These aren't exported outside the kernel to avoid name space clashes
  29. */
  30. #ifdef __KERNEL__
  31. #define BITS_PER_LONG 32
  32. #ifndef __ASSEMBLY__
  33. typedef signed char s8;
  34. typedef unsigned char u8;
  35. typedef signed short s16;
  36. typedef unsigned short u16;
  37. typedef signed int s32;
  38. typedef unsigned int u32;
  39. typedef signed long long s64;
  40. typedef unsigned long long u64;
  41. /* DMA addresses are always 32-bits wide */
  42. typedef u32 dma_addr_t;
  43. typedef u32 dma64_addr_t;
  44. #endif /* __ASSEMBLY__ */
  45. #endif /* __KERNEL__ */
  46. #endif /* _M68K_TYPES_H */