diff options
| author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2014-09-23 10:18:11 -0400 |
|---|---|---|
| committer | Vinod Koul <vinod.koul@intel.com> | 2014-10-15 11:01:04 -0400 |
| commit | 3d588f83e4d6a5230d9094b97d38621cbaa9a972 (patch) | |
| tree | 376a10e65eef40977b14439e212d9b8a49c732e9 /include/linux/platform_data | |
| parent | 46e8c83c83c06b90ebc000df481c2fdcee79a141 (diff) | |
dmaengine: dw: split dma-dw.h to platform and private parts
The introduced include/linux/dma/dw.h is going to contain the private
extensions and structures which are shared for dw_dmac users in the kernel.
Meanwhile include/linux/platform_data/dma-dw.h keeps only platform related data
types and definitions.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'include/linux/platform_data')
| -rw-r--r-- | include/linux/platform_data/dma-dw.h | 27 |
1 files changed, 4 insertions, 23 deletions
diff --git a/include/linux/platform_data/dma-dw.h b/include/linux/platform_data/dma-dw.h index d0c97da66e22..d8155c005242 100644 --- a/include/linux/platform_data/dma-dw.h +++ b/include/linux/platform_data/dma-dw.h | |||
| @@ -8,10 +8,10 @@ | |||
| 8 | * it under the terms of the GNU General Public License version 2 as | 8 | * it under the terms of the GNU General Public License version 2 as |
| 9 | * published by the Free Software Foundation. | 9 | * published by the Free Software Foundation. |
| 10 | */ | 10 | */ |
| 11 | #ifndef DW_DMAC_H | 11 | #ifndef _PLATFORM_DATA_DMA_DW_H |
| 12 | #define DW_DMAC_H | 12 | #define _PLATFORM_DATA_DMA_DW_H |
| 13 | 13 | ||
| 14 | #include <linux/dmaengine.h> | 14 | #include <linux/device.h> |
| 15 | 15 | ||
| 16 | /** | 16 | /** |
| 17 | * struct dw_dma_slave - Controller-specific information about a slave | 17 | * struct dw_dma_slave - Controller-specific information about a slave |
| @@ -56,23 +56,4 @@ struct dw_dma_platform_data { | |||
| 56 | unsigned char data_width[4]; | 56 | unsigned char data_width[4]; |
| 57 | }; | 57 | }; |
| 58 | 58 | ||
| 59 | /* DMA API extensions */ | 59 | #endif /* _PLATFORM_DATA_DMA_DW_H */ |
| 60 | struct dw_cyclic_desc { | ||
| 61 | struct dw_desc **desc; | ||
| 62 | unsigned long periods; | ||
| 63 | void (*period_callback)(void *param); | ||
| 64 | void *period_callback_param; | ||
| 65 | }; | ||
| 66 | |||
| 67 | struct dw_cyclic_desc *dw_dma_cyclic_prep(struct dma_chan *chan, | ||
| 68 | dma_addr_t buf_addr, size_t buf_len, size_t period_len, | ||
| 69 | enum dma_transfer_direction direction); | ||
| 70 | void dw_dma_cyclic_free(struct dma_chan *chan); | ||
| 71 | int dw_dma_cyclic_start(struct dma_chan *chan); | ||
| 72 | void dw_dma_cyclic_stop(struct dma_chan *chan); | ||
| 73 | |||
| 74 | dma_addr_t dw_dma_get_src_addr(struct dma_chan *chan); | ||
| 75 | |||
| 76 | dma_addr_t dw_dma_get_dst_addr(struct dma_chan *chan); | ||
| 77 | |||
| 78 | #endif /* DW_DMAC_H */ | ||
