types.h 1.1 KB

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