diff options
author | Krishna Gudipati <kgudipat@brocade.com> | 2011-06-24 23:26:25 -0400 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2011-06-29 18:22:26 -0400 |
commit | 51e569aa1f0c10bd71af05e76e4ba0e42c51e4ab (patch) | |
tree | 65ab17fd7da7c3432c04c45269cbd62ee19198c5 /drivers/scsi/bfa/bfad_bsg.h | |
parent | 148d61039c625f3f7e2d0a6ad1efe17f83153e65 (diff) |
[SCSI] bfa: Added support to obtain SFP info.
- Added SFP sub-module to BFA.
- Added interface to collect sfp media info and sfp speed.
Signed-off-by: Krishna Gudipati <kgudipat@brocade.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/bfa/bfad_bsg.h')
-rw-r--r-- | drivers/scsi/bfa/bfad_bsg.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/drivers/scsi/bfa/bfad_bsg.h b/drivers/scsi/bfa/bfad_bsg.h index 5b4599ad8fb9..faafd35f88ae 100644 --- a/drivers/scsi/bfa/bfad_bsg.h +++ b/drivers/scsi/bfa/bfad_bsg.h | |||
@@ -65,6 +65,8 @@ enum { | |||
65 | IOCMD_CEE_GET_ATTR, | 65 | IOCMD_CEE_GET_ATTR, |
66 | IOCMD_CEE_GET_STATS, | 66 | IOCMD_CEE_GET_STATS, |
67 | IOCMD_CEE_RESET_STATS, | 67 | IOCMD_CEE_RESET_STATS, |
68 | IOCMD_SFP_MEDIA, | ||
69 | IOCMD_SFP_SPEED, | ||
68 | }; | 70 | }; |
69 | 71 | ||
70 | struct bfa_bsg_gen_s { | 72 | struct bfa_bsg_gen_s { |
@@ -320,6 +322,20 @@ struct bfa_bsg_cee_stats_s { | |||
320 | u64 buf_ptr; | 322 | u64 buf_ptr; |
321 | }; | 323 | }; |
322 | 324 | ||
325 | struct bfa_bsg_sfp_media_s { | ||
326 | bfa_status_t status; | ||
327 | u16 bfad_num; | ||
328 | u16 rsvd; | ||
329 | enum bfa_defs_sfp_media_e media; | ||
330 | }; | ||
331 | |||
332 | struct bfa_bsg_sfp_speed_s { | ||
333 | bfa_status_t status; | ||
334 | u16 bfad_num; | ||
335 | u16 rsvd; | ||
336 | enum bfa_port_speed speed; | ||
337 | }; | ||
338 | |||
323 | struct bfa_bsg_fcpt_s { | 339 | struct bfa_bsg_fcpt_s { |
324 | bfa_status_t status; | 340 | bfa_status_t status; |
325 | u16 vf_id; | 341 | u16 vf_id; |