types.h 693 B

1234567891011121314151617181920212223242526272829303132
  1. #ifndef _SPARC_TYPES_H
  2. #define _SPARC_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-ll64.h>
  11. #ifndef __ASSEMBLY__
  12. typedef unsigned short umode_t;
  13. #endif /* __ASSEMBLY__ */
  14. #ifdef __KERNEL__
  15. #define BITS_PER_LONG 32
  16. #ifndef __ASSEMBLY__
  17. typedef u32 dma_addr_t;
  18. typedef u32 dma64_addr_t;
  19. #endif /* __ASSEMBLY__ */
  20. #endif /* __KERNEL__ */
  21. #endif /* defined(_SPARC_TYPES_H) */