types.h 542 B

1234567891011121314151617181920212223242526272829303132333435
  1. #ifndef __ASM_SH_TYPES_H
  2. #define __ASM_SH_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. */
  14. typedef u32 dma_addr_t;
  15. #ifdef CONFIG_SUPERH32
  16. typedef u16 opcode_t;
  17. #else
  18. typedef u32 opcode_t;
  19. #endif
  20. #endif /* __ASSEMBLY__ */
  21. #endif /* __KERNEL__ */
  22. #endif /* __ASM_SH_TYPES_H */