diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2000-01-29 01:41:54 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2000-01-29 01:41:54 +0000 |
commit | f969d69ba9f952e5bdd38278e25e26a3e4a61a70 (patch) | |
tree | b3530d803df59d726afaabebc6626987dee1ca05 /drivers/net/sk_mca.c | |
parent | a10ce7ef2066b455d69187643ddf2073bfc4db24 (diff) |
Merge with 2.3.27.
Diffstat (limited to 'drivers/net/sk_mca.c')
-rw-r--r-- | drivers/net/sk_mca.c | 29 |
1 files changed, 14 insertions, 15 deletions
diff --git a/drivers/net/sk_mca.c b/drivers/net/sk_mca.c index cdee2d6e6..902644162 100644 --- a/drivers/net/sk_mca.c +++ b/drivers/net/sk_mca.c @@ -71,7 +71,6 @@ History: #include <linux/version.h> #include <linux/kernel.h> -#include <linux/version.h> #include <linux/sched.h> #include <linux/string.h> #include <linux/errno.h> @@ -306,7 +305,7 @@ static void InitDscrs(struct net_device *dev) descr.Flags = 0; descr.Len = 0xf000; descr.Status = 0; - memcpy_toio(dev->mem_start + RAM_TXBASE + (z * sizeof(LANCE_TxDescr)), + isa_memcpy_toio(dev->mem_start + RAM_TXBASE + (z * sizeof(LANCE_TxDescr)), &descr, sizeof(LANCE_TxDescr)); memset_io(dev->mem_start + bufaddr, 0, RAM_BUFSIZE); bufaddr += RAM_BUFSIZE; @@ -325,9 +324,9 @@ static void InitDscrs(struct net_device *dev) descr.Flags = RXDSCR_FLAGS_OWN; descr.MaxLen = -RAM_BUFSIZE; descr.Len = 0; - memcpy_toio(dev->mem_start + RAM_RXBASE + (z * sizeof(LANCE_RxDescr)), + isa_memcpy_toio(dev->mem_start + RAM_RXBASE + (z * sizeof(LANCE_RxDescr)), &descr, sizeof(LANCE_RxDescr)); - memset_io(dev->mem_start + bufaddr, 0, RAM_BUFSIZE); + isa_memset_io(dev->mem_start + bufaddr, 0, RAM_BUFSIZE); bufaddr += RAM_BUFSIZE; } } @@ -450,7 +449,7 @@ static void InitBoard(struct net_device *dev) block.RdrP = (RAM_RXBASE & 0xffffff) | (LRXCOUNT << 29); block.TdrP = (RAM_TXBASE & 0xffffff) | (LTXCOUNT << 29); - memcpy_toio(dev->mem_start + RAM_INITBASE, &block, sizeof(block)); + isa_memcpy_toio(dev->mem_start + RAM_INITBASE, &block, sizeof(block)); /* initialize LANCE. Implicitly sets up other structures in RAM. */ @@ -507,7 +506,7 @@ static u16 irqrx_handler(struct net_device *dev, u16 oldcsr0) while (1) { /* read descriptor */ - memcpy_fromio(&descr, dev->mem_start + descraddr, sizeof(LANCE_RxDescr)); + isa_memcpy_fromio(&descr, dev->mem_start + descraddr, sizeof(LANCE_RxDescr)); /* if we reach a descriptor we do not own, we're done */ if ((descr.Flags & RXDSCR_FLAGS_OWN) != 0) @@ -539,7 +538,7 @@ static u16 irqrx_handler(struct net_device *dev, u16 oldcsr0) priv->stat.rx_dropped++; else { - memcpy_fromio(skb_put(skb, descr.Len), + isa_memcpy_fromio(skb_put(skb, descr.Len), dev->mem_start + descr.LowAddr, descr.Len); skb->dev = dev; skb->protocol = eth_type_trans(skb, dev); @@ -557,7 +556,7 @@ static u16 irqrx_handler(struct net_device *dev, u16 oldcsr0) descr.Flags |= RXDSCR_FLAGS_OWN; /* update descriptor in shared RAM */ - memcpy_toio(dev->mem_start + descraddr, &descr, sizeof(LANCE_RxDescr)); + isa_memcpy_toio(dev->mem_start + descraddr, &descr, sizeof(LANCE_RxDescr)); /* go to next descriptor */ priv->nextrx++; descraddr += sizeof(LANCE_RxDescr); @@ -588,7 +587,7 @@ static u16 irqtx_handler(struct net_device *dev, u16 oldcsr0) while (priv->txbusy > 0) { /* read descriptor */ - memcpy_fromio(&descr, dev->mem_start + descraddr, sizeof(LANCE_TxDescr)); + isa_memcpy_fromio(&descr, dev->mem_start + descraddr, sizeof(LANCE_TxDescr)); /* if the LANCE still owns this one, we've worked out all sent packets */ if ((descr.Flags & TXDSCR_FLAGS_OWN) != 0) @@ -798,7 +797,7 @@ static int skmca_tx(struct sk_buff *skb, struct net_device *dev) /* get TX descriptor */ address = RAM_TXBASE + (priv->nexttxput * sizeof(LANCE_TxDescr)); - memcpy_fromio(&descr, dev->mem_start + address, sizeof(LANCE_TxDescr)); + isa_memcpy_fromio(&descr, dev->mem_start + address, sizeof(LANCE_TxDescr)); /* enter packet length as 2s complement - assure minimum length */ tmplen = skb->len; @@ -816,13 +815,13 @@ static int skmca_tx(struct sk_buff *skb, struct net_device *dev) while (destoffs < tmplen) { - memcpy_toio(dev->mem_start + descr.LowAddr + destoffs, fill, l); + isa_memcpy_toio(dev->mem_start + descr.LowAddr + destoffs, fill, l); destoffs += l; } } /* do the real data copying */ - memcpy_toio(dev->mem_start + descr.LowAddr, skb->data, skb->len); + isa_memcpy_toio(dev->mem_start + descr.LowAddr, skb->data, skb->len); /* hand descriptor over to LANCE - this is the first and last chunk */ descr.Flags = TXDSCR_FLAGS_OWN | TXDSCR_FLAGS_STP | TXDSCR_FLAGS_ENP; @@ -841,7 +840,7 @@ static int skmca_tx(struct sk_buff *skb, struct net_device *dev) dev->tbusy = (priv->txbusy >= TXCOUNT); /* write descriptor back to RAM */ - memcpy_toio(dev->mem_start + address, &descr, sizeof(LANCE_TxDescr)); + isa_memcpy_toio(dev->mem_start + address, &descr, sizeof(LANCE_TxDescr)); /* if no descriptors were active, give the LANCE a hint to read it immediately */ @@ -891,7 +890,7 @@ static void skmca_set_multicast_list(struct net_device *dev) StopLANCE(dev); /* ...then modify the initialization block... */ - memcpy_fromio(&block, dev->mem_start + RAM_INITBASE, sizeof(block)); + isa_memcpy_fromio(&block, dev->mem_start + RAM_INITBASE, sizeof(block)); if (dev->flags & IFF_PROMISC) block.Mode |= LANCE_INIT_PROM; else @@ -914,7 +913,7 @@ static void skmca_set_multicast_list(struct net_device *dev) } } - memcpy_toio(dev->mem_start + RAM_INITBASE, &block, sizeof(block)); + isa_memcpy_toio(dev->mem_start + RAM_INITBASE, &block, sizeof(block)); /* ...then reinit LANCE with the correct flags */ InitLANCE(dev); |