types.h 785 B

123456789101112131415161718192021222324252627282930313233343536
  1. #ifndef __V850_TYPES_H__
  2. #define __V850_TYPES_H__
  3. #ifndef __ASSEMBLY__
  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. typedef unsigned short 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 32
  19. #ifndef __ASSEMBLY__
  20. /* Dma addresses are 32-bits wide. */
  21. typedef u32 dma_addr_t;
  22. #endif /* !__ASSEMBLY__ */
  23. #endif /* __KERNEL__ */
  24. #endif /* __V850_TYPES_H__ */