types.h 814 B

1234567891011121314151617181920212223242526272829303132333435
  1. /* $Id: types.h,v 1.4 2001/10/09 02:24:35 davem Exp $ */
  2. #ifndef _SPARC64_TYPES_H
  3. #define _SPARC64_TYPES_H
  4. /*
  5. * This file is never included by application software unless
  6. * explicitly requested (e.g., via linux/types.h) in which case the
  7. * application is Linux specific so (user-) name space pollution is
  8. * not a major issue. However, for interoperability, libraries still
  9. * need to be careful to avoid a name clashes.
  10. */
  11. #include <asm-generic/int-l64.h>
  12. #ifndef __ASSEMBLY__
  13. typedef unsigned short umode_t;
  14. #endif /* __ASSEMBLY__ */
  15. #ifdef __KERNEL__
  16. #define BITS_PER_LONG 64
  17. #ifndef __ASSEMBLY__
  18. /* Dma addresses come in generic and 64-bit flavours. */
  19. typedef u32 dma_addr_t;
  20. typedef u64 dma64_addr_t;
  21. #endif /* __ASSEMBLY__ */
  22. #endif /* __KERNEL__ */
  23. #endif /* defined(_SPARC64_TYPES_H) */