X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=arch%2Fmips%2Fjazz%2Fjazzdma.c;h=46e421e143486ae0742199d8950f3e94ea12c21d;hb=6a77f38946aaee1cd85eeec6cf4229b204c15071;hp=ceda294d513535af3f8c3689bd19081f2bbca068;hpb=87fc8d1bb10cd459024a742c6a10961fefcef18f;p=linux-2.6.git diff --git a/arch/mips/jazz/jazzdma.c b/arch/mips/jazz/jazzdma.c index ceda294d5..46e421e14 100644 --- a/arch/mips/jazz/jazzdma.c +++ b/arch/mips/jazz/jazzdma.c @@ -29,7 +29,7 @@ static unsigned long vdma_pagetable_start; -static spinlock_t vdma_lock = SPIN_LOCK_UNLOCKED; +static DEFINE_SPINLOCK(vdma_lock); /* * Debug stuff @@ -304,6 +304,8 @@ unsigned long vdma_phys2log(unsigned long paddr) return (i << 12) + (paddr & (VDMA_PAGESIZE - 1)); } +EXPORT_SYMBOL(vdma_phys2log); + /* * Translate a logical DMA address to a physical address */ @@ -394,6 +396,8 @@ void vdma_enable(int channel) R4030_CHNL_ENABLE); } +EXPORT_SYMBOL(vdma_enable); + /* * Disable a DMA channel */ @@ -429,6 +433,8 @@ void vdma_disable(int channel) *((volatile unsigned int *) JAZZ_DUMMY_DEVICE); } +EXPORT_SYMBOL(vdma_disable); + /* * Set DMA mode. This function accepts the mode values used * to set a PC-style DMA controller. For the SCSI and FDC @@ -496,6 +502,8 @@ void vdma_set_mode(int channel, int mode) } } +EXPORT_SYMBOL(vdma_set_mode); + /* * Set Transfer Address */ @@ -508,6 +516,8 @@ void vdma_set_addr(int channel, long addr) r4030_write_reg32(JAZZ_R4030_CHNL_ADDR + (channel << 5), addr); } +EXPORT_SYMBOL(vdma_set_addr); + /* * Set Transfer Count */ @@ -520,6 +530,8 @@ void vdma_set_count(int channel, int count) r4030_write_reg32(JAZZ_R4030_CHNL_COUNT + (channel << 5), count); } +EXPORT_SYMBOL(vdma_set_count); + /* * Get Residual */