types.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. /* $Id: types.h,v 1.13 2001/12/21 01:22:59 davem Exp $ */
  2. #ifndef _SPARC_TYPES_H
  3. #define _SPARC_TYPES_H
  4. /*
  5. * _xx is ok: it doesn't pollute the POSIX namespace. Use these in the
  6. * header files exported to user space.
  7. */
  8. /*
  9. * This file is never included by application software unless
  10. * explicitly requested (e.g., via linux/types.h) in which case the
  11. * application is Linux specific so (user-) name space pollution is
  12. * not a major issue. However, for interoperability, libraries still
  13. * need to be careful to avoid a name clashes.
  14. */
  15. #ifndef __ASSEMBLY__
  16. typedef unsigned short umode_t;
  17. typedef __signed__ char __s8;
  18. typedef unsigned char __u8;
  19. typedef __signed__ short __s16;
  20. typedef unsigned short __u16;
  21. typedef __signed__ int __s32;
  22. typedef unsigned int __u32;
  23. typedef __signed__ long long __s64;
  24. typedef unsigned long long __u64;
  25. #endif /* __ASSEMBLY__ */
  26. #ifdef __KERNEL__
  27. #define BITS_PER_LONG 32
  28. #ifndef __ASSEMBLY__
  29. typedef __signed__ char s8;
  30. typedef unsigned char u8;
  31. typedef __signed__ short s16;
  32. typedef unsigned short u16;
  33. typedef __signed__ int s32;
  34. typedef unsigned int u32;
  35. typedef __signed__ long long s64;
  36. typedef unsigned long long u64;
  37. typedef u32 dma_addr_t;
  38. typedef u32 dma64_addr_t;
  39. #endif /* __ASSEMBLY__ */
  40. #endif /* __KERNEL__ */
  41. #endif /* defined(_SPARC_TYPES_H) */