scsi: mpt3sas: Fix system going into read-only mode
[linux-2.6-block.git] / drivers / scsi / mpt3sas / mpt3sas_base.h
index db6a759de1e99344bf400ae555accec7ea0dcac6..a0af986633d2a016a2ccdb1b4d83a5dbe4f631b4 100644 (file)
 
 #define MPT_MAX_CALLBACKS              32
 
+#define MPT_MAX_HBA_NUM_PHYS           32
+
 #define INTERNAL_CMDS_COUNT            10      /* reserved cmds */
 /* reserved for issuing internally framed scsi io cmds */
 #define INTERNAL_SCSIIO_CMDS_COUNT     3
@@ -798,6 +800,7 @@ struct _sas_phy {
  * @enclosure_handle: handle for this a member of an enclosure
  * @device_info: bitwise defining capabilities of this sas_host/expander
  * @responding: used in _scsih_expander_device_mark_responding
+ * @nr_phys_allocated: Allocated memory for this many count phys
  * @phy: a list of phys that make up this sas_host/expander
  * @sas_port_list: list of ports attached to this sas_host/expander
  * @port: hba port entry containing node's port number info
@@ -813,6 +816,7 @@ struct _sas_node {
        u16     enclosure_handle;
        u64     enclosure_logical_id;
        u8      responding;
+       u8      nr_phys_allocated;
        struct hba_port *port;
        struct  _sas_phy *phy;
        struct list_head sas_port_list;