Print this page
NEX-3168 sasinfo does not know about 12gb sas
Reviewed by: Kevin Crowe <kevin.crowe@nexenta.com>
Reviewed by: Josef 'Jeff' Sipek <josef.sipek@nexenta.com>


 203         HBA_UINT32          MaxFrameSize;       /* MaxFrameSize */
 204 } SMHBA_FC_PHY, *PSMHBA_FC_PHY;
 205 
 206 /* SM-HBA 6.5.4 SAS PHY Attribute Data Declaration */
 207 typedef HBA_UINT32 HBA_SASPHYSPEED;
 208 
 209 #define HBA_SASSTATE_UNKNOWN    0x00 /* Phy is enabled. Speed is unknown */
 210 #define HBA_SASSTATE_DISABLED   0x01 /* Phy is disabled. */
 211 /* Phy is enabled. But failed speed negotiation. */
 212 #define HBA_SASSTATE_FAILED     0x02
 213 /*
 214  * Phy is enabled. Detected a SATA device and entered the SATA Spinup hold
 215  * state.
 216  */
 217 #define HBA_SASSTATE_SATASPINUP    0x03
 218 /* The phy is attached to a Port Selector (see SATA-2.6). */
 219 #define HBA_SASSTATE_SATAPORTSEL    0x04
 220 #define HBA_SASSPEED_1_5GBIT        0x08 /*  1.5 GBit/sec */
 221 #define HBA_SASSPEED_3GBIT          0x09 /*  3 GBit/sec */
 222 #define HBA_SASSPEED_6GBIT          0x0a /*  6 GBit/sec */

 223 
 224 /* SM-HBA  6.5.5 SAS Phy Attribute */
 225 typedef struct SMHBA_SAS_Phy {
 226         HBA_UINT8           PhyIdentifier;
 227         HBA_SASPHYSPEED     NegotiatedLinkRate;
 228         HBA_SASPHYSPEED     ProgrammedMinLinkRate;
 229         HBA_SASPHYSPEED     HardwareMinLinkRate;
 230         HBA_SASPHYSPEED     ProgrammedMaxLinkRate;
 231         HBA_SASPHYSPEED     HardwareMaxLinkRate;
 232         HBA_WWN             domainPortWWN;
 233 } SMHBA_SAS_PHY, *PSMHBA_SAS_PHY;
 234 
 235 /* SM-HBA 6.6.1.1 Protocol Statistics Data Declarations */
 236 /* Statistical counters for FC-4, SSP, STP, SMP protocols */
 237 typedef struct SMHBA_ProtocolStatistics {
 238         HBA_INT64           SecondsSinceLastReset;
 239         HBA_INT64           InputRequests;
 240         HBA_INT64           OutputRequests;
 241         HBA_INT64           ControlRequests;
 242         HBA_INT64           InputMegabytes;




 203         HBA_UINT32          MaxFrameSize;       /* MaxFrameSize */
 204 } SMHBA_FC_PHY, *PSMHBA_FC_PHY;
 205 
 206 /* SM-HBA 6.5.4 SAS PHY Attribute Data Declaration */
 207 typedef HBA_UINT32 HBA_SASPHYSPEED;
 208 
 209 #define HBA_SASSTATE_UNKNOWN    0x00 /* Phy is enabled. Speed is unknown */
 210 #define HBA_SASSTATE_DISABLED   0x01 /* Phy is disabled. */
 211 /* Phy is enabled. But failed speed negotiation. */
 212 #define HBA_SASSTATE_FAILED     0x02
 213 /*
 214  * Phy is enabled. Detected a SATA device and entered the SATA Spinup hold
 215  * state.
 216  */
 217 #define HBA_SASSTATE_SATASPINUP    0x03
 218 /* The phy is attached to a Port Selector (see SATA-2.6). */
 219 #define HBA_SASSTATE_SATAPORTSEL    0x04
 220 #define HBA_SASSPEED_1_5GBIT        0x08 /*  1.5 GBit/sec */
 221 #define HBA_SASSPEED_3GBIT          0x09 /*  3 GBit/sec */
 222 #define HBA_SASSPEED_6GBIT          0x0a /*  6 GBit/sec */
 223 #define HBA_SASSPEED_12GBIT         0x0b /* 12 GBit/sec */
 224 
 225 /* SM-HBA  6.5.5 SAS Phy Attribute */
 226 typedef struct SMHBA_SAS_Phy {
 227         HBA_UINT8           PhyIdentifier;
 228         HBA_SASPHYSPEED     NegotiatedLinkRate;
 229         HBA_SASPHYSPEED     ProgrammedMinLinkRate;
 230         HBA_SASPHYSPEED     HardwareMinLinkRate;
 231         HBA_SASPHYSPEED     ProgrammedMaxLinkRate;
 232         HBA_SASPHYSPEED     HardwareMaxLinkRate;
 233         HBA_WWN             domainPortWWN;
 234 } SMHBA_SAS_PHY, *PSMHBA_SAS_PHY;
 235 
 236 /* SM-HBA 6.6.1.1 Protocol Statistics Data Declarations */
 237 /* Statistical counters for FC-4, SSP, STP, SMP protocols */
 238 typedef struct SMHBA_ProtocolStatistics {
 239         HBA_INT64           SecondsSinceLastReset;
 240         HBA_INT64           InputRequests;
 241         HBA_INT64           OutputRequests;
 242         HBA_INT64           ControlRequests;
 243         HBA_INT64           InputMegabytes;