aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qla2xxx/qla_gbl.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_gbl.h')
-rw-r--r--drivers/scsi/qla2xxx/qla_gbl.h33
1 files changed, 24 insertions, 9 deletions
diff --git a/drivers/scsi/qla2xxx/qla_gbl.h b/drivers/scsi/qla2xxx/qla_gbl.h
index 193f688ec3d7..a9571c214a9e 100644
--- a/drivers/scsi/qla2xxx/qla_gbl.h
+++ b/drivers/scsi/qla2xxx/qla_gbl.h
@@ -1,6 +1,6 @@
1/* 1/*
2 * QLogic Fibre Channel HBA Driver 2 * QLogic Fibre Channel HBA Driver
3 * Copyright (c) 2003-2005 QLogic Corporation 3 * Copyright (c) 2003-2008 QLogic Corporation
4 * 4 *
5 * See LICENSE.qla2xxx for copyright and licensing details. 5 * See LICENSE.qla2xxx for copyright and licensing details.
6 */ 6 */
@@ -38,9 +38,6 @@ extern int qla2x00_loop_resync(scsi_qla_host_t *);
38extern int qla2x00_fabric_login(scsi_qla_host_t *, fc_port_t *, uint16_t *); 38extern int qla2x00_fabric_login(scsi_qla_host_t *, fc_port_t *, uint16_t *);
39extern int qla2x00_local_device_login(scsi_qla_host_t *, fc_port_t *); 39extern int qla2x00_local_device_login(scsi_qla_host_t *, fc_port_t *);
40 40
41extern void qla2x00_restart_queues(scsi_qla_host_t *, uint8_t);
42
43extern void qla2x00_rescan_fcports(scsi_qla_host_t *);
44extern void qla2x00_update_fcports(scsi_qla_host_t *); 41extern void qla2x00_update_fcports(scsi_qla_host_t *);
45 42
46extern int qla2x00_abort_isp(scsi_qla_host_t *); 43extern int qla2x00_abort_isp(scsi_qla_host_t *);
@@ -50,6 +47,8 @@ extern void qla2x00_update_fcport(scsi_qla_host_t *, fc_port_t *);
50extern void qla2x00_alloc_fw_dump(scsi_qla_host_t *); 47extern void qla2x00_alloc_fw_dump(scsi_qla_host_t *);
51extern void qla2x00_try_to_stop_firmware(scsi_qla_host_t *); 48extern void qla2x00_try_to_stop_firmware(scsi_qla_host_t *);
52 49
50extern void qla84xx_put_chip(struct scsi_qla_host *);
51
53/* 52/*
54 * Global Data in qla_os.c source file. 53 * Global Data in qla_os.c source file.
55 */ 54 */
@@ -67,6 +66,10 @@ extern int num_hosts;
67 66
68extern int qla2x00_loop_reset(scsi_qla_host_t *); 67extern int qla2x00_loop_reset(scsi_qla_host_t *);
69extern void qla2x00_abort_all_cmds(scsi_qla_host_t *, int); 68extern void qla2x00_abort_all_cmds(scsi_qla_host_t *, int);
69extern int qla2x00_post_aen_work(struct scsi_qla_host *, enum
70 fc_host_event_code, u32);
71extern int qla2x00_post_hwe_work(struct scsi_qla_host *, uint16_t , uint16_t,
72 uint16_t, uint16_t);
70 73
71/* 74/*
72 * Global Functions in qla_mid.c source file. 75 * Global Functions in qla_mid.c source file.
@@ -149,12 +152,17 @@ extern int
149qla2x00_issue_iocb(scsi_qla_host_t *, void *, dma_addr_t, size_t); 152qla2x00_issue_iocb(scsi_qla_host_t *, void *, dma_addr_t, size_t);
150 153
151extern int 154extern int
155qla2x00_issue_iocb_timeout(scsi_qla_host_t *, void *, dma_addr_t, size_t,
156 uint32_t);
157
158extern int
152qla2x00_abort_command(scsi_qla_host_t *, srb_t *); 159qla2x00_abort_command(scsi_qla_host_t *, srb_t *);
153 160
154#if USE_ABORT_TGT
155extern int 161extern int
156qla2x00_abort_target(fc_port_t *); 162qla2x00_abort_target(struct fc_port *, unsigned int);
157#endif 163
164extern int
165qla2x00_lun_reset(struct fc_port *, unsigned int);
158 166
159extern int 167extern int
160qla2x00_get_adapter_id(scsi_qla_host_t *, uint16_t *, uint8_t *, uint8_t *, 168qla2x00_get_adapter_id(scsi_qla_host_t *, uint16_t *, uint8_t *, uint8_t *,
@@ -220,7 +228,8 @@ qla24xx_get_isp_stats(scsi_qla_host_t *, struct link_statistics *,
220 dma_addr_t); 228 dma_addr_t);
221 229
222extern int qla24xx_abort_command(scsi_qla_host_t *, srb_t *); 230extern int qla24xx_abort_command(scsi_qla_host_t *, srb_t *);
223extern int qla24xx_abort_target(fc_port_t *); 231extern int qla24xx_abort_target(struct fc_port *, unsigned int);
232extern int qla24xx_lun_reset(struct fc_port *, unsigned int);
224 233
225extern int 234extern int
226qla2x00_set_serdes_params(scsi_qla_host_t *, uint16_t, uint16_t, uint16_t); 235qla2x00_set_serdes_params(scsi_qla_host_t *, uint16_t, uint16_t, uint16_t);
@@ -246,6 +255,8 @@ qla2x00_read_sfp(scsi_qla_host_t *, dma_addr_t, uint16_t, uint16_t, uint16_t);
246extern int 255extern int
247qla2x00_set_idma_speed(scsi_qla_host_t *, uint16_t, uint16_t, uint16_t *); 256qla2x00_set_idma_speed(scsi_qla_host_t *, uint16_t, uint16_t, uint16_t *);
248 257
258extern int qla84xx_verify_chip(struct scsi_qla_host *, uint16_t *);
259
249/* 260/*
250 * Global Function Prototypes in qla_isr.c source file. 261 * Global Function Prototypes in qla_isr.c source file.
251 */ 262 */
@@ -298,6 +309,11 @@ extern uint8_t *qla25xx_read_optrom_data(struct scsi_qla_host *, uint8_t *,
298extern int qla2x00_get_flash_version(scsi_qla_host_t *, void *); 309extern int qla2x00_get_flash_version(scsi_qla_host_t *, void *);
299extern int qla24xx_get_flash_version(scsi_qla_host_t *, void *); 310extern int qla24xx_get_flash_version(scsi_qla_host_t *, void *);
300 311
312extern int qla2xxx_hw_event_log(scsi_qla_host_t *, uint16_t , uint16_t,
313 uint16_t, uint16_t);
314
315extern void qla2xxx_get_flash_info(scsi_qla_host_t *);
316
301/* 317/*
302 * Global Function Prototypes in qla_dbg.c source file. 318 * Global Function Prototypes in qla_dbg.c source file.
303 */ 319 */
@@ -307,7 +323,6 @@ extern void qla24xx_fw_dump(scsi_qla_host_t *, int);
307extern void qla25xx_fw_dump(scsi_qla_host_t *, int); 323extern void qla25xx_fw_dump(scsi_qla_host_t *, int);
308extern void qla2x00_dump_regs(scsi_qla_host_t *); 324extern void qla2x00_dump_regs(scsi_qla_host_t *);
309extern void qla2x00_dump_buffer(uint8_t *, uint32_t); 325extern void qla2x00_dump_buffer(uint8_t *, uint32_t);
310extern void qla2x00_print_scsi_cmd(struct scsi_cmnd *);
311 326
312/* 327/*
313 * Global Function Prototypes in qla_gs.c source file. 328 * Global Function Prototypes in qla_gs.c source file.