types.h 751 B

123456789101112131415161718192021222324252627282930313233
  1. /* $Id: types.h,v 1.13 2001/12/21 01:22:59 davem Exp $ */
  2. #ifndef _SPARC_TYPES_H
  3. #define _SPARC_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-ll64.h>
  12. #ifndef __ASSEMBLY__
  13. typedef unsigned short umode_t;
  14. #endif /* __ASSEMBLY__ */
  15. #ifdef __KERNEL__
  16. #define BITS_PER_LONG 32
  17. #ifndef __ASSEMBLY__
  18. typedef u32 dma_addr_t;
  19. typedef u32 dma64_addr_t;
  20. #endif /* __ASSEMBLY__ */
  21. #endif /* __KERNEL__ */
  22. #endif /* defined(_SPARC_TYPES_H) */