patch-2.1.115 linux/drivers/block/ns87415.c
Next file: linux/drivers/block/sl82c105.c
Previous file: linux/drivers/block/ide.h
Back to the patch index
Back to the overall index
-  Lines: 20
-  Date:
Tue Aug  4 16:56:37 1998
-  Orig file: 
v2.1.114/linux/drivers/block/ns87415.c
-  Orig date: 
Thu May  7 22:51:48 1998
diff -u --recursive --new-file v2.1.114/linux/drivers/block/ns87415.c linux/drivers/block/ns87415.c
@@ -130,6 +130,19 @@
 		int	timeout;
 		byte	stat;
 		/*
+		 * Put reasonable values in the timing registers
+		 * for DMA2 mode performance.
+		 */
+		pci_write_config_byte(dev, 0x44, 0xfe);
+		pci_write_config_byte(dev, 0x45, 0xfe);
+		pci_write_config_byte(dev, 0x48, 0xfe);
+		pci_write_config_byte(dev, 0x49, 0xfe);
+		pci_write_config_byte(dev, 0x4c, 0xfe);
+		pci_write_config_byte(dev, 0x4d, 0xfe);
+		pci_write_config_byte(dev, 0x50, 0xfe);
+		pci_write_config_byte(dev, 0x51, 0xfe);
+
+		/*
 		 * XXX: Reset the device, if we don't it will not respond
 		 *      to SELECT_DRIVE() properly during first probe_hwif().
 		 */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov