From 14ab59aa8aba8687dc957c2186e115ac0b8ab542 Mon Sep 17 00:00:00 2001 From: Harald Koerfgen Date: Mon, 26 Jul 1999 19:42:38 +0000 Subject: The remaining R3000 changes. From now on the CVS will be R3000 aware. R3000 Indigo anyone? :-) --- drivers/net/declance.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'drivers/net/declance.c') diff --git a/drivers/net/declance.c b/drivers/net/declance.c index b0183061c..b5c5b4f42 100644 --- a/drivers/net/declance.c +++ b/drivers/net/declance.c @@ -60,6 +60,7 @@ static char *lancestr = "LANCE"; #include #include #include +#include #include #include @@ -301,6 +302,7 @@ int dec_lance_debug = 2; static inline void writereg(volatile unsigned short *regptr, short value) { *regptr = value; + wbflush(); } /* Load the CSR registers */ @@ -380,6 +382,7 @@ void cp_to_buf(void *to, const void *from, __kernel_size_t len) } } + wbflush(); } void cp_from_buf(void *to, unsigned char *from, int len) @@ -515,6 +518,7 @@ static void lance_init_ring(struct device *dev) if (i < 3 && ZERO) printk("%d: 0x%8.8x(0x%8.8x)\n", i, leptr, (int) lp->rx_buf_ptr_cpu[i]); } + wbflush(); } static int init_restart_lance(struct lance_private *lp) @@ -752,6 +756,7 @@ static void lance_interrupt(const int irq, void *dev_id, struct pt_regs *regs) * re-enable LANCE DMA */ *(unsigned long *) (system_base + IOCTL + SSR) |= (1 << 16); + wbflush(); } writereg(&ll->rdp, LE_C0_STOP); @@ -1071,6 +1076,7 @@ __initfunc(static int dec_lance_init(struct device *dev, const int type)) lp->dma_ptr_reg = (unsigned long *) (system_base + IOCTL + LANCE_DMA_P); *(lp->dma_ptr_reg) = PHYSADDR(dev->mem_start) << 3; *(unsigned long *) (system_base + IOCTL + SSR) |= (1 << 16); + wbflush(); break; case PMAD_LANCE: -- cgit v1.2.3