diff options
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_crtn.h')
-rw-r--r-- | drivers/scsi/lpfc/lpfc_crtn.h | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/drivers/scsi/lpfc/lpfc_crtn.h b/drivers/scsi/lpfc/lpfc_crtn.h index d2a922997c0f..0830f37409a3 100644 --- a/drivers/scsi/lpfc/lpfc_crtn.h +++ b/drivers/scsi/lpfc/lpfc_crtn.h | |||
@@ -21,9 +21,11 @@ | |||
21 | typedef int (*node_filter)(struct lpfc_nodelist *, void *); | 21 | typedef int (*node_filter)(struct lpfc_nodelist *, void *); |
22 | 22 | ||
23 | struct fc_rport; | 23 | struct fc_rport; |
24 | void lpfc_dump_mem(struct lpfc_hba *, LPFC_MBOXQ_t *, uint16_t); | 24 | void lpfc_down_link(struct lpfc_hba *, LPFC_MBOXQ_t *); |
25 | void lpfc_sli_read_link_ste(struct lpfc_hba *); | ||
26 | void lpfc_dump_mem(struct lpfc_hba *, LPFC_MBOXQ_t *, uint16_t, uint16_t); | ||
25 | void lpfc_dump_wakeup_param(struct lpfc_hba *, LPFC_MBOXQ_t *); | 27 | void lpfc_dump_wakeup_param(struct lpfc_hba *, LPFC_MBOXQ_t *); |
26 | void lpfc_dump_static_vport(struct lpfc_hba *, LPFC_MBOXQ_t *, uint16_t); | 28 | int lpfc_dump_static_vport(struct lpfc_hba *, LPFC_MBOXQ_t *, uint16_t); |
27 | int lpfc_dump_fcoe_param(struct lpfc_hba *, struct lpfcMboxq *); | 29 | int lpfc_dump_fcoe_param(struct lpfc_hba *, struct lpfcMboxq *); |
28 | void lpfc_read_nv(struct lpfc_hba *, LPFC_MBOXQ_t *); | 30 | void lpfc_read_nv(struct lpfc_hba *, LPFC_MBOXQ_t *); |
29 | void lpfc_config_async(struct lpfc_hba *, LPFC_MBOXQ_t *, uint32_t); | 31 | void lpfc_config_async(struct lpfc_hba *, LPFC_MBOXQ_t *, uint32_t); |
@@ -135,6 +137,9 @@ int lpfc_els_disc_adisc(struct lpfc_vport *); | |||
135 | int lpfc_els_disc_plogi(struct lpfc_vport *); | 137 | int lpfc_els_disc_plogi(struct lpfc_vport *); |
136 | void lpfc_els_timeout(unsigned long); | 138 | void lpfc_els_timeout(unsigned long); |
137 | void lpfc_els_timeout_handler(struct lpfc_vport *); | 139 | void lpfc_els_timeout_handler(struct lpfc_vport *); |
140 | struct lpfc_iocbq *lpfc_prep_els_iocb(struct lpfc_vport *, uint8_t, uint16_t, | ||
141 | uint8_t, struct lpfc_nodelist *, | ||
142 | uint32_t, uint32_t); | ||
138 | void lpfc_hb_timeout_handler(struct lpfc_hba *); | 143 | void lpfc_hb_timeout_handler(struct lpfc_hba *); |
139 | 144 | ||
140 | void lpfc_ct_unsol_event(struct lpfc_hba *, struct lpfc_sli_ring *, | 145 | void lpfc_ct_unsol_event(struct lpfc_hba *, struct lpfc_sli_ring *, |
@@ -182,11 +187,12 @@ int lpfc_mbox_dev_check(struct lpfc_hba *); | |||
182 | int lpfc_mbox_tmo_val(struct lpfc_hba *, int); | 187 | int lpfc_mbox_tmo_val(struct lpfc_hba *, int); |
183 | void lpfc_init_vfi(struct lpfcMboxq *, struct lpfc_vport *); | 188 | void lpfc_init_vfi(struct lpfcMboxq *, struct lpfc_vport *); |
184 | void lpfc_reg_vfi(struct lpfcMboxq *, struct lpfc_vport *, dma_addr_t); | 189 | void lpfc_reg_vfi(struct lpfcMboxq *, struct lpfc_vport *, dma_addr_t); |
185 | void lpfc_init_vpi(struct lpfcMboxq *, uint16_t); | 190 | void lpfc_init_vpi(struct lpfc_hba *, struct lpfcMboxq *, uint16_t); |
186 | void lpfc_unreg_vfi(struct lpfcMboxq *, uint16_t); | 191 | void lpfc_unreg_vfi(struct lpfcMboxq *, uint16_t); |
187 | void lpfc_reg_fcfi(struct lpfc_hba *, struct lpfcMboxq *); | 192 | void lpfc_reg_fcfi(struct lpfc_hba *, struct lpfcMboxq *); |
188 | void lpfc_unreg_fcfi(struct lpfcMboxq *, uint16_t); | 193 | void lpfc_unreg_fcfi(struct lpfcMboxq *, uint16_t); |
189 | void lpfc_resume_rpi(struct lpfcMboxq *, struct lpfc_nodelist *); | 194 | void lpfc_resume_rpi(struct lpfcMboxq *, struct lpfc_nodelist *); |
195 | int lpfc_check_pending_fcoe_event(struct lpfc_hba *, uint8_t); | ||
190 | 196 | ||
191 | void lpfc_config_hbq(struct lpfc_hba *, uint32_t, struct lpfc_hbq_init *, | 197 | void lpfc_config_hbq(struct lpfc_hba *, uint32_t, struct lpfc_hbq_init *, |
192 | uint32_t , LPFC_MBOXQ_t *); | 198 | uint32_t , LPFC_MBOXQ_t *); |
@@ -234,6 +240,7 @@ void lpfc_sli_def_mbox_cmpl(struct lpfc_hba *, LPFC_MBOXQ_t *); | |||
234 | int lpfc_sli_issue_iocb(struct lpfc_hba *, uint32_t, | 240 | int lpfc_sli_issue_iocb(struct lpfc_hba *, uint32_t, |
235 | struct lpfc_iocbq *, uint32_t); | 241 | struct lpfc_iocbq *, uint32_t); |
236 | void lpfc_sli_pcimem_bcopy(void *, void *, uint32_t); | 242 | void lpfc_sli_pcimem_bcopy(void *, void *, uint32_t); |
243 | void lpfc_sli_bemem_bcopy(void *, void *, uint32_t); | ||
237 | void lpfc_sli_abort_iocb_ring(struct lpfc_hba *, struct lpfc_sli_ring *); | 244 | void lpfc_sli_abort_iocb_ring(struct lpfc_hba *, struct lpfc_sli_ring *); |
238 | void lpfc_sli_flush_fcp_rings(struct lpfc_hba *); | 245 | void lpfc_sli_flush_fcp_rings(struct lpfc_hba *); |
239 | int lpfc_sli_ringpostbuf_put(struct lpfc_hba *, struct lpfc_sli_ring *, | 246 | int lpfc_sli_ringpostbuf_put(struct lpfc_hba *, struct lpfc_sli_ring *, |
@@ -360,3 +367,8 @@ void lpfc_start_fdiscs(struct lpfc_hba *phba); | |||
360 | #define HBA_EVENT_LINK_UP 2 | 367 | #define HBA_EVENT_LINK_UP 2 |
361 | #define HBA_EVENT_LINK_DOWN 3 | 368 | #define HBA_EVENT_LINK_DOWN 3 |
362 | 369 | ||
370 | /* functions to support SGIOv4/bsg interface */ | ||
371 | int lpfc_bsg_request(struct fc_bsg_job *); | ||
372 | int lpfc_bsg_timeout(struct fc_bsg_job *); | ||
373 | void lpfc_bsg_ct_unsol_event(struct lpfc_hba *, struct lpfc_sli_ring *, | ||
374 | struct lpfc_iocbq *); | ||