types.h 570 B

123456789101112131415161718192021222324252627282930313233343536
  1. #ifndef _PARISC_TYPES_H
  2. #define _PARISC_TYPES_H
  3. #include <asm-generic/int-ll64.h>
  4. #ifndef __ASSEMBLY__
  5. typedef unsigned short umode_t;
  6. #endif /* __ASSEMBLY__ */
  7. /*
  8. * These aren't exported outside the kernel to avoid name space clashes
  9. */
  10. #ifdef __KERNEL__
  11. #ifdef CONFIG_64BIT
  12. #define BITS_PER_LONG 64
  13. #define SHIFT_PER_LONG 6
  14. #else
  15. #define BITS_PER_LONG 32
  16. #define SHIFT_PER_LONG 5
  17. #endif
  18. #ifndef __ASSEMBLY__
  19. /* Dma addresses are 32-bits wide. */
  20. typedef u32 dma_addr_t;
  21. typedef u64 dma64_addr_t;
  22. #endif /* __ASSEMBLY__ */
  23. #endif /* __KERNEL__ */
  24. #endif