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.h68
1 files changed, 62 insertions, 6 deletions
diff --git a/drivers/scsi/qla2xxx/qla_gbl.h b/drivers/scsi/qla2xxx/qla_gbl.h
index 164866b199e6..665c203e0675 100644
--- a/drivers/scsi/qla2xxx/qla_gbl.h
+++ b/drivers/scsi/qla2xxx/qla_gbl.h
@@ -2,7 +2,7 @@
2* QLOGIC LINUX SOFTWARE 2* QLOGIC LINUX SOFTWARE
3* 3*
4* QLogic ISP2x00 device driver for Linux 2.6.x 4* QLogic ISP2x00 device driver for Linux 2.6.x
5* Copyright (C) 2003-2004 QLogic Corporation 5* Copyright (C) 2003-2005 QLogic Corporation
6* (www.qlogic.com) 6* (www.qlogic.com)
7* 7*
8* This program is free software; you can redistribute it and/or modify it 8* This program is free software; you can redistribute it and/or modify it
@@ -32,6 +32,26 @@ extern int qla2x00_probe_one(struct pci_dev *, struct qla_board_info *);
32 * Global Function Prototypes in qla_init.c source file. 32 * Global Function Prototypes in qla_init.c source file.
33 */ 33 */
34extern int qla2x00_initialize_adapter(scsi_qla_host_t *); 34extern int qla2x00_initialize_adapter(scsi_qla_host_t *);
35
36extern int qla2100_pci_config(struct scsi_qla_host *);
37extern int qla2300_pci_config(struct scsi_qla_host *);
38extern int qla24xx_pci_config(scsi_qla_host_t *);
39extern void qla2x00_reset_chip(struct scsi_qla_host *);
40extern void qla24xx_reset_chip(struct scsi_qla_host *);
41extern int qla2x00_chip_diag(struct scsi_qla_host *);
42extern int qla24xx_chip_diag(struct scsi_qla_host *);
43extern void qla2x00_config_rings(struct scsi_qla_host *);
44extern void qla24xx_config_rings(struct scsi_qla_host *);
45extern void qla2x00_reset_adapter(struct scsi_qla_host *);
46extern void qla24xx_reset_adapter(struct scsi_qla_host *);
47extern int qla2x00_nvram_config(struct scsi_qla_host *);
48extern int qla24xx_nvram_config(struct scsi_qla_host *);
49extern void qla2x00_update_fw_options(struct scsi_qla_host *);
50extern void qla24xx_update_fw_options(scsi_qla_host_t *);
51extern int qla2x00_load_risc(struct scsi_qla_host *, uint32_t *);
52extern int qla24xx_load_risc_flash(scsi_qla_host_t *, uint32_t *);
53extern int qla24xx_load_risc_hotplug(scsi_qla_host_t *, uint32_t *);
54
35extern fc_port_t *qla2x00_alloc_fcport(scsi_qla_host_t *, int); 55extern fc_port_t *qla2x00_alloc_fcport(scsi_qla_host_t *, int);
36 56
37extern int qla2x00_loop_resync(scsi_qla_host_t *); 57extern int qla2x00_loop_resync(scsi_qla_host_t *);
@@ -83,6 +103,7 @@ extern uint16_t qla2x00_calc_iocbs_64(uint16_t);
83extern void qla2x00_build_scsi_iocbs_32(srb_t *, cmd_entry_t *, uint16_t); 103extern void qla2x00_build_scsi_iocbs_32(srb_t *, cmd_entry_t *, uint16_t);
84extern void qla2x00_build_scsi_iocbs_64(srb_t *, cmd_entry_t *, uint16_t); 104extern void qla2x00_build_scsi_iocbs_64(srb_t *, cmd_entry_t *, uint16_t);
85extern int qla2x00_start_scsi(srb_t *sp); 105extern int qla2x00_start_scsi(srb_t *sp);
106extern int qla24xx_start_scsi(srb_t *sp);
86int qla2x00_marker(scsi_qla_host_t *, uint16_t, uint16_t, uint8_t); 107int qla2x00_marker(scsi_qla_host_t *, uint16_t, uint16_t, uint8_t);
87int __qla2x00_marker(scsi_qla_host_t *, uint16_t, uint16_t, uint8_t); 108int __qla2x00_marker(scsi_qla_host_t *, uint16_t, uint16_t, uint8_t);
88 109
@@ -93,10 +114,10 @@ extern int
93qla2x00_load_ram(scsi_qla_host_t *, dma_addr_t, uint16_t, uint16_t); 114qla2x00_load_ram(scsi_qla_host_t *, dma_addr_t, uint16_t, uint16_t);
94 115
95extern int 116extern int
96qla2x00_load_ram_ext(scsi_qla_host_t *, dma_addr_t, uint32_t, uint16_t); 117qla2x00_load_ram_ext(scsi_qla_host_t *, dma_addr_t, uint32_t, uint32_t);
97 118
98extern int 119extern int
99qla2x00_execute_fw(scsi_qla_host_t *); 120qla2x00_execute_fw(scsi_qla_host_t *, uint32_t);
100 121
101extern void 122extern void
102qla2x00_get_fw_version(scsi_qla_host_t *, uint16_t *, 123qla2x00_get_fw_version(scsi_qla_host_t *, uint16_t *,
@@ -112,7 +133,7 @@ extern int
112qla2x00_mbx_reg_test(scsi_qla_host_t *); 133qla2x00_mbx_reg_test(scsi_qla_host_t *);
113 134
114extern int 135extern int
115qla2x00_verify_checksum(scsi_qla_host_t *); 136qla2x00_verify_checksum(scsi_qla_host_t *, uint32_t);
116 137
117extern int 138extern int
118qla2x00_issue_iocb(scsi_qla_host_t *, void *, dma_addr_t, size_t); 139qla2x00_issue_iocb(scsi_qla_host_t *, void *, dma_addr_t, size_t);
@@ -122,7 +143,7 @@ qla2x00_abort_command(scsi_qla_host_t *, srb_t *);
122 143
123#if USE_ABORT_TGT 144#if USE_ABORT_TGT
124extern int 145extern int
125qla2x00_abort_target(fc_port_t *fcport); 146qla2x00_abort_target(fc_port_t *);
126#endif 147#endif
127 148
128extern int 149extern int
@@ -156,12 +177,18 @@ qla2x00_send_sns(scsi_qla_host_t *, dma_addr_t, uint16_t, size_t);
156extern int 177extern int
157qla2x00_login_fabric(scsi_qla_host_t *, uint16_t, uint8_t, uint8_t, uint8_t, 178qla2x00_login_fabric(scsi_qla_host_t *, uint16_t, uint8_t, uint8_t, uint8_t,
158 uint16_t *, uint8_t); 179 uint16_t *, uint8_t);
180extern int
181qla24xx_login_fabric(scsi_qla_host_t *, uint16_t, uint8_t, uint8_t, uint8_t,
182 uint16_t *, uint8_t);
159 183
160extern int 184extern int
161qla2x00_login_local_device(scsi_qla_host_t *, uint16_t, uint16_t *, uint8_t); 185qla2x00_login_local_device(scsi_qla_host_t *, uint16_t, uint16_t *, uint8_t);
162 186
163extern int 187extern int
164qla2x00_fabric_logout(scsi_qla_host_t *ha, uint16_t loop_id); 188qla2x00_fabric_logout(scsi_qla_host_t *, uint16_t, uint8_t, uint8_t, uint8_t);
189
190extern int
191qla24xx_fabric_logout(scsi_qla_host_t *, uint16_t, uint8_t, uint8_t, uint8_t);
165 192
166extern int 193extern int
167qla2x00_full_login_lip(scsi_qla_host_t *ha); 194qla2x00_full_login_lip(scsi_qla_host_t *ha);
@@ -176,11 +203,24 @@ qla2x00_get_resource_cnts(scsi_qla_host_t *, uint16_t *, uint16_t *, uint16_t *,
176extern int 203extern int
177qla2x00_get_fcal_position_map(scsi_qla_host_t *ha, char *pos_map); 204qla2x00_get_fcal_position_map(scsi_qla_host_t *ha, char *pos_map);
178 205
206extern int qla24xx_abort_command(scsi_qla_host_t *, srb_t *);
207extern int qla24xx_abort_target(fc_port_t *);
208
209extern int qla2x00_system_error(scsi_qla_host_t *);
210
211extern int
212qla2x00_get_serdes_params(scsi_qla_host_t *, uint16_t *, uint16_t *,
213 uint16_t *);
214
215extern int
216qla2x00_set_serdes_params(scsi_qla_host_t *, uint16_t, uint16_t, uint16_t);
217
179/* 218/*
180 * Global Function Prototypes in qla_isr.c source file. 219 * Global Function Prototypes in qla_isr.c source file.
181 */ 220 */
182extern irqreturn_t qla2100_intr_handler(int, void *, struct pt_regs *); 221extern irqreturn_t qla2100_intr_handler(int, void *, struct pt_regs *);
183extern irqreturn_t qla2300_intr_handler(int, void *, struct pt_regs *); 222extern irqreturn_t qla2300_intr_handler(int, void *, struct pt_regs *);
223extern irqreturn_t qla24xx_intr_handler(int, void *, struct pt_regs *);
184extern void qla2x00_process_response_queue(struct scsi_qla_host *); 224extern void qla2x00_process_response_queue(struct scsi_qla_host *);
185 225
186/* 226/*
@@ -191,20 +231,36 @@ extern void qla2x00_unlock_nvram_access(scsi_qla_host_t *);
191extern void qla2x00_release_nvram_protection(scsi_qla_host_t *); 231extern void qla2x00_release_nvram_protection(scsi_qla_host_t *);
192extern uint16_t qla2x00_get_nvram_word(scsi_qla_host_t *, uint32_t); 232extern uint16_t qla2x00_get_nvram_word(scsi_qla_host_t *, uint32_t);
193extern void qla2x00_write_nvram_word(scsi_qla_host_t *, uint32_t, uint16_t); 233extern void qla2x00_write_nvram_word(scsi_qla_host_t *, uint32_t, uint16_t);
234extern uint32_t *qla24xx_read_flash_data(scsi_qla_host_t *, uint32_t *,
235 uint32_t, uint32_t);
236extern uint8_t *qla2x00_read_nvram_data(scsi_qla_host_t *, uint8_t *, uint32_t,
237 uint32_t);
238extern uint8_t *qla24xx_read_nvram_data(scsi_qla_host_t *, uint8_t *, uint32_t,
239 uint32_t);
240extern int qla2x00_write_nvram_data(scsi_qla_host_t *, uint8_t *, uint32_t,
241 uint32_t);
242extern int qla24xx_write_nvram_data(scsi_qla_host_t *, uint8_t *, uint32_t,
243 uint32_t);
244
194/* 245/*
195 * Global Function Prototypes in qla_dbg.c source file. 246 * Global Function Prototypes in qla_dbg.c source file.
196 */ 247 */
197extern void qla2100_fw_dump(scsi_qla_host_t *, int); 248extern void qla2100_fw_dump(scsi_qla_host_t *, int);
198extern void qla2300_fw_dump(scsi_qla_host_t *, int); 249extern void qla2300_fw_dump(scsi_qla_host_t *, int);
250extern void qla24xx_fw_dump(scsi_qla_host_t *, int);
199extern void qla2100_ascii_fw_dump(scsi_qla_host_t *); 251extern void qla2100_ascii_fw_dump(scsi_qla_host_t *);
200extern void qla2300_ascii_fw_dump(scsi_qla_host_t *); 252extern void qla2300_ascii_fw_dump(scsi_qla_host_t *);
253extern void qla24xx_ascii_fw_dump(scsi_qla_host_t *);
201extern void qla2x00_dump_regs(scsi_qla_host_t *); 254extern void qla2x00_dump_regs(scsi_qla_host_t *);
202extern void qla2x00_dump_buffer(uint8_t *, uint32_t); 255extern void qla2x00_dump_buffer(uint8_t *, uint32_t);
203extern void qla2x00_print_scsi_cmd(struct scsi_cmnd *); 256extern void qla2x00_print_scsi_cmd(struct scsi_cmnd *);
257extern void qla2x00_dump_pkt(void *);
204 258
205/* 259/*
206 * Global Function Prototypes in qla_gs.c source file. 260 * Global Function Prototypes in qla_gs.c source file.
207 */ 261 */
262extern void *qla2x00_prep_ms_iocb(scsi_qla_host_t *, uint32_t, uint32_t);
263extern void *qla24xx_prep_ms_iocb(scsi_qla_host_t *, uint32_t, uint32_t);
208extern int qla2x00_ga_nxt(scsi_qla_host_t *, fc_port_t *); 264extern int qla2x00_ga_nxt(scsi_qla_host_t *, fc_port_t *);
209extern int qla2x00_gid_pt(scsi_qla_host_t *, sw_info_t *); 265extern int qla2x00_gid_pt(scsi_qla_host_t *, sw_info_t *);
210extern int qla2x00_gpn_id(scsi_qla_host_t *, sw_info_t *); 266extern int qla2x00_gpn_id(scsi_qla_host_t *, sw_info_t *);