diff options
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_crtn.h')
-rw-r--r-- | drivers/scsi/lpfc/lpfc_crtn.h | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/drivers/scsi/lpfc/lpfc_crtn.h b/drivers/scsi/lpfc/lpfc_crtn.h index 94e788199568..e19d1a746586 100644 --- a/drivers/scsi/lpfc/lpfc_crtn.h +++ b/drivers/scsi/lpfc/lpfc_crtn.h | |||
@@ -23,6 +23,7 @@ typedef int (*node_filter)(struct lpfc_nodelist *ndlp, void *param); | |||
23 | struct fc_rport; | 23 | struct fc_rport; |
24 | void lpfc_dump_mem(struct lpfc_hba *, LPFC_MBOXQ_t *, uint16_t); | 24 | void lpfc_dump_mem(struct lpfc_hba *, LPFC_MBOXQ_t *, uint16_t); |
25 | void lpfc_read_nv(struct lpfc_hba *, LPFC_MBOXQ_t *); | 25 | void lpfc_read_nv(struct lpfc_hba *, LPFC_MBOXQ_t *); |
26 | void lpfc_heart_beat(struct lpfc_hba *, LPFC_MBOXQ_t *); | ||
26 | int lpfc_read_la(struct lpfc_hba * phba, LPFC_MBOXQ_t * pmb, | 27 | int lpfc_read_la(struct lpfc_hba * phba, LPFC_MBOXQ_t * pmb, |
27 | struct lpfc_dmabuf *mp); | 28 | struct lpfc_dmabuf *mp); |
28 | void lpfc_clear_la(struct lpfc_hba *, LPFC_MBOXQ_t *); | 29 | void lpfc_clear_la(struct lpfc_hba *, LPFC_MBOXQ_t *); |
@@ -45,6 +46,7 @@ void lpfc_mbx_cmpl_read_la(struct lpfc_hba *, LPFC_MBOXQ_t *); | |||
45 | 46 | ||
46 | void lpfc_mbx_cmpl_clear_la(struct lpfc_hba *, LPFC_MBOXQ_t *); | 47 | void lpfc_mbx_cmpl_clear_la(struct lpfc_hba *, LPFC_MBOXQ_t *); |
47 | void lpfc_mbx_cmpl_reg_login(struct lpfc_hba *, LPFC_MBOXQ_t *); | 48 | void lpfc_mbx_cmpl_reg_login(struct lpfc_hba *, LPFC_MBOXQ_t *); |
49 | void lpfc_mbx_cmpl_dflt_rpi(struct lpfc_hba *, LPFC_MBOXQ_t *); | ||
48 | void lpfc_mbx_cmpl_fabric_reg_login(struct lpfc_hba *, LPFC_MBOXQ_t *); | 50 | void lpfc_mbx_cmpl_fabric_reg_login(struct lpfc_hba *, LPFC_MBOXQ_t *); |
49 | void lpfc_mbx_cmpl_ns_reg_login(struct lpfc_hba *, LPFC_MBOXQ_t *); | 51 | void lpfc_mbx_cmpl_ns_reg_login(struct lpfc_hba *, LPFC_MBOXQ_t *); |
50 | void lpfc_mbx_cmpl_fdmi_reg_login(struct lpfc_hba *, LPFC_MBOXQ_t *); | 52 | void lpfc_mbx_cmpl_fdmi_reg_login(struct lpfc_hba *, LPFC_MBOXQ_t *); |
@@ -85,6 +87,7 @@ void lpfc_do_scr_ns_plogi(struct lpfc_hba *, struct lpfc_vport *); | |||
85 | int lpfc_check_sparm(struct lpfc_vport *, struct lpfc_nodelist *, | 87 | int lpfc_check_sparm(struct lpfc_vport *, struct lpfc_nodelist *, |
86 | struct serv_parm *, uint32_t); | 88 | struct serv_parm *, uint32_t); |
87 | int lpfc_els_abort(struct lpfc_hba *, struct lpfc_nodelist *); | 89 | int lpfc_els_abort(struct lpfc_hba *, struct lpfc_nodelist *); |
90 | int lpfc_els_chk_latt(struct lpfc_vport *); | ||
88 | int lpfc_els_abort_flogi(struct lpfc_hba *); | 91 | int lpfc_els_abort_flogi(struct lpfc_hba *); |
89 | int lpfc_initial_flogi(struct lpfc_vport *); | 92 | int lpfc_initial_flogi(struct lpfc_vport *); |
90 | int lpfc_initial_fdisc(struct lpfc_vport *); | 93 | int lpfc_initial_fdisc(struct lpfc_vport *); |
@@ -96,10 +99,11 @@ int lpfc_issue_els_logo(struct lpfc_vport *, struct lpfc_nodelist *, uint8_t); | |||
96 | int lpfc_issue_els_npiv_logo(struct lpfc_vport *, struct lpfc_nodelist *); | 99 | int lpfc_issue_els_npiv_logo(struct lpfc_vport *, struct lpfc_nodelist *); |
97 | int lpfc_issue_els_scr(struct lpfc_vport *, uint32_t, uint8_t); | 100 | int lpfc_issue_els_scr(struct lpfc_vport *, uint32_t, uint8_t); |
98 | int lpfc_els_free_iocb(struct lpfc_hba *, struct lpfc_iocbq *); | 101 | int lpfc_els_free_iocb(struct lpfc_hba *, struct lpfc_iocbq *); |
102 | int lpfc_ct_free_iocb(struct lpfc_hba *, struct lpfc_iocbq *); | ||
99 | int lpfc_els_rsp_acc(struct lpfc_vport *, uint32_t, struct lpfc_iocbq *, | 103 | int lpfc_els_rsp_acc(struct lpfc_vport *, uint32_t, struct lpfc_iocbq *, |
100 | struct lpfc_nodelist *, LPFC_MBOXQ_t *, uint8_t); | 104 | struct lpfc_nodelist *, LPFC_MBOXQ_t *, uint8_t); |
101 | int lpfc_els_rsp_reject(struct lpfc_vport *, uint32_t, struct lpfc_iocbq *, | 105 | int lpfc_els_rsp_reject(struct lpfc_vport *, uint32_t, struct lpfc_iocbq *, |
102 | struct lpfc_nodelist *); | 106 | struct lpfc_nodelist *, LPFC_MBOXQ_t *); |
103 | int lpfc_els_rsp_adisc_acc(struct lpfc_vport *, struct lpfc_iocbq *, | 107 | int lpfc_els_rsp_adisc_acc(struct lpfc_vport *, struct lpfc_iocbq *, |
104 | struct lpfc_nodelist *); | 108 | struct lpfc_nodelist *); |
105 | int lpfc_els_rsp_prli_acc(struct lpfc_vport *, struct lpfc_iocbq *, | 109 | int lpfc_els_rsp_prli_acc(struct lpfc_vport *, struct lpfc_iocbq *, |
@@ -107,6 +111,7 @@ int lpfc_els_rsp_prli_acc(struct lpfc_vport *, struct lpfc_iocbq *, | |||
107 | void lpfc_cancel_retry_delay_tmo(struct lpfc_vport *, struct lpfc_nodelist *); | 111 | void lpfc_cancel_retry_delay_tmo(struct lpfc_vport *, struct lpfc_nodelist *); |
108 | void lpfc_els_retry_delay(unsigned long); | 112 | void lpfc_els_retry_delay(unsigned long); |
109 | void lpfc_els_retry_delay_handler(struct lpfc_nodelist *); | 113 | void lpfc_els_retry_delay_handler(struct lpfc_nodelist *); |
114 | void lpfc_dev_loss_tmo_handler(struct lpfc_nodelist *); | ||
110 | void lpfc_els_unsol_event(struct lpfc_hba *, struct lpfc_sli_ring *, | 115 | void lpfc_els_unsol_event(struct lpfc_hba *, struct lpfc_sli_ring *, |
111 | struct lpfc_iocbq *); | 116 | struct lpfc_iocbq *); |
112 | int lpfc_els_handle_rscn(struct lpfc_vport *); | 117 | int lpfc_els_handle_rscn(struct lpfc_vport *); |
@@ -117,6 +122,8 @@ int lpfc_els_disc_adisc(struct lpfc_vport *); | |||
117 | int lpfc_els_disc_plogi(struct lpfc_vport *); | 122 | int lpfc_els_disc_plogi(struct lpfc_vport *); |
118 | void lpfc_els_timeout(unsigned long); | 123 | void lpfc_els_timeout(unsigned long); |
119 | void lpfc_els_timeout_handler(struct lpfc_vport *); | 124 | void lpfc_els_timeout_handler(struct lpfc_vport *); |
125 | void lpfc_hb_timeout(unsigned long); | ||
126 | void lpfc_hb_timeout_handler(struct lpfc_hba *); | ||
120 | 127 | ||
121 | void lpfc_ct_unsol_event(struct lpfc_hba *, struct lpfc_sli_ring *, | 128 | void lpfc_ct_unsol_event(struct lpfc_hba *, struct lpfc_sli_ring *, |
122 | struct lpfc_iocbq *); | 129 | struct lpfc_iocbq *); |
@@ -238,7 +245,6 @@ void lpfc_mbuf_free(struct lpfc_hba *, void *, dma_addr_t); | |||
238 | void lpfc_in_buf_free(struct lpfc_hba *, struct lpfc_dmabuf *); | 245 | void lpfc_in_buf_free(struct lpfc_hba *, struct lpfc_dmabuf *); |
239 | /* Function prototypes. */ | 246 | /* Function prototypes. */ |
240 | const char* lpfc_info(struct Scsi_Host *); | 247 | const char* lpfc_info(struct Scsi_Host *); |
241 | void lpfc_scan_start(struct Scsi_Host *); | ||
242 | int lpfc_scan_finished(struct Scsi_Host *, unsigned long); | 248 | int lpfc_scan_finished(struct Scsi_Host *, unsigned long); |
243 | 249 | ||
244 | void lpfc_get_cfgparam(struct lpfc_hba *); | 250 | void lpfc_get_cfgparam(struct lpfc_hba *); |
@@ -249,7 +255,6 @@ extern struct scsi_host_template lpfc_template; | |||
249 | extern struct fc_function_template lpfc_transport_functions; | 255 | extern struct fc_function_template lpfc_transport_functions; |
250 | extern struct fc_function_template lpfc_vport_transport_functions; | 256 | extern struct fc_function_template lpfc_vport_transport_functions; |
251 | extern int lpfc_sli_mode; | 257 | extern int lpfc_sli_mode; |
252 | extern int lpfc_npiv_enable; | ||
253 | 258 | ||
254 | int lpfc_vport_symbolic_node_name(struct lpfc_vport *, char *, size_t); | 259 | int lpfc_vport_symbolic_node_name(struct lpfc_vport *, char *, size_t); |
255 | void lpfc_terminate_rport_io(struct fc_rport *); | 260 | void lpfc_terminate_rport_io(struct fc_rport *); |
@@ -262,6 +267,11 @@ void destroy_port(struct lpfc_vport *); | |||
262 | int lpfc_get_instance(void); | 267 | int lpfc_get_instance(void); |
263 | void lpfc_host_attrib_init(struct Scsi_Host *); | 268 | void lpfc_host_attrib_init(struct Scsi_Host *); |
264 | 269 | ||
270 | extern void lpfc_debugfs_initialize(struct lpfc_vport *); | ||
271 | extern void lpfc_debugfs_terminate(struct lpfc_vport *); | ||
272 | extern void lpfc_debugfs_disc_trc(struct lpfc_vport *, int, char *, uint32_t, | ||
273 | uint32_t, uint32_t); | ||
274 | |||
265 | /* Interface exported by fabric iocb scheduler */ | 275 | /* Interface exported by fabric iocb scheduler */ |
266 | int lpfc_issue_fabric_iocb(struct lpfc_hba *, struct lpfc_iocbq *); | 276 | int lpfc_issue_fabric_iocb(struct lpfc_hba *, struct lpfc_iocbq *); |
267 | void lpfc_fabric_abort_vport(struct lpfc_vport *); | 277 | void lpfc_fabric_abort_vport(struct lpfc_vport *); |