patch-1.3.47 linux/drivers/net/3c503.c
Next file: linux/drivers/net/8390.c
Previous file: linux/drivers/char/vt.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/3c503.c
- Orig date:
Fri Nov 17 08:42:25 1995
diff -u --recursive --new-file v1.3.46/linux/drivers/net/3c503.c linux/drivers/net/3c503.c
@@ -477,7 +477,12 @@
unsigned long hdr_start = dev->mem_start + ((ring_page - EL2_MB1_START_PG)<<8);
if (dev->mem_start) { /* Use the shared memory. */
+#ifdef notdef
+ /* Officially this is what we are doing, but the readl() is faster */
memcpy_fromio(hdr, hdr_start, sizeof(struct e8390_pkt_hdr));
+#else
+ ((unsigned int*)hdr)[0] = readl(hdr_start);
+#endif
return;
}
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