types.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #ifndef _ASM_IA64_TYPES_H
  2. #define _ASM_IA64_TYPES_H
  3. /*
  4. * This file is never included by application software unless explicitly requested (e.g.,
  5. * via linux/types.h) in which case the application is Linux specific so (user-) name
  6. * space pollution is not a major issue. However, for interoperability, libraries still
  7. * need to be careful to avoid a name clashes.
  8. *
  9. * Based on <asm-alpha/types.h>.
  10. *
  11. * Modified 1998-2000, 2002
  12. * David Mosberger-Tang <davidm@hpl.hp.com>, Hewlett-Packard Co
  13. */
  14. #include <asm-generic/int-l64.h>
  15. #ifdef __ASSEMBLY__
  16. # define __IA64_UL(x) (x)
  17. # define __IA64_UL_CONST(x) x
  18. # ifdef __KERNEL__
  19. # define BITS_PER_LONG 64
  20. # endif
  21. #else
  22. # define __IA64_UL(x) ((unsigned long)(x))
  23. # define __IA64_UL_CONST(x) x##UL
  24. typedef unsigned int umode_t;
  25. /*
  26. * These aren't exported outside the kernel to avoid name space clashes
  27. */
  28. # ifdef __KERNEL__
  29. #define BITS_PER_LONG 64
  30. /* DMA addresses are 64-bits wide, in general. */
  31. typedef u64 dma_addr_t;
  32. # endif /* __KERNEL__ */
  33. #endif /* !__ASSEMBLY__ */
  34. #endif /* _ASM_IA64_TYPES_H */