diff options
author | Koul, Vinod <vinod.koul@intel.com> | 2010-10-04 06:38:43 -0400 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2010-10-07 18:03:44 -0400 |
commit | 20dd63900d238e17b122fe0c7376ff090867f528 (patch) | |
tree | 8f25adbbb5d49ca428df2596d1e2e24e8e40e428 /include | |
parent | 8b6492231d2a92352a6371eebd622e3bc824a663 (diff) |
intel_mid_dma: change the slave interface
In 2.6.36 kernel, dma slave control command was introduced,
this patch changes the intel-mid-dma driver to this
new kernel slave interface
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/intel_mid_dma.h | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/include/linux/intel_mid_dma.h b/include/linux/intel_mid_dma.h index befe3fbd9e28..10496bd24c5c 100644 --- a/include/linux/intel_mid_dma.h +++ b/include/linux/intel_mid_dma.h | |||
@@ -28,14 +28,6 @@ | |||
28 | #include <linux/dmaengine.h> | 28 | #include <linux/dmaengine.h> |
29 | 29 | ||
30 | #define DMA_PREP_CIRCULAR_LIST (1 << 10) | 30 | #define DMA_PREP_CIRCULAR_LIST (1 << 10) |
31 | /*DMA transaction width, src and dstn width would be same | ||
32 | The DMA length must be width aligned, | ||
33 | for 32 bit width the length must be 32 bit (4bytes) aligned only*/ | ||
34 | enum intel_mid_dma_width { | ||
35 | LNW_DMA_WIDTH_8BIT = 0x0, | ||
36 | LNW_DMA_WIDTH_16BIT = 0x1, | ||
37 | LNW_DMA_WIDTH_32BIT = 0x2, | ||
38 | }; | ||
39 | 31 | ||
40 | /*DMA mode configurations*/ | 32 | /*DMA mode configurations*/ |
41 | enum intel_mid_dma_mode { | 33 | enum intel_mid_dma_mode { |
@@ -75,15 +67,10 @@ enum intel_mid_dma_msize { | |||
75 | * peripheral device connected to single DMAC | 67 | * peripheral device connected to single DMAC |
76 | */ | 68 | */ |
77 | struct intel_mid_dma_slave { | 69 | struct intel_mid_dma_slave { |
78 | enum dma_data_direction dirn; | ||
79 | enum intel_mid_dma_width src_width; /*width of DMA src txn*/ | ||
80 | enum intel_mid_dma_width dst_width; /*width of DMA dst txn*/ | ||
81 | enum intel_mid_dma_hs_mode hs_mode; /*handshaking*/ | 70 | enum intel_mid_dma_hs_mode hs_mode; /*handshaking*/ |
82 | enum intel_mid_dma_mode cfg_mode; /*mode configuration*/ | 71 | enum intel_mid_dma_mode cfg_mode; /*mode configuration*/ |
83 | enum intel_mid_dma_msize src_msize; /*size if src burst*/ | ||
84 | enum intel_mid_dma_msize dst_msize; /*size of dst burst*/ | ||
85 | dma_addr_t per_addr; /*Peripheral address*/ | ||
86 | unsigned int device_instance; /*0, 1 for periphral instance*/ | 72 | unsigned int device_instance; /*0, 1 for periphral instance*/ |
73 | struct dma_slave_config dma_slave; | ||
87 | }; | 74 | }; |
88 | 75 | ||
89 | #endif /*__INTEL_MID_DMA_H__*/ | 76 | #endif /*__INTEL_MID_DMA_H__*/ |