dma-pvr2.c (708e16892e1646594a29eaa7ac7b209b600b9fd2) | dma-pvr2.c (35f3c5185b1e28e6591aa649db8bf4fa16f1a7f3) |
---|---|
1/* 2 * arch/sh/drivers/dma/dma-pvr2.c 3 * 4 * NEC PowerVR 2 (Dreamcast) DMA support 5 * 6 * Copyright (C) 2003, 2004 Paul Mundt 7 * 8 * This file is subject to the terms and conditions of the GNU General Public --- 7 unchanged lines hidden (view full) --- 16#include <asm/mach/sysasic.h> 17#include <asm/mach/dma.h> 18#include <asm/dma.h> 19#include <asm/io.h> 20 21static unsigned int xfer_complete; 22static int count; 23 | 1/* 2 * arch/sh/drivers/dma/dma-pvr2.c 3 * 4 * NEC PowerVR 2 (Dreamcast) DMA support 5 * 6 * Copyright (C) 2003, 2004 Paul Mundt 7 * 8 * This file is subject to the terms and conditions of the GNU General Public --- 7 unchanged lines hidden (view full) --- 16#include <asm/mach/sysasic.h> 17#include <asm/mach/dma.h> 18#include <asm/dma.h> 19#include <asm/io.h> 20 21static unsigned int xfer_complete; 22static int count; 23 |
24static irqreturn_t pvr2_dma_interrupt(int irq, void *dev_id, struct pt_regs *regs) | 24static irqreturn_t pvr2_dma_interrupt(int irq, void *dev_id) |
25{ 26 if (get_dma_residue(PVR2_CASCADE_CHAN)) { 27 printk(KERN_WARNING "DMA: SH DMAC did not complete transfer " 28 "on channel %d, waiting..\n", PVR2_CASCADE_CHAN); 29 dma_wait_for_completion(PVR2_CASCADE_CHAN); 30 } 31 32 if (count++ < 10) --- 77 unchanged lines hidden --- | 25{ 26 if (get_dma_residue(PVR2_CASCADE_CHAN)) { 27 printk(KERN_WARNING "DMA: SH DMAC did not complete transfer " 28 "on channel %d, waiting..\n", PVR2_CASCADE_CHAN); 29 dma_wait_for_completion(PVR2_CASCADE_CHAN); 30 } 31 32 if (count++ < 10) --- 77 unchanged lines hidden --- |