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