types.h 757 B

12345678910111213141516171819202122232425262728293031323334
  1. #ifndef _SPARC64_TYPES_H
  2. #define _SPARC64_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 short umode_t;
  13. #endif /* __ASSEMBLY__ */
  14. #ifdef __KERNEL__
  15. #define BITS_PER_LONG 64
  16. #ifndef __ASSEMBLY__
  17. /* Dma addresses come in generic and 64-bit flavours. */
  18. typedef u32 dma_addr_t;
  19. typedef u64 dma64_addr_t;
  20. #endif /* __ASSEMBLY__ */
  21. #endif /* __KERNEL__ */
  22. #endif /* defined(_SPARC64_TYPES_H) */