patch-2.1.38 linux/drivers/net/sunlance.c

Next file: linux/drivers/sbus/char/suncons.c
Previous file: linux/drivers/net/sunhme.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.37/linux/drivers/net/sunlance.c linux/drivers/net/sunlance.c
@@ -1,4 +1,4 @@
-/* $Id: sunlance.c,v 1.62 1997/04/16 10:27:25 jj Exp $
+/* $Id: sunlance.c,v 1.64 1997/05/14 20:46:40 davem Exp $
  * lance.c: Linux/Sparc/Lance driver
  *
  *	Written 1995, 1996 by Miguel de Icaza
@@ -673,8 +673,7 @@
 
 	/* On the 4m, setup the ledma to provide the upper bits for buffers */
 	if (lp->ledma)
-		lp->ledma->regs->dma_test = ((unsigned long) lp->init_block)
-						& 0xff000000;
+		lp->ledma->regs->dma_test = ((__u32) lp->init_block_dvma) & 0xff000000;
 
 	lance_init_ring (dev);
 	load_csrs (lp);
@@ -758,8 +757,7 @@
 		lp->ledma->regs->cond_reg |= DMA_RST_ENET;
 		udelay (200);
 		lp->ledma->regs->cond_reg &= ~DMA_RST_ENET;
-		lp->ledma->regs->dma_test = ((unsigned long) lp->init_block)
-						& 0xff000000;
+		lp->ledma->regs->dma_test = ((__u32) lp->init_block_dvma) & 0xff000000;
 	}
 	lance_init_ring (dev);
 	load_csrs (lp);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov