dma-mcf-edma.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * Freescale eDMA platform data, ColdFire SoC's family.
  4. *
  5. * Copyright (c) 2017 Angelo Dureghello <[email protected]>
  6. *
  7. * This program is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License version 2 as
  9. * published by the Free Software Foundation.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. */
  16. #ifndef __LINUX_PLATFORM_DATA_MCF_EDMA_H__
  17. #define __LINUX_PLATFORM_DATA_MCF_EDMA_H__
  18. struct dma_slave_map;
  19. bool mcf_edma_filter_fn(struct dma_chan *chan, void *param);
  20. #define MCF_EDMA_FILTER_PARAM(ch) ((void *)ch)
  21. /**
  22. * struct mcf_edma_platform_data - platform specific data for eDMA engine
  23. *
  24. * @ver The eDMA module version.
  25. * @dma_channels The number of eDMA channels.
  26. */
  27. struct mcf_edma_platform_data {
  28. int dma_channels;
  29. const struct dma_slave_map *slave_map;
  30. int slavecnt;
  31. };
  32. #endif /* __LINUX_PLATFORM_DATA_MCF_EDMA_H__ */