aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/bfa/bfad_bsg.h
diff options
context:
space:
mode:
authorKrishna Gudipati <kgudipat@brocade.com>2011-06-24 23:26:25 -0400
committerJames Bottomley <JBottomley@Parallels.com>2011-06-29 18:22:26 -0400
commit51e569aa1f0c10bd71af05e76e4ba0e42c51e4ab (patch)
tree65ab17fd7da7c3432c04c45269cbd62ee19198c5 /drivers/scsi/bfa/bfad_bsg.h
parent148d61039c625f3f7e2d0a6ad1efe17f83153e65 (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.h16
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
70struct bfa_bsg_gen_s { 72struct 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
325struct 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
332struct 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
323struct bfa_bsg_fcpt_s { 339struct bfa_bsg_fcpt_s {
324 bfa_status_t status; 340 bfa_status_t status;
325 u16 vf_id; 341 u16 vf_id;