dma.h 676 B

1234567891011121314151617181920212223242526272829303132333435
  1. #ifndef __ASM_CPU_SH4_DMA_H
  2. #define __ASM_CPU_SH4_DMA_H
  3. /* SH7751/7760/7780 DMA IRQ sources */
  4. #ifdef CONFIG_CPU_SH4A
  5. #include <cpu/dma-sh4a.h>
  6. #else /* CONFIG_CPU_SH4A */
  7. #include <linux/sh_intc.h>
  8. /*
  9. * SH7750/SH7751/SH7760
  10. */
  11. #define DMTE0_IRQ evt2irq(0x640)
  12. #define DMTE4_IRQ evt2irq(0x780)
  13. #define DMTE6_IRQ evt2irq(0x7c0)
  14. #define DMAE0_IRQ evt2irq(0x6c0)
  15. #define SH_DMAC_BASE0 0xffa00000
  16. #define SH_DMAC_BASE1 0xffa00070
  17. /* Definitions for the SuperH DMAC */
  18. #define TM_BURST 0x00000080
  19. #define TS_8 0x00000010
  20. #define TS_16 0x00000020
  21. #define TS_32 0x00000030
  22. #define TS_64 0x00000000
  23. #define DMAOR_COD 0x00000008
  24. #endif
  25. #endif /* __ASM_CPU_SH4_DMA_H */