patch-2.3.13 linux/drivers/block/acsi_slm.c
Next file: linux/drivers/block/aec6210.c
Previous file: linux/drivers/block/acsi.c
Back to the patch index
Back to the overall index
-  Lines: 20
-  Date:
Mon Aug  9 12:32:28 1999
-  Orig file: 
v2.3.12/linux/drivers/block/acsi_slm.c
-  Orig date: 
Tue May 11 23:33:00 1999
diff -u --recursive --new-file v2.3.12/linux/drivers/block/acsi_slm.c linux/drivers/block/acsi_slm.c
@@ -413,8 +413,8 @@
 
 	CMDSET_TARG_LUN( slmprint_cmd, sip->target, sip->lun );
 	cmd = slmprint_cmd;
-	paddr = VTOP( SLMBuffer );
-	dma_cache_maintenance( paddr, VTOP(BufferP)-paddr, 1 );
+	paddr = virt_to_phys( SLMBuffer );
+	dma_cache_maintenance( paddr, virt_to_phys(BufferP)-paddr, 1 );
 	DISABLE_IRQ();
 
 	/* Low on A1 */
@@ -466,7 +466,7 @@
 	addr = get_dma_addr();
 	stat = acsi_getstatus();
 	SLMError = (stat < 0)             ? SLMSTAT_ACSITO :
-		       (addr < VTOP(BufferP)) ? SLMSTAT_NOTALL :
+		       (addr < virt_to_phys(BufferP)) ? SLMSTAT_NOTALL :
 									    stat;
 
 	dma_wd.dma_mode_status = 0x80;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)