Print this page
hg changesets 607a5b46a793..b706c96317c3
Fix ncpus for early boot config
Purge the ack to the interrupt before exiting mptsas_intr()
Changes from code review
Change some obvious references sas -> sas3.
Changes to enable driver to compile.
Header paths, object lists, etc.

@@ -20,13 +20,14 @@
  */
 
 /*
  * Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
  * Copyright 2013 Nexenta Systems, Inc. All rights reserved.
+ * Copyright (c) 2014, Tegile Systems Inc. All rights reserved.
  */
 /*
- * This file contains SM-HBA support for MPT SAS driver
+ * This file contains SM-HBA support for MPT SAS3 driver
  */
 
 #if defined(lint) || defined(DEBUG)
 #define MPTSAS_DEBUG
 #endif

@@ -39,23 +40,23 @@
 #include <sys/pci.h>
 #include <sys/scsi/generic/sas.h>
 #include <sys/scsi/impl/scsi_sas.h>
 
 #pragma pack(1)
-#include <sys/scsi/adapters/mpt_sas/mpi/mpi2_type.h>
-#include <sys/scsi/adapters/mpt_sas/mpi/mpi2.h>
-#include <sys/scsi/adapters/mpt_sas/mpi/mpi2_cnfg.h>
-#include <sys/scsi/adapters/mpt_sas/mpi/mpi2_init.h>
-#include <sys/scsi/adapters/mpt_sas/mpi/mpi2_ioc.h>
-#include <sys/scsi/adapters/mpt_sas/mpi/mpi2_sas.h>
+#include <sys/scsi/adapters/mpt_sas3/mpi/mpi2_type.h>
+#include <sys/scsi/adapters/mpt_sas3/mpi/mpi2.h>
+#include <sys/scsi/adapters/mpt_sas3/mpi/mpi2_cnfg.h>
+#include <sys/scsi/adapters/mpt_sas3/mpi/mpi2_init.h>
+#include <sys/scsi/adapters/mpt_sas3/mpi/mpi2_ioc.h>
+#include <sys/scsi/adapters/mpt_sas3/mpi/mpi2_sas.h>
 #pragma pack()
 
 /*
  * private header files.
  */
-#include <sys/scsi/adapters/mpt_sas/mptsas_var.h>
-#include <sys/scsi/adapters/mpt_sas/mptsas_smhba.h>
+#include <sys/scsi/adapters/mpt_sas3/mptsas3_var.h>
+#include <sys/scsi/adapters/mpt_sas3/mptsas3_smhba.h>
 
 /*
  * SM - HBA statics
  */
 extern char *mptsas_driver_rev;

@@ -329,11 +330,11 @@
                         (void) snprintf(ks_name, sizeof (ks_name),
                             "%s.%llx.%d.%d", ddi_driver_name(dip),
                             (longlong_t)mpt->un.m_base_wwid,
                             ddi_get_instance(dip), i);
 
-                        phyp->phy_stats = kstat_create("mptsas",
+                        phyp->phy_stats = kstat_create("mptsas3",
                             ddi_get_instance(dip), ks_name, KSTAT_SAS_PHY_CLASS,
                             KSTAT_TYPE_NAMED, ndata, 0);
 
                         if (phyp->phy_stats == NULL) {
                                 mutex_exit(&phyp->phy_mutex);