diff options
Diffstat (limited to 'drivers/scsi/bfa/bfa_svc.h')
-rw-r--r-- | drivers/scsi/bfa/bfa_svc.h | 29 |
1 files changed, 12 insertions, 17 deletions
diff --git a/drivers/scsi/bfa/bfa_svc.h b/drivers/scsi/bfa/bfa_svc.h index 0e23c1bfcba0..29b091826e9b 100644 --- a/drivers/scsi/bfa/bfa_svc.h +++ b/drivers/scsi/bfa/bfa_svc.h | |||
@@ -220,6 +220,18 @@ void bfa_fcxp_isr(struct bfa_s *bfa, struct bfi_msg_s *msg); | |||
220 | /* | 220 | /* |
221 | * RPORT related defines | 221 | * RPORT related defines |
222 | */ | 222 | */ |
223 | enum bfa_rport_event { | ||
224 | BFA_RPORT_SM_CREATE = 1, /* rport create event */ | ||
225 | BFA_RPORT_SM_DELETE = 2, /* deleting an existing rport */ | ||
226 | BFA_RPORT_SM_ONLINE = 3, /* rport is online */ | ||
227 | BFA_RPORT_SM_OFFLINE = 4, /* rport is offline */ | ||
228 | BFA_RPORT_SM_FWRSP = 5, /* firmware response */ | ||
229 | BFA_RPORT_SM_HWFAIL = 6, /* IOC h/w failure */ | ||
230 | BFA_RPORT_SM_QOS_SCN = 7, /* QoS SCN from firmware */ | ||
231 | BFA_RPORT_SM_SET_SPEED = 8, /* Set Rport Speed */ | ||
232 | BFA_RPORT_SM_QRESUME = 9, /* space in requeue queue */ | ||
233 | }; | ||
234 | |||
223 | #define BFA_RPORT_MIN 4 | 235 | #define BFA_RPORT_MIN 4 |
224 | 236 | ||
225 | struct bfa_rport_mod_s { | 237 | struct bfa_rport_mod_s { |
@@ -516,12 +528,9 @@ bfa_boolean_t bfa_fcport_is_qos_enabled(struct bfa_s *bfa); | |||
516 | * bfa rport API functions | 528 | * bfa rport API functions |
517 | */ | 529 | */ |
518 | struct bfa_rport_s *bfa_rport_create(struct bfa_s *bfa, void *rport_drv); | 530 | struct bfa_rport_s *bfa_rport_create(struct bfa_s *bfa, void *rport_drv); |
519 | void bfa_rport_delete(struct bfa_rport_s *rport); | ||
520 | void bfa_rport_online(struct bfa_rport_s *rport, | 531 | void bfa_rport_online(struct bfa_rport_s *rport, |
521 | struct bfa_rport_info_s *rport_info); | 532 | struct bfa_rport_info_s *rport_info); |
522 | void bfa_rport_offline(struct bfa_rport_s *rport); | ||
523 | void bfa_rport_speed(struct bfa_rport_s *rport, enum bfa_port_speed speed); | 533 | void bfa_rport_speed(struct bfa_rport_s *rport, enum bfa_port_speed speed); |
524 | void bfa_rport_clear_stats(struct bfa_rport_s *rport); | ||
525 | void bfa_cb_rport_online(void *rport); | 534 | void bfa_cb_rport_online(void *rport); |
526 | void bfa_cb_rport_offline(void *rport); | 535 | void bfa_cb_rport_offline(void *rport); |
527 | void bfa_cb_rport_qos_scn_flowid(void *rport, | 536 | void bfa_cb_rport_qos_scn_flowid(void *rport, |
@@ -594,28 +603,14 @@ void bfa_uf_free(struct bfa_uf_s *uf); | |||
594 | u32 bfa_lps_get_max_vport(struct bfa_s *bfa); | 603 | u32 bfa_lps_get_max_vport(struct bfa_s *bfa); |
595 | struct bfa_lps_s *bfa_lps_alloc(struct bfa_s *bfa); | 604 | struct bfa_lps_s *bfa_lps_alloc(struct bfa_s *bfa); |
596 | void bfa_lps_delete(struct bfa_lps_s *lps); | 605 | void bfa_lps_delete(struct bfa_lps_s *lps); |
597 | void bfa_lps_discard(struct bfa_lps_s *lps); | ||
598 | void bfa_lps_flogi(struct bfa_lps_s *lps, void *uarg, u8 alpa, | 606 | void bfa_lps_flogi(struct bfa_lps_s *lps, void *uarg, u8 alpa, |
599 | u16 pdusz, wwn_t pwwn, wwn_t nwwn, | 607 | u16 pdusz, wwn_t pwwn, wwn_t nwwn, |
600 | bfa_boolean_t auth_en); | 608 | bfa_boolean_t auth_en); |
601 | void bfa_lps_fdisc(struct bfa_lps_s *lps, void *uarg, u16 pdusz, | 609 | void bfa_lps_fdisc(struct bfa_lps_s *lps, void *uarg, u16 pdusz, |
602 | wwn_t pwwn, wwn_t nwwn); | 610 | wwn_t pwwn, wwn_t nwwn); |
603 | void bfa_lps_fdisclogo(struct bfa_lps_s *lps); | 611 | void bfa_lps_fdisclogo(struct bfa_lps_s *lps); |
604 | u8 bfa_lps_get_tag(struct bfa_lps_s *lps); | ||
605 | bfa_boolean_t bfa_lps_is_npiv_en(struct bfa_lps_s *lps); | ||
606 | bfa_boolean_t bfa_lps_is_fport(struct bfa_lps_s *lps); | ||
607 | bfa_boolean_t bfa_lps_is_brcd_fabric(struct bfa_lps_s *lps); | ||
608 | bfa_boolean_t bfa_lps_is_authreq(struct bfa_lps_s *lps); | ||
609 | bfa_eproto_status_t bfa_lps_get_extstatus(struct bfa_lps_s *lps); | ||
610 | u32 bfa_lps_get_pid(struct bfa_lps_s *lps); | ||
611 | u32 bfa_lps_get_base_pid(struct bfa_s *bfa); | 612 | u32 bfa_lps_get_base_pid(struct bfa_s *bfa); |
612 | u8 bfa_lps_get_tag_from_pid(struct bfa_s *bfa, u32 pid); | 613 | u8 bfa_lps_get_tag_from_pid(struct bfa_s *bfa, u32 pid); |
613 | u16 bfa_lps_get_peer_bbcredit(struct bfa_lps_s *lps); | ||
614 | wwn_t bfa_lps_get_peer_pwwn(struct bfa_lps_s *lps); | ||
615 | wwn_t bfa_lps_get_peer_nwwn(struct bfa_lps_s *lps); | ||
616 | u8 bfa_lps_get_lsrjt_rsn(struct bfa_lps_s *lps); | ||
617 | u8 bfa_lps_get_lsrjt_expl(struct bfa_lps_s *lps); | ||
618 | mac_t bfa_lps_get_lp_mac(struct bfa_lps_s *lps); | ||
619 | void bfa_cb_lps_flogi_comp(void *bfad, void *uarg, bfa_status_t status); | 614 | void bfa_cb_lps_flogi_comp(void *bfad, void *uarg, bfa_status_t status); |
620 | void bfa_cb_lps_fdisc_comp(void *bfad, void *uarg, bfa_status_t status); | 615 | void bfa_cb_lps_fdisc_comp(void *bfad, void *uarg, bfa_status_t status); |
621 | void bfa_cb_lps_fdisclogo_comp(void *bfad, void *uarg); | 616 | void bfa_cb_lps_fdisclogo_comp(void *bfad, void *uarg); |