patch-1.3.47 linux/drivers/net/smc-ultra.c
Next file: linux/drivers/net/wd.c
Previous file: linux/drivers/net/net_init.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/smc-ultra.c
 -  Orig date: 
Fri Nov 17 08:42:26 1995
 
diff -u --recursive --new-file v1.3.46/linux/drivers/net/smc-ultra.c linux/drivers/net/smc-ultra.c
@@ -270,7 +270,12 @@
 	unsigned long hdr_start = dev->mem_start + ((ring_page - START_PG)<<8);
 
 	outb(ULTRA_MEMENB, dev->base_addr - ULTRA_NIC_OFFSET);	/* shmem on */
+#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
 	outb(0x00, dev->base_addr - ULTRA_NIC_OFFSET); /* shmem off */
 }
 
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