diff options
Diffstat (limited to 'drivers/scsi/bfa/bfad_im.h')
-rw-r--r-- | drivers/scsi/bfa/bfad_im.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/scsi/bfa/bfad_im.h b/drivers/scsi/bfa/bfad_im.h index c81ec2a77ef5..06ce4ba2b7bc 100644 --- a/drivers/scsi/bfa/bfad_im.h +++ b/drivers/scsi/bfa/bfad_im.h | |||
@@ -69,6 +69,16 @@ struct bfad_im_port_s { | |||
69 | struct fc_vport *fc_vport; | 69 | struct fc_vport *fc_vport; |
70 | }; | 70 | }; |
71 | 71 | ||
72 | struct bfad_im_port_pointer { | ||
73 | struct bfad_im_port_s *p; | ||
74 | }; | ||
75 | |||
76 | static inline struct bfad_im_port_s *bfad_get_im_port(struct Scsi_Host *host) | ||
77 | { | ||
78 | struct bfad_im_port_pointer *im_portp = shost_priv(host); | ||
79 | return im_portp->p; | ||
80 | } | ||
81 | |||
72 | enum bfad_itnim_state { | 82 | enum bfad_itnim_state { |
73 | ITNIM_STATE_NONE, | 83 | ITNIM_STATE_NONE, |
74 | ITNIM_STATE_ONLINE, | 84 | ITNIM_STATE_ONLINE, |