static unsigned long vdma_pagetable_start;
-static spinlock_t vdma_lock = SPIN_LOCK_UNLOCKED;
+static DEFINE_SPINLOCK(vdma_lock);
/*
* Debug stuff
return (i << 12) + (paddr & (VDMA_PAGESIZE - 1));
}
+EXPORT_SYMBOL(vdma_phys2log);
+
/*
* Translate a logical DMA address to a physical address
*/
R4030_CHNL_ENABLE);
}
+EXPORT_SYMBOL(vdma_enable);
+
/*
* Disable a DMA 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
}
}
+EXPORT_SYMBOL(vdma_set_mode);
+
/*
* Set Transfer Address
*/
r4030_write_reg32(JAZZ_R4030_CHNL_ADDR + (channel << 5), addr);
}
+EXPORT_SYMBOL(vdma_set_addr);
+
/*
* Set Transfer Count
*/
r4030_write_reg32(JAZZ_R4030_CHNL_COUNT + (channel << 5), count);
}
+EXPORT_SYMBOL(vdma_set_count);
+
/*
* Get Residual
*/