patch-2.2.18 linux/drivers/block/acsi_slm.c
Next file: linux/drivers/block/alim15x3.c
Previous file: linux/drivers/block/acsi.c
Back to the patch index
Back to the overall index
- Lines: 20
- Date:
Sat Oct 14 00:07:14 2000
- Orig file:
v2.2.17/drivers/block/acsi_slm.c
- Orig date:
Fri Apr 21 12:45:50 2000
diff -u --new-file --recursive --exclude-from /usr/src/exclude v2.2.17/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)