aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qla4xxx/ql4_glbl.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/qla4xxx/ql4_glbl.h')
-rw-r--r--drivers/scsi/qla4xxx/ql4_glbl.h106
1 files changed, 82 insertions, 24 deletions
diff --git a/drivers/scsi/qla4xxx/ql4_glbl.h b/drivers/scsi/qla4xxx/ql4_glbl.h
index c4636f6cb3cb..c9cd5d6db982 100644
--- a/drivers/scsi/qla4xxx/ql4_glbl.h
+++ b/drivers/scsi/qla4xxx/ql4_glbl.h
@@ -10,31 +10,32 @@
10 10
11struct iscsi_cls_conn; 11struct iscsi_cls_conn;
12 12
13void qla4xxx_hw_reset(struct scsi_qla_host *ha); 13int qla4xxx_hw_reset(struct scsi_qla_host *ha);
14int ql4xxx_lock_drvr_wait(struct scsi_qla_host *a); 14int ql4xxx_lock_drvr_wait(struct scsi_qla_host *a);
15int qla4xxx_send_tgts(struct scsi_qla_host *ha, char *ip, uint16_t port); 15int qla4xxx_send_tgts(struct scsi_qla_host *ha, char *ip, uint16_t port);
16int qla4xxx_send_command_to_isp(struct scsi_qla_host *ha, struct srb * srb); 16int qla4xxx_send_command_to_isp(struct scsi_qla_host *ha, struct srb *srb);
17int qla4xxx_initialize_adapter(struct scsi_qla_host * ha, 17int qla4xxx_initialize_adapter(struct scsi_qla_host *ha,
18 uint8_t renew_ddb_list); 18 uint8_t renew_ddb_list);
19int qla4xxx_soft_reset(struct scsi_qla_host *ha); 19int qla4xxx_soft_reset(struct scsi_qla_host *ha);
20irqreturn_t qla4xxx_intr_handler(int irq, void *dev_id); 20irqreturn_t qla4xxx_intr_handler(int irq, void *dev_id);
21 21
22void qla4xxx_free_ddb_list(struct scsi_qla_host * ha); 22void qla4xxx_free_ddb_list(struct scsi_qla_host *ha);
23void qla4xxx_process_aen(struct scsi_qla_host * ha, uint8_t process_aen); 23void qla4xxx_free_ddb(struct scsi_qla_host *ha, struct ddb_entry *ddb_entry);
24void qla4xxx_process_aen(struct scsi_qla_host *ha, uint8_t process_aen);
24 25
25int qla4xxx_get_dhcp_ip_address(struct scsi_qla_host * ha); 26int qla4xxx_get_dhcp_ip_address(struct scsi_qla_host *ha);
26int qla4xxx_relogin_device(struct scsi_qla_host * ha, 27int qla4xxx_relogin_device(struct scsi_qla_host *ha,
27 struct ddb_entry * ddb_entry); 28 struct ddb_entry *ddb_entry);
28int qla4xxx_abort_task(struct scsi_qla_host *ha, struct srb *srb); 29int qla4xxx_abort_task(struct scsi_qla_host *ha, struct srb *srb);
29int qla4xxx_reset_lun(struct scsi_qla_host * ha, struct ddb_entry * ddb_entry, 30int qla4xxx_reset_lun(struct scsi_qla_host *ha, struct ddb_entry *ddb_entry,
30 int lun); 31 int lun);
31int qla4xxx_reset_target(struct scsi_qla_host * ha, 32int qla4xxx_reset_target(struct scsi_qla_host *ha,
32 struct ddb_entry * ddb_entry); 33 struct ddb_entry *ddb_entry);
33int qla4xxx_get_flash(struct scsi_qla_host * ha, dma_addr_t dma_addr, 34int qla4xxx_get_flash(struct scsi_qla_host *ha, dma_addr_t dma_addr,
34 uint32_t offset, uint32_t len); 35 uint32_t offset, uint32_t len);
35int qla4xxx_get_firmware_status(struct scsi_qla_host * ha); 36int qla4xxx_get_firmware_status(struct scsi_qla_host *ha);
36int qla4xxx_get_firmware_state(struct scsi_qla_host * ha); 37int qla4xxx_get_firmware_state(struct scsi_qla_host *ha);
37int qla4xxx_initialize_fw_cb(struct scsi_qla_host * ha); 38int qla4xxx_initialize_fw_cb(struct scsi_qla_host *ha);
38 39
39/* FIXME: Goodness! this really wants a small struct to hold the 40/* FIXME: Goodness! this really wants a small struct to hold the
40 * parameters. On x86 the args will get passed on the stack! */ 41 * parameters. On x86 the args will get passed on the stack! */
@@ -54,20 +55,20 @@ int qla4xxx_set_ddb_entry(struct scsi_qla_host * ha, uint16_t fw_ddb_index,
54 55
55void qla4xxx_mark_device_missing(struct scsi_qla_host *ha, 56void qla4xxx_mark_device_missing(struct scsi_qla_host *ha,
56 struct ddb_entry *ddb_entry); 57 struct ddb_entry *ddb_entry);
57u16 rd_nvram_word(struct scsi_qla_host * ha, int offset); 58u16 rd_nvram_word(struct scsi_qla_host *ha, int offset);
58void qla4xxx_get_crash_record(struct scsi_qla_host * ha); 59void qla4xxx_get_crash_record(struct scsi_qla_host *ha);
59struct ddb_entry *qla4xxx_alloc_sess(struct scsi_qla_host *ha); 60struct ddb_entry *qla4xxx_alloc_sess(struct scsi_qla_host *ha);
60int qla4xxx_add_sess(struct ddb_entry *); 61int qla4xxx_add_sess(struct ddb_entry *);
61void qla4xxx_destroy_sess(struct ddb_entry *ddb_entry); 62void qla4xxx_destroy_sess(struct ddb_entry *ddb_entry);
62int qla4xxx_is_nvram_configuration_valid(struct scsi_qla_host * ha); 63int qla4xxx_is_nvram_configuration_valid(struct scsi_qla_host *ha);
63int qla4xxx_get_fw_version(struct scsi_qla_host * ha); 64int qla4xxx_get_fw_version(struct scsi_qla_host * ha);
64void qla4xxx_interrupt_service_routine(struct scsi_qla_host * ha, 65void qla4xxx_interrupt_service_routine(struct scsi_qla_host *ha,
65 uint32_t intr_status); 66 uint32_t intr_status);
66int qla4xxx_init_rings(struct scsi_qla_host * ha); 67int qla4xxx_init_rings(struct scsi_qla_host *ha);
67struct srb * qla4xxx_del_from_active_array(struct scsi_qla_host *ha,
68 uint32_t index);
69void qla4xxx_srb_compl(struct kref *ref); 68void qla4xxx_srb_compl(struct kref *ref);
70int qla4xxx_reinitialize_ddb_list(struct scsi_qla_host * ha); 69struct srb *qla4xxx_del_from_active_array(struct scsi_qla_host *ha,
70 uint32_t index);
71int qla4xxx_reinitialize_ddb_list(struct scsi_qla_host *ha);
71int qla4xxx_process_ddb_changed(struct scsi_qla_host *ha, uint32_t fw_ddb_index, 72int qla4xxx_process_ddb_changed(struct scsi_qla_host *ha, uint32_t fw_ddb_index,
72 uint32_t state, uint32_t conn_error); 73 uint32_t state, uint32_t conn_error);
73void qla4xxx_dump_buffer(void *b, uint32_t size); 74void qla4xxx_dump_buffer(void *b, uint32_t size);
@@ -75,8 +76,65 @@ int qla4xxx_send_marker_iocb(struct scsi_qla_host *ha,
75 struct ddb_entry *ddb_entry, int lun, uint16_t mrkr_mod); 76 struct ddb_entry *ddb_entry, int lun, uint16_t mrkr_mod);
76int qla4_is_relogin_allowed(struct scsi_qla_host *ha, uint32_t conn_err); 77int qla4_is_relogin_allowed(struct scsi_qla_host *ha, uint32_t conn_err);
77 78
79int qla4xxx_mailbox_command(struct scsi_qla_host *ha, uint8_t inCount,
80 uint8_t outCount, uint32_t *mbx_cmd, uint32_t *mbx_sts);
81
82void qla4xxx_queue_iocb(struct scsi_qla_host *ha);
83void qla4xxx_complete_iocb(struct scsi_qla_host *ha);
84int qla4xxx_get_sys_info(struct scsi_qla_host *ha);
85int qla4xxx_iospace_config(struct scsi_qla_host *ha);
86void qla4xxx_pci_config(struct scsi_qla_host *ha);
87int qla4xxx_start_firmware(struct scsi_qla_host *ha);
88irqreturn_t qla4xxx_intr_handler(int irq, void *dev_id);
89uint16_t qla4xxx_rd_shdw_req_q_out(struct scsi_qla_host *ha);
90uint16_t qla4xxx_rd_shdw_rsp_q_in(struct scsi_qla_host *ha);
91int qla4xxx_request_irqs(struct scsi_qla_host *ha);
92void qla4xxx_free_irqs(struct scsi_qla_host *ha);
93void qla4xxx_process_response_queue(struct scsi_qla_host *ha);
94void qla4xxx_wake_dpc(struct scsi_qla_host *ha);
95void qla4xxx_get_conn_event_log(struct scsi_qla_host *ha);
96
97void qla4_8xxx_pci_config(struct scsi_qla_host *);
98int qla4_8xxx_iospace_config(struct scsi_qla_host *ha);
99int qla4_8xxx_load_risc(struct scsi_qla_host *);
100irqreturn_t qla4_8xxx_intr_handler(int irq, void *dev_id);
101void qla4_8xxx_queue_iocb(struct scsi_qla_host *ha);
102void qla4_8xxx_complete_iocb(struct scsi_qla_host *ha);
103
104int qla4_8xxx_crb_win_lock(struct scsi_qla_host *);
105void qla4_8xxx_crb_win_unlock(struct scsi_qla_host *);
106int qla4_8xxx_pci_get_crb_addr_2M(struct scsi_qla_host *, ulong *);
107void qla4_8xxx_wr_32(struct scsi_qla_host *, ulong, u32);
108int qla4_8xxx_rd_32(struct scsi_qla_host *, ulong);
109int qla4_8xxx_pci_mem_read_2M(struct scsi_qla_host *, u64, void *, int);
110int qla4_8xxx_pci_mem_write_2M(struct scsi_qla_host *ha, u64, void *, int);
111int qla4_8xxx_isp_reset(struct scsi_qla_host *ha);
112void qla4_8xxx_interrupt_service_routine(struct scsi_qla_host *ha,
113 uint32_t intr_status);
114uint16_t qla4_8xxx_rd_shdw_req_q_out(struct scsi_qla_host *ha);
115uint16_t qla4_8xxx_rd_shdw_rsp_q_in(struct scsi_qla_host *ha);
116int qla4_8xxx_get_sys_info(struct scsi_qla_host *ha);
117void qla4_8xxx_watchdog(struct scsi_qla_host *ha);
118int qla4_8xxx_stop_firmware(struct scsi_qla_host *ha);
119int qla4_8xxx_get_flash_info(struct scsi_qla_host *ha);
120void qla4_8xxx_enable_intrs(struct scsi_qla_host *ha);
121void qla4_8xxx_disable_intrs(struct scsi_qla_host *ha);
122int qla4_8xxx_enable_msix(struct scsi_qla_host *ha);
123void qla4_8xxx_disable_msix(struct scsi_qla_host *ha);
124irqreturn_t qla4_8xxx_msi_handler(int irq, void *dev_id);
125irqreturn_t qla4_8xxx_default_intr_handler(int irq, void *dev_id);
126irqreturn_t qla4_8xxx_msix_rsp_q(int irq, void *dev_id);
127void qla4xxx_mark_all_devices_missing(struct scsi_qla_host *ha);
128void qla4xxx_dead_adapter_cleanup(struct scsi_qla_host *ha);
129int qla4_8xxx_idc_lock(struct scsi_qla_host *ha);
130void qla4_8xxx_idc_unlock(struct scsi_qla_host *ha);
131int qla4_8xxx_device_state_handler(struct scsi_qla_host *ha);
132void qla4_8xxx_need_qsnt_handler(struct scsi_qla_host *ha);
133void qla4_8xxx_clear_drv_active(struct scsi_qla_host *ha);
134
78extern int ql4xextended_error_logging; 135extern int ql4xextended_error_logging;
79extern int ql4xdiscoverywait; 136extern int ql4xdiscoverywait;
80extern int ql4xdontresethba; 137extern int ql4xdontresethba;
81extern int ql4_mod_unload; 138extern int ql4xenablemsix;
139
82#endif /* _QLA4x_GBL_H */ 140#endif /* _QLA4x_GBL_H */