patch-2.4.20 linux-2.4.20/drivers/scsi/sun3x_esp.c
Next file: linux-2.4.20/drivers/scsi/sym53c8xx.c
Previous file: linux-2.4.20/drivers/scsi/st_options.h
Back to the patch index
Back to the overall index
- Lines: 35
- Date:
Thu Nov 28 15:53:14 2002
- Orig file:
linux-2.4.19/drivers/scsi/sun3x_esp.c
- Orig date:
Fri Aug 2 17:39:44 2002
diff -urN linux-2.4.19/drivers/scsi/sun3x_esp.c linux-2.4.20/drivers/scsi/sun3x_esp.c
@@ -46,11 +46,12 @@
static void dma_mmu_release_scsi_sgl (struct NCR_ESP *esp, Scsi_Cmnd *sp);
static void dma_advance_sg (Scsi_Cmnd *sp);
+#if 0
+/* This is where all commands are put before they are trasfered to the ESP chip
+ * via PIO.
+ */
static volatile unsigned char cmd_buffer[16];
- /* This is where all commands are put
- * before they are trasfered to the ESP chip
- * via PIO.
- */
+#endif
/* Detecting ESP chips on the machine. This is the simple and easy
* version.
@@ -354,7 +355,7 @@
static void dma_mmu_release_scsi_one (struct NCR_ESP *esp, Scsi_Cmnd *sp)
{
- dvma_unmap(sp->SCp.have_data_in);
+ dvma_unmap((char *)sp->SCp.have_data_in);
}
static void dma_mmu_release_scsi_sgl (struct NCR_ESP *esp, Scsi_Cmnd *sp)
@@ -363,7 +364,7 @@
struct mmu_sglist *sg = (struct mmu_sglist *)sp->buffer;
while(sz >= 0) {
- dvma_unmap(sg[sz].dvma_addr);
+ dvma_unmap((char *)sg[sz].dvma_addr);
sz--;
}
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)