patch-1.3.47 linux/drivers/net/e2100.c
Next file: linux/drivers/net/net_init.c
Previous file: linux/drivers/net/arcnet.c
Back to the patch index
Back to the overall index
-  Lines: 13
 -  Date:
Mon Dec 11 15:41:12 1995
 -  Orig file: 
v1.3.46/linux/drivers/net/e2100.c
 -  Orig date: 
Fri Nov 17 08:42:25 1995
 
diff -u --recursive --new-file v1.3.46/linux/drivers/net/e2100.c linux/drivers/net/e2100.c
@@ -299,7 +299,12 @@
 
 	mem_on(ioaddr, shared_mem, ring_page);
 
+#ifdef notdef
+	/* Officially this is what we are doing, but the readl() is faster */
 	memcpy_fromio(hdr, shared_mem, sizeof(struct e8390_pkt_hdr));
+#else
+	((unsigned int*)hdr)[0] = readl(shared_mem);
+#endif
 
 	/* Turn off memory access: we would need to reprogram the window anyway. */
 	mem_off(ioaddr);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this