patch-2.3.1 linux/drivers/block/trm290.c
Next file: linux/drivers/block/umc8672.c
Previous file: linux/drivers/block/swim3.c
Back to the patch index
Back to the overall index
- Lines: 22
- Date:
Thu May 13 11:04:54 1999
- Orig file:
v2.3.0/linux/drivers/block/trm290.c
- Orig date:
Fri Aug 7 17:56:09 1998
diff -u --recursive --new-file v2.3.0/linux/drivers/block/trm290.c linux/drivers/block/trm290.c
@@ -134,11 +134,10 @@
#include <linux/hdreg.h>
#include <linux/pci.h>
#include <linux/delay.h>
+#include <linux/ide.h>
#include <asm/io.h>
-#include "ide.h"
-
static void trm290_prepare_drive (ide_drive_t *drive, unsigned int use_dma)
{
ide_hwif_t *hwif = HWIF(drive);
@@ -185,7 +184,7 @@
break; /* always use PIO for writes */
#endif
case ide_dma_read:
- if (!(count = ide_build_dmatable(drive)))
+ if (!(count = ide_build_dmatable(drive, func)))
break; /* try PIO instead of DMA */
trm290_prepare_drive(drive, 1); /* select DMA xfer */
outl(virt_to_bus(hwif->dmatable)|reading|writing, hwif->dma_base);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)