diff options
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_gbl.h')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_gbl.h | 51 |
1 files changed, 21 insertions, 30 deletions
diff --git a/drivers/scsi/qla2xxx/qla_gbl.h b/drivers/scsi/qla2xxx/qla_gbl.h index 09cb2a908059..ba35fc26ce6b 100644 --- a/drivers/scsi/qla2xxx/qla_gbl.h +++ b/drivers/scsi/qla2xxx/qla_gbl.h | |||
@@ -65,33 +65,25 @@ extern int ql2xextended_error_logging; | |||
65 | extern int ql2xqfullrampup; | 65 | extern int ql2xqfullrampup; |
66 | extern int num_hosts; | 66 | extern int num_hosts; |
67 | 67 | ||
68 | extern int qla2x00_loop_reset(scsi_qla_host_t *); | ||
69 | |||
68 | /* | 70 | /* |
69 | * Global Functions in qla_mid.c source file. | 71 | * Global Functions in qla_mid.c source file. |
70 | */ | 72 | */ |
71 | extern struct scsi_host_template qla2x00_driver_template; | ||
72 | extern struct scsi_host_template qla24xx_driver_template; | 73 | extern struct scsi_host_template qla24xx_driver_template; |
73 | extern struct scsi_transport_template *qla2xxx_transport_vport_template; | 74 | extern struct scsi_transport_template *qla2xxx_transport_vport_template; |
74 | extern uint8_t qla2x00_mem_alloc(scsi_qla_host_t *); | ||
75 | extern void qla2x00_timer(scsi_qla_host_t *); | 75 | extern void qla2x00_timer(scsi_qla_host_t *); |
76 | extern void qla2x00_start_timer(scsi_qla_host_t *, void *, unsigned long); | 76 | extern void qla2x00_start_timer(scsi_qla_host_t *, void *, unsigned long); |
77 | extern void qla2x00_stop_timer(scsi_qla_host_t *); | ||
78 | extern uint32_t qla24xx_allocate_vp_id(scsi_qla_host_t *); | ||
79 | extern void qla24xx_deallocate_vp_id(scsi_qla_host_t *); | 77 | extern void qla24xx_deallocate_vp_id(scsi_qla_host_t *); |
80 | extern int qla24xx_disable_vp (scsi_qla_host_t *); | 78 | extern int qla24xx_disable_vp (scsi_qla_host_t *); |
81 | extern int qla24xx_enable_vp (scsi_qla_host_t *); | 79 | extern int qla24xx_enable_vp (scsi_qla_host_t *); |
82 | extern void qla2x00_mem_free(scsi_qla_host_t *); | ||
83 | extern int qla24xx_control_vp(scsi_qla_host_t *, int ); | 80 | extern int qla24xx_control_vp(scsi_qla_host_t *, int ); |
84 | extern int qla24xx_modify_vp_config(scsi_qla_host_t *); | 81 | extern int qla24xx_modify_vp_config(scsi_qla_host_t *); |
85 | extern int qla2x00_send_change_request(scsi_qla_host_t *, uint16_t, uint16_t); | 82 | extern int qla2x00_send_change_request(scsi_qla_host_t *, uint16_t, uint16_t); |
86 | extern void qla2x00_vp_stop_timer(scsi_qla_host_t *); | 83 | extern void qla2x00_vp_stop_timer(scsi_qla_host_t *); |
87 | extern int qla24xx_configure_vhba (scsi_qla_host_t *); | 84 | extern int qla24xx_configure_vhba (scsi_qla_host_t *); |
88 | extern int qla24xx_get_vp_entry(scsi_qla_host_t *, uint16_t, int); | ||
89 | extern int qla24xx_get_vp_database(scsi_qla_host_t *, uint16_t); | ||
90 | extern int qla2x00_do_dpc_vp(scsi_qla_host_t *); | ||
91 | extern void qla24xx_report_id_acquisition(scsi_qla_host_t *, | 85 | extern void qla24xx_report_id_acquisition(scsi_qla_host_t *, |
92 | struct vp_rpt_id_entry_24xx *); | 86 | struct vp_rpt_id_entry_24xx *); |
93 | extern scsi_qla_host_t * qla24xx_find_vhost_by_name(scsi_qla_host_t *, | ||
94 | uint8_t *); | ||
95 | extern void qla2x00_do_dpc_all_vps(scsi_qla_host_t *); | 87 | extern void qla2x00_do_dpc_all_vps(scsi_qla_host_t *); |
96 | extern int qla24xx_vport_create_req_sanity_check(struct fc_vport *); | 88 | extern int qla24xx_vport_create_req_sanity_check(struct fc_vport *); |
97 | extern scsi_qla_host_t * qla24xx_create_vhost(struct fc_vport *); | 89 | extern scsi_qla_host_t * qla24xx_create_vhost(struct fc_vport *); |
@@ -103,8 +95,6 @@ extern char *qla2x00_get_fw_version_str(struct scsi_qla_host *, char *); | |||
103 | extern void qla2x00_mark_device_lost(scsi_qla_host_t *, fc_port_t *, int, int); | 95 | extern void qla2x00_mark_device_lost(scsi_qla_host_t *, fc_port_t *, int, int); |
104 | extern void qla2x00_mark_all_devices_lost(scsi_qla_host_t *, int); | 96 | extern void qla2x00_mark_all_devices_lost(scsi_qla_host_t *, int); |
105 | 97 | ||
106 | extern int qla2x00_down_timeout(struct semaphore *, unsigned long); | ||
107 | |||
108 | extern struct fw_blob *qla2x00_request_firmware(scsi_qla_host_t *); | 98 | extern struct fw_blob *qla2x00_request_firmware(scsi_qla_host_t *); |
109 | 99 | ||
110 | extern int qla2x00_wait_for_hba_online(scsi_qla_host_t *); | 100 | extern int qla2x00_wait_for_hba_online(scsi_qla_host_t *); |
@@ -113,7 +103,6 @@ extern void qla2xxx_wake_dpc(scsi_qla_host_t *); | |||
113 | extern void qla2x00_alert_all_vps(scsi_qla_host_t *, uint16_t *); | 103 | extern void qla2x00_alert_all_vps(scsi_qla_host_t *, uint16_t *); |
114 | extern void qla2x00_async_event(scsi_qla_host_t *, uint16_t *); | 104 | extern void qla2x00_async_event(scsi_qla_host_t *, uint16_t *); |
115 | extern void qla2x00_vp_abort_isp(scsi_qla_host_t *); | 105 | extern void qla2x00_vp_abort_isp(scsi_qla_host_t *); |
116 | extern int qla24xx_vport_delete(struct fc_vport *); | ||
117 | 106 | ||
118 | /* | 107 | /* |
119 | * Global Function Prototypes in qla_iocb.c source file. | 108 | * Global Function Prototypes in qla_iocb.c source file. |
@@ -222,21 +211,16 @@ extern int | |||
222 | qla2x00_get_fcal_position_map(scsi_qla_host_t *ha, char *pos_map); | 211 | qla2x00_get_fcal_position_map(scsi_qla_host_t *ha, char *pos_map); |
223 | 212 | ||
224 | extern int | 213 | extern int |
225 | qla2x00_get_link_status(scsi_qla_host_t *, uint16_t, link_stat_t *, | 214 | qla2x00_get_link_status(scsi_qla_host_t *, uint16_t, struct link_statistics *, |
226 | uint16_t *); | 215 | dma_addr_t); |
227 | 216 | ||
228 | extern int | 217 | extern int |
229 | qla24xx_get_isp_stats(scsi_qla_host_t *, uint32_t *, uint32_t, uint16_t *); | 218 | qla24xx_get_isp_stats(scsi_qla_host_t *, struct link_statistics *, |
219 | dma_addr_t); | ||
230 | 220 | ||
231 | extern int qla24xx_abort_command(scsi_qla_host_t *, srb_t *); | 221 | extern int qla24xx_abort_command(scsi_qla_host_t *, srb_t *); |
232 | extern int qla24xx_abort_target(fc_port_t *); | 222 | extern int qla24xx_abort_target(fc_port_t *); |
233 | 223 | ||
234 | extern int qla2x00_system_error(scsi_qla_host_t *); | ||
235 | |||
236 | extern int | ||
237 | qla2x00_get_serdes_params(scsi_qla_host_t *, uint16_t *, uint16_t *, | ||
238 | uint16_t *); | ||
239 | |||
240 | extern int | 224 | extern int |
241 | qla2x00_set_serdes_params(scsi_qla_host_t *, uint16_t, uint16_t, uint16_t); | 225 | qla2x00_set_serdes_params(scsi_qla_host_t *, uint16_t, uint16_t, uint16_t); |
242 | 226 | ||
@@ -244,13 +228,19 @@ extern int | |||
244 | qla2x00_stop_firmware(scsi_qla_host_t *); | 228 | qla2x00_stop_firmware(scsi_qla_host_t *); |
245 | 229 | ||
246 | extern int | 230 | extern int |
247 | qla2x00_trace_control(scsi_qla_host_t *, uint16_t, dma_addr_t, uint16_t); | 231 | qla2x00_enable_eft_trace(scsi_qla_host_t *, dma_addr_t, uint16_t); |
232 | extern int | ||
233 | qla2x00_disable_eft_trace(scsi_qla_host_t *); | ||
248 | 234 | ||
249 | extern int | 235 | extern int |
250 | qla2x00_read_sfp(scsi_qla_host_t *, dma_addr_t, uint16_t, uint16_t, uint16_t); | 236 | qla2x00_enable_fce_trace(scsi_qla_host_t *, dma_addr_t, uint16_t , uint16_t *, |
237 | uint32_t *); | ||
251 | 238 | ||
252 | extern int | 239 | extern int |
253 | qla2x00_get_idma_speed(scsi_qla_host_t *, uint16_t, uint16_t *, uint16_t *); | 240 | qla2x00_disable_fce_trace(scsi_qla_host_t *, uint64_t *, uint64_t *); |
241 | |||
242 | extern int | ||
243 | qla2x00_read_sfp(scsi_qla_host_t *, dma_addr_t, uint16_t, uint16_t, uint16_t); | ||
254 | 244 | ||
255 | extern int | 245 | extern int |
256 | qla2x00_set_idma_speed(scsi_qla_host_t *, uint16_t, uint16_t, uint16_t *); | 246 | qla2x00_set_idma_speed(scsi_qla_host_t *, uint16_t, uint16_t, uint16_t *); |
@@ -270,11 +260,7 @@ extern void qla2x00_free_irqs(scsi_qla_host_t *); | |||
270 | /* | 260 | /* |
271 | * Global Function Prototypes in qla_sup.c source file. | 261 | * Global Function Prototypes in qla_sup.c source file. |
272 | */ | 262 | */ |
273 | extern void qla2x00_lock_nvram_access(scsi_qla_host_t *); | ||
274 | extern void qla2x00_unlock_nvram_access(scsi_qla_host_t *); | ||
275 | extern void qla2x00_release_nvram_protection(scsi_qla_host_t *); | 263 | extern void qla2x00_release_nvram_protection(scsi_qla_host_t *); |
276 | extern uint16_t qla2x00_get_nvram_word(scsi_qla_host_t *, uint32_t); | ||
277 | extern void qla2x00_write_nvram_word(scsi_qla_host_t *, uint32_t, uint16_t); | ||
278 | extern uint32_t *qla24xx_read_flash_data(scsi_qla_host_t *, uint32_t *, | 264 | extern uint32_t *qla24xx_read_flash_data(scsi_qla_host_t *, uint32_t *, |
279 | uint32_t, uint32_t); | 265 | uint32_t, uint32_t); |
280 | extern uint8_t *qla2x00_read_nvram_data(scsi_qla_host_t *, uint8_t *, uint32_t, | 266 | extern uint8_t *qla2x00_read_nvram_data(scsi_qla_host_t *, uint8_t *, uint32_t, |
@@ -321,7 +307,6 @@ extern void qla25xx_fw_dump(scsi_qla_host_t *, int); | |||
321 | extern void qla2x00_dump_regs(scsi_qla_host_t *); | 307 | extern void qla2x00_dump_regs(scsi_qla_host_t *); |
322 | extern void qla2x00_dump_buffer(uint8_t *, uint32_t); | 308 | extern void qla2x00_dump_buffer(uint8_t *, uint32_t); |
323 | extern void qla2x00_print_scsi_cmd(struct scsi_cmnd *); | 309 | extern void qla2x00_print_scsi_cmd(struct scsi_cmnd *); |
324 | extern void qla2x00_dump_pkt(void *); | ||
325 | 310 | ||
326 | /* | 311 | /* |
327 | * Global Function Prototypes in qla_gs.c source file. | 312 | * Global Function Prototypes in qla_gs.c source file. |
@@ -356,4 +341,10 @@ extern void qla2x00_free_sysfs_attr(scsi_qla_host_t *); | |||
356 | extern void qla2x00_init_host_attr(scsi_qla_host_t *); | 341 | extern void qla2x00_init_host_attr(scsi_qla_host_t *); |
357 | extern void qla2x00_alloc_sysfs_attr(scsi_qla_host_t *); | 342 | extern void qla2x00_alloc_sysfs_attr(scsi_qla_host_t *); |
358 | extern void qla2x00_free_sysfs_attr(scsi_qla_host_t *); | 343 | extern void qla2x00_free_sysfs_attr(scsi_qla_host_t *); |
344 | |||
345 | /* | ||
346 | * Global Function Prototypes in qla_dfs.c source file. | ||
347 | */ | ||
348 | extern int qla2x00_dfs_setup(scsi_qla_host_t *); | ||
349 | extern int qla2x00_dfs_remove(scsi_qla_host_t *); | ||
359 | #endif /* _QLA_GBL_H */ | 350 | #endif /* _QLA_GBL_H */ |