diff options
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_gbl.h')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_gbl.h | 68 |
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 | */ |
34 | extern int qla2x00_initialize_adapter(scsi_qla_host_t *); | 34 | extern int qla2x00_initialize_adapter(scsi_qla_host_t *); |
35 | |||
36 | extern int qla2100_pci_config(struct scsi_qla_host *); | ||
37 | extern int qla2300_pci_config(struct scsi_qla_host *); | ||
38 | extern int qla24xx_pci_config(scsi_qla_host_t *); | ||
39 | extern void qla2x00_reset_chip(struct scsi_qla_host *); | ||
40 | extern void qla24xx_reset_chip(struct scsi_qla_host *); | ||
41 | extern int qla2x00_chip_diag(struct scsi_qla_host *); | ||
42 | extern int qla24xx_chip_diag(struct scsi_qla_host *); | ||
43 | extern void qla2x00_config_rings(struct scsi_qla_host *); | ||
44 | extern void qla24xx_config_rings(struct scsi_qla_host *); | ||
45 | extern void qla2x00_reset_adapter(struct scsi_qla_host *); | ||
46 | extern void qla24xx_reset_adapter(struct scsi_qla_host *); | ||
47 | extern int qla2x00_nvram_config(struct scsi_qla_host *); | ||
48 | extern int qla24xx_nvram_config(struct scsi_qla_host *); | ||
49 | extern void qla2x00_update_fw_options(struct scsi_qla_host *); | ||
50 | extern void qla24xx_update_fw_options(scsi_qla_host_t *); | ||
51 | extern int qla2x00_load_risc(struct scsi_qla_host *, uint32_t *); | ||
52 | extern int qla24xx_load_risc_flash(scsi_qla_host_t *, uint32_t *); | ||
53 | extern int qla24xx_load_risc_hotplug(scsi_qla_host_t *, uint32_t *); | ||
54 | |||
35 | extern fc_port_t *qla2x00_alloc_fcport(scsi_qla_host_t *, int); | 55 | extern fc_port_t *qla2x00_alloc_fcport(scsi_qla_host_t *, int); |
36 | 56 | ||
37 | extern int qla2x00_loop_resync(scsi_qla_host_t *); | 57 | extern int qla2x00_loop_resync(scsi_qla_host_t *); |
@@ -83,6 +103,7 @@ extern uint16_t qla2x00_calc_iocbs_64(uint16_t); | |||
83 | extern void qla2x00_build_scsi_iocbs_32(srb_t *, cmd_entry_t *, uint16_t); | 103 | extern void qla2x00_build_scsi_iocbs_32(srb_t *, cmd_entry_t *, uint16_t); |
84 | extern void qla2x00_build_scsi_iocbs_64(srb_t *, cmd_entry_t *, uint16_t); | 104 | extern void qla2x00_build_scsi_iocbs_64(srb_t *, cmd_entry_t *, uint16_t); |
85 | extern int qla2x00_start_scsi(srb_t *sp); | 105 | extern int qla2x00_start_scsi(srb_t *sp); |
106 | extern int qla24xx_start_scsi(srb_t *sp); | ||
86 | int qla2x00_marker(scsi_qla_host_t *, uint16_t, uint16_t, uint8_t); | 107 | int qla2x00_marker(scsi_qla_host_t *, uint16_t, uint16_t, uint8_t); |
87 | int __qla2x00_marker(scsi_qla_host_t *, uint16_t, uint16_t, uint8_t); | 108 | int __qla2x00_marker(scsi_qla_host_t *, uint16_t, uint16_t, uint8_t); |
88 | 109 | ||
@@ -93,10 +114,10 @@ extern int | |||
93 | qla2x00_load_ram(scsi_qla_host_t *, dma_addr_t, uint16_t, uint16_t); | 114 | qla2x00_load_ram(scsi_qla_host_t *, dma_addr_t, uint16_t, uint16_t); |
94 | 115 | ||
95 | extern int | 116 | extern int |
96 | qla2x00_load_ram_ext(scsi_qla_host_t *, dma_addr_t, uint32_t, uint16_t); | 117 | qla2x00_load_ram_ext(scsi_qla_host_t *, dma_addr_t, uint32_t, uint32_t); |
97 | 118 | ||
98 | extern int | 119 | extern int |
99 | qla2x00_execute_fw(scsi_qla_host_t *); | 120 | qla2x00_execute_fw(scsi_qla_host_t *, uint32_t); |
100 | 121 | ||
101 | extern void | 122 | extern void |
102 | qla2x00_get_fw_version(scsi_qla_host_t *, uint16_t *, | 123 | qla2x00_get_fw_version(scsi_qla_host_t *, uint16_t *, |
@@ -112,7 +133,7 @@ extern int | |||
112 | qla2x00_mbx_reg_test(scsi_qla_host_t *); | 133 | qla2x00_mbx_reg_test(scsi_qla_host_t *); |
113 | 134 | ||
114 | extern int | 135 | extern int |
115 | qla2x00_verify_checksum(scsi_qla_host_t *); | 136 | qla2x00_verify_checksum(scsi_qla_host_t *, uint32_t); |
116 | 137 | ||
117 | extern int | 138 | extern int |
118 | qla2x00_issue_iocb(scsi_qla_host_t *, void *, dma_addr_t, size_t); | 139 | qla2x00_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 |
124 | extern int | 145 | extern int |
125 | qla2x00_abort_target(fc_port_t *fcport); | 146 | qla2x00_abort_target(fc_port_t *); |
126 | #endif | 147 | #endif |
127 | 148 | ||
128 | extern int | 149 | extern int |
@@ -156,12 +177,18 @@ qla2x00_send_sns(scsi_qla_host_t *, dma_addr_t, uint16_t, size_t); | |||
156 | extern int | 177 | extern int |
157 | qla2x00_login_fabric(scsi_qla_host_t *, uint16_t, uint8_t, uint8_t, uint8_t, | 178 | qla2x00_login_fabric(scsi_qla_host_t *, uint16_t, uint8_t, uint8_t, uint8_t, |
158 | uint16_t *, uint8_t); | 179 | uint16_t *, uint8_t); |
180 | extern int | ||
181 | qla24xx_login_fabric(scsi_qla_host_t *, uint16_t, uint8_t, uint8_t, uint8_t, | ||
182 | uint16_t *, uint8_t); | ||
159 | 183 | ||
160 | extern int | 184 | extern int |
161 | qla2x00_login_local_device(scsi_qla_host_t *, uint16_t, uint16_t *, uint8_t); | 185 | qla2x00_login_local_device(scsi_qla_host_t *, uint16_t, uint16_t *, uint8_t); |
162 | 186 | ||
163 | extern int | 187 | extern int |
164 | qla2x00_fabric_logout(scsi_qla_host_t *ha, uint16_t loop_id); | 188 | qla2x00_fabric_logout(scsi_qla_host_t *, uint16_t, uint8_t, uint8_t, uint8_t); |
189 | |||
190 | extern int | ||
191 | qla24xx_fabric_logout(scsi_qla_host_t *, uint16_t, uint8_t, uint8_t, uint8_t); | ||
165 | 192 | ||
166 | extern int | 193 | extern int |
167 | qla2x00_full_login_lip(scsi_qla_host_t *ha); | 194 | qla2x00_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 *, | |||
176 | extern int | 203 | extern int |
177 | qla2x00_get_fcal_position_map(scsi_qla_host_t *ha, char *pos_map); | 204 | qla2x00_get_fcal_position_map(scsi_qla_host_t *ha, char *pos_map); |
178 | 205 | ||
206 | extern int qla24xx_abort_command(scsi_qla_host_t *, srb_t *); | ||
207 | extern int qla24xx_abort_target(fc_port_t *); | ||
208 | |||
209 | extern int qla2x00_system_error(scsi_qla_host_t *); | ||
210 | |||
211 | extern int | ||
212 | qla2x00_get_serdes_params(scsi_qla_host_t *, uint16_t *, uint16_t *, | ||
213 | uint16_t *); | ||
214 | |||
215 | extern int | ||
216 | qla2x00_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 | */ |
182 | extern irqreturn_t qla2100_intr_handler(int, void *, struct pt_regs *); | 221 | extern irqreturn_t qla2100_intr_handler(int, void *, struct pt_regs *); |
183 | extern irqreturn_t qla2300_intr_handler(int, void *, struct pt_regs *); | 222 | extern irqreturn_t qla2300_intr_handler(int, void *, struct pt_regs *); |
223 | extern irqreturn_t qla24xx_intr_handler(int, void *, struct pt_regs *); | ||
184 | extern void qla2x00_process_response_queue(struct scsi_qla_host *); | 224 | extern 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 *); | |||
191 | extern void qla2x00_release_nvram_protection(scsi_qla_host_t *); | 231 | extern void qla2x00_release_nvram_protection(scsi_qla_host_t *); |
192 | extern uint16_t qla2x00_get_nvram_word(scsi_qla_host_t *, uint32_t); | 232 | extern uint16_t qla2x00_get_nvram_word(scsi_qla_host_t *, uint32_t); |
193 | extern void qla2x00_write_nvram_word(scsi_qla_host_t *, uint32_t, uint16_t); | 233 | extern void qla2x00_write_nvram_word(scsi_qla_host_t *, uint32_t, uint16_t); |
234 | extern uint32_t *qla24xx_read_flash_data(scsi_qla_host_t *, uint32_t *, | ||
235 | uint32_t, uint32_t); | ||
236 | extern uint8_t *qla2x00_read_nvram_data(scsi_qla_host_t *, uint8_t *, uint32_t, | ||
237 | uint32_t); | ||
238 | extern uint8_t *qla24xx_read_nvram_data(scsi_qla_host_t *, uint8_t *, uint32_t, | ||
239 | uint32_t); | ||
240 | extern int qla2x00_write_nvram_data(scsi_qla_host_t *, uint8_t *, uint32_t, | ||
241 | uint32_t); | ||
242 | extern 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 | */ |
197 | extern void qla2100_fw_dump(scsi_qla_host_t *, int); | 248 | extern void qla2100_fw_dump(scsi_qla_host_t *, int); |
198 | extern void qla2300_fw_dump(scsi_qla_host_t *, int); | 249 | extern void qla2300_fw_dump(scsi_qla_host_t *, int); |
250 | extern void qla24xx_fw_dump(scsi_qla_host_t *, int); | ||
199 | extern void qla2100_ascii_fw_dump(scsi_qla_host_t *); | 251 | extern void qla2100_ascii_fw_dump(scsi_qla_host_t *); |
200 | extern void qla2300_ascii_fw_dump(scsi_qla_host_t *); | 252 | extern void qla2300_ascii_fw_dump(scsi_qla_host_t *); |
253 | extern void qla24xx_ascii_fw_dump(scsi_qla_host_t *); | ||
201 | extern void qla2x00_dump_regs(scsi_qla_host_t *); | 254 | extern void qla2x00_dump_regs(scsi_qla_host_t *); |
202 | extern void qla2x00_dump_buffer(uint8_t *, uint32_t); | 255 | extern void qla2x00_dump_buffer(uint8_t *, uint32_t); |
203 | extern void qla2x00_print_scsi_cmd(struct scsi_cmnd *); | 256 | extern void qla2x00_print_scsi_cmd(struct scsi_cmnd *); |
257 | extern 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 | */ |
262 | extern void *qla2x00_prep_ms_iocb(scsi_qla_host_t *, uint32_t, uint32_t); | ||
263 | extern void *qla24xx_prep_ms_iocb(scsi_qla_host_t *, uint32_t, uint32_t); | ||
208 | extern int qla2x00_ga_nxt(scsi_qla_host_t *, fc_port_t *); | 264 | extern int qla2x00_ga_nxt(scsi_qla_host_t *, fc_port_t *); |
209 | extern int qla2x00_gid_pt(scsi_qla_host_t *, sw_info_t *); | 265 | extern int qla2x00_gid_pt(scsi_qla_host_t *, sw_info_t *); |
210 | extern int qla2x00_gpn_id(scsi_qla_host_t *, sw_info_t *); | 266 | extern int qla2x00_gpn_id(scsi_qla_host_t *, sw_info_t *); |