Angelo Dureghello | e7a3ff9 | 2018-08-19 19:27:16 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
| 2 | /* |
| 3 | * Freescale eDMA platform data, ColdFire SoC's family. |
| 4 | * |
| 5 | * Copyright (c) 2017 Angelo Dureghello <angelo@sysam.it> |
| 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 | |
| 17 | #ifndef __LINUX_PLATFORM_DATA_MCF_EDMA_H__ |
| 18 | #define __LINUX_PLATFORM_DATA_MCF_EDMA_H__ |
| 19 | |
| 20 | struct dma_slave_map; |
| 21 | |
| 22 | bool mcf_edma_filter_fn(struct dma_chan *chan, void *param); |
| 23 | |
| 24 | #define MCF_EDMA_FILTER_PARAM(ch) ((void *)ch) |
| 25 | |
| 26 | /** |
| 27 | * struct mcf_edma_platform_data - platform specific data for eDMA engine |
| 28 | * |
| 29 | * @ver The eDMA module version. |
| 30 | * @dma_channels The number of eDMA channels. |
| 31 | */ |
| 32 | struct mcf_edma_platform_data { |
| 33 | int dma_channels; |
| 34 | const struct dma_slave_map *slave_map; |
| 35 | int slavecnt; |
| 36 | }; |
| 37 | |
| 38 | #endif /* __LINUX_PLATFORM_DATA_MCF_EDMA_H__ */ |