diff options
author | Krishna Gudipati <kgudipat@brocade.com> | 2012-09-21 20:26:07 -0400 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2012-10-07 06:17:27 -0400 |
commit | e353546e447feb838db2d1b23bac23cb90755993 (patch) | |
tree | f2762c0aedd4bb0ef4ebdca889c782b180ecdddc /drivers/scsi/bfa/bfa_defs.h | |
parent | 1306e31d417df05c25053c5632b26d1c1b22d1ed (diff) |
[SCSI] bfa: Add diagnostic port (D-Port) support
- Introduced support for D-Port which is a new port mode during which
link level diagnostics can be run.
- Provided mechanism to dynamically configure D-Port and initiate diagnostic
tests to isolate any link level issues.
- In D-Port mode, the HBA port does not participate in fabric or login to the
remote device or run data traffic.
- Diagnostic tests include running various loopback tests in conjunction with
the attached device.
Signed-off-by: Krishna Gudipati <kgudipat@brocade.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/bfa/bfa_defs.h')
-rw-r--r-- | drivers/scsi/bfa/bfa_defs.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/drivers/scsi/bfa/bfa_defs.h b/drivers/scsi/bfa/bfa_defs.h index 4e7777682089..b4d5d87f54ff 100644 --- a/drivers/scsi/bfa/bfa_defs.h +++ b/drivers/scsi/bfa/bfa_defs.h | |||
@@ -165,6 +165,7 @@ enum bfa_status { | |||
165 | BFA_STATUS_MEMTEST_FAILED = 90, /* Memory test failed contact support */ | 165 | BFA_STATUS_MEMTEST_FAILED = 90, /* Memory test failed contact support */ |
166 | BFA_STATUS_LEDTEST_OP = 109, /* LED test is operating */ | 166 | BFA_STATUS_LEDTEST_OP = 109, /* LED test is operating */ |
167 | BFA_STATUS_INVALID_MAC = 134, /* Invalid MAC address */ | 167 | BFA_STATUS_INVALID_MAC = 134, /* Invalid MAC address */ |
168 | BFA_STATUS_CMD_NOTSUPP_CNA = 146, /* Command not supported for CNA */ | ||
168 | BFA_STATUS_PBC = 154, /* Operation not allowed for pre-boot | 169 | BFA_STATUS_PBC = 154, /* Operation not allowed for pre-boot |
169 | * configuration */ | 170 | * configuration */ |
170 | BFA_STATUS_BAD_FWCFG = 156, /* Bad firmware configuration */ | 171 | BFA_STATUS_BAD_FWCFG = 156, /* Bad firmware configuration */ |
@@ -189,6 +190,10 @@ enum bfa_status { | |||
189 | BFA_STATUS_TOPOLOGY_LOOP = 230, /* Topology is set to Loop */ | 190 | BFA_STATUS_TOPOLOGY_LOOP = 230, /* Topology is set to Loop */ |
190 | BFA_STATUS_LOOP_UNSUPP_MEZZ = 231, /* Loop topology is not supported | 191 | BFA_STATUS_LOOP_UNSUPP_MEZZ = 231, /* Loop topology is not supported |
191 | * on mezz cards */ | 192 | * on mezz cards */ |
193 | BFA_STATUS_DPORT_ENABLED = 235, /* D-port mode is already enabled */ | ||
194 | BFA_STATUS_DPORT_DISABLED = 236, /* D-port mode is already disabled */ | ||
195 | BFA_STATUS_CMD_NOTSUPP_MEZZ = 239, /* Cmd not supported for MEZZ card */ | ||
196 | BFA_STATUS_DPORT_ERR = 245, /* D-port mode is enabled */ | ||
192 | BFA_STATUS_MAX_VAL /* Unknown error code */ | 197 | BFA_STATUS_MAX_VAL /* Unknown error code */ |
193 | }; | 198 | }; |
194 | #define bfa_status_t enum bfa_status | 199 | #define bfa_status_t enum bfa_status |
@@ -508,6 +513,17 @@ struct bfa_ioc_aen_data_s { | |||
508 | }; | 513 | }; |
509 | 514 | ||
510 | /* | 515 | /* |
516 | * D-port states | ||
517 | * | ||
518 | */ | ||
519 | enum bfa_dport_state { | ||
520 | BFA_DPORT_ST_DISABLED = 0, /* D-port is Disabled */ | ||
521 | BFA_DPORT_ST_DISABLING = 1, /* D-port is Disabling */ | ||
522 | BFA_DPORT_ST_ENABLING = 2, /* D-port is Enabling */ | ||
523 | BFA_DPORT_ST_ENABLED = 3, /* D-port is Enabled */ | ||
524 | }; | ||
525 | |||
526 | /* | ||
511 | * ---------------------- mfg definitions ------------ | 527 | * ---------------------- mfg definitions ------------ |
512 | */ | 528 | */ |
513 | 529 | ||