diff options
author | Ralf Baechle <ralf@linux-mips.org> | 1997-03-25 23:40:36 +0000 |
---|---|---|
committer | <ralf@linux-mips.org> | 1997-03-25 23:40:36 +0000 |
commit | 7206675c40394c78a90e74812bbdbf8cf3cca1be (patch) | |
tree | 251895cf5a0008e2b4ce438cb01ad4d55fb5b97b /drivers/net/sonic.c | |
parent | beb116954b9b7f3bb56412b2494b562f02b864b1 (diff) |
Import of Linux/MIPS 2.1.14.2
Diffstat (limited to 'drivers/net/sonic.c')
-rw-r--r-- | drivers/net/sonic.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/sonic.c b/drivers/net/sonic.c index 75c30ca58..dfa5b272c 100644 --- a/drivers/net/sonic.c +++ b/drivers/net/sonic.c @@ -33,10 +33,10 @@ static const char *version = #include <linux/malloc.h> #include <linux/string.h> #include <linux/delay.h> -#include <asm/cache.h> #include <asm/bootinfo.h> #include <asm/system.h> #include <asm/bitops.h> +#include <asm/pgtable.h> #include <asm/segment.h> #include <asm/io.h> #include <asm/dma.h> @@ -269,7 +269,7 @@ sonic_probe1(struct device *dev, unsigned int base_addr, unsigned int irq) /* now convert pointer to KSEG1 pointer */ lp->rba = (char *)KSEG1ADDR(lp->rba); - cacheflush (lp, sizeof(*lp), CF_DCACHE|CF_ALL); + flush_cache_all(); dev->priv = (struct sonic_local *)KSEG1ADDR(lp); } @@ -422,7 +422,7 @@ static int sonic_send_packet(struct sk_buff *skb, struct device *dev) lp->tx_skb[entry] = skb; length = (skb->len < ETH_ZLEN) ? ETH_ZLEN : skb->len; - cacheflush((void *)skb->data, length, CF_DCACHE|CF_ALL); + flush_cache_all(); /* * Setup the transmit descriptor and issue the transmit command. |