patch-2.1.126 linux/drivers/scsi/wd7000.c
Next file: linux/drivers/sound/Config.in
Previous file: linux/drivers/scsi/u14-34f.c
Back to the patch index
Back to the overall index
- Lines: 16
- Date:
Fri Oct 9 11:56:59 1998
- Orig file:
v2.1.125/linux/drivers/scsi/wd7000.c
- Orig date:
Wed Sep 9 14:51:09 1998
diff -u --recursive --new-file v2.1.125/linux/drivers/scsi/wd7000.c linux/drivers/scsi/wd7000.c
@@ -772,10 +772,15 @@
static inline void wd7000_enable_dma (Adapter *host)
{
+ unsigned long flags;
host->control |= DMA_EN;
outb (host->control, host->iobase + ASC_CONTROL);
+
+ flags = claim_dma_lock();
set_dma_mode (host->dma, DMA_MODE_CASCADE);
enable_dma (host->dma);
+ release_dma_lock(flags);
+
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov