Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=1d945e2b3e421f2ce01b2eb260392f888406933f
Commit:     1d945e2b3e421f2ce01b2eb260392f888406933f
Parent:     518039bc24cbb9ce34665814fe120eac50bedd9a
Author:     Roy Huang <[EMAIL PROTECTED]>
AuthorDate: Wed Oct 10 23:31:19 2007 +0800
Committer:  Bryan Wu <[EMAIL PROTECTED]>
CommitDate: Wed Oct 10 23:31:19 2007 +0800

    Blackfin arch: add set_dma_curr_addr DMA API to support sound driver 
recording function
    
    Signed-off-by: Roy Huang <[EMAIL PROTECTED]>
    Signed-off-by: Bryan Wu <[EMAIL PROTECTED]>
---
 arch/blackfin/kernel/bfin_dma_5xx.c |   10 ++++++++++
 include/asm-blackfin/dma.h          |    1 +
 2 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/arch/blackfin/kernel/bfin_dma_5xx.c 
b/arch/blackfin/kernel/bfin_dma_5xx.c
index 7cf02f0..7e22019 100644
--- a/arch/blackfin/kernel/bfin_dma_5xx.c
+++ b/arch/blackfin/kernel/bfin_dma_5xx.c
@@ -345,6 +345,16 @@ void set_dma_sg(unsigned int channel, struct dmasg *sg, 
int nr_sg)
 }
 EXPORT_SYMBOL(set_dma_sg);
 
+void set_dma_curr_addr(unsigned int channel, unsigned long addr)
+{
+       BUG_ON(!(dma_ch[channel].chan_status != DMA_CHANNEL_FREE
+              && channel < MAX_BLACKFIN_DMA_CHANNEL));
+
+       dma_ch[channel].regs->curr_addr_ptr = addr;
+       SSYNC();
+}
+EXPORT_SYMBOL(set_dma_curr_addr);
+
 
/*------------------------------------------------------------------------------
  *     Get the DMA status of a specific DMA channel from the system.
  
*-----------------------------------------------------------------------------*/
diff --git a/include/asm-blackfin/dma.h b/include/asm-blackfin/dma.h
index be0d913..4269082 100644
--- a/include/asm-blackfin/dma.h
+++ b/include/asm-blackfin/dma.h
@@ -159,6 +159,7 @@ void set_dma_y_modify(unsigned int channel, short y_modify);
 void set_dma_config(unsigned int channel, unsigned short config);
 unsigned short set_bfin_dma_config(char direction, char flow_mode,
                                   char intr_mode, char dma_mode, char width);
+void set_dma_curr_addr(unsigned int channel, unsigned long addr);
 
 /* get curr status for polling */
 unsigned short get_dma_curr_irqstat(unsigned int channel);
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to