patch-2.1.93 linux/drivers/block/cmd646.c
Next file: linux/drivers/block/ide-dma.c
Previous file: linux/drivers/block/Makefile
Back to the patch index
Back to the overall index
- Lines: 21
- Date:
Thu Apr 2 09:12:22 1998
- Orig file:
v2.1.92/linux/drivers/block/cmd646.c
- Orig date:
Wed Dec 31 16:00:00 1969
diff -u --recursive --new-file v2.1.92/linux/drivers/block/cmd646.c linux/drivers/block/cmd646.c
@@ -0,0 +1,20 @@
+/* $Id: cmd646.c,v 1.1 1998/03/15 13:29:10 ecd Exp $
+ * cmd646.c: Enable interrupts at initialization time on Ultra/PCI machines
+ *
+ * Copyright (C) 1998 Eddie C. Dost (ecd@skynet.be)
+ */
+
+#include <linux/pci.h>
+#include "ide.h"
+
+__initfunc(void ide_init_cmd646 (ide_hwif_t *hwif))
+{
+#ifdef __sparc_v9__
+ struct pci_dev *dev = hwif->pci_dev;
+ unsigned char mrdmode;
+
+ (void) pci_read_config_byte(dev, 0x71, &mrdmode);
+ mrdmode &= ~(0x30);
+ (void) pci_write_config_byte(dev, 0x71, mrdmode);
+#endif
+}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov