From: Mike Frysinger Date: Wed, 7 Jan 2009 15:14:38 +0000 (+0800) Subject: Blackfin arch: add get_dma_config() func to match set_dma_config() X-Git-Tag: v2.6.29-rc1~189^2~34 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=71f5ca35d5aa1c27920c2a223993bef551c723b5;p=linux-2.6-omap-h63xx.git Blackfin arch: add get_dma_config() func to match set_dma_config() Signed-off-by: Mike Frysinger Signed-off-by: Bryan Wu --- diff --git a/arch/blackfin/include/asm/dma.h b/arch/blackfin/include/asm/dma.h index 30595bf3ccb..e4f7b8043f0 100644 --- a/arch/blackfin/include/asm/dma.h +++ b/arch/blackfin/include/asm/dma.h @@ -195,6 +195,10 @@ static inline void *get_dma_curr_desc_ptr(unsigned int channel) { return dma_ch[channel].regs->curr_desc_ptr; } +static inline unsigned short get_dma_config(unsigned int channel) +{ + return dma_ch[channel].regs->cfg; +} static inline unsigned long get_dma_curr_addr(unsigned int channel) { return dma_ch[channel].regs->curr_addr_ptr;