types.h 735 B

123456789101112131415161718192021222324252627282930313233
  1. #ifndef _H8300_TYPES_H
  2. #define _H8300_TYPES_H
  3. #include <asm-generic/int-ll64.h>
  4. #if !defined(__ASSEMBLY__)
  5. /*
  6. * This file is never included by application software unless
  7. * explicitly requested (e.g., via linux/types.h) in which case the
  8. * application is Linux specific so (user-) name space pollution is
  9. * not a major issue. However, for interoperability, libraries still
  10. * need to be careful to avoid a name clashes.
  11. */
  12. typedef unsigned short umode_t;
  13. /*
  14. * These aren't exported outside the kernel to avoid name space clashes
  15. */
  16. #ifdef __KERNEL__
  17. #define BITS_PER_LONG 32
  18. /* Dma addresses are 32-bits wide. */
  19. typedef u32 dma_addr_t;
  20. #endif /* __KERNEL__ */
  21. #endif /* __ASSEMBLY__ */
  22. #endif /* _H8300_TYPES_H */