mmc-atmel-mci.h 459 B

12345678910111213141516171819202122
  1. #ifndef __MMC_ATMEL_MCI_H
  2. #define __MMC_ATMEL_MCI_H
  3. #include <linux/platform_data/dma-atmel.h>
  4. #include <linux/platform_data/dma-dw.h>
  5. /**
  6. * struct mci_dma_data - DMA data for MCI interface
  7. */
  8. struct mci_dma_data {
  9. #ifdef CONFIG_ARM
  10. struct at_dma_slave sdata;
  11. #else
  12. struct dw_dma_slave sdata;
  13. #endif
  14. };
  15. /* accessor macros */
  16. #define slave_data_ptr(s) (&(s)->sdata)
  17. #define find_slave_dev(s) ((s)->sdata.dma_dev)
  18. #endif /* __MMC_ATMEL_MCI_H */