types.h 492 B

123456789101112131415161718192021222324252627282930
  1. #ifndef _ETRAX_TYPES_H
  2. #define _ETRAX_TYPES_H
  3. #include <asm-generic/int-ll64.h>
  4. #ifndef __ASSEMBLY__
  5. typedef unsigned short umode_t;
  6. #endif /* __ASSEMBLY__ */
  7. /*
  8. * These aren't exported outside the kernel to avoid name space clashes
  9. */
  10. #ifdef __KERNEL__
  11. #define BITS_PER_LONG 32
  12. #ifndef __ASSEMBLY__
  13. /* Dma addresses are 32-bits wide, just like our other addresses. */
  14. typedef u32 dma_addr_t;
  15. typedef u32 dma64_addr_t;
  16. #endif /* __ASSEMBLY__ */
  17. #endif /* __KERNEL__ */
  18. #endif