aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/dma/intel_mid_dma_regs.h
diff options
context:
space:
mode:
authorKoul, Vinod <vinod.koul@intel.com>2010-10-04 06:38:43 -0400
committerDan Williams <dan.j.williams@intel.com>2010-10-07 18:03:44 -0400
commit20dd63900d238e17b122fe0c7376ff090867f528 (patch)
tree8f25adbbb5d49ca428df2596d1e2e24e8e40e428 /drivers/dma/intel_mid_dma_regs.h
parent8b6492231d2a92352a6371eebd622e3bc824a663 (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 'drivers/dma/intel_mid_dma_regs.h')
-rw-r--r--drivers/dma/intel_mid_dma_regs.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/drivers/dma/intel_mid_dma_regs.h b/drivers/dma/intel_mid_dma_regs.h
index 7a5ac56d1324..709fecbdde79 100644
--- a/drivers/dma/intel_mid_dma_regs.h
+++ b/drivers/dma/intel_mid_dma_regs.h
@@ -187,13 +187,13 @@ struct intel_mid_dma_chan {
187 struct list_head active_list; 187 struct list_head active_list;
188 struct list_head queue; 188 struct list_head queue;
189 struct list_head free_list; 189 struct list_head free_list;
190 struct intel_mid_dma_slave *slave;
191 unsigned int descs_allocated; 190 unsigned int descs_allocated;
192 struct middma_device *dma; 191 struct middma_device *dma;
193 bool busy; 192 bool busy;
194 bool in_use; 193 bool in_use;
195 u32 raw_tfr; 194 u32 raw_tfr;
196 u32 raw_block; 195 u32 raw_block;
196 struct intel_mid_dma_slave *mid_slave;
197}; 197};
198 198
199static inline struct intel_mid_dma_chan *to_intel_mid_dma_chan( 199static inline struct intel_mid_dma_chan *to_intel_mid_dma_chan(
@@ -264,7 +264,7 @@ struct intel_mid_dma_desc {
264 dma_addr_t next; 264 dma_addr_t next;
265 enum dma_data_direction dirn; 265 enum dma_data_direction dirn;
266 enum dma_status status; 266 enum dma_status status;
267 enum intel_mid_dma_width width; /*width of DMA txn*/ 267 enum dma_slave_buswidth width; /*width of DMA txn*/
268 enum intel_mid_dma_mode cfg_mode; /*mode configuration*/ 268 enum intel_mid_dma_mode cfg_mode; /*mode configuration*/
269 269
270}; 270};
@@ -289,6 +289,13 @@ static inline struct intel_mid_dma_desc *to_intel_mid_dma_desc
289 return container_of(txd, struct intel_mid_dma_desc, txd); 289 return container_of(txd, struct intel_mid_dma_desc, txd);
290} 290}
291 291
292static inline struct intel_mid_dma_slave *to_intel_mid_dma_slave
293 (struct dma_slave_config *slave)
294{
295 return container_of(slave, struct intel_mid_dma_slave, dma_slave);
296}
297
298
292int dma_resume(struct pci_dev *pci); 299int dma_resume(struct pci_dev *pci);
293 300
294#endif /*__INTEL_MID_DMAC_REGS_H__*/ 301#endif /*__INTEL_MID_DMAC_REGS_H__*/