blob: f9963de506d03f7b5ff98ea50404511f3e4125a4 [file] [log] [blame]
David Somayajuluafaf5a22006-09-19 10:28:00 -07001/*
2 * QLogic iSCSI HBA Driver
Vikas Chaudharyc68cdbf2012-08-22 07:55:09 -04003 * Copyright (c) 2003-2012 QLogic Corporation
David Somayajuluafaf5a22006-09-19 10:28:00 -07004 *
5 * See LICENSE.qla4xxx for copyright and licensing details.
6 */
7
8#ifndef __QLA4x_GBL_H
9#define __QLA4x_GBL_H
10
David C Somayajulue08c1822007-05-23 18:14:34 -070011struct iscsi_cls_conn;
12
Vikas Chaudharyf4f5df232010-07-28 15:53:44 +053013int qla4xxx_hw_reset(struct scsi_qla_host *ha);
David C Somayajuluf26b9042006-11-15 16:41:09 -080014int ql4xxx_lock_drvr_wait(struct scsi_qla_host *a);
Vikas Chaudharyf4f5df232010-07-28 15:53:44 +053015int qla4xxx_send_command_to_isp(struct scsi_qla_host *ha, struct srb *srb);
Mike Christie13483732011-12-01 21:38:41 -060016int qla4xxx_initialize_adapter(struct scsi_qla_host *ha, int is_reset);
David Somayajuluafaf5a22006-09-19 10:28:00 -070017int qla4xxx_soft_reset(struct scsi_qla_host *ha);
David Howells7d12e782006-10-05 14:55:46 +010018irqreturn_t qla4xxx_intr_handler(int irq, void *dev_id);
David Somayajuluafaf5a22006-09-19 10:28:00 -070019
Vikas Chaudharyf4f5df232010-07-28 15:53:44 +053020void qla4xxx_free_ddb(struct scsi_qla_host *ha, struct ddb_entry *ddb_entry);
21void qla4xxx_process_aen(struct scsi_qla_host *ha, uint8_t process_aen);
David Somayajuluafaf5a22006-09-19 10:28:00 -070022
Vikas Chaudharyf4f5df232010-07-28 15:53:44 +053023int qla4xxx_get_dhcp_ip_address(struct scsi_qla_host *ha);
Vikas Chaudhary09a0f712010-04-28 11:42:24 +053024int qla4xxx_abort_task(struct scsi_qla_host *ha, struct srb *srb);
Vikas Chaudharyf4f5df232010-07-28 15:53:44 +053025int qla4xxx_reset_lun(struct scsi_qla_host *ha, struct ddb_entry *ddb_entry,
David Somayajuluafaf5a22006-09-19 10:28:00 -070026 int lun);
Vikas Chaudharyf4f5df232010-07-28 15:53:44 +053027int qla4xxx_reset_target(struct scsi_qla_host *ha,
28 struct ddb_entry *ddb_entry);
29int qla4xxx_get_flash(struct scsi_qla_host *ha, dma_addr_t dma_addr,
David Somayajuluafaf5a22006-09-19 10:28:00 -070030 uint32_t offset, uint32_t len);
Vikas Chaudharyf4f5df232010-07-28 15:53:44 +053031int qla4xxx_get_firmware_status(struct scsi_qla_host *ha);
32int qla4xxx_get_firmware_state(struct scsi_qla_host *ha);
33int qla4xxx_initialize_fw_cb(struct scsi_qla_host *ha);
David Somayajuluafaf5a22006-09-19 10:28:00 -070034
35/* FIXME: Goodness! this really wants a small struct to hold the
36 * parameters. On x86 the args will get passed on the stack! */
37int qla4xxx_get_fwddb_entry(struct scsi_qla_host *ha,
38 uint16_t fw_ddb_index,
39 struct dev_db_entry *fw_ddb_entry,
40 dma_addr_t fw_ddb_entry_dma,
41 uint32_t *num_valid_ddb_entries,
42 uint32_t *next_ddb_index,
43 uint32_t *fw_ddb_device_state,
44 uint32_t *conn_err_detail,
45 uint16_t *tcp_source_port_num,
46 uint16_t *connection_id);
47
David Somayajuluafaf5a22006-09-19 10:28:00 -070048int qla4xxx_set_ddb_entry(struct scsi_qla_host * ha, uint16_t fw_ddb_index,
Manish Rangankarb3a271a2011-07-25 13:48:53 -050049 dma_addr_t fw_ddb_entry_dma, uint32_t *mbx_sts);
Mike Christied00efe32011-07-25 13:48:38 -050050uint8_t qla4xxx_get_ifcb(struct scsi_qla_host *ha, uint32_t *mbox_cmd,
51 uint32_t *mbox_sts, dma_addr_t init_fw_cb_dma);
52int qla4xxx_conn_close_sess_logout(struct scsi_qla_host *ha,
53 uint16_t fw_ddb_index,
54 uint16_t connection_id,
55 uint16_t option);
56int qla4xxx_disable_acb(struct scsi_qla_host *ha);
57int qla4xxx_set_acb(struct scsi_qla_host *ha, uint32_t *mbox_cmd,
58 uint32_t *mbox_sts, dma_addr_t acb_dma);
Harish Zunjarrao60854912011-08-12 02:51:27 -070059int qla4xxx_get_acb(struct scsi_qla_host *ha, dma_addr_t acb_dma,
60 uint32_t acb_type, uint32_t len);
Harish Zunjarrao8b0402e2011-08-01 03:26:15 -070061int qla4xxx_get_ip_state(struct scsi_qla_host *ha, uint32_t acb_idx,
62 uint32_t ip_idx, uint32_t *sts);
Manish Rangankarb3a271a2011-07-25 13:48:53 -050063void qla4xxx_mark_device_missing(struct iscsi_cls_session *cls_session);
Vikas Chaudharyf4f5df232010-07-28 15:53:44 +053064u16 rd_nvram_word(struct scsi_qla_host *ha, int offset);
Manish Rangankar2a991c22011-07-25 13:48:55 -050065u8 rd_nvram_byte(struct scsi_qla_host *ha, int offset);
Vikas Chaudharyf4f5df232010-07-28 15:53:44 +053066void qla4xxx_get_crash_record(struct scsi_qla_host *ha);
Vikas Chaudharyf4f5df232010-07-28 15:53:44 +053067int qla4xxx_is_nvram_configuration_valid(struct scsi_qla_host *ha);
Harish Zunjarrao7ad633c2011-05-17 23:17:11 -070068int qla4xxx_about_firmware(struct scsi_qla_host *ha);
Vikas Chaudharyf4f5df232010-07-28 15:53:44 +053069void qla4xxx_interrupt_service_routine(struct scsi_qla_host *ha,
David Somayajuluafaf5a22006-09-19 10:28:00 -070070 uint32_t intr_status);
Vikas Chaudharyf4f5df232010-07-28 15:53:44 +053071int qla4xxx_init_rings(struct scsi_qla_host *ha);
Vikas Chaudhary09a0f712010-04-28 11:42:24 +053072void qla4xxx_srb_compl(struct kref *ref);
Vikas Chaudharyf4f5df232010-07-28 15:53:44 +053073struct srb *qla4xxx_del_from_active_array(struct scsi_qla_host *ha,
74 uint32_t index);
Vikas Chaudhary821d6e52010-04-28 11:41:21 +053075int qla4xxx_process_ddb_changed(struct scsi_qla_host *ha, uint32_t fw_ddb_index,
76 uint32_t state, uint32_t conn_error);
David C Somayajulue08c1822007-05-23 18:14:34 -070077void qla4xxx_dump_buffer(void *b, uint32_t size);
David C Somayajulu9d562912008-03-19 11:23:03 -070078int qla4xxx_send_marker_iocb(struct scsi_qla_host *ha,
79 struct ddb_entry *ddb_entry, int lun, uint16_t mrkr_mod);
Mike Christied00efe32011-07-25 13:48:38 -050080int qla4xxx_set_flash(struct scsi_qla_host *ha, dma_addr_t dma_addr,
81 uint32_t offset, uint32_t length, uint32_t options);
Vikas Chaudharyf4f5df232010-07-28 15:53:44 +053082int qla4xxx_mailbox_command(struct scsi_qla_host *ha, uint8_t inCount,
83 uint8_t outCount, uint32_t *mbx_cmd, uint32_t *mbx_sts);
Mike Christiefca9f042012-02-27 03:08:54 -080084int qla4xxx_get_chap_index(struct scsi_qla_host *ha, char *username,
85 char *password, int bidi, uint16_t *chap_index);
Vikas Chaudharyf4f5df232010-07-28 15:53:44 +053086
87void qla4xxx_queue_iocb(struct scsi_qla_host *ha);
88void qla4xxx_complete_iocb(struct scsi_qla_host *ha);
89int qla4xxx_get_sys_info(struct scsi_qla_host *ha);
90int qla4xxx_iospace_config(struct scsi_qla_host *ha);
91void qla4xxx_pci_config(struct scsi_qla_host *ha);
92int qla4xxx_start_firmware(struct scsi_qla_host *ha);
93irqreturn_t qla4xxx_intr_handler(int irq, void *dev_id);
94uint16_t qla4xxx_rd_shdw_req_q_out(struct scsi_qla_host *ha);
95uint16_t qla4xxx_rd_shdw_rsp_q_in(struct scsi_qla_host *ha);
96int qla4xxx_request_irqs(struct scsi_qla_host *ha);
97void qla4xxx_free_irqs(struct scsi_qla_host *ha);
98void qla4xxx_process_response_queue(struct scsi_qla_host *ha);
99void qla4xxx_wake_dpc(struct scsi_qla_host *ha);
100void qla4xxx_get_conn_event_log(struct scsi_qla_host *ha);
Nilesh Javali21033632010-07-30 14:28:07 +0530101void qla4xxx_mailbox_premature_completion(struct scsi_qla_host *ha);
Karen Higgins91a772a2010-10-06 22:50:21 -0700102void qla4xxx_dump_registers(struct scsi_qla_host *ha);
Mike Christied00efe32011-07-25 13:48:38 -0500103uint8_t qla4xxx_update_local_ifcb(struct scsi_qla_host *ha,
104 uint32_t *mbox_cmd,
105 uint32_t *mbox_sts,
106 struct addr_ctrl_blk *init_fw_cb,
107 dma_addr_t init_fw_cb_dma);
Vikas Chaudharyf4f5df232010-07-28 15:53:44 +0530108
109void qla4_8xxx_pci_config(struct scsi_qla_host *);
110int qla4_8xxx_iospace_config(struct scsi_qla_host *ha);
111int qla4_8xxx_load_risc(struct scsi_qla_host *);
Vikas Chaudharyf8086f42012-08-22 07:54:59 -0400112irqreturn_t qla4_82xx_intr_handler(int irq, void *dev_id);
113void qla4_82xx_queue_iocb(struct scsi_qla_host *ha);
114void qla4_82xx_complete_iocb(struct scsi_qla_host *ha);
Vikas Chaudharyf4f5df232010-07-28 15:53:44 +0530115
Vikas Chaudharyf8086f42012-08-22 07:54:59 -0400116int qla4_82xx_crb_win_lock(struct scsi_qla_host *);
117void qla4_82xx_crb_win_unlock(struct scsi_qla_host *);
118int qla4_82xx_pci_get_crb_addr_2M(struct scsi_qla_host *, ulong *);
119void qla4_82xx_wr_32(struct scsi_qla_host *, ulong, u32);
Vikas Chaudhary33693c72012-08-22 07:55:04 -0400120uint32_t qla4_82xx_rd_32(struct scsi_qla_host *, ulong);
Vikas Chaudharyf8086f42012-08-22 07:54:59 -0400121int qla4_82xx_pci_mem_read_2M(struct scsi_qla_host *, u64, void *, int);
122int qla4_82xx_pci_mem_write_2M(struct scsi_qla_host *ha, u64, void *, int);
123int qla4_82xx_isp_reset(struct scsi_qla_host *ha);
124void qla4_82xx_interrupt_service_routine(struct scsi_qla_host *ha,
Vikas Chaudharyf4f5df232010-07-28 15:53:44 +0530125 uint32_t intr_status);
Vikas Chaudharyf8086f42012-08-22 07:54:59 -0400126uint16_t qla4_82xx_rd_shdw_req_q_out(struct scsi_qla_host *ha);
127uint16_t qla4_82xx_rd_shdw_rsp_q_in(struct scsi_qla_host *ha);
Vikas Chaudharyf4f5df232010-07-28 15:53:44 +0530128int qla4_8xxx_get_sys_info(struct scsi_qla_host *ha);
129void qla4_8xxx_watchdog(struct scsi_qla_host *ha);
130int qla4_8xxx_stop_firmware(struct scsi_qla_host *ha);
131int qla4_8xxx_get_flash_info(struct scsi_qla_host *ha);
Vikas Chaudharyf8086f42012-08-22 07:54:59 -0400132void qla4_82xx_enable_intrs(struct scsi_qla_host *ha);
133void qla4_82xx_disable_intrs(struct scsi_qla_host *ha);
Vikas Chaudharyf4f5df232010-07-28 15:53:44 +0530134int qla4_8xxx_enable_msix(struct scsi_qla_host *ha);
135void qla4_8xxx_disable_msix(struct scsi_qla_host *ha);
136irqreturn_t qla4_8xxx_msi_handler(int irq, void *dev_id);
137irqreturn_t qla4_8xxx_default_intr_handler(int irq, void *dev_id);
138irqreturn_t qla4_8xxx_msix_rsp_q(int irq, void *dev_id);
139void qla4xxx_mark_all_devices_missing(struct scsi_qla_host *ha);
140void qla4xxx_dead_adapter_cleanup(struct scsi_qla_host *ha);
Vikas Chaudharyf8086f42012-08-22 07:54:59 -0400141int qla4_82xx_idc_lock(struct scsi_qla_host *ha);
142void qla4_82xx_idc_unlock(struct scsi_qla_host *ha);
Vikas Chaudharyf4f5df232010-07-28 15:53:44 +0530143int qla4_8xxx_device_state_handler(struct scsi_qla_host *ha);
144void qla4_8xxx_need_qsnt_handler(struct scsi_qla_host *ha);
145void qla4_8xxx_clear_drv_active(struct scsi_qla_host *ha);
Andrew Morton626115c2010-08-19 14:13:42 -0700146void qla4_8xxx_set_drv_active(struct scsi_qla_host *ha);
Manish Rangankarb3a271a2011-07-25 13:48:53 -0500147int qla4xxx_conn_open(struct scsi_qla_host *ha, uint16_t fw_ddb_index);
148int qla4xxx_set_param_ddbentry(struct scsi_qla_host *ha,
149 struct ddb_entry *ddb_entry,
150 struct iscsi_cls_conn *cls_conn,
151 uint32_t *mbx_sts);
152int qla4xxx_session_logout_ddb(struct scsi_qla_host *ha,
153 struct ddb_entry *ddb_entry, int options);
154int qla4xxx_req_ddb_entry(struct scsi_qla_host *ha, uint32_t fw_ddb_index,
155 uint32_t *mbx_sts);
156int qla4xxx_clear_ddb_entry(struct scsi_qla_host *ha, uint32_t fw_ddb_index);
157int qla4xxx_send_passthru0(struct iscsi_task *task);
Mike Christie13483732011-12-01 21:38:41 -0600158void qla4xxx_free_ddb_index(struct scsi_qla_host *ha);
Manish Rangankarb3a271a2011-07-25 13:48:53 -0500159int qla4xxx_get_mgmt_data(struct scsi_qla_host *ha, uint16_t fw_ddb_index,
160 uint16_t stats_size, dma_addr_t stats_dma);
161void qla4xxx_update_session_conn_param(struct scsi_qla_host *ha,
162 struct ddb_entry *ddb_entry);
Mike Christie13483732011-12-01 21:38:41 -0600163void qla4xxx_update_session_conn_fwddb_param(struct scsi_qla_host *ha,
164 struct ddb_entry *ddb_entry);
Manish Rangankar2a991c22011-07-25 13:48:55 -0500165int qla4xxx_bootdb_by_index(struct scsi_qla_host *ha,
166 struct dev_db_entry *fw_ddb_entry,
167 dma_addr_t fw_ddb_entry_dma, uint16_t ddb_index);
168int qla4xxx_get_chap(struct scsi_qla_host *ha, char *username,
169 char *password, uint16_t idx);
Harish Zunjarrao7c07d132011-08-01 03:26:16 -0700170int qla4xxx_get_nvram(struct scsi_qla_host *ha, dma_addr_t nvram_dma,
171 uint32_t offset, uint32_t size);
172int qla4xxx_set_nvram(struct scsi_qla_host *ha, dma_addr_t nvram_dma,
173 uint32_t offset, uint32_t size);
Harish Zunjarrao5232f802011-08-12 02:51:26 -0700174int qla4xxx_restore_factory_defaults(struct scsi_qla_host *ha,
175 uint32_t region, uint32_t field0,
176 uint32_t field1);
Mike Christie13483732011-12-01 21:38:41 -0600177int qla4xxx_get_ddb_index(struct scsi_qla_host *ha, uint16_t *ddb_index);
178void qla4xxx_login_flash_ddb(struct iscsi_cls_session *cls_session);
179int qla4xxx_unblock_ddb(struct iscsi_cls_session *cls_session);
180int qla4xxx_unblock_flash_ddb(struct iscsi_cls_session *cls_session);
181int qla4xxx_flash_ddb_change(struct scsi_qla_host *ha, uint32_t fw_ddb_index,
182 struct ddb_entry *ddb_entry, uint32_t state);
183int qla4xxx_ddb_change(struct scsi_qla_host *ha, uint32_t fw_ddb_index,
184 struct ddb_entry *ddb_entry, uint32_t state);
185void qla4xxx_build_ddb_list(struct scsi_qla_host *ha, int is_reset);
Vikas Chaudhary68b6d5d2012-06-14 06:35:49 -0400186int qla4xxx_post_aen_work(struct scsi_qla_host *ha,
187 enum iscsi_host_event_code aen_code,
Vikas Chaudharyff884432011-08-29 23:43:02 +0530188 uint32_t data_size, uint8_t *data);
Vikas Chaudharyc0b9d3f2012-02-13 18:30:49 +0530189int qla4xxx_ping_iocb(struct scsi_qla_host *ha, uint32_t options,
190 uint32_t payload_size, uint32_t pid, uint8_t *ipaddr);
191int qla4xxx_post_ping_evt_work(struct scsi_qla_host *ha,
192 uint32_t status, uint32_t pid,
193 uint32_t data_size, uint8_t *data);
Adheer Chandravanshi1e9e2be2013-03-22 07:41:31 -0400194int qla4xxx_flashdb_by_index(struct scsi_qla_host *ha,
195 struct dev_db_entry *fw_ddb_entry,
196 dma_addr_t fw_ddb_entry_dma, uint16_t ddb_index);
Manish Rangankar2a991c22011-07-25 13:48:55 -0500197
Vikas Chaudharya3559432011-07-25 13:48:51 -0500198/* BSG Functions */
199int qla4xxx_bsg_request(struct bsg_job *bsg_job);
200int qla4xxx_process_vendor_specific(struct bsg_job *bsg_job);
201
Mike Christie13483732011-12-01 21:38:41 -0600202void qla4xxx_arm_relogin_timer(struct ddb_entry *ddb_entry);
Tej Parkash068237c82012-05-18 04:41:44 -0400203int qla4xxx_get_minidump_template(struct scsi_qla_host *ha,
204 dma_addr_t phys_addr);
205int qla4xxx_req_template_size(struct scsi_qla_host *ha);
206void qla4_8xxx_alloc_sysfs_attr(struct scsi_qla_host *ha);
207void qla4_8xxx_free_sysfs_attr(struct scsi_qla_host *ha);
208void qla4xxx_alloc_fw_dump(struct scsi_qla_host *ha);
Vikas Chaudhary33693c72012-08-22 07:55:04 -0400209int qla4_82xx_try_start_fw(struct scsi_qla_host *ha);
210int qla4_8xxx_need_reset(struct scsi_qla_host *ha);
211int qla4_82xx_md_rd_32(struct scsi_qla_host *ha, uint32_t off, uint32_t *data);
212int qla4_82xx_md_wr_32(struct scsi_qla_host *ha, uint32_t off, uint32_t data);
213void qla4_82xx_rom_lock_recovery(struct scsi_qla_host *ha);
214void qla4_82xx_queue_mbox_cmd(struct scsi_qla_host *ha, uint32_t *mbx_cmd,
215 int incount);
216void qla4_82xx_process_mbox_intr(struct scsi_qla_host *ha, int outcount);
217void qla4xxx_queue_mbox_cmd(struct scsi_qla_host *ha, uint32_t *mbx_cmd,
218 int incount);
219void qla4xxx_process_mbox_intr(struct scsi_qla_host *ha, int outcount);
Vikas Chaudhary6e7b4292012-08-22 07:55:08 -0400220void qla4_8xxx_dump_peg_reg(struct scsi_qla_host *ha);
221void qla4_83xx_disable_intrs(struct scsi_qla_host *ha);
222void qla4_83xx_enable_intrs(struct scsi_qla_host *ha);
223int qla4_83xx_start_firmware(struct scsi_qla_host *ha);
224irqreturn_t qla4_83xx_intr_handler(int irq, void *dev_id);
225void qla4_83xx_interrupt_service_routine(struct scsi_qla_host *ha,
226 uint32_t intr_status);
227int qla4_83xx_isp_reset(struct scsi_qla_host *ha);
228void qla4_83xx_queue_iocb(struct scsi_qla_host *ha);
229void qla4_83xx_complete_iocb(struct scsi_qla_host *ha);
Vikas Chaudhary6e7b4292012-08-22 07:55:08 -0400230uint32_t qla4_83xx_rd_reg(struct scsi_qla_host *ha, ulong addr);
231void qla4_83xx_wr_reg(struct scsi_qla_host *ha, ulong addr, uint32_t val);
232int qla4_83xx_rd_reg_indirect(struct scsi_qla_host *ha, uint32_t addr,
233 uint32_t *data);
234int qla4_83xx_wr_reg_indirect(struct scsi_qla_host *ha, uint32_t addr,
235 uint32_t data);
236int qla4_83xx_drv_lock(struct scsi_qla_host *ha);
237void qla4_83xx_drv_unlock(struct scsi_qla_host *ha);
238void qla4_83xx_rom_lock_recovery(struct scsi_qla_host *ha);
239void qla4_83xx_queue_mbox_cmd(struct scsi_qla_host *ha, uint32_t *mbx_cmd,
240 int incount);
241void qla4_83xx_process_mbox_intr(struct scsi_qla_host *ha, int outcount);
242void qla4_83xx_read_reset_template(struct scsi_qla_host *ha);
243void qla4_83xx_set_idc_dontreset(struct scsi_qla_host *ha);
244int qla4_83xx_idc_dontreset(struct scsi_qla_host *ha);
245int qla4_83xx_lockless_flash_read_u32(struct scsi_qla_host *ha,
246 uint32_t flash_addr, uint8_t *p_data,
247 int u32_word_count);
248void qla4_83xx_clear_idc_dontreset(struct scsi_qla_host *ha);
249void qla4_83xx_need_reset_handler(struct scsi_qla_host *ha);
250int qla4_83xx_flash_read_u32(struct scsi_qla_host *ha, uint32_t flash_addr,
251 uint8_t *p_data, int u32_word_count);
252void qla4_83xx_get_idc_param(struct scsi_qla_host *ha);
253void qla4_8xxx_set_rst_ready(struct scsi_qla_host *ha);
254void qla4_8xxx_clear_rst_ready(struct scsi_qla_host *ha);
255int qla4_8xxx_device_bootstrap(struct scsi_qla_host *ha);
256void qla4_8xxx_get_minidump(struct scsi_qla_host *ha);
Vikas Chaudhary5c19b922012-11-23 06:58:38 -0500257int qla4_8xxx_intr_disable(struct scsi_qla_host *ha);
258int qla4_8xxx_intr_enable(struct scsi_qla_host *ha);
Manish Dusanecfb27872012-09-20 07:35:01 -0400259int qla4_8xxx_set_param(struct scsi_qla_host *ha, int param);
Vikas Chaudhary39c95822012-09-20 07:35:05 -0400260int qla4_8xxx_update_idc_reg(struct scsi_qla_host *ha);
Nilesh Javali320a61d2012-09-20 07:35:10 -0400261int qla4_83xx_post_idc_ack(struct scsi_qla_host *ha);
Tej Parkash546fef22012-09-20 07:35:12 -0400262void qla4_83xx_disable_pause(struct scsi_qla_host *ha);
Vikas Chaudhary5c19b922012-11-23 06:58:38 -0500263void qla4_83xx_enable_mbox_intrs(struct scsi_qla_host *ha);
Vikas Chaudhary9661975f2013-01-20 23:51:02 -0500264int qla4_83xx_can_perform_reset(struct scsi_qla_host *ha);
Adheer Chandravanshi1e9e2be2013-03-22 07:41:31 -0400265int qla4xxx_get_default_ddb(struct scsi_qla_host *ha, uint32_t options,
266 dma_addr_t dma_addr);
267int qla4xxx_get_uni_chap_at_index(struct scsi_qla_host *ha, char *username,
268 char *password, uint16_t chap_index);
Nilesh Javali7ab284c2013-08-16 07:03:03 -0400269int qla4xxx_disable_acb(struct scsi_qla_host *ha);
270int qla4xxx_set_acb(struct scsi_qla_host *ha, uint32_t *mbox_cmd,
271 uint32_t *mbox_sts, dma_addr_t acb_dma);
272int qla4xxx_get_acb(struct scsi_qla_host *ha, dma_addr_t acb_dma,
273 uint32_t acb_type, uint32_t len);
274int qla4_84xx_config_acb(struct scsi_qla_host *ha, int acb_config);
Mike Christie13483732011-12-01 21:38:41 -0600275
Andrew Vasquez11010fe2006-10-06 09:54:59 -0700276extern int ql4xextended_error_logging;
David Somayajuluafaf5a22006-09-19 10:28:00 -0700277extern int ql4xdontresethba;
Vikas Chaudharyf4f5df232010-07-28 15:53:44 +0530278extern int ql4xenablemsix;
Tej Parkash068237c82012-05-18 04:41:44 -0400279extern int ql4xmdcapmask;
280extern int ql4xenablemd;
Vikas Chaudharyf4f5df232010-07-28 15:53:44 +0530281
Harish Zunjarrao7ad633c2011-05-17 23:17:11 -0700282extern struct device_attribute *qla4xxx_host_attrs[];
David C Somayajulud9150582006-11-15 17:38:40 -0800283#endif /* _QLA4x_GBL_H */