13 #include <linux/kernel.h>
14 #include <linux/module.h>
21 static unsigned int xfer_complete;
33 pr_debug(
"Got a pvr2 dma interrupt for channel %d\n",
51 static int pvr2_get_dma_residue(
struct dma_channel *chan)
53 return xfer_complete == 0;
58 if (chan->sar || !chan->dar)
71 .name =
"pvr2 DMA handler",
72 .handler = pvr2_dma_interrupt,
75 static struct dma_ops pvr2_dma_ops = {
76 .request = pvr2_request_dma,
77 .get_residue = pvr2_get_dma_residue,
78 .xfer = pvr2_xfer_dma,
81 static struct dma_info pvr2_dma_info = {
85 .flags = DMAC_CHANNELS_TEI_CAPABLE,
88 static int __init pvr2_dma_init(
void)
96 static void __exit pvr2_dma_exit(
void)