types.h 805 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #ifndef _M68K_TYPES_H
  2. #define _M68K_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. /*
  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 always 32-bits wide */
  21. typedef u32 dma_addr_t;
  22. typedef u32 dma64_addr_t;
  23. #endif /* __ASSEMBLY__ */
  24. #endif /* __KERNEL__ */
  25. #endif /* _M68K_TYPES_H */