patch-2.3.13 linux/drivers/net/atari_pamsnet.c
Next file: linux/drivers/net/de4x5.c
Previous file: linux/drivers/net/atari_bionet.c
Back to the patch index
Back to the overall index
- Lines: 27
- Date:
Mon Aug 9 12:32:28 1999
- Orig file:
v2.3.12/linux/drivers/net/atari_pamsnet.c
- Orig date:
Thu Jul 8 15:42:20 1999
diff -u --recursive --new-file v2.3.12/linux/drivers/net/atari_pamsnet.c linux/drivers/net/atari_pamsnet.c
@@ -439,7 +439,7 @@
unsigned char *buffer;
{
int ret = -1;
- unsigned char *vbuffer = (unsigned char *)PTOV(buffer);
+ unsigned char *vbuffer = phys_to_virt((unsigned long)buffer);
unsigned char cmd_buffer[5];
if (send_first(target, INQUIRY))
@@ -487,7 +487,7 @@
!acsi_wait_for_IRQ(TIMEOUTDMA) ||
get_status())
goto bad;
- ret = (HADDR *)PTOV(&(((DMAHWADDR *)buffer)->hwaddr));
+ ret = phys_to_virt(&(((DMAHWADDR *)buffer)->hwaddr));
dma_cache_maintenance((unsigned long)buffer, 512, 0);
bad:
return (ret);
@@ -707,7 +707,7 @@
}
else {
int length = ETH_ZLEN < skb->len ? skb->len : ETH_ZLEN;
- unsigned long buf = VTOP(skb->data);
+ unsigned long buf = virt_to_phys(skb->data);
int stat;
stdma_lock(pamsnet_intr, NULL);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)