patch-2.3.14 linux/drivers/scsi/mac_scsi.c
Next file: linux/drivers/scsi/mca_53c9x.c
Previous file: linux/drivers/scsi/mac_esp.c
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Wed Aug 18 10:00:52 1999
- Orig file:
v2.3.13/linux/drivers/scsi/mac_scsi.c
- Orig date:
Fri Jan 15 14:41:04 1999
diff -u --recursive --new-file v2.3.13/linux/drivers/scsi/mac_scsi.c linux/drivers/scsi/mac_scsi.c
@@ -685,7 +685,7 @@
unsigned long mac_scsi_dma_setup( struct Scsi_Host *instance, void *data,
unsigned long count, int dir )
{
- unsigned long addr = VTOP( data );
+ unsigned long addr = virt_to_phys( data );
DMA_PRINTK("scsi%d: setting up dma, data = %p, phys = %lx, count = %ld, "
"dir = %d\n", instance->host_no, data, addr, count, dir);
@@ -846,7 +846,7 @@
}
/* Last step: apply the hard limit on DMA transfers */
- limit = (atari_dma_buffer && !STRAM_ADDR( VTOP(cmd->SCp.ptr) )) ?
+ limit = (atari_dma_buffer && !STRAM_ADDR( virt_to_phys(cmd->SCp.ptr) )) ?
STRAM_BUFFER_SIZE : 255*512;
if (possible_len > limit)
possible_len = limit;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)