Messages in this thread Patch in this message | | | Subject | PATCH: es3210 fixes for 2.3.24+ | From | Alan Cox <> | Date | Fri, 29 Oct 1999 18:18:24 +0100 |
| |
This should fix the moans about unknown regions. While I'm at it I've slightly improved the receive performance. Can someone with this card test it
--- drivers/net/es3210.c~ Thu Sep 2 16:51:26 1999 +++ drivers/net/es3210.c Fri Oct 29 18:55:08 1999 @@ -321,7 +321,7 @@ es_get_8390_hdr(struct net_device *dev, struct e8390_pkt_hdr *hdr, int ring_page) { unsigned long hdr_start = dev->mem_start + ((ring_page - ES_START_PG)<<8); - memcpy_fromio(hdr, hdr_start, sizeof(struct e8390_pkt_hdr)); + isa_memcpy_fromio(hdr, hdr_start, sizeof(struct e8390_pkt_hdr)); hdr->count = (hdr->count + 3) & ~3; /* Round up allocation. */ } @@ -339,12 +339,12 @@ if (xfer_start + count > dev->rmem_end) { /* Packet wraps over end of ring buffer. */ int semi_count = dev->rmem_end - xfer_start; - memcpy_fromio(skb->data, xfer_start, semi_count); + isa_memcpy_fromio(skb->data, xfer_start, semi_count); count -= semi_count; - memcpy_fromio(skb->data + semi_count, dev->rmem_start, count); + isa_memcpy_fromio(skb->data + semi_count, dev->rmem_start, count); } else { /* Packet is in one chunk. */ - memcpy_fromio(skb->data, xfer_start, count); + isa_eth_io_copy_and_csum(skb, xfer_start, count, 0); } } @@ -354,7 +354,7 @@ unsigned long shmem = dev->mem_start + ((start_page - ES_START_PG)<<8); count = (count + 3) & ~3; /* Round up to doubleword */ - memcpy_toio(shmem, buf, count); + isa_memcpy_toio(shmem, buf, count); } static int es_open(struct net_device *dev) - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |