Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 /*
0003  * Freescale eDMA platform data, ColdFire SoC's family.
0004  *
0005  * Copyright (c) 2017 Angelo Dureghello <angelo@sysam.it>
0006  *
0007  * This program is free software; you can redistribute it and/or modify
0008  * it under the terms of the GNU General Public License version 2 as
0009  * published by the Free Software Foundation.
0010  *
0011  * This program is distributed in the hope that it will be useful,
0012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
0013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
0014  * GNU General Public License for more details.
0015  */
0016 
0017 #ifndef __LINUX_PLATFORM_DATA_MCF_EDMA_H__
0018 #define __LINUX_PLATFORM_DATA_MCF_EDMA_H__
0019 
0020 struct dma_slave_map;
0021 
0022 bool mcf_edma_filter_fn(struct dma_chan *chan, void *param);
0023 
0024 #define MCF_EDMA_FILTER_PARAM(ch)   ((void *)ch)
0025 
0026 /**
0027  * struct mcf_edma_platform_data - platform specific data for eDMA engine
0028  *
0029  * @ver         The eDMA module version.
0030  * @dma_channels    The number of eDMA channels.
0031  */
0032 struct mcf_edma_platform_data {
0033     int dma_channels;
0034     const struct dma_slave_map *slave_map;
0035     int slavecnt;
0036 };
0037 
0038 #endif /* __LINUX_PLATFORM_DATA_MCF_EDMA_H__ */