types.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. #ifndef _ASM_M32R_TYPES_H
  2. #define _ASM_M32R_TYPES_H
  3. #ifndef __ASSEMBLY__
  4. /* $Id$ */
  5. /* orig : i386 2.4.18 */
  6. typedef unsigned short umode_t;
  7. /*
  8. * __xx is ok: it doesn't pollute the POSIX namespace. Use these in the
  9. * header files exported to user space
  10. */
  11. typedef __signed__ char __s8;
  12. typedef unsigned char __u8;
  13. typedef __signed__ short __s16;
  14. typedef unsigned short __u16;
  15. typedef __signed__ int __s32;
  16. typedef unsigned int __u32;
  17. #if defined(__GNUC__) && !defined(__STRICT_ANSI__)
  18. typedef __signed__ long long __s64;
  19. typedef unsigned long long __u64;
  20. #endif
  21. #endif /* __ASSEMBLY__ */
  22. /*
  23. * These aren't exported outside the kernel to avoid name space clashes
  24. */
  25. #ifdef __KERNEL__
  26. #define BITS_PER_LONG 32
  27. #ifndef __ASSEMBLY__
  28. typedef signed char s8;
  29. typedef unsigned char u8;
  30. typedef signed short s16;
  31. typedef unsigned short u16;
  32. typedef signed int s32;
  33. typedef unsigned int u32;
  34. typedef signed long long s64;
  35. typedef unsigned long long u64;
  36. /* DMA addresses are 32-bits wide. */
  37. typedef u32 dma_addr_t;
  38. typedef u64 dma64_addr_t;
  39. #endif /* __ASSEMBLY__ */
  40. #endif /* __KERNEL__ */
  41. #endif /* _ASM_M32R_TYPES_H */