2006-09-19 17:28:00 +00:00
|
|
|
/*
|
|
|
|
* QLogic iSCSI HBA Driver
|
2013-08-16 11:03:04 +00:00
|
|
|
* Copyright (c) 2003-2013 QLogic Corporation
|
2006-09-19 17:28:00 +00:00
|
|
|
*
|
|
|
|
* See LICENSE.qla4xxx for copyright and licensing details.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __QLA4x_GBL_H
|
|
|
|
#define __QLA4x_GBL_H
|
|
|
|
|
2007-05-24 01:14:34 +00:00
|
|
|
struct iscsi_cls_conn;
|
|
|
|
|
2010-07-28 10:23:44 +00:00
|
|
|
int qla4xxx_hw_reset(struct scsi_qla_host *ha);
|
2006-11-16 00:41:09 +00:00
|
|
|
int ql4xxx_lock_drvr_wait(struct scsi_qla_host *a);
|
2010-07-28 10:23:44 +00:00
|
|
|
int qla4xxx_send_command_to_isp(struct scsi_qla_host *ha, struct srb *srb);
|
2011-12-02 03:38:41 +00:00
|
|
|
int qla4xxx_initialize_adapter(struct scsi_qla_host *ha, int is_reset);
|
2006-09-19 17:28:00 +00:00
|
|
|
int qla4xxx_soft_reset(struct scsi_qla_host *ha);
|
IRQ: Maintain regs pointer globally rather than passing to IRQ handlers
Maintain a per-CPU global "struct pt_regs *" variable which can be used instead
of passing regs around manually through all ~1800 interrupt handlers in the
Linux kernel.
The regs pointer is used in few places, but it potentially costs both stack
space and code to pass it around. On the FRV arch, removing the regs parameter
from all the genirq function results in a 20% speed up of the IRQ exit path
(ie: from leaving timer_interrupt() to leaving do_IRQ()).
Where appropriate, an arch may override the generic storage facility and do
something different with the variable. On FRV, for instance, the address is
maintained in GR28 at all times inside the kernel as part of general exception
handling.
Having looked over the code, it appears that the parameter may be handed down
through up to twenty or so layers of functions. Consider a USB character
device attached to a USB hub, attached to a USB controller that posts its
interrupts through a cascaded auxiliary interrupt controller. A character
device driver may want to pass regs to the sysrq handler through the input
layer which adds another few layers of parameter passing.
I've build this code with allyesconfig for x86_64 and i386. I've runtested the
main part of the code on FRV and i386, though I can't test most of the drivers.
I've also done partial conversion for powerpc and MIPS - these at least compile
with minimal configurations.
This will affect all archs. Mostly the changes should be relatively easy.
Take do_IRQ(), store the regs pointer at the beginning, saving the old one:
struct pt_regs *old_regs = set_irq_regs(regs);
And put the old one back at the end:
set_irq_regs(old_regs);
Don't pass regs through to generic_handle_irq() or __do_IRQ().
In timer_interrupt(), this sort of change will be necessary:
- update_process_times(user_mode(regs));
- profile_tick(CPU_PROFILING, regs);
+ update_process_times(user_mode(get_irq_regs()));
+ profile_tick(CPU_PROFILING);
I'd like to move update_process_times()'s use of get_irq_regs() into itself,
except that i386, alone of the archs, uses something other than user_mode().
Some notes on the interrupt handling in the drivers:
(*) input_dev() is now gone entirely. The regs pointer is no longer stored in
the input_dev struct.
(*) finish_unlinks() in drivers/usb/host/ohci-q.c needs checking. It does
something different depending on whether it's been supplied with a regs
pointer or not.
(*) Various IRQ handler function pointers have been moved to type
irq_handler_t.
Signed-Off-By: David Howells <dhowells@redhat.com>
(cherry picked from 1b16e7ac850969f38b375e511e3fa2f474a33867 commit)
2006-10-05 13:55:46 +00:00
|
|
|
irqreturn_t qla4xxx_intr_handler(int irq, void *dev_id);
|
2006-09-19 17:28:00 +00:00
|
|
|
|
2010-07-28 10:23:44 +00:00
|
|
|
void qla4xxx_free_ddb(struct scsi_qla_host *ha, struct ddb_entry *ddb_entry);
|
|
|
|
void qla4xxx_process_aen(struct scsi_qla_host *ha, uint8_t process_aen);
|
2006-09-19 17:28:00 +00:00
|
|
|
|
2010-07-28 10:23:44 +00:00
|
|
|
int qla4xxx_get_dhcp_ip_address(struct scsi_qla_host *ha);
|
2010-04-28 06:12:24 +00:00
|
|
|
int qla4xxx_abort_task(struct scsi_qla_host *ha, struct srb *srb);
|
2010-07-28 10:23:44 +00:00
|
|
|
int qla4xxx_reset_lun(struct scsi_qla_host *ha, struct ddb_entry *ddb_entry,
|
2006-09-19 17:28:00 +00:00
|
|
|
int lun);
|
2010-07-28 10:23:44 +00:00
|
|
|
int qla4xxx_reset_target(struct scsi_qla_host *ha,
|
|
|
|
struct ddb_entry *ddb_entry);
|
|
|
|
int qla4xxx_get_flash(struct scsi_qla_host *ha, dma_addr_t dma_addr,
|
2006-09-19 17:28:00 +00:00
|
|
|
uint32_t offset, uint32_t len);
|
2010-07-28 10:23:44 +00:00
|
|
|
int qla4xxx_get_firmware_status(struct scsi_qla_host *ha);
|
|
|
|
int qla4xxx_get_firmware_state(struct scsi_qla_host *ha);
|
|
|
|
int qla4xxx_initialize_fw_cb(struct scsi_qla_host *ha);
|
2006-09-19 17:28:00 +00:00
|
|
|
|
|
|
|
/* FIXME: Goodness! this really wants a small struct to hold the
|
|
|
|
* parameters. On x86 the args will get passed on the stack! */
|
|
|
|
int qla4xxx_get_fwddb_entry(struct scsi_qla_host *ha,
|
|
|
|
uint16_t fw_ddb_index,
|
|
|
|
struct dev_db_entry *fw_ddb_entry,
|
|
|
|
dma_addr_t fw_ddb_entry_dma,
|
|
|
|
uint32_t *num_valid_ddb_entries,
|
|
|
|
uint32_t *next_ddb_index,
|
|
|
|
uint32_t *fw_ddb_device_state,
|
|
|
|
uint32_t *conn_err_detail,
|
|
|
|
uint16_t *tcp_source_port_num,
|
|
|
|
uint16_t *connection_id);
|
|
|
|
|
|
|
|
int qla4xxx_set_ddb_entry(struct scsi_qla_host * ha, uint16_t fw_ddb_index,
|
2011-07-25 18:48:53 +00:00
|
|
|
dma_addr_t fw_ddb_entry_dma, uint32_t *mbx_sts);
|
2011-07-25 18:48:38 +00:00
|
|
|
uint8_t qla4xxx_get_ifcb(struct scsi_qla_host *ha, uint32_t *mbox_cmd,
|
|
|
|
uint32_t *mbox_sts, dma_addr_t init_fw_cb_dma);
|
|
|
|
int qla4xxx_conn_close_sess_logout(struct scsi_qla_host *ha,
|
|
|
|
uint16_t fw_ddb_index,
|
|
|
|
uint16_t connection_id,
|
|
|
|
uint16_t option);
|
|
|
|
int qla4xxx_disable_acb(struct scsi_qla_host *ha);
|
|
|
|
int qla4xxx_set_acb(struct scsi_qla_host *ha, uint32_t *mbox_cmd,
|
|
|
|
uint32_t *mbox_sts, dma_addr_t acb_dma);
|
2011-08-12 09:51:27 +00:00
|
|
|
int qla4xxx_get_acb(struct scsi_qla_host *ha, dma_addr_t acb_dma,
|
|
|
|
uint32_t acb_type, uint32_t len);
|
2011-08-01 10:26:15 +00:00
|
|
|
int qla4xxx_get_ip_state(struct scsi_qla_host *ha, uint32_t acb_idx,
|
|
|
|
uint32_t ip_idx, uint32_t *sts);
|
2011-07-25 18:48:53 +00:00
|
|
|
void qla4xxx_mark_device_missing(struct iscsi_cls_session *cls_session);
|
2010-07-28 10:23:44 +00:00
|
|
|
u16 rd_nvram_word(struct scsi_qla_host *ha, int offset);
|
2011-07-25 18:48:55 +00:00
|
|
|
u8 rd_nvram_byte(struct scsi_qla_host *ha, int offset);
|
2010-07-28 10:23:44 +00:00
|
|
|
void qla4xxx_get_crash_record(struct scsi_qla_host *ha);
|
|
|
|
int qla4xxx_is_nvram_configuration_valid(struct scsi_qla_host *ha);
|
2011-05-18 06:17:11 +00:00
|
|
|
int qla4xxx_about_firmware(struct scsi_qla_host *ha);
|
2010-07-28 10:23:44 +00:00
|
|
|
void qla4xxx_interrupt_service_routine(struct scsi_qla_host *ha,
|
2006-09-19 17:28:00 +00:00
|
|
|
uint32_t intr_status);
|
2010-07-28 10:23:44 +00:00
|
|
|
int qla4xxx_init_rings(struct scsi_qla_host *ha);
|
2010-04-28 06:12:24 +00:00
|
|
|
void qla4xxx_srb_compl(struct kref *ref);
|
2010-07-28 10:23:44 +00:00
|
|
|
struct srb *qla4xxx_del_from_active_array(struct scsi_qla_host *ha,
|
|
|
|
uint32_t index);
|
2010-04-28 06:11:21 +00:00
|
|
|
int qla4xxx_process_ddb_changed(struct scsi_qla_host *ha, uint32_t fw_ddb_index,
|
|
|
|
uint32_t state, uint32_t conn_error);
|
2007-05-24 01:14:34 +00:00
|
|
|
void qla4xxx_dump_buffer(void *b, uint32_t size);
|
2008-03-19 18:23:03 +00:00
|
|
|
int qla4xxx_send_marker_iocb(struct scsi_qla_host *ha,
|
|
|
|
struct ddb_entry *ddb_entry, int lun, uint16_t mrkr_mod);
|
2011-07-25 18:48:38 +00:00
|
|
|
int qla4xxx_set_flash(struct scsi_qla_host *ha, dma_addr_t dma_addr,
|
|
|
|
uint32_t offset, uint32_t length, uint32_t options);
|
2010-07-28 10:23:44 +00:00
|
|
|
int qla4xxx_mailbox_command(struct scsi_qla_host *ha, uint8_t inCount,
|
|
|
|
uint8_t outCount, uint32_t *mbx_cmd, uint32_t *mbx_sts);
|
2012-02-27 11:08:54 +00:00
|
|
|
int qla4xxx_get_chap_index(struct scsi_qla_host *ha, char *username,
|
|
|
|
char *password, int bidi, uint16_t *chap_index);
|
2013-09-17 11:54:49 +00:00
|
|
|
int qla4xxx_set_chap(struct scsi_qla_host *ha, char *username, char *password,
|
|
|
|
uint16_t idx, int bidi);
|
2010-07-28 10:23:44 +00:00
|
|
|
|
|
|
|
void qla4xxx_queue_iocb(struct scsi_qla_host *ha);
|
|
|
|
void qla4xxx_complete_iocb(struct scsi_qla_host *ha);
|
|
|
|
int qla4xxx_get_sys_info(struct scsi_qla_host *ha);
|
|
|
|
int qla4xxx_iospace_config(struct scsi_qla_host *ha);
|
|
|
|
void qla4xxx_pci_config(struct scsi_qla_host *ha);
|
|
|
|
int qla4xxx_start_firmware(struct scsi_qla_host *ha);
|
|
|
|
irqreturn_t qla4xxx_intr_handler(int irq, void *dev_id);
|
|
|
|
uint16_t qla4xxx_rd_shdw_req_q_out(struct scsi_qla_host *ha);
|
|
|
|
uint16_t qla4xxx_rd_shdw_rsp_q_in(struct scsi_qla_host *ha);
|
|
|
|
int qla4xxx_request_irqs(struct scsi_qla_host *ha);
|
|
|
|
void qla4xxx_free_irqs(struct scsi_qla_host *ha);
|
|
|
|
void qla4xxx_process_response_queue(struct scsi_qla_host *ha);
|
|
|
|
void qla4xxx_wake_dpc(struct scsi_qla_host *ha);
|
|
|
|
void qla4xxx_get_conn_event_log(struct scsi_qla_host *ha);
|
2010-07-30 08:58:07 +00:00
|
|
|
void qla4xxx_mailbox_premature_completion(struct scsi_qla_host *ha);
|
2010-10-07 05:50:21 +00:00
|
|
|
void qla4xxx_dump_registers(struct scsi_qla_host *ha);
|
2011-07-25 18:48:38 +00:00
|
|
|
uint8_t qla4xxx_update_local_ifcb(struct scsi_qla_host *ha,
|
|
|
|
uint32_t *mbox_cmd,
|
|
|
|
uint32_t *mbox_sts,
|
|
|
|
struct addr_ctrl_blk *init_fw_cb,
|
|
|
|
dma_addr_t init_fw_cb_dma);
|
2010-07-28 10:23:44 +00:00
|
|
|
|
|
|
|
void qla4_8xxx_pci_config(struct scsi_qla_host *);
|
|
|
|
int qla4_8xxx_iospace_config(struct scsi_qla_host *ha);
|
|
|
|
int qla4_8xxx_load_risc(struct scsi_qla_host *);
|
2012-08-22 11:54:59 +00:00
|
|
|
irqreturn_t qla4_82xx_intr_handler(int irq, void *dev_id);
|
|
|
|
void qla4_82xx_queue_iocb(struct scsi_qla_host *ha);
|
|
|
|
void qla4_82xx_complete_iocb(struct scsi_qla_host *ha);
|
2010-07-28 10:23:44 +00:00
|
|
|
|
2012-08-22 11:54:59 +00:00
|
|
|
int qla4_82xx_crb_win_lock(struct scsi_qla_host *);
|
|
|
|
void qla4_82xx_crb_win_unlock(struct scsi_qla_host *);
|
|
|
|
int qla4_82xx_pci_get_crb_addr_2M(struct scsi_qla_host *, ulong *);
|
|
|
|
void qla4_82xx_wr_32(struct scsi_qla_host *, ulong, u32);
|
2012-08-22 11:55:04 +00:00
|
|
|
uint32_t qla4_82xx_rd_32(struct scsi_qla_host *, ulong);
|
2012-08-22 11:54:59 +00:00
|
|
|
int qla4_82xx_pci_mem_read_2M(struct scsi_qla_host *, u64, void *, int);
|
|
|
|
int qla4_82xx_pci_mem_write_2M(struct scsi_qla_host *ha, u64, void *, int);
|
|
|
|
int qla4_82xx_isp_reset(struct scsi_qla_host *ha);
|
|
|
|
void qla4_82xx_interrupt_service_routine(struct scsi_qla_host *ha,
|
2010-07-28 10:23:44 +00:00
|
|
|
uint32_t intr_status);
|
2012-08-22 11:54:59 +00:00
|
|
|
uint16_t qla4_82xx_rd_shdw_req_q_out(struct scsi_qla_host *ha);
|
|
|
|
uint16_t qla4_82xx_rd_shdw_rsp_q_in(struct scsi_qla_host *ha);
|
2010-07-28 10:23:44 +00:00
|
|
|
int qla4_8xxx_get_sys_info(struct scsi_qla_host *ha);
|
|
|
|
void qla4_8xxx_watchdog(struct scsi_qla_host *ha);
|
|
|
|
int qla4_8xxx_stop_firmware(struct scsi_qla_host *ha);
|
|
|
|
int qla4_8xxx_get_flash_info(struct scsi_qla_host *ha);
|
2012-08-22 11:54:59 +00:00
|
|
|
void qla4_82xx_enable_intrs(struct scsi_qla_host *ha);
|
|
|
|
void qla4_82xx_disable_intrs(struct scsi_qla_host *ha);
|
2010-07-28 10:23:44 +00:00
|
|
|
int qla4_8xxx_enable_msix(struct scsi_qla_host *ha);
|
|
|
|
void qla4_8xxx_disable_msix(struct scsi_qla_host *ha);
|
|
|
|
irqreturn_t qla4_8xxx_msi_handler(int irq, void *dev_id);
|
|
|
|
irqreturn_t qla4_8xxx_default_intr_handler(int irq, void *dev_id);
|
|
|
|
irqreturn_t qla4_8xxx_msix_rsp_q(int irq, void *dev_id);
|
|
|
|
void qla4xxx_mark_all_devices_missing(struct scsi_qla_host *ha);
|
|
|
|
void qla4xxx_dead_adapter_cleanup(struct scsi_qla_host *ha);
|
2012-08-22 11:54:59 +00:00
|
|
|
int qla4_82xx_idc_lock(struct scsi_qla_host *ha);
|
|
|
|
void qla4_82xx_idc_unlock(struct scsi_qla_host *ha);
|
2010-07-28 10:23:44 +00:00
|
|
|
int qla4_8xxx_device_state_handler(struct scsi_qla_host *ha);
|
|
|
|
void qla4_8xxx_need_qsnt_handler(struct scsi_qla_host *ha);
|
|
|
|
void qla4_8xxx_clear_drv_active(struct scsi_qla_host *ha);
|
2010-08-19 21:13:42 +00:00
|
|
|
void qla4_8xxx_set_drv_active(struct scsi_qla_host *ha);
|
2011-07-25 18:48:53 +00:00
|
|
|
int qla4xxx_conn_open(struct scsi_qla_host *ha, uint16_t fw_ddb_index);
|
|
|
|
int qla4xxx_set_param_ddbentry(struct scsi_qla_host *ha,
|
|
|
|
struct ddb_entry *ddb_entry,
|
|
|
|
struct iscsi_cls_conn *cls_conn,
|
|
|
|
uint32_t *mbx_sts);
|
|
|
|
int qla4xxx_session_logout_ddb(struct scsi_qla_host *ha,
|
|
|
|
struct ddb_entry *ddb_entry, int options);
|
|
|
|
int qla4xxx_req_ddb_entry(struct scsi_qla_host *ha, uint32_t fw_ddb_index,
|
|
|
|
uint32_t *mbx_sts);
|
|
|
|
int qla4xxx_clear_ddb_entry(struct scsi_qla_host *ha, uint32_t fw_ddb_index);
|
|
|
|
int qla4xxx_send_passthru0(struct iscsi_task *task);
|
2011-12-02 03:38:41 +00:00
|
|
|
void qla4xxx_free_ddb_index(struct scsi_qla_host *ha);
|
2011-07-25 18:48:53 +00:00
|
|
|
int qla4xxx_get_mgmt_data(struct scsi_qla_host *ha, uint16_t fw_ddb_index,
|
|
|
|
uint16_t stats_size, dma_addr_t stats_dma);
|
|
|
|
void qla4xxx_update_session_conn_param(struct scsi_qla_host *ha,
|
|
|
|
struct ddb_entry *ddb_entry);
|
2011-12-02 03:38:41 +00:00
|
|
|
void qla4xxx_update_session_conn_fwddb_param(struct scsi_qla_host *ha,
|
|
|
|
struct ddb_entry *ddb_entry);
|
2011-07-25 18:48:55 +00:00
|
|
|
int qla4xxx_bootdb_by_index(struct scsi_qla_host *ha,
|
|
|
|
struct dev_db_entry *fw_ddb_entry,
|
|
|
|
dma_addr_t fw_ddb_entry_dma, uint16_t ddb_index);
|
|
|
|
int qla4xxx_get_chap(struct scsi_qla_host *ha, char *username,
|
|
|
|
char *password, uint16_t idx);
|
2011-08-01 10:26:16 +00:00
|
|
|
int qla4xxx_get_nvram(struct scsi_qla_host *ha, dma_addr_t nvram_dma,
|
|
|
|
uint32_t offset, uint32_t size);
|
|
|
|
int qla4xxx_set_nvram(struct scsi_qla_host *ha, dma_addr_t nvram_dma,
|
|
|
|
uint32_t offset, uint32_t size);
|
2011-08-12 09:51:26 +00:00
|
|
|
int qla4xxx_restore_factory_defaults(struct scsi_qla_host *ha,
|
|
|
|
uint32_t region, uint32_t field0,
|
|
|
|
uint32_t field1);
|
2011-12-02 03:38:41 +00:00
|
|
|
int qla4xxx_get_ddb_index(struct scsi_qla_host *ha, uint16_t *ddb_index);
|
|
|
|
void qla4xxx_login_flash_ddb(struct iscsi_cls_session *cls_session);
|
|
|
|
int qla4xxx_unblock_ddb(struct iscsi_cls_session *cls_session);
|
|
|
|
int qla4xxx_unblock_flash_ddb(struct iscsi_cls_session *cls_session);
|
|
|
|
int qla4xxx_flash_ddb_change(struct scsi_qla_host *ha, uint32_t fw_ddb_index,
|
|
|
|
struct ddb_entry *ddb_entry, uint32_t state);
|
|
|
|
int qla4xxx_ddb_change(struct scsi_qla_host *ha, uint32_t fw_ddb_index,
|
|
|
|
struct ddb_entry *ddb_entry, uint32_t state);
|
|
|
|
void qla4xxx_build_ddb_list(struct scsi_qla_host *ha, int is_reset);
|
2012-06-14 10:35:49 +00:00
|
|
|
int qla4xxx_post_aen_work(struct scsi_qla_host *ha,
|
|
|
|
enum iscsi_host_event_code aen_code,
|
2011-08-29 18:13:02 +00:00
|
|
|
uint32_t data_size, uint8_t *data);
|
2012-02-13 13:00:49 +00:00
|
|
|
int qla4xxx_ping_iocb(struct scsi_qla_host *ha, uint32_t options,
|
|
|
|
uint32_t payload_size, uint32_t pid, uint8_t *ipaddr);
|
|
|
|
int qla4xxx_post_ping_evt_work(struct scsi_qla_host *ha,
|
|
|
|
uint32_t status, uint32_t pid,
|
|
|
|
uint32_t data_size, uint8_t *data);
|
2013-03-22 11:41:31 +00:00
|
|
|
int qla4xxx_flashdb_by_index(struct scsi_qla_host *ha,
|
|
|
|
struct dev_db_entry *fw_ddb_entry,
|
|
|
|
dma_addr_t fw_ddb_entry_dma, uint16_t ddb_index);
|
2011-07-25 18:48:55 +00:00
|
|
|
|
2011-07-25 18:48:51 +00:00
|
|
|
/* BSG Functions */
|
|
|
|
int qla4xxx_bsg_request(struct bsg_job *bsg_job);
|
|
|
|
int qla4xxx_process_vendor_specific(struct bsg_job *bsg_job);
|
|
|
|
|
2011-12-02 03:38:41 +00:00
|
|
|
void qla4xxx_arm_relogin_timer(struct ddb_entry *ddb_entry);
|
2012-05-18 08:41:44 +00:00
|
|
|
int qla4xxx_get_minidump_template(struct scsi_qla_host *ha,
|
|
|
|
dma_addr_t phys_addr);
|
|
|
|
int qla4xxx_req_template_size(struct scsi_qla_host *ha);
|
|
|
|
void qla4_8xxx_alloc_sysfs_attr(struct scsi_qla_host *ha);
|
|
|
|
void qla4_8xxx_free_sysfs_attr(struct scsi_qla_host *ha);
|
|
|
|
void qla4xxx_alloc_fw_dump(struct scsi_qla_host *ha);
|
2012-08-22 11:55:04 +00:00
|
|
|
int qla4_82xx_try_start_fw(struct scsi_qla_host *ha);
|
|
|
|
int qla4_8xxx_need_reset(struct scsi_qla_host *ha);
|
|
|
|
int qla4_82xx_md_rd_32(struct scsi_qla_host *ha, uint32_t off, uint32_t *data);
|
|
|
|
int qla4_82xx_md_wr_32(struct scsi_qla_host *ha, uint32_t off, uint32_t data);
|
|
|
|
void qla4_82xx_rom_lock_recovery(struct scsi_qla_host *ha);
|
|
|
|
void qla4_82xx_queue_mbox_cmd(struct scsi_qla_host *ha, uint32_t *mbx_cmd,
|
|
|
|
int incount);
|
|
|
|
void qla4_82xx_process_mbox_intr(struct scsi_qla_host *ha, int outcount);
|
|
|
|
void qla4xxx_queue_mbox_cmd(struct scsi_qla_host *ha, uint32_t *mbx_cmd,
|
|
|
|
int incount);
|
|
|
|
void qla4xxx_process_mbox_intr(struct scsi_qla_host *ha, int outcount);
|
2012-08-22 11:55:08 +00:00
|
|
|
void qla4_8xxx_dump_peg_reg(struct scsi_qla_host *ha);
|
|
|
|
void qla4_83xx_disable_intrs(struct scsi_qla_host *ha);
|
|
|
|
void qla4_83xx_enable_intrs(struct scsi_qla_host *ha);
|
|
|
|
int qla4_83xx_start_firmware(struct scsi_qla_host *ha);
|
|
|
|
irqreturn_t qla4_83xx_intr_handler(int irq, void *dev_id);
|
|
|
|
void qla4_83xx_interrupt_service_routine(struct scsi_qla_host *ha,
|
|
|
|
uint32_t intr_status);
|
|
|
|
int qla4_83xx_isp_reset(struct scsi_qla_host *ha);
|
|
|
|
void qla4_83xx_queue_iocb(struct scsi_qla_host *ha);
|
|
|
|
void qla4_83xx_complete_iocb(struct scsi_qla_host *ha);
|
|
|
|
uint32_t qla4_83xx_rd_reg(struct scsi_qla_host *ha, ulong addr);
|
|
|
|
void qla4_83xx_wr_reg(struct scsi_qla_host *ha, ulong addr, uint32_t val);
|
|
|
|
int qla4_83xx_rd_reg_indirect(struct scsi_qla_host *ha, uint32_t addr,
|
|
|
|
uint32_t *data);
|
|
|
|
int qla4_83xx_wr_reg_indirect(struct scsi_qla_host *ha, uint32_t addr,
|
|
|
|
uint32_t data);
|
|
|
|
int qla4_83xx_drv_lock(struct scsi_qla_host *ha);
|
|
|
|
void qla4_83xx_drv_unlock(struct scsi_qla_host *ha);
|
|
|
|
void qla4_83xx_rom_lock_recovery(struct scsi_qla_host *ha);
|
|
|
|
void qla4_83xx_queue_mbox_cmd(struct scsi_qla_host *ha, uint32_t *mbx_cmd,
|
|
|
|
int incount);
|
|
|
|
void qla4_83xx_process_mbox_intr(struct scsi_qla_host *ha, int outcount);
|
|
|
|
void qla4_83xx_read_reset_template(struct scsi_qla_host *ha);
|
|
|
|
void qla4_83xx_set_idc_dontreset(struct scsi_qla_host *ha);
|
|
|
|
int qla4_83xx_idc_dontreset(struct scsi_qla_host *ha);
|
|
|
|
int qla4_83xx_lockless_flash_read_u32(struct scsi_qla_host *ha,
|
|
|
|
uint32_t flash_addr, uint8_t *p_data,
|
|
|
|
int u32_word_count);
|
|
|
|
void qla4_83xx_clear_idc_dontreset(struct scsi_qla_host *ha);
|
|
|
|
void qla4_83xx_need_reset_handler(struct scsi_qla_host *ha);
|
|
|
|
int qla4_83xx_flash_read_u32(struct scsi_qla_host *ha, uint32_t flash_addr,
|
|
|
|
uint8_t *p_data, int u32_word_count);
|
|
|
|
void qla4_83xx_get_idc_param(struct scsi_qla_host *ha);
|
|
|
|
void qla4_8xxx_set_rst_ready(struct scsi_qla_host *ha);
|
|
|
|
void qla4_8xxx_clear_rst_ready(struct scsi_qla_host *ha);
|
|
|
|
int qla4_8xxx_device_bootstrap(struct scsi_qla_host *ha);
|
|
|
|
void qla4_8xxx_get_minidump(struct scsi_qla_host *ha);
|
2012-11-23 11:58:38 +00:00
|
|
|
int qla4_8xxx_intr_disable(struct scsi_qla_host *ha);
|
|
|
|
int qla4_8xxx_intr_enable(struct scsi_qla_host *ha);
|
2012-09-20 11:35:01 +00:00
|
|
|
int qla4_8xxx_set_param(struct scsi_qla_host *ha, int param);
|
2012-09-20 11:35:05 +00:00
|
|
|
int qla4_8xxx_update_idc_reg(struct scsi_qla_host *ha);
|
2012-09-20 11:35:10 +00:00
|
|
|
int qla4_83xx_post_idc_ack(struct scsi_qla_host *ha);
|
2012-09-20 11:35:12 +00:00
|
|
|
void qla4_83xx_disable_pause(struct scsi_qla_host *ha);
|
2012-11-23 11:58:38 +00:00
|
|
|
void qla4_83xx_enable_mbox_intrs(struct scsi_qla_host *ha);
|
2013-01-21 04:51:02 +00:00
|
|
|
int qla4_83xx_can_perform_reset(struct scsi_qla_host *ha);
|
2013-03-22 11:41:31 +00:00
|
|
|
int qla4xxx_get_default_ddb(struct scsi_qla_host *ha, uint32_t options,
|
|
|
|
dma_addr_t dma_addr);
|
|
|
|
int qla4xxx_get_uni_chap_at_index(struct scsi_qla_host *ha, char *username,
|
|
|
|
char *password, uint16_t chap_index);
|
2013-08-16 11:03:03 +00:00
|
|
|
int qla4xxx_disable_acb(struct scsi_qla_host *ha);
|
|
|
|
int qla4xxx_set_acb(struct scsi_qla_host *ha, uint32_t *mbox_cmd,
|
|
|
|
uint32_t *mbox_sts, dma_addr_t acb_dma);
|
|
|
|
int qla4xxx_get_acb(struct scsi_qla_host *ha, dma_addr_t acb_dma,
|
|
|
|
uint32_t acb_type, uint32_t len);
|
|
|
|
int qla4_84xx_config_acb(struct scsi_qla_host *ha, int acb_config);
|
2014-02-25 03:07:00 +00:00
|
|
|
int qla4_8xxx_ms_mem_write_128b(struct scsi_qla_host *ha,
|
2013-08-23 07:40:18 +00:00
|
|
|
uint64_t addr, uint32_t *data, uint32_t count);
|
2013-10-18 13:01:42 +00:00
|
|
|
uint8_t qla4xxx_set_ipaddr_state(uint8_t fw_ipaddr_state);
|
2013-11-22 10:28:17 +00:00
|
|
|
int qla4_83xx_get_port_config(struct scsi_qla_host *ha, uint32_t *config);
|
|
|
|
int qla4_83xx_set_port_config(struct scsi_qla_host *ha, uint32_t *config);
|
2013-12-16 11:49:31 +00:00
|
|
|
int qla4_8xxx_check_init_adapter_retry(struct scsi_qla_host *ha);
|
2013-12-16 11:49:32 +00:00
|
|
|
int qla4_83xx_is_detached(struct scsi_qla_host *ha);
|
2014-04-10 01:12:25 +00:00
|
|
|
int qla4xxx_sysfs_ddb_export(struct scsi_qla_host *ha);
|
2011-12-02 03:38:41 +00:00
|
|
|
|
2006-10-06 16:54:59 +00:00
|
|
|
extern int ql4xextended_error_logging;
|
2006-09-19 17:28:00 +00:00
|
|
|
extern int ql4xdontresethba;
|
2010-07-28 10:23:44 +00:00
|
|
|
extern int ql4xenablemsix;
|
2012-05-18 08:41:44 +00:00
|
|
|
extern int ql4xmdcapmask;
|
|
|
|
extern int ql4xenablemd;
|
2010-07-28 10:23:44 +00:00
|
|
|
|
2011-05-18 06:17:11 +00:00
|
|
|
extern struct device_attribute *qla4xxx_host_attrs[];
|
2006-11-16 01:38:40 +00:00
|
|
|
#endif /* _QLA4x_GBL_H */
|