summaryrefslogtreecommitdiffstats
path: root/include/asm-blackfin/dma.h
diff options
context:
space:
mode:
authorBryan Wu <bryan.wu@analog.com>2007-10-22 00:02:14 +0800
committerBryan Wu <bryan.wu@analog.com>2007-10-22 00:02:14 +0800
commit452af71f36685c932a5cce540a48c1818df6533f (patch)
treec466051e5be2b193c6fe41afc5335011dce1f6ea /include/asm-blackfin/dma.h
parent780431e397c82df7e20ee17536b97a08f97ef8ba (diff)
downloadblackbird-op-linux-452af71f36685c932a5cce540a48c1818df6533f.tar.gz
blackbird-op-linux-452af71f36685c932a5cce540a48c1818df6533f.zip
Blackfin arch: dma add some API and cleanup bf54x DMA definition
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
Diffstat (limited to 'include/asm-blackfin/dma.h')
-rw-r--r--include/asm-blackfin/dma.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/asm-blackfin/dma.h b/include/asm-blackfin/dma.h
index b42a531e7a1b..b469505af364 100644
--- a/include/asm-blackfin/dma.h
+++ b/include/asm-blackfin/dma.h
@@ -109,9 +109,7 @@ struct dma_register {
unsigned long curr_desc_ptr; /* DMA Current Descriptor Pointer
register */
- unsigned short curr_addr_ptr_lo; /* DMA Current Address Pointer
- register */
- unsigned short curr_addr_ptr_hi; /* DMA Current Address Pointer
+ unsigned long curr_addr_ptr; /* DMA Current Address Pointer
register */
unsigned short irq_status; /* DMA irq status register */
unsigned short dummy6;
@@ -166,6 +164,9 @@ void set_dma_curr_addr(unsigned int channel, unsigned long addr);
unsigned short get_dma_curr_irqstat(unsigned int channel);
unsigned short get_dma_curr_xcount(unsigned int channel);
unsigned short get_dma_curr_ycount(unsigned int channel);
+unsigned long get_dma_next_desc_ptr(unsigned int channel);
+unsigned long get_dma_curr_desc_ptr(unsigned int channel);
+unsigned long get_dma_curr_addr(unsigned int channel);
/* set large DMA mode descriptor */
void set_dma_sg(unsigned int channel, struct dmasg *sg, int nr_sg);
OpenPOWER on IntegriCloud