AMI megaraid patch of i2opci.c

From: Go Taniguchi (taniguchi@turbolinux.co.jp)
Date: Wed May 10 2000 - 02:15:19 EST


* problem
2.2.15 i2opci.c detect and initialize AMI MegaRaid i960 controller.
Driver of megaraid does not initialize and not work.

* patch for 2.2.15 include

# I can only write poor english, sorry

 -----------------------------------------
 Go Taniguchi taniguchi@turbolinux.co.jp
 TurboLinux Japan K.K.
 -----------------------------------------

--- linux/drivers/i2o/i2o_pci.c.orig Fri Apr 14 19:21:21 2000
+++ linux/drivers/i2o/i2o_pci.c Fri Apr 14 20:14:47 2000
@@ -254,10 +254,16 @@
         return 0;
 }
 
+#define PCI_CONF_AMISIG 0xa0
+#define AMI_SIGNATURE 0x3344
+#define AMI_SIGNATURE_471 0xCCCC
+
 int i2o_pci_scan(void)
 {
         struct pci_dev *dev;
         int count=0;
+ u16 magic;
+ unsigned long venpci;
         
         printk(KERN_INFO "i2o: Checking for PCI I2O controllers...\n");
 
@@ -265,6 +271,12 @@
         {
                 if((dev->class>>8)!=PCI_CLASS_INTELLIGENT_I2O)
                         continue;
+ pci_read_config_dword (dev, PCI_VENDOR_ID, &venpci);
+ if(venpci == 0x19608086){ /*PCI_VENDOR_ID_INTEL 1960 */
+ pci_read_config_word (dev, PCI_CONF_AMISIG, &magic);
+ if((magic == AMI_SIGNATURE) || (magic == AMI_SIGNATURE_471))
+ continue;
+ }
                 if((dev->class&0xFF)>1)
                 {
                         printk(KERN_INFO "i2o: I2O Controller found but does not support I2O 1.5 (skipping).\n");

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon May 15 2000 - 21:00:15 EST