blob: aa1e41152283dee8992c3df86391c187b9c087e8 [file] [log] [blame]
Andrew Vasquezfa90c542005-10-27 11:10:08 -07001/*
2 * QLogic Fibre Channel HBA Driver
3 * Copyright (c) 2003-2005 QLogic Corporation
4 *
5 * See LICENSE.qla2xxx for copyright and licensing details.
6 */
Linus Torvalds1da177e2005-04-16 15:20:36 -07007#ifndef __QLA_GBL_H
8#define __QLA_GBL_H
9
10#include <linux/interrupt.h>
11
Linus Torvalds1da177e2005-04-16 15:20:36 -070012/*
13 * Global Function Prototypes in qla_init.c source file.
14 */
15extern int qla2x00_initialize_adapter(scsi_qla_host_t *);
Andrew Vasquezabbd8872005-07-06 10:30:05 -070016
17extern int qla2100_pci_config(struct scsi_qla_host *);
18extern int qla2300_pci_config(struct scsi_qla_host *);
Andrew Vasquez0107109e2005-07-06 10:31:37 -070019extern int qla24xx_pci_config(scsi_qla_host_t *);
Andrew Vasquezc3a2f0d2007-07-19 20:37:34 -070020extern int qla25xx_pci_config(scsi_qla_host_t *);
Andrew Vasquezabbd8872005-07-06 10:30:05 -070021extern void qla2x00_reset_chip(struct scsi_qla_host *);
Andrew Vasquez0107109e2005-07-06 10:31:37 -070022extern void qla24xx_reset_chip(struct scsi_qla_host *);
Andrew Vasquezabbd8872005-07-06 10:30:05 -070023extern int qla2x00_chip_diag(struct scsi_qla_host *);
Andrew Vasquez0107109e2005-07-06 10:31:37 -070024extern int qla24xx_chip_diag(struct scsi_qla_host *);
Andrew Vasquezabbd8872005-07-06 10:30:05 -070025extern void qla2x00_config_rings(struct scsi_qla_host *);
Andrew Vasquez0107109e2005-07-06 10:31:37 -070026extern void qla24xx_config_rings(struct scsi_qla_host *);
Andrew Vasquezabbd8872005-07-06 10:30:05 -070027extern void qla2x00_reset_adapter(struct scsi_qla_host *);
Andrew Vasquez0107109e2005-07-06 10:31:37 -070028extern void qla24xx_reset_adapter(struct scsi_qla_host *);
Andrew Vasquezabbd8872005-07-06 10:30:05 -070029extern int qla2x00_nvram_config(struct scsi_qla_host *);
Andrew Vasquez0107109e2005-07-06 10:31:37 -070030extern int qla24xx_nvram_config(struct scsi_qla_host *);
Andrew Vasquezabbd8872005-07-06 10:30:05 -070031extern void qla2x00_update_fw_options(struct scsi_qla_host *);
Andrew Vasquez0107109e2005-07-06 10:31:37 -070032extern void qla24xx_update_fw_options(scsi_qla_host_t *);
Andrew Vasquezabbd8872005-07-06 10:30:05 -070033extern int qla2x00_load_risc(struct scsi_qla_host *, uint32_t *);
Andrew Vasquez54333832005-11-09 15:49:04 -080034extern int qla24xx_load_risc(scsi_qla_host_t *, uint32_t *);
Linus Torvalds1da177e2005-04-16 15:20:36 -070035
36extern int qla2x00_loop_resync(scsi_qla_host_t *);
37
Linus Torvalds1da177e2005-04-16 15:20:36 -070038extern int qla2x00_fabric_login(scsi_qla_host_t *, fc_port_t *, uint16_t *);
andrew.vasquez@qlogic.com9a52a572006-03-09 14:27:44 -080039extern int qla2x00_local_device_login(scsi_qla_host_t *, fc_port_t *);
Linus Torvalds1da177e2005-04-16 15:20:36 -070040
41extern void qla2x00_restart_queues(scsi_qla_host_t *, uint8_t);
42
43extern void qla2x00_rescan_fcports(scsi_qla_host_t *);
andrew.vasquez@qlogic.comd97994d2006-01-20 14:53:13 -080044extern void qla2x00_update_fcports(scsi_qla_host_t *);
Linus Torvalds1da177e2005-04-16 15:20:36 -070045
Linus Torvalds1da177e2005-04-16 15:20:36 -070046extern int qla2x00_abort_isp(scsi_qla_host_t *);
47
andrew.vasquez@qlogic.com052c40c2006-01-20 14:53:19 -080048extern void qla2x00_update_fcport(scsi_qla_host_t *, fc_port_t *);
8482e1182005-04-17 15:04:54 -050049
Andrew Vasqueza7a167b2006-06-23 16:10:29 -070050extern void qla2x00_alloc_fw_dump(scsi_qla_host_t *);
Andrew Vasquez18c6c122006-10-13 09:33:38 -070051extern void qla2x00_try_to_stop_firmware(scsi_qla_host_t *);
Andrew Vasqueza7a167b2006-06-23 16:10:29 -070052
Linus Torvalds1da177e2005-04-16 15:20:36 -070053/*
54 * Global Data in qla_os.c source file.
55 */
56extern char qla2x00_version_str[];
57
Linus Torvalds1da177e2005-04-16 15:20:36 -070058extern int ql2xlogintimeout;
59extern int qlport_down_retry;
Linus Torvalds1da177e2005-04-16 15:20:36 -070060extern int ql2xplogiabsentdevice;
Linus Torvalds1da177e2005-04-16 15:20:36 -070061extern int ql2xloginretrycount;
Andrew Vasquezcca53352005-08-26 19:08:30 -070062extern int ql2xfdmienable;
Andrew Vasqueza7a167b2006-06-23 16:10:29 -070063extern int ql2xallocfwdump;
Andrew Vasquez11010fe2006-10-06 09:54:59 -070064extern int ql2xextended_error_logging;
Andrew Vasquezdf7baa52006-10-13 09:33:39 -070065extern int ql2xqfullrampup;
Seokmann Ju2c3dfe32007-07-05 13:16:51 -070066extern int num_hosts;
67
68/*
69 * Global Functions in qla_mid.c source file.
70 */
71extern struct scsi_host_template qla2x00_driver_template;
72extern struct scsi_host_template qla24xx_driver_template;
73extern struct scsi_transport_template *qla2xxx_transport_vport_template;
74extern uint8_t qla2x00_mem_alloc(scsi_qla_host_t *);
75extern void qla2x00_timer(scsi_qla_host_t *);
76extern void qla2x00_start_timer(scsi_qla_host_t *, void *, unsigned long);
77extern void qla2x00_stop_timer(scsi_qla_host_t *);
78extern uint32_t qla24xx_allocate_vp_id(scsi_qla_host_t *);
79extern void qla24xx_deallocate_vp_id(scsi_qla_host_t *);
80extern int qla24xx_disable_vp (scsi_qla_host_t *);
81extern int qla24xx_enable_vp (scsi_qla_host_t *);
82extern void qla2x00_mem_free(scsi_qla_host_t *);
83extern int qla24xx_control_vp(scsi_qla_host_t *, int );
84extern int qla24xx_modify_vp_config(scsi_qla_host_t *);
85extern int qla2x00_send_change_request(scsi_qla_host_t *, uint16_t, uint16_t);
86extern void qla2x00_vp_stop_timer(scsi_qla_host_t *);
87extern int qla24xx_configure_vhba (scsi_qla_host_t *);
88extern int qla24xx_get_vp_entry(scsi_qla_host_t *, uint16_t, int);
89extern int qla24xx_get_vp_database(scsi_qla_host_t *, uint16_t);
90extern int qla2x00_do_dpc_vp(scsi_qla_host_t *);
91extern void qla24xx_report_id_acquisition(scsi_qla_host_t *,
92 struct vp_rpt_id_entry_24xx *);
93extern scsi_qla_host_t * qla24xx_find_vhost_by_name(scsi_qla_host_t *,
94 uint8_t *);
95extern void qla2x00_do_dpc_all_vps(scsi_qla_host_t *);
96extern int qla24xx_vport_create_req_sanity_check(struct fc_vport *);
97extern scsi_qla_host_t * qla24xx_create_vhost(struct fc_vport *);
Linus Torvalds1da177e2005-04-16 15:20:36 -070098
f4f051e2005-04-17 15:02:26 -050099extern void qla2x00_sp_compl(scsi_qla_host_t *, srb_t *);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700100
101extern char *qla2x00_get_fw_version_str(struct scsi_qla_host *, char *);
102
andrew.vasquez@qlogic.comd97994d2006-01-20 14:53:13 -0800103extern void qla2x00_mark_device_lost(scsi_qla_host_t *, fc_port_t *, int, int);
104extern void qla2x00_mark_all_devices_lost(scsi_qla_host_t *, int);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700105
Linus Torvalds1da177e2005-04-16 15:20:36 -0700106extern int qla2x00_down_timeout(struct semaphore *, unsigned long);
107
Andrew Vasquez54333832005-11-09 15:49:04 -0800108extern struct fw_blob *qla2x00_request_firmware(scsi_qla_host_t *);
109
andrew.vasquez@qlogic.com854165f2006-01-31 16:05:17 -0800110extern int qla2x00_wait_for_hba_online(scsi_qla_host_t *);
111
Christoph Hellwig39a11242006-02-14 18:46:22 +0100112extern void qla2xxx_wake_dpc(scsi_qla_host_t *);
Seokmann Ju2c3dfe32007-07-05 13:16:51 -0700113extern void qla2x00_alert_all_vps(scsi_qla_host_t *, uint16_t *);
114extern void qla2x00_async_event(scsi_qla_host_t *, uint16_t *);
115extern void qla2x00_vp_abort_isp(scsi_qla_host_t *);
116extern int qla24xx_vport_delete(struct fc_vport *);
Christoph Hellwig39a11242006-02-14 18:46:22 +0100117
Linus Torvalds1da177e2005-04-16 15:20:36 -0700118/*
119 * Global Function Prototypes in qla_iocb.c source file.
120 */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700121extern uint16_t qla2x00_calc_iocbs_32(uint16_t);
122extern uint16_t qla2x00_calc_iocbs_64(uint16_t);
123extern void qla2x00_build_scsi_iocbs_32(srb_t *, cmd_entry_t *, uint16_t);
124extern void qla2x00_build_scsi_iocbs_64(srb_t *, cmd_entry_t *, uint16_t);
125extern int qla2x00_start_scsi(srb_t *sp);
Andrew Vasquez2b6c0ce2005-07-06 10:31:17 -0700126extern int qla24xx_start_scsi(srb_t *sp);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700127int qla2x00_marker(scsi_qla_host_t *, uint16_t, uint16_t, uint8_t);
128int __qla2x00_marker(scsi_qla_host_t *, uint16_t, uint16_t, uint8_t);
129
130/*
131 * Global Function Prototypes in qla_mbx.c source file.
132 */
133extern int
andrew.vasquez@qlogic.com590f98e2006-01-13 17:05:37 -0800134qla2x00_load_ram(scsi_qla_host_t *, dma_addr_t, uint32_t, uint32_t);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700135
136extern int
Andrew Vasquez1c7c6352005-07-06 10:30:57 -0700137qla2x00_execute_fw(scsi_qla_host_t *, uint32_t);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700138
139extern void
140qla2x00_get_fw_version(scsi_qla_host_t *, uint16_t *,
141 uint16_t *, uint16_t *, uint16_t *, uint32_t *);
142
143extern int
144qla2x00_get_fw_options(scsi_qla_host_t *, uint16_t *);
145
146extern int
147qla2x00_set_fw_options(scsi_qla_host_t *, uint16_t *);
148
149extern int
150qla2x00_mbx_reg_test(scsi_qla_host_t *);
151
152extern int
Andrew Vasquez1c7c6352005-07-06 10:30:57 -0700153qla2x00_verify_checksum(scsi_qla_host_t *, uint32_t);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700154
155extern int
156qla2x00_issue_iocb(scsi_qla_host_t *, void *, dma_addr_t, size_t);
157
158extern int
159qla2x00_abort_command(scsi_qla_host_t *, srb_t *);
160
161#if USE_ABORT_TGT
162extern int
Andrew Vasquez1c7c6352005-07-06 10:30:57 -0700163qla2x00_abort_target(fc_port_t *);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700164#endif
165
166extern int
Linus Torvalds1da177e2005-04-16 15:20:36 -0700167qla2x00_get_adapter_id(scsi_qla_host_t *, uint16_t *, uint8_t *, uint8_t *,
Seokmann Ju2c3dfe32007-07-05 13:16:51 -0700168 uint8_t *, uint16_t *, uint16_t *);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700169
170extern int
171qla2x00_get_retry_cnt(scsi_qla_host_t *, uint8_t *, uint8_t *, uint16_t *);
172
173extern int
174qla2x00_init_firmware(scsi_qla_host_t *, uint16_t);
175
176extern int
177qla2x00_get_port_database(scsi_qla_host_t *, fc_port_t *, uint8_t);
178
179extern int
180qla2x00_get_firmware_state(scsi_qla_host_t *, uint16_t *);
181
182extern int
183qla2x00_get_port_name(scsi_qla_host_t *, uint16_t, uint8_t *, uint8_t);
184
185extern int
186qla2x00_lip_reset(scsi_qla_host_t *);
187
188extern int
189qla2x00_send_sns(scsi_qla_host_t *, dma_addr_t, uint16_t, size_t);
190
191extern int
192qla2x00_login_fabric(scsi_qla_host_t *, uint16_t, uint8_t, uint8_t, uint8_t,
193 uint16_t *, uint8_t);
Andrew Vasquez1c7c6352005-07-06 10:30:57 -0700194extern int
195qla24xx_login_fabric(scsi_qla_host_t *, uint16_t, uint8_t, uint8_t, uint8_t,
196 uint16_t *, uint8_t);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700197
198extern int
andrew.vasquez@qlogic.com9a52a572006-03-09 14:27:44 -0800199qla2x00_login_local_device(scsi_qla_host_t *, fc_port_t *, uint16_t *,
200 uint8_t);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700201
202extern int
Andrew Vasquez1c7c6352005-07-06 10:30:57 -0700203qla2x00_fabric_logout(scsi_qla_host_t *, uint16_t, uint8_t, uint8_t, uint8_t);
204
205extern int
206qla24xx_fabric_logout(scsi_qla_host_t *, uint16_t, uint8_t, uint8_t, uint8_t);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700207
208extern int
209qla2x00_full_login_lip(scsi_qla_host_t *ha);
210
211extern int
212qla2x00_get_id_list(scsi_qla_host_t *, void *, dma_addr_t, uint16_t *);
213
214extern int
215qla2x00_get_resource_cnts(scsi_qla_host_t *, uint16_t *, uint16_t *, uint16_t *,
216 uint16_t *);
217
218extern int
219qla2x00_get_fcal_position_map(scsi_qla_host_t *ha, char *pos_map);
220
andrew.vasquez@qlogic.com392e2f62006-01-31 16:05:02 -0800221extern int
222qla2x00_get_link_status(scsi_qla_host_t *, uint16_t, link_stat_t *,
223 uint16_t *);
224
225extern int
226qla24xx_get_isp_stats(scsi_qla_host_t *, uint32_t *, uint32_t, uint16_t *);
227
Andrew Vasquez1c7c6352005-07-06 10:30:57 -0700228extern int qla24xx_abort_command(scsi_qla_host_t *, srb_t *);
229extern int qla24xx_abort_target(fc_port_t *);
230
231extern int qla2x00_system_error(scsi_qla_host_t *);
232
233extern int
234qla2x00_get_serdes_params(scsi_qla_host_t *, uint16_t *, uint16_t *,
235 uint16_t *);
236
237extern int
238qla2x00_set_serdes_params(scsi_qla_host_t *, uint16_t, uint16_t, uint16_t);
239
Andrew Vasquezf6ef3b12005-08-26 19:10:20 -0700240extern int
241qla2x00_stop_firmware(scsi_qla_host_t *);
242
Andrew Vasqueza7a167b2006-06-23 16:10:29 -0700243extern int
244qla2x00_trace_control(scsi_qla_host_t *, uint16_t, dma_addr_t, uint16_t);
245
Andrew Vasquez88729e52006-06-23 16:10:50 -0700246extern int
247qla2x00_read_sfp(scsi_qla_host_t *, dma_addr_t, uint16_t, uint16_t, uint16_t);
248
Andrew Vasquezd8b45212006-10-02 12:00:43 -0700249extern int
250qla2x00_get_idma_speed(scsi_qla_host_t *, uint16_t, uint16_t *, uint16_t *);
251
252extern int
253qla2x00_set_idma_speed(scsi_qla_host_t *, uint16_t, uint16_t, uint16_t *);
254
Linus Torvalds1da177e2005-04-16 15:20:36 -0700255/*
256 * Global Function Prototypes in qla_isr.c source file.
257 */
David Howells7d12e782006-10-05 14:55:46 +0100258extern irqreturn_t qla2100_intr_handler(int, void *);
259extern irqreturn_t qla2300_intr_handler(int, void *);
260extern irqreturn_t qla24xx_intr_handler(int, void *);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700261extern void qla2x00_process_response_queue(struct scsi_qla_host *);
Andrew Vasquez4fdfefe2005-10-27 11:09:48 -0700262extern void qla24xx_process_response_queue(struct scsi_qla_host *);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700263
Andrew Vasqueza8488ab2007-01-29 10:22:19 -0800264extern int qla2x00_request_irqs(scsi_qla_host_t *);
265extern void qla2x00_free_irqs(scsi_qla_host_t *);
266
Linus Torvalds1da177e2005-04-16 15:20:36 -0700267/*
268 * Global Function Prototypes in qla_sup.c source file.
269 */
270extern void qla2x00_lock_nvram_access(scsi_qla_host_t *);
271extern void qla2x00_unlock_nvram_access(scsi_qla_host_t *);
272extern void qla2x00_release_nvram_protection(scsi_qla_host_t *);
273extern uint16_t qla2x00_get_nvram_word(scsi_qla_host_t *, uint32_t);
274extern void qla2x00_write_nvram_word(scsi_qla_host_t *, uint32_t, uint16_t);
Andrew Vasquez459c5372005-07-06 10:31:07 -0700275extern uint32_t *qla24xx_read_flash_data(scsi_qla_host_t *, uint32_t *,
276 uint32_t, uint32_t);
277extern uint8_t *qla2x00_read_nvram_data(scsi_qla_host_t *, uint8_t *, uint32_t,
278 uint32_t);
279extern uint8_t *qla24xx_read_nvram_data(scsi_qla_host_t *, uint8_t *, uint32_t,
280 uint32_t);
281extern int qla2x00_write_nvram_data(scsi_qla_host_t *, uint8_t *, uint32_t,
282 uint32_t);
283extern int qla24xx_write_nvram_data(scsi_qla_host_t *, uint8_t *, uint32_t,
284 uint32_t);
Andrew Vasquezc3a2f0d2007-07-19 20:37:34 -0700285extern uint8_t *qla25xx_read_nvram_data(scsi_qla_host_t *, uint8_t *, uint32_t,
286 uint32_t);
287extern int qla25xx_write_nvram_data(scsi_qla_host_t *, uint8_t *, uint32_t,
288 uint32_t);
Andrew Vasquez459c5372005-07-06 10:31:07 -0700289
andrew.vasquez@qlogic.comf6df1442006-01-31 16:05:07 -0800290extern int qla2x00_beacon_on(struct scsi_qla_host *);
291extern int qla2x00_beacon_off(struct scsi_qla_host *);
292extern void qla2x00_beacon_blink(struct scsi_qla_host *);
293extern int qla24xx_beacon_on(struct scsi_qla_host *);
294extern int qla24xx_beacon_off(struct scsi_qla_host *);
295extern void qla24xx_beacon_blink(struct scsi_qla_host *);
296
andrew.vasquez@qlogic.com854165f2006-01-31 16:05:17 -0800297extern uint8_t *qla2x00_read_optrom_data(struct scsi_qla_host *, uint8_t *,
298 uint32_t, uint32_t);
299extern int qla2x00_write_optrom_data(struct scsi_qla_host *, uint8_t *,
300 uint32_t, uint32_t);
301extern uint8_t *qla24xx_read_optrom_data(struct scsi_qla_host *, uint8_t *,
302 uint32_t, uint32_t);
303extern int qla24xx_write_optrom_data(struct scsi_qla_host *, uint8_t *,
304 uint32_t, uint32_t);
305
Andrew Vasquez30c47662007-01-29 10:22:21 -0800306extern int qla2x00_get_flash_version(scsi_qla_host_t *, void *);
307extern int qla24xx_get_flash_version(scsi_qla_host_t *, void *);
308
Linus Torvalds1da177e2005-04-16 15:20:36 -0700309/*
310 * Global Function Prototypes in qla_dbg.c source file.
311 */
312extern void qla2100_fw_dump(scsi_qla_host_t *, int);
313extern void qla2300_fw_dump(scsi_qla_host_t *, int);
Andrew Vasquez6d9b61e2005-07-06 10:30:36 -0700314extern void qla24xx_fw_dump(scsi_qla_host_t *, int);
Andrew Vasquezc3a2f0d2007-07-19 20:37:34 -0700315extern void qla25xx_fw_dump(scsi_qla_host_t *, int);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700316extern void qla2x00_dump_regs(scsi_qla_host_t *);
317extern void qla2x00_dump_buffer(uint8_t *, uint32_t);
318extern void qla2x00_print_scsi_cmd(struct scsi_cmnd *);
Andrew Vasquez6d9b61e2005-07-06 10:30:36 -0700319extern void qla2x00_dump_pkt(void *);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700320
321/*
322 * Global Function Prototypes in qla_gs.c source file.
323 */
Andrew Vasquez8c958a92005-07-06 10:30:47 -0700324extern void *qla2x00_prep_ms_iocb(scsi_qla_host_t *, uint32_t, uint32_t);
325extern void *qla24xx_prep_ms_iocb(scsi_qla_host_t *, uint32_t, uint32_t);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700326extern int qla2x00_ga_nxt(scsi_qla_host_t *, fc_port_t *);
327extern int qla2x00_gid_pt(scsi_qla_host_t *, sw_info_t *);
328extern int qla2x00_gpn_id(scsi_qla_host_t *, sw_info_t *);
329extern int qla2x00_gnn_id(scsi_qla_host_t *, sw_info_t *);
330extern int qla2x00_rft_id(scsi_qla_host_t *);
331extern int qla2x00_rff_id(scsi_qla_host_t *);
332extern int qla2x00_rnn_id(scsi_qla_host_t *);
333extern int qla2x00_rsnn_nn(scsi_qla_host_t *);
Andrew Vasquezcca53352005-08-26 19:08:30 -0700334extern void *qla2x00_prep_ms_fdmi_iocb(scsi_qla_host_t *, uint32_t, uint32_t);
335extern void *qla24xx_prep_ms_fdmi_iocb(scsi_qla_host_t *, uint32_t, uint32_t);
336extern int qla2x00_fdmi_register(scsi_qla_host_t *);
Andrew Vasquezd8b45212006-10-02 12:00:43 -0700337extern int qla2x00_gfpn_id(scsi_qla_host_t *, sw_info_t *);
338extern int qla2x00_gpsc(scsi_qla_host_t *, sw_info_t *);
Andrew Vasquez1620f7c2006-10-02 12:00:44 -0700339extern void qla2x00_get_sym_node_name(scsi_qla_host_t *, uint8_t *);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700340
341/*
8482e1182005-04-17 15:04:54 -0500342 * Global Function Prototypes in qla_attr.c source file.
343 */
Andrew Vasquezafb046e2005-08-26 19:09:40 -0700344struct class_device_attribute;
345extern struct class_device_attribute *qla2x00_host_attrs[];
Andrew Vasquez1c97a122005-04-21 16:13:36 -0400346struct fc_function_template;
347extern struct fc_function_template qla2xxx_transport_functions;
Seokmann Ju2c3dfe32007-07-05 13:16:51 -0700348extern struct fc_function_template qla2xxx_transport_vport_functions;
8482e1182005-04-17 15:04:54 -0500349extern void qla2x00_alloc_sysfs_attr(scsi_qla_host_t *);
350extern void qla2x00_free_sysfs_attr(scsi_qla_host_t *);
8482e1182005-04-17 15:04:54 -0500351extern void qla2x00_init_host_attr(scsi_qla_host_t *);
352extern void qla2x00_alloc_sysfs_attr(scsi_qla_host_t *);
353extern void qla2x00_free_sysfs_attr(scsi_qla_host_t *);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700354#endif /* _QLA_GBL_H */