atmel-mci.h 474 B

12345678910111213141516171819202122232425
  1. #ifndef __MACH_ATMEL_MCI_H
  2. #define __MACH_ATMEL_MCI_H
  3. #include <mach/at_hdmac.h>
  4. /**
  5. * struct mci_dma_data - DMA data for MCI interface
  6. */
  7. struct mci_dma_data {
  8. struct at_dma_slave sdata;
  9. };
  10. /* accessor macros */
  11. #define slave_data_ptr(s) (&(s)->sdata)
  12. #define find_slave_dev(s) ((s)->sdata.dma_dev)
  13. #define setup_dma_addr(s, t, r) do { \
  14. if (s) { \
  15. (s)->sdata.tx_reg = (t); \
  16. (s)->sdata.rx_reg = (r); \
  17. } \
  18. } while (0)
  19. #endif /* __MACH_ATMEL_MCI_H */