types.h 758 B

123456789101112131415161718192021222324252627282930313233
  1. #ifndef _ALPHA_TYPES_H
  2. #define _ALPHA_TYPES_H
  3. /*
  4. * This file is never included by application software unless
  5. * explicitly requested (e.g., via linux/types.h) in which case the
  6. * application is Linux specific so (user-) name space pollution is
  7. * not a major issue. However, for interoperability, libraries still
  8. * need to be careful to avoid a name clashes.
  9. */
  10. #include <asm-generic/int-l64.h>
  11. #ifndef __ASSEMBLY__
  12. typedef unsigned int umode_t;
  13. #endif /* __ASSEMBLY__ */
  14. /*
  15. * These aren't exported outside the kernel to avoid name space clashes
  16. */
  17. #ifdef __KERNEL__
  18. #define BITS_PER_LONG 64
  19. #ifndef __ASSEMBLY__
  20. typedef u64 dma_addr_t;
  21. typedef u64 dma64_addr_t;
  22. #endif /* __ASSEMBLY__ */
  23. #endif /* __KERNEL__ */
  24. #endif /* _ALPHA_TYPES_H */