patch-2.2.0-pre8 linux/drivers/scsi/aic7xxx.c

Next file: linux/drivers/scsi/hosts.c
Previous file: linux/drivers/scsi/aha152x.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.2.0-pre7/linux/drivers/scsi/aic7xxx.c linux/drivers/scsi/aic7xxx.c
@@ -513,8 +513,8 @@
  * Make a define that will tell the driver not to use tagged queueing
  * by default.
  */
-#define DEFAULT_TAG_COMMANDS {0, 0, 0, 0, 0, 0, 0, 0,\
-                              0, 0, 0, 0, 0, 0, 0, 0}
+#define DEFAULT_TAG_COMMANDS {255, 255, 255, 255, 255, 255, 255, 255,\
+                              255, 255, 255, 255, 255, 255, 255, 255}
 
 /*
  * Modify this as you see fit for your system.  By setting tag_commands
@@ -9017,8 +9017,8 @@
           {
             printk("aic7xxx: <%s> at PCI %d/%d\n", 
               board_names[aic_pdevs[i].board_name_index],
-              PCI_SLOT(temp_p->pdev->devfn),
-              PCI_FUNC(temp_p->pdev->devfn));
+              PCI_SLOT(temp_p->pci_device_fn),
+              PCI_FUNC(temp_p->pci_device_fn));
             printk("aic7xxx: Controller disabled by BIOS, ignoring.\n");
             kfree(temp_p);
             temp_p = NULL;
@@ -9050,8 +9050,8 @@
                  */
                 printk(KERN_INFO "aic7xxx: <%s> at PCI %d/%d\n", 
                   board_names[aic_pdevs[i].board_name_index],
-                  PCI_SLOT(temp_p->pdev->devfn),
-                  PCI_FUNC(temp_p->pdev->devfn));
+                  PCI_SLOT(temp_p->pci_device_fn),
+                  PCI_FUNC(temp_p->pci_device_fn));
                 printk(KERN_INFO "aic7xxx: MMAPed I/O failed, reverting to "
                                  "Programmed I/O.\n");
 #if LINUX_VERSION_CODE > KERNEL_VERSION(2,1,0)

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov