diff options
Diffstat (limited to 'drivers/scsi/bfa/bfa_fcs.h')
-rw-r--r-- | drivers/scsi/bfa/bfa_fcs.h | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/drivers/scsi/bfa/bfa_fcs.h b/drivers/scsi/bfa/bfa_fcs.h index 6c4377cb287f..a449706c6bc0 100644 --- a/drivers/scsi/bfa/bfa_fcs.h +++ b/drivers/scsi/bfa/bfa_fcs.h | |||
@@ -118,9 +118,9 @@ struct bfa_fcs_lport_fab_s { | |||
118 | #define MAX_ALPA_COUNT 127 | 118 | #define MAX_ALPA_COUNT 127 |
119 | 119 | ||
120 | struct bfa_fcs_lport_loop_s { | 120 | struct bfa_fcs_lport_loop_s { |
121 | u8 num_alpa; /* Num of ALPA entries in the map */ | 121 | u8 num_alpa; /* Num of ALPA entries in the map */ |
122 | u8 alpa_pos_map[MAX_ALPA_COUNT]; /* ALPA Positional | 122 | u8 alpabm_valid; /* alpa bitmap valid or not (1 or 0) */ |
123 | *Map */ | 123 | u8 alpa_pos_map[MAX_ALPA_COUNT]; /* ALPA Positional Map */ |
124 | struct bfa_fcs_lport_s *port; /* parent port */ | 124 | struct bfa_fcs_lport_s *port; /* parent port */ |
125 | }; | 125 | }; |
126 | 126 | ||
@@ -175,6 +175,7 @@ enum bfa_fcs_fabric_type { | |||
175 | BFA_FCS_FABRIC_UNKNOWN = 0, | 175 | BFA_FCS_FABRIC_UNKNOWN = 0, |
176 | BFA_FCS_FABRIC_SWITCHED = 1, | 176 | BFA_FCS_FABRIC_SWITCHED = 1, |
177 | BFA_FCS_FABRIC_N2N = 2, | 177 | BFA_FCS_FABRIC_N2N = 2, |
178 | BFA_FCS_FABRIC_LOOP = 3, | ||
178 | }; | 179 | }; |
179 | 180 | ||
180 | 181 | ||
@@ -350,9 +351,10 @@ void bfa_fcs_lport_ns_util_send_rspn_id(void *cbarg, | |||
350 | struct bfa_fcxp_s *fcxp_alloced); | 351 | struct bfa_fcxp_s *fcxp_alloced); |
351 | void bfa_fcs_lport_scn_init(struct bfa_fcs_lport_s *vport); | 352 | void bfa_fcs_lport_scn_init(struct bfa_fcs_lport_s *vport); |
352 | void bfa_fcs_lport_scn_offline(struct bfa_fcs_lport_s *vport); | 353 | void bfa_fcs_lport_scn_offline(struct bfa_fcs_lport_s *vport); |
353 | void bfa_fcs_lport_scn_online(struct bfa_fcs_lport_s *vport); | 354 | void bfa_fcs_lport_fab_scn_online(struct bfa_fcs_lport_s *vport); |
354 | void bfa_fcs_lport_scn_process_rscn(struct bfa_fcs_lport_s *port, | 355 | void bfa_fcs_lport_scn_process_rscn(struct bfa_fcs_lport_s *port, |
355 | struct fchs_s *rx_frame, u32 len); | 356 | struct fchs_s *rx_frame, u32 len); |
357 | void bfa_fcs_lport_lip_scn_online(bfa_fcs_lport_t *port); | ||
356 | 358 | ||
357 | struct bfa_fcs_vport_s { | 359 | struct bfa_fcs_vport_s { |
358 | struct list_head qe; /* queue elem */ | 360 | struct list_head qe; /* queue elem */ |
@@ -453,6 +455,7 @@ struct bfa_fcs_rport_s { | |||
453 | struct bfa_rport_stats_s stats; /* rport stats */ | 455 | struct bfa_rport_stats_s stats; /* rport stats */ |
454 | enum bfa_rport_function scsi_function; /* Initiator/Target */ | 456 | enum bfa_rport_function scsi_function; /* Initiator/Target */ |
455 | struct bfa_fcs_rpf_s rpf; /* Rport features module */ | 457 | struct bfa_fcs_rpf_s rpf; /* Rport features module */ |
458 | bfa_boolean_t scn_online; /* SCN online flag */ | ||
456 | }; | 459 | }; |
457 | 460 | ||
458 | static inline struct bfa_rport_s * | 461 | static inline struct bfa_rport_s * |
@@ -639,9 +642,9 @@ struct bfa_fcs_fdmi_hba_attr_s { | |||
639 | u8 model[16]; | 642 | u8 model[16]; |
640 | u8 model_desc[256]; | 643 | u8 model_desc[256]; |
641 | u8 hw_version[8]; | 644 | u8 hw_version[8]; |
642 | u8 driver_version[8]; | 645 | u8 driver_version[BFA_VERSION_LEN]; |
643 | u8 option_rom_ver[BFA_VERSION_LEN]; | 646 | u8 option_rom_ver[BFA_VERSION_LEN]; |
644 | u8 fw_version[8]; | 647 | u8 fw_version[BFA_VERSION_LEN]; |
645 | u8 os_name[256]; | 648 | u8 os_name[256]; |
646 | __be32 max_ct_pyld; | 649 | __be32 max_ct_pyld; |
647 | }; | 650 | }; |
@@ -733,7 +736,7 @@ enum rport_event { | |||
733 | RPSM_EVENT_LOGO_IMP = 5, /* implicit logo for SLER */ | 736 | RPSM_EVENT_LOGO_IMP = 5, /* implicit logo for SLER */ |
734 | RPSM_EVENT_FCXP_SENT = 6, /* Frame from has been sent */ | 737 | RPSM_EVENT_FCXP_SENT = 6, /* Frame from has been sent */ |
735 | RPSM_EVENT_DELETE = 7, /* RPORT delete request */ | 738 | RPSM_EVENT_DELETE = 7, /* RPORT delete request */ |
736 | RPSM_EVENT_SCN = 8, /* state change notification */ | 739 | RPSM_EVENT_FAB_SCN = 8, /* state change notification */ |
737 | RPSM_EVENT_ACCEPTED = 9, /* Good response from remote device */ | 740 | RPSM_EVENT_ACCEPTED = 9, /* Good response from remote device */ |
738 | RPSM_EVENT_FAILED = 10, /* Request to rport failed. */ | 741 | RPSM_EVENT_FAILED = 10, /* Request to rport failed. */ |
739 | RPSM_EVENT_TIMEOUT = 11, /* Rport SM timeout event */ | 742 | RPSM_EVENT_TIMEOUT = 11, /* Rport SM timeout event */ |
@@ -744,7 +747,9 @@ enum rport_event { | |||
744 | RPSM_EVENT_ADDRESS_DISC = 16, /* Need to Discover rport's PID */ | 747 | RPSM_EVENT_ADDRESS_DISC = 16, /* Need to Discover rport's PID */ |
745 | RPSM_EVENT_PRLO_RCVD = 17, /* PRLO from remote device */ | 748 | RPSM_EVENT_PRLO_RCVD = 17, /* PRLO from remote device */ |
746 | RPSM_EVENT_PLOGI_RETRY = 18, /* Retry PLOGI continuously */ | 749 | RPSM_EVENT_PLOGI_RETRY = 18, /* Retry PLOGI continuously */ |
747 | RPSM_EVENT_FC4_FCS_ONLINE = 19, /*!< FC-4 FCS online complete */ | 750 | RPSM_EVENT_SCN_OFFLINE = 19, /* loop scn offline */ |
751 | RPSM_EVENT_SCN_ONLINE = 20, /* loop scn online */ | ||
752 | RPSM_EVENT_FC4_FCS_ONLINE = 21, /* FC-4 FCS online complete */ | ||
748 | }; | 753 | }; |
749 | 754 | ||
750 | /* | 755 | /* |
@@ -763,7 +768,7 @@ enum bfa_fcs_itnim_event { | |||
763 | BFA_FCS_ITNIM_SM_DELETE = 10, /* delete event from rport */ | 768 | BFA_FCS_ITNIM_SM_DELETE = 10, /* delete event from rport */ |
764 | BFA_FCS_ITNIM_SM_PRLO = 11, /* delete event from rport */ | 769 | BFA_FCS_ITNIM_SM_PRLO = 11, /* delete event from rport */ |
765 | BFA_FCS_ITNIM_SM_RSP_NOT_SUPP = 12, /* cmd not supported rsp */ | 770 | BFA_FCS_ITNIM_SM_RSP_NOT_SUPP = 12, /* cmd not supported rsp */ |
766 | BFA_FCS_ITNIM_SM_HAL_ONLINE = 13, /*!< bfa rport online event */ | 771 | BFA_FCS_ITNIM_SM_HAL_ONLINE = 13, /* bfa rport online event */ |
767 | }; | 772 | }; |
768 | 773 | ||
769 | /* | 774 | /* |