diff options
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 */ | ||
