Andrew Vasquez | fa90c54 | 2005-10-27 11:10:08 -0700 | [diff] [blame] | 1 | /* |
| 2 | * QLogic Fibre Channel HBA Driver |
Armen Baloyan | bd21eaf | 2014-04-11 16:54:24 -0400 | [diff] [blame] | 3 | * Copyright (c) 2003-2014 QLogic Corporation |
Andrew Vasquez | fa90c54 | 2005-10-27 11:10:08 -0700 | [diff] [blame] | 4 | * |
| 5 | * See LICENSE.qla2xxx for copyright and licensing details. |
| 6 | */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 7 | #ifndef __QLA_GBL_H |
| 8 | #define __QLA_GBL_H |
| 9 | |
| 10 | #include <linux/interrupt.h> |
| 11 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 12 | /* |
| 13 | * Global Function Prototypes in qla_init.c source file. |
| 14 | */ |
| 15 | extern int qla2x00_initialize_adapter(scsi_qla_host_t *); |
Andrew Vasquez | abbd887 | 2005-07-06 10:30:05 -0700 | [diff] [blame] | 16 | |
| 17 | extern int qla2100_pci_config(struct scsi_qla_host *); |
| 18 | extern int qla2300_pci_config(struct scsi_qla_host *); |
Andrew Vasquez | 0107109e | 2005-07-06 10:31:37 -0700 | [diff] [blame] | 19 | extern int qla24xx_pci_config(scsi_qla_host_t *); |
Andrew Vasquez | c3a2f0d | 2007-07-19 20:37:34 -0700 | [diff] [blame] | 20 | extern int qla25xx_pci_config(scsi_qla_host_t *); |
Andrew Vasquez | abbd887 | 2005-07-06 10:30:05 -0700 | [diff] [blame] | 21 | extern void qla2x00_reset_chip(struct scsi_qla_host *); |
Andrew Vasquez | 0107109e | 2005-07-06 10:31:37 -0700 | [diff] [blame] | 22 | extern void qla24xx_reset_chip(struct scsi_qla_host *); |
Andrew Vasquez | abbd887 | 2005-07-06 10:30:05 -0700 | [diff] [blame] | 23 | extern int qla2x00_chip_diag(struct scsi_qla_host *); |
Andrew Vasquez | 0107109e | 2005-07-06 10:31:37 -0700 | [diff] [blame] | 24 | extern int qla24xx_chip_diag(struct scsi_qla_host *); |
Andrew Vasquez | abbd887 | 2005-07-06 10:30:05 -0700 | [diff] [blame] | 25 | extern void qla2x00_config_rings(struct scsi_qla_host *); |
Andrew Vasquez | 0107109e | 2005-07-06 10:31:37 -0700 | [diff] [blame] | 26 | extern void qla24xx_config_rings(struct scsi_qla_host *); |
Andrew Vasquez | abbd887 | 2005-07-06 10:30:05 -0700 | [diff] [blame] | 27 | extern void qla2x00_reset_adapter(struct scsi_qla_host *); |
Andrew Vasquez | 0107109e | 2005-07-06 10:31:37 -0700 | [diff] [blame] | 28 | extern void qla24xx_reset_adapter(struct scsi_qla_host *); |
Andrew Vasquez | abbd887 | 2005-07-06 10:30:05 -0700 | [diff] [blame] | 29 | extern int qla2x00_nvram_config(struct scsi_qla_host *); |
Andrew Vasquez | 0107109e | 2005-07-06 10:31:37 -0700 | [diff] [blame] | 30 | extern int qla24xx_nvram_config(struct scsi_qla_host *); |
Andrew Vasquez | 3a03eb7 | 2009-01-05 11:18:11 -0800 | [diff] [blame] | 31 | extern int qla81xx_nvram_config(struct scsi_qla_host *); |
Andrew Vasquez | abbd887 | 2005-07-06 10:30:05 -0700 | [diff] [blame] | 32 | extern void qla2x00_update_fw_options(struct scsi_qla_host *); |
Andrew Vasquez | 0107109e | 2005-07-06 10:31:37 -0700 | [diff] [blame] | 33 | extern void qla24xx_update_fw_options(scsi_qla_host_t *); |
Andrew Vasquez | 3a03eb7 | 2009-01-05 11:18:11 -0800 | [diff] [blame] | 34 | extern void qla81xx_update_fw_options(scsi_qla_host_t *); |
Andrew Vasquez | abbd887 | 2005-07-06 10:30:05 -0700 | [diff] [blame] | 35 | extern int qla2x00_load_risc(struct scsi_qla_host *, uint32_t *); |
Andrew Vasquez | 5433383 | 2005-11-09 15:49:04 -0800 | [diff] [blame] | 36 | extern int qla24xx_load_risc(scsi_qla_host_t *, uint32_t *); |
Andrew Vasquez | eaac30b | 2009-01-22 09:45:32 -0800 | [diff] [blame] | 37 | extern int qla81xx_load_risc(scsi_qla_host_t *, uint32_t *); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 38 | |
Saurav Kashyap | 579d12b | 2010-12-21 16:00:14 -0800 | [diff] [blame] | 39 | extern int qla2x00_perform_loop_resync(scsi_qla_host_t *); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 40 | extern int qla2x00_loop_resync(scsi_qla_host_t *); |
| 41 | |
Joe Carnuccio | 03bcfb5 | 2011-03-30 11:46:27 -0700 | [diff] [blame] | 42 | extern int qla2x00_find_new_loop_id(scsi_qla_host_t *, fc_port_t *); |
| 43 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 44 | extern int qla2x00_fabric_login(scsi_qla_host_t *, fc_port_t *, uint16_t *); |
andrew.vasquez@qlogic.com | 9a52a57 | 2006-03-09 14:27:44 -0800 | [diff] [blame] | 45 | extern int qla2x00_local_device_login(scsi_qla_host_t *, fc_port_t *); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 46 | |
Himanshu Madhani | 6eb5471 | 2015-12-17 14:57:00 -0500 | [diff] [blame] | 47 | extern int qla24xx_els_dcmd_iocb(scsi_qla_host_t *, int, port_id_t); |
| 48 | |
andrew.vasquez@qlogic.com | d97994d | 2006-01-20 14:53:13 -0800 | [diff] [blame] | 49 | extern void qla2x00_update_fcports(scsi_qla_host_t *); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 50 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 51 | extern int qla2x00_abort_isp(scsi_qla_host_t *); |
Giridhar Malavali | a908301 | 2010-04-12 17:59:55 -0700 | [diff] [blame] | 52 | extern void qla2x00_abort_isp_cleanup(scsi_qla_host_t *); |
Chad Dupuis | 8fcd6b8 | 2012-08-22 14:21:06 -0400 | [diff] [blame] | 53 | extern void qla2x00_quiesce_io(scsi_qla_host_t *); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 54 | |
andrew.vasquez@qlogic.com | 052c40c | 2006-01-20 14:53:19 -0800 | [diff] [blame] | 55 | extern void qla2x00_update_fcport(scsi_qla_host_t *, fc_port_t *); |
| 8482e118 | 2005-04-17 15:04:54 -0500 | [diff] [blame] | 56 | |
Andrew Vasquez | a7a167b | 2006-06-23 16:10:29 -0700 | [diff] [blame] | 57 | extern void qla2x00_alloc_fw_dump(scsi_qla_host_t *); |
Andrew Vasquez | 18c6c12 | 2006-10-13 09:33:38 -0700 | [diff] [blame] | 58 | extern void qla2x00_try_to_stop_firmware(scsi_qla_host_t *); |
Andrew Vasquez | a7a167b | 2006-06-23 16:10:29 -0700 | [diff] [blame] | 59 | |
Joe Carnuccio | fe52f6e | 2013-02-08 01:58:03 -0500 | [diff] [blame] | 60 | extern int qla2x00_get_thermal_temp(scsi_qla_host_t *, uint16_t *); |
Andrew Vasquez | 794a569 | 2010-12-21 16:00:21 -0800 | [diff] [blame] | 61 | |
Harihara Kadayam | 4d4df19 | 2008-04-03 13:13:26 -0700 | [diff] [blame] | 62 | extern void qla84xx_put_chip(struct scsi_qla_host *); |
| 63 | |
Andrew Vasquez | ac280b6 | 2009-08-20 11:06:05 -0700 | [diff] [blame] | 64 | extern int qla2x00_async_login(struct scsi_qla_host *, fc_port_t *, |
| 65 | uint16_t *); |
| 66 | extern int qla2x00_async_logout(struct scsi_qla_host *, fc_port_t *); |
Andrew Vasquez | 5ff1d58 | 2010-05-04 15:01:26 -0700 | [diff] [blame] | 67 | extern int qla2x00_async_adisc(struct scsi_qla_host *, fc_port_t *, |
| 68 | uint16_t *); |
Madhuranath Iyengar | 3822263 | 2010-05-04 15:01:29 -0700 | [diff] [blame] | 69 | extern int qla2x00_async_tm_cmd(fc_port_t *, uint32_t, uint32_t, uint32_t); |
Madhuranath Iyengar | 4916392 | 2010-05-04 15:01:28 -0700 | [diff] [blame] | 70 | extern void qla2x00_async_login_done(struct scsi_qla_host *, fc_port_t *, |
Andrew Vasquez | ac280b6 | 2009-08-20 11:06:05 -0700 | [diff] [blame] | 71 | uint16_t *); |
Madhuranath Iyengar | 4916392 | 2010-05-04 15:01:28 -0700 | [diff] [blame] | 72 | extern void qla2x00_async_logout_done(struct scsi_qla_host *, fc_port_t *, |
Andrew Vasquez | ac280b6 | 2009-08-20 11:06:05 -0700 | [diff] [blame] | 73 | uint16_t *); |
Madhuranath Iyengar | 4916392 | 2010-05-04 15:01:28 -0700 | [diff] [blame] | 74 | extern void qla2x00_async_adisc_done(struct scsi_qla_host *, fc_port_t *, |
Andrew Vasquez | 5ff1d58 | 2010-05-04 15:01:26 -0700 | [diff] [blame] | 75 | uint16_t *); |
Quinn Tran | 726b854 | 2017-01-19 22:28:00 -0800 | [diff] [blame] | 76 | struct qla_work_evt *qla2x00_alloc_work(struct scsi_qla_host *, |
| 77 | enum qla_work_type); |
| 78 | extern int qla24xx_async_gnl(struct scsi_qla_host *, fc_port_t *); |
| 79 | int qla2x00_post_work(struct scsi_qla_host *vha, struct qla_work_evt *e); |
Giridhar Malavali | d94d10e | 2010-07-23 15:28:23 +0500 | [diff] [blame] | 80 | extern void *qla2x00_alloc_iocbs(struct scsi_qla_host *, srb_t *); |
Arun Easi | b6a029e | 2014-09-25 06:14:52 -0400 | [diff] [blame] | 81 | extern void *qla2x00_alloc_iocbs_ready(struct scsi_qla_host *, srb_t *); |
Madhuranath Iyengar | 21090cb | 2010-12-21 16:00:18 -0800 | [diff] [blame] | 82 | extern int qla24xx_update_fcport_fcp_prio(scsi_qla_host_t *, fc_port_t *); |
Andrew Vasquez | ac280b6 | 2009-08-20 11:06:05 -0700 | [diff] [blame] | 83 | |
Giridhar Malavali | 9a069e1 | 2010-01-12 13:02:47 -0800 | [diff] [blame] | 84 | extern fc_port_t * |
| 85 | qla2x00_alloc_fcport(scsi_qla_host_t *, gfp_t ); |
Santosh Vernekar | 7d613ac | 2012-08-22 14:21:03 -0400 | [diff] [blame] | 86 | |
| 87 | extern int __qla83xx_set_idc_control(scsi_qla_host_t *, uint32_t); |
| 88 | extern int __qla83xx_get_idc_control(scsi_qla_host_t *, uint32_t *); |
| 89 | extern void qla83xx_idc_audit(scsi_qla_host_t *, int); |
| 90 | extern int qla83xx_nic_core_reset(scsi_qla_host_t *); |
| 91 | extern void qla83xx_reset_ownership(scsi_qla_host_t *); |
Saurav Kashyap | 8117877 | 2012-08-22 14:21:04 -0400 | [diff] [blame] | 92 | extern int qla2xxx_mctp_dump(scsi_qla_host_t *); |
Santosh Vernekar | 7d613ac | 2012-08-22 14:21:03 -0400 | [diff] [blame] | 93 | |
Chad Dupuis | 8d93f55 | 2013-01-30 03:34:37 -0500 | [diff] [blame] | 94 | extern int |
| 95 | qla2x00_alloc_outstanding_cmds(struct qla_hw_data *, struct req_que *); |
Giridhar Malavali | 8ae6d9c | 2013-03-28 08:21:23 -0400 | [diff] [blame] | 96 | extern int qla2x00_init_rings(scsi_qla_host_t *); |
Sawan Chandak | 4243c11 | 2016-01-27 12:03:31 -0500 | [diff] [blame] | 97 | extern uint8_t qla27xx_find_valid_image(struct scsi_qla_host *); |
Michael Hernandez | d745952 | 2016-12-12 14:40:07 -0800 | [diff] [blame] | 98 | extern struct qla_qpair *qla2xxx_create_qpair(struct scsi_qla_host *, |
| 99 | int, int); |
| 100 | extern int qla2xxx_delete_qpair(struct scsi_qla_host *, struct qla_qpair *); |
Quinn Tran | 726b854 | 2017-01-19 22:28:00 -0800 | [diff] [blame] | 101 | void qla2x00_fcport_event_handler(scsi_qla_host_t *, struct event_arg *); |
| 102 | int qla24xx_async_gpdb(struct scsi_qla_host *, fc_port_t *, u8); |
| 103 | int qla24xx_async_notify_ack(scsi_qla_host_t *, fc_port_t *, |
| 104 | struct imm_ntfy_from_isp *, int); |
| 105 | int qla24xx_post_newsess_work(struct scsi_qla_host *, port_id_t *, u8 *, |
| 106 | void *); |
| 107 | int qla24xx_fcport_handle_login(struct scsi_qla_host *, fc_port_t *); |
Chad Dupuis | 8d93f55 | 2013-01-30 03:34:37 -0500 | [diff] [blame] | 108 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 109 | /* |
| 110 | * Global Data in qla_os.c source file. |
| 111 | */ |
| 112 | extern char qla2x00_version_str[]; |
| 113 | |
Michael Hernandez | d745952 | 2016-12-12 14:40:07 -0800 | [diff] [blame] | 114 | extern struct kmem_cache *srb_cachep; |
| 115 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 116 | extern int ql2xlogintimeout; |
| 117 | extern int qlport_down_retry; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 118 | extern int ql2xplogiabsentdevice; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 119 | extern int ql2xloginretrycount; |
Andrew Vasquez | cca5335 | 2005-08-26 19:08:30 -0700 | [diff] [blame] | 120 | extern int ql2xfdmienable; |
Andrew Vasquez | a7a167b | 2006-06-23 16:10:29 -0700 | [diff] [blame] | 121 | extern int ql2xallocfwdump; |
Andrew Vasquez | 11010fe | 2006-10-06 09:54:59 -0700 | [diff] [blame] | 122 | extern int ql2xextended_error_logging; |
Andrew Vasquez | e5896bd | 2008-07-10 16:55:52 -0700 | [diff] [blame] | 123 | extern int ql2xiidmaenable; |
Michael Hernandez | d745952 | 2016-12-12 14:40:07 -0800 | [diff] [blame] | 124 | extern int ql2xmqsupport; |
Andrew Vasquez | e337d90 | 2009-04-06 22:33:49 -0700 | [diff] [blame] | 125 | extern int ql2xfwloadbin; |
Andrew Vasquez | ae97c91 | 2010-02-18 10:07:28 -0800 | [diff] [blame] | 126 | extern int ql2xetsenable; |
Giridhar Malavali | a908301 | 2010-04-12 17:59:55 -0700 | [diff] [blame] | 127 | extern int ql2xshiftctondsd; |
| 128 | extern int ql2xdbwr; |
Madhuranath Iyengar | 3822263 | 2010-05-04 15:01:29 -0700 | [diff] [blame] | 129 | extern int ql2xasynctmfenable; |
Chad Dupuis | 4da26e1 | 2010-10-15 11:27:40 -0700 | [diff] [blame] | 130 | extern int ql2xgffidenable; |
Arun Easi | bad7500 | 2010-05-04 15:01:30 -0700 | [diff] [blame] | 131 | extern int ql2xenabledif; |
| 132 | extern int ql2xenablehba_err_chk; |
Giridhar Malavali | f4c496c | 2010-05-04 15:01:33 -0700 | [diff] [blame] | 133 | extern int ql2xtargetreset; |
Giridhar Malavali | ed0de87 | 2011-03-30 11:46:29 -0700 | [diff] [blame] | 134 | extern int ql2xdontresethba; |
Hannes Reinecke | 1abf635 | 2014-06-25 15:27:38 +0200 | [diff] [blame] | 135 | extern uint64_t ql2xmaxlun; |
Giridhar Malavali | 08de284 | 2011-08-16 11:31:44 -0700 | [diff] [blame] | 136 | extern int ql2xmdcapmask; |
| 137 | extern int ql2xmdenable; |
Himanshu Madhani | b0d6cab | 2015-12-17 14:56:56 -0500 | [diff] [blame] | 138 | extern int ql2xexlogins; |
Himanshu Madhani | 2f56a7f | 2015-12-17 14:56:57 -0500 | [diff] [blame] | 139 | extern int ql2xexchoffld; |
Quinn Tran | 99e1b68 | 2017-06-02 09:12:03 -0700 | [diff] [blame^] | 140 | extern int ql2xiniexchg; |
Himanshu Madhani | f198caf | 2016-01-27 12:03:30 -0500 | [diff] [blame] | 141 | extern int ql2xfwholdabts; |
Quinn Tran | 41dc529 | 2017-01-19 22:28:03 -0800 | [diff] [blame] | 142 | extern int ql2xmvasynctoatio; |
Seokmann Ju | 2c3dfe3 | 2007-07-05 13:16:51 -0700 | [diff] [blame] | 143 | |
Andrew Vasquez | a4722cf | 2008-01-17 09:02:12 -0800 | [diff] [blame] | 144 | extern int qla2x00_loop_reset(scsi_qla_host_t *); |
Andrew Vasquez | df4bf0b | 2008-01-31 12:33:46 -0800 | [diff] [blame] | 145 | extern void qla2x00_abort_all_cmds(scsi_qla_host_t *, int); |
Andrew Vasquez | 0971de7 | 2008-04-03 13:13:18 -0700 | [diff] [blame] | 146 | extern int qla2x00_post_aen_work(struct scsi_qla_host *, enum |
| 147 | fc_host_event_code, u32); |
Andrew Vasquez | 8a65957 | 2009-02-08 20:50:12 -0800 | [diff] [blame] | 148 | extern int qla2x00_post_idc_ack_work(struct scsi_qla_host *, uint16_t *); |
Andrew Vasquez | ac280b6 | 2009-08-20 11:06:05 -0700 | [diff] [blame] | 149 | extern int qla2x00_post_async_login_work(struct scsi_qla_host *, fc_port_t *, |
| 150 | uint16_t *); |
Andrew Vasquez | ac280b6 | 2009-08-20 11:06:05 -0700 | [diff] [blame] | 151 | extern int qla2x00_post_async_logout_work(struct scsi_qla_host *, fc_port_t *, |
| 152 | uint16_t *); |
| 153 | extern int qla2x00_post_async_logout_done_work(struct scsi_qla_host *, |
| 154 | fc_port_t *, uint16_t *); |
Andrew Vasquez | 5ff1d58 | 2010-05-04 15:01:26 -0700 | [diff] [blame] | 155 | extern int qla2x00_post_async_adisc_work(struct scsi_qla_host *, fc_port_t *, |
| 156 | uint16_t *); |
| 157 | extern int qla2x00_post_async_adisc_done_work(struct scsi_qla_host *, |
| 158 | fc_port_t *, uint16_t *); |
Himanshu Madhani | b0d6cab | 2015-12-17 14:56:56 -0500 | [diff] [blame] | 159 | extern int qla2x00_set_exlogins_buffer(struct scsi_qla_host *); |
| 160 | extern void qla2x00_free_exlogin_buffer(struct qla_hw_data *); |
Himanshu Madhani | 2f56a7f | 2015-12-17 14:56:57 -0500 | [diff] [blame] | 161 | extern int qla2x00_set_exchoffld_buffer(struct scsi_qla_host *); |
| 162 | extern void qla2x00_free_exchoffld_buffer(struct qla_hw_data *); |
Andrew Vasquez | ac280b6 | 2009-08-20 11:06:05 -0700 | [diff] [blame] | 163 | |
Lalit Chandivade | 6e181be | 2009-03-26 08:49:17 -0700 | [diff] [blame] | 164 | extern int qla81xx_restart_mpi_firmware(scsi_qla_host_t *); |
Andrew Vasquez | a4722cf | 2008-01-17 09:02:12 -0800 | [diff] [blame] | 165 | |
Anirban Chakraborty | 7b867cf | 2008-11-06 10:40:19 -0800 | [diff] [blame] | 166 | extern struct scsi_qla_host *qla2x00_create_host(struct scsi_host_template *, |
| 167 | struct qla_hw_data *); |
| 168 | extern void qla2x00_free_host(struct scsi_qla_host *); |
| 169 | extern void qla2x00_relogin(struct scsi_qla_host *); |
Andrew Vasquez | ac280b6 | 2009-08-20 11:06:05 -0700 | [diff] [blame] | 170 | extern void qla2x00_do_work(struct scsi_qla_host *); |
Chad Dupuis | 8867048 | 2010-07-23 15:28:30 +0500 | [diff] [blame] | 171 | extern void qla2x00_free_fcports(struct scsi_qla_host *); |
Andrew Vasquez | ac280b6 | 2009-08-20 11:06:05 -0700 | [diff] [blame] | 172 | |
Santosh Vernekar | 7d613ac | 2012-08-22 14:21:03 -0400 | [diff] [blame] | 173 | extern void qla83xx_schedule_work(scsi_qla_host_t *, int); |
| 174 | extern void qla83xx_service_idc_aen(struct work_struct *); |
| 175 | extern void qla83xx_nic_core_unrecoverable_work(struct work_struct *); |
| 176 | extern void qla83xx_idc_state_handler_work(struct work_struct *); |
| 177 | extern void qla83xx_nic_core_reset_work(struct work_struct *); |
| 178 | |
| 179 | extern void qla83xx_idc_lock(scsi_qla_host_t *, uint16_t); |
| 180 | extern void qla83xx_idc_unlock(scsi_qla_host_t *, uint16_t); |
| 181 | extern int qla83xx_idc_state_handler(scsi_qla_host_t *); |
| 182 | extern int qla83xx_set_drv_presence(scsi_qla_host_t *vha); |
| 183 | extern int __qla83xx_set_drv_presence(scsi_qla_host_t *vha); |
| 184 | extern int qla83xx_clear_drv_presence(scsi_qla_host_t *vha); |
| 185 | extern int __qla83xx_clear_drv_presence(scsi_qla_host_t *vha); |
Giridhar Malavali | 8ae6d9c | 2013-03-28 08:21:23 -0400 | [diff] [blame] | 186 | extern int qla2x00_post_uevent_work(struct scsi_qla_host *, u32); |
Santosh Vernekar | 7d613ac | 2012-08-22 14:21:03 -0400 | [diff] [blame] | 187 | |
Chad Dupuis | f3ddac1 | 2013-10-30 03:38:16 -0400 | [diff] [blame] | 188 | extern int qla2x00_post_uevent_work(struct scsi_qla_host *, u32); |
| 189 | extern void qla2x00_disable_board_on_pci_error(struct work_struct *); |
Joe Carnuccio | 25ff6af | 2017-01-19 22:28:04 -0800 | [diff] [blame] | 190 | extern void qla2x00_sp_compl(void *, int); |
| 191 | extern void qla2xxx_qpair_sp_free_dma(void *); |
| 192 | extern void qla2xxx_qpair_sp_compl(void *, int); |
Quinn Tran | 726b854 | 2017-01-19 22:28:00 -0800 | [diff] [blame] | 193 | extern int qla24xx_post_upd_fcport_work(struct scsi_qla_host *, fc_port_t *); |
| 194 | void qla2x00_handle_login_done_event(struct scsi_qla_host *, fc_port_t *, |
| 195 | uint16_t *); |
| 196 | int qla24xx_post_gnl_work(struct scsi_qla_host *, fc_port_t *); |
Quinn Tran | 15f30a5 | 2017-03-15 09:48:52 -0700 | [diff] [blame] | 197 | int qla24xx_async_abort_cmd(srb_t *); |
Chad Dupuis | f3ddac1 | 2013-10-30 03:38:16 -0400 | [diff] [blame] | 198 | |
Seokmann Ju | 2c3dfe3 | 2007-07-05 13:16:51 -0700 | [diff] [blame] | 199 | /* |
| 200 | * Global Functions in qla_mid.c source file. |
| 201 | */ |
Giridhar Malavali | a5326f8 | 2009-03-24 09:07:56 -0700 | [diff] [blame] | 202 | extern struct scsi_host_template qla2xxx_driver_template; |
Seokmann Ju | 2c3dfe3 | 2007-07-05 13:16:51 -0700 | [diff] [blame] | 203 | extern struct scsi_transport_template *qla2xxx_transport_vport_template; |
Seokmann Ju | 2c3dfe3 | 2007-07-05 13:16:51 -0700 | [diff] [blame] | 204 | extern void qla2x00_timer(scsi_qla_host_t *); |
| 205 | extern void qla2x00_start_timer(scsi_qla_host_t *, void *, unsigned long); |
Seokmann Ju | 2c3dfe3 | 2007-07-05 13:16:51 -0700 | [diff] [blame] | 206 | extern void qla24xx_deallocate_vp_id(scsi_qla_host_t *); |
| 207 | extern int qla24xx_disable_vp (scsi_qla_host_t *); |
| 208 | extern int qla24xx_enable_vp (scsi_qla_host_t *); |
Seokmann Ju | 2c3dfe3 | 2007-07-05 13:16:51 -0700 | [diff] [blame] | 209 | extern int qla24xx_control_vp(scsi_qla_host_t *, int ); |
| 210 | extern int qla24xx_modify_vp_config(scsi_qla_host_t *); |
| 211 | extern int qla2x00_send_change_request(scsi_qla_host_t *, uint16_t, uint16_t); |
| 212 | extern void qla2x00_vp_stop_timer(scsi_qla_host_t *); |
| 213 | extern int qla24xx_configure_vhba (scsi_qla_host_t *); |
Seokmann Ju | 2c3dfe3 | 2007-07-05 13:16:51 -0700 | [diff] [blame] | 214 | extern void qla24xx_report_id_acquisition(scsi_qla_host_t *, |
| 215 | struct vp_rpt_id_entry_24xx *); |
Seokmann Ju | 2c3dfe3 | 2007-07-05 13:16:51 -0700 | [diff] [blame] | 216 | extern void qla2x00_do_dpc_all_vps(scsi_qla_host_t *); |
| 217 | extern int qla24xx_vport_create_req_sanity_check(struct fc_vport *); |
| 218 | extern scsi_qla_host_t * qla24xx_create_vhost(struct fc_vport *); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 219 | |
Joe Carnuccio | 25ff6af | 2017-01-19 22:28:04 -0800 | [diff] [blame] | 220 | extern void qla2x00_sp_free_dma(void *); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 221 | extern char *qla2x00_get_fw_version_str(struct scsi_qla_host *, char *); |
| 222 | |
andrew.vasquez@qlogic.com | d97994d | 2006-01-20 14:53:13 -0800 | [diff] [blame] | 223 | extern void qla2x00_mark_device_lost(scsi_qla_host_t *, fc_port_t *, int, int); |
| 224 | extern void qla2x00_mark_all_devices_lost(scsi_qla_host_t *, int); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 225 | |
Andrew Vasquez | 5433383 | 2005-11-09 15:49:04 -0800 | [diff] [blame] | 226 | extern struct fw_blob *qla2x00_request_firmware(scsi_qla_host_t *); |
| 227 | |
andrew.vasquez@qlogic.com | 854165f | 2006-01-31 16:05:17 -0800 | [diff] [blame] | 228 | extern int qla2x00_wait_for_hba_online(scsi_qla_host_t *); |
Lalit Chandivade | 2533cf6 | 2009-03-24 09:08:07 -0700 | [diff] [blame] | 229 | extern int qla2x00_wait_for_chip_reset(scsi_qla_host_t *); |
Giridhar Malavali | a908301 | 2010-04-12 17:59:55 -0700 | [diff] [blame] | 230 | extern int qla2x00_wait_for_fcoe_ctx_reset(scsi_qla_host_t *); |
andrew.vasquez@qlogic.com | 854165f | 2006-01-31 16:05:17 -0800 | [diff] [blame] | 231 | |
Anirban Chakraborty | 7b867cf | 2008-11-06 10:40:19 -0800 | [diff] [blame] | 232 | extern void qla2xxx_wake_dpc(struct scsi_qla_host *); |
Anirban Chakraborty | 73208df | 2008-12-09 16:45:39 -0800 | [diff] [blame] | 233 | extern void qla2x00_alert_all_vps(struct rsp_que *, uint16_t *); |
| 234 | extern void qla2x00_async_event(scsi_qla_host_t *, struct rsp_que *, |
| 235 | uint16_t *); |
Anirban Chakraborty | 7b867cf | 2008-11-06 10:40:19 -0800 | [diff] [blame] | 236 | extern int qla2x00_vp_abort_isp(scsi_qla_host_t *); |
Christoph Hellwig | 39a1124 | 2006-02-14 18:46:22 +0100 | [diff] [blame] | 237 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 238 | /* |
| 239 | * Global Function Prototypes in qla_iocb.c source file. |
| 240 | */ |
Nicholas Bellinger | 2d70c10 | 2012-05-15 14:34:28 -0400 | [diff] [blame] | 241 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 242 | extern uint16_t qla2x00_calc_iocbs_32(uint16_t); |
| 243 | extern uint16_t qla2x00_calc_iocbs_64(uint16_t); |
| 244 | extern void qla2x00_build_scsi_iocbs_32(srb_t *, cmd_entry_t *, uint16_t); |
| 245 | extern void qla2x00_build_scsi_iocbs_64(srb_t *, cmd_entry_t *, uint16_t); |
Michael Hernandez | d745952 | 2016-12-12 14:40:07 -0800 | [diff] [blame] | 246 | extern void qla24xx_build_scsi_iocbs(srb_t *, struct cmd_type_7 *, |
| 247 | uint16_t, struct req_que *); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 248 | extern int qla2x00_start_scsi(srb_t *sp); |
Andrew Vasquez | 2b6c0ce | 2005-07-06 10:31:17 -0700 | [diff] [blame] | 249 | extern int qla24xx_start_scsi(srb_t *sp); |
Anirban Chakraborty | 73208df | 2008-12-09 16:45:39 -0800 | [diff] [blame] | 250 | int qla2x00_marker(struct scsi_qla_host *, struct req_que *, struct rsp_que *, |
Hannes Reinecke | 9cb78c1 | 2014-06-25 15:27:36 +0200 | [diff] [blame] | 251 | uint16_t, uint64_t, uint8_t); |
Andrew Vasquez | ac280b6 | 2009-08-20 11:06:05 -0700 | [diff] [blame] | 252 | extern int qla2x00_start_sp(srb_t *); |
Arun Easi | bad7500 | 2010-05-04 15:01:30 -0700 | [diff] [blame] | 253 | extern int qla24xx_dif_start_scsi(srb_t *); |
Saurav Kashyap | a9b6f72 | 2012-08-22 14:21:01 -0400 | [diff] [blame] | 254 | extern int qla2x00_start_bidir(srb_t *, struct scsi_qla_host *, uint32_t); |
Michael Hernandez | d745952 | 2016-12-12 14:40:07 -0800 | [diff] [blame] | 255 | extern int qla2xxx_dif_start_scsi_mq(srb_t *); |
Saurav Kashyap | a9b6f72 | 2012-08-22 14:21:01 -0400 | [diff] [blame] | 256 | extern unsigned long qla2x00_get_async_timeout(struct scsi_qla_host *); |
Giridhar Malavali | a908301 | 2010-04-12 17:59:55 -0700 | [diff] [blame] | 257 | |
Nicholas Bellinger | 2d70c10 | 2012-05-15 14:34:28 -0400 | [diff] [blame] | 258 | extern void *qla2x00_alloc_iocbs(scsi_qla_host_t *, srb_t *); |
| 259 | extern int qla2x00_issue_marker(scsi_qla_host_t *, int); |
Quinn Tran | f83adb6 | 2014-04-11 16:54:43 -0400 | [diff] [blame] | 260 | extern int qla24xx_walk_and_build_sglist_no_difb(struct qla_hw_data *, srb_t *, |
Quinn Tran | be25152 | 2017-03-15 09:48:49 -0700 | [diff] [blame] | 261 | uint32_t *, uint16_t, struct qla_tc_param *); |
Quinn Tran | f83adb6 | 2014-04-11 16:54:43 -0400 | [diff] [blame] | 262 | extern int qla24xx_walk_and_build_sglist(struct qla_hw_data *, srb_t *, |
Quinn Tran | be25152 | 2017-03-15 09:48:49 -0700 | [diff] [blame] | 263 | uint32_t *, uint16_t, struct qla_tc_param *); |
Quinn Tran | f83adb6 | 2014-04-11 16:54:43 -0400 | [diff] [blame] | 264 | extern int qla24xx_walk_and_build_prot_sglist(struct qla_hw_data *, srb_t *, |
Quinn Tran | be25152 | 2017-03-15 09:48:49 -0700 | [diff] [blame] | 265 | uint32_t *, uint16_t, struct qla_tc_param *); |
Michael Hernandez | d745952 | 2016-12-12 14:40:07 -0800 | [diff] [blame] | 266 | extern int qla24xx_get_one_block_sg(uint32_t, struct qla2_sgx *, uint32_t *); |
| 267 | extern int qla24xx_configure_prot_mode(srb_t *, uint16_t *); |
| 268 | extern int qla24xx_build_scsi_crc_2_iocbs(srb_t *, |
| 269 | struct cmd_type_crc_2 *, uint16_t, uint16_t, uint16_t); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 270 | |
| 271 | /* |
| 272 | * Global Function Prototypes in qla_mbx.c source file. |
| 273 | */ |
| 274 | extern int |
andrew.vasquez@qlogic.com | 590f98e | 2006-01-13 17:05:37 -0800 | [diff] [blame] | 275 | qla2x00_load_ram(scsi_qla_host_t *, dma_addr_t, uint32_t, uint32_t); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 276 | |
| 277 | extern int |
Andrew Vasquez | 338c916 | 2007-09-20 14:07:33 -0700 | [diff] [blame] | 278 | qla2x00_dump_ram(scsi_qla_host_t *, dma_addr_t, uint32_t, uint32_t); |
| 279 | |
| 280 | extern int |
Andrew Vasquez | 1c7c635 | 2005-07-06 10:30:57 -0700 | [diff] [blame] | 281 | qla2x00_execute_fw(scsi_qla_host_t *, uint32_t); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 282 | |
Andrew Vasquez | ca9e9c3 | 2009-06-03 09:55:20 -0700 | [diff] [blame] | 283 | extern int |
Giridhar Malavali | 6246b8a | 2012-02-09 11:15:34 -0800 | [diff] [blame] | 284 | qla2x00_get_fw_version(scsi_qla_host_t *); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 285 | |
| 286 | extern int |
| 287 | qla2x00_get_fw_options(scsi_qla_host_t *, uint16_t *); |
| 288 | |
| 289 | extern int |
| 290 | qla2x00_set_fw_options(scsi_qla_host_t *, uint16_t *); |
| 291 | |
| 292 | extern int |
| 293 | qla2x00_mbx_reg_test(scsi_qla_host_t *); |
| 294 | |
| 295 | extern int |
Andrew Vasquez | 1c7c635 | 2005-07-06 10:30:57 -0700 | [diff] [blame] | 296 | qla2x00_verify_checksum(scsi_qla_host_t *, uint32_t); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 297 | |
| 298 | extern int |
| 299 | qla2x00_issue_iocb(scsi_qla_host_t *, void *, dma_addr_t, size_t); |
| 300 | |
| 301 | extern int |
Anirban Chakraborty | 2afa19a | 2009-04-06 22:33:40 -0700 | [diff] [blame] | 302 | qla2x00_abort_command(srb_t *); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 303 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 304 | extern int |
Hannes Reinecke | 9cb78c1 | 2014-06-25 15:27:36 +0200 | [diff] [blame] | 305 | qla2x00_abort_target(struct fc_port *, uint64_t, int); |
Andrew Vasquez | 523ec77 | 2008-04-03 13:13:24 -0700 | [diff] [blame] | 306 | |
| 307 | extern int |
Hannes Reinecke | 9cb78c1 | 2014-06-25 15:27:36 +0200 | [diff] [blame] | 308 | qla2x00_lun_reset(struct fc_port *, uint64_t, int); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 309 | |
| 310 | extern int |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 311 | qla2x00_get_adapter_id(scsi_qla_host_t *, uint16_t *, uint8_t *, uint8_t *, |
Seokmann Ju | 2c3dfe3 | 2007-07-05 13:16:51 -0700 | [diff] [blame] | 312 | uint8_t *, uint16_t *, uint16_t *); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 313 | |
| 314 | extern int |
| 315 | qla2x00_get_retry_cnt(scsi_qla_host_t *, uint8_t *, uint8_t *, uint16_t *); |
| 316 | |
| 317 | extern int |
| 318 | qla2x00_init_firmware(scsi_qla_host_t *, uint16_t); |
| 319 | |
| 320 | extern int |
| 321 | qla2x00_get_port_database(scsi_qla_host_t *, fc_port_t *, uint8_t); |
| 322 | |
| 323 | extern int |
| 324 | qla2x00_get_firmware_state(scsi_qla_host_t *, uint16_t *); |
| 325 | |
| 326 | extern int |
| 327 | qla2x00_get_port_name(scsi_qla_host_t *, uint16_t, uint8_t *, uint8_t); |
| 328 | |
| 329 | extern int |
Joe Carnuccio | 61e1b26 | 2013-02-08 01:57:48 -0500 | [diff] [blame] | 330 | qla24xx_link_initialize(scsi_qla_host_t *); |
| 331 | |
| 332 | extern int |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 333 | qla2x00_lip_reset(scsi_qla_host_t *); |
| 334 | |
| 335 | extern int |
| 336 | qla2x00_send_sns(scsi_qla_host_t *, dma_addr_t, uint16_t, size_t); |
| 337 | |
| 338 | extern int |
| 339 | qla2x00_login_fabric(scsi_qla_host_t *, uint16_t, uint8_t, uint8_t, uint8_t, |
| 340 | uint16_t *, uint8_t); |
Andrew Vasquez | 1c7c635 | 2005-07-06 10:30:57 -0700 | [diff] [blame] | 341 | extern int |
| 342 | qla24xx_login_fabric(scsi_qla_host_t *, uint16_t, uint8_t, uint8_t, uint8_t, |
| 343 | uint16_t *, uint8_t); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 344 | |
| 345 | extern int |
andrew.vasquez@qlogic.com | 9a52a57 | 2006-03-09 14:27:44 -0800 | [diff] [blame] | 346 | qla2x00_login_local_device(scsi_qla_host_t *, fc_port_t *, uint16_t *, |
| 347 | uint8_t); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 348 | |
| 349 | extern int |
Andrew Vasquez | 1c7c635 | 2005-07-06 10:30:57 -0700 | [diff] [blame] | 350 | qla2x00_fabric_logout(scsi_qla_host_t *, uint16_t, uint8_t, uint8_t, uint8_t); |
| 351 | |
| 352 | extern int |
| 353 | qla24xx_fabric_logout(scsi_qla_host_t *, uint16_t, uint8_t, uint8_t, uint8_t); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 354 | |
| 355 | extern int |
| 356 | qla2x00_full_login_lip(scsi_qla_host_t *ha); |
| 357 | |
| 358 | extern int |
| 359 | qla2x00_get_id_list(scsi_qla_host_t *, void *, dma_addr_t, uint16_t *); |
| 360 | |
| 361 | extern int |
Quinn Tran | 03e8c68 | 2015-12-17 14:56:59 -0500 | [diff] [blame] | 362 | qla2x00_get_resource_cnts(scsi_qla_host_t *); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 363 | |
| 364 | extern int |
| 365 | qla2x00_get_fcal_position_map(scsi_qla_host_t *ha, char *pos_map); |
| 366 | |
andrew.vasquez@qlogic.com | 392e2f6 | 2006-01-31 16:05:02 -0800 | [diff] [blame] | 367 | extern int |
Andrew Vasquez | 43ef058 | 2008-01-17 09:02:08 -0800 | [diff] [blame] | 368 | qla2x00_get_link_status(scsi_qla_host_t *, uint16_t, struct link_statistics *, |
| 369 | dma_addr_t); |
andrew.vasquez@qlogic.com | 392e2f6 | 2006-01-31 16:05:02 -0800 | [diff] [blame] | 370 | |
| 371 | extern int |
Andrew Vasquez | 43ef058 | 2008-01-17 09:02:08 -0800 | [diff] [blame] | 372 | qla24xx_get_isp_stats(scsi_qla_host_t *, struct link_statistics *, |
Quinn Tran | 15f30a5 | 2017-03-15 09:48:52 -0700 | [diff] [blame] | 373 | dma_addr_t, uint16_t); |
andrew.vasquez@qlogic.com | 392e2f6 | 2006-01-31 16:05:02 -0800 | [diff] [blame] | 374 | |
Anirban Chakraborty | 2afa19a | 2009-04-06 22:33:40 -0700 | [diff] [blame] | 375 | extern int qla24xx_abort_command(srb_t *); |
Armen Baloyan | 4440e46 | 2014-02-26 04:15:18 -0500 | [diff] [blame] | 376 | extern int qla24xx_async_abort_command(srb_t *); |
Anirban Chakraborty | 2afa19a | 2009-04-06 22:33:40 -0700 | [diff] [blame] | 377 | extern int |
Hannes Reinecke | 9cb78c1 | 2014-06-25 15:27:36 +0200 | [diff] [blame] | 378 | qla24xx_abort_target(struct fc_port *, uint64_t, int); |
Anirban Chakraborty | 2afa19a | 2009-04-06 22:33:40 -0700 | [diff] [blame] | 379 | extern int |
Hannes Reinecke | 9cb78c1 | 2014-06-25 15:27:36 +0200 | [diff] [blame] | 380 | qla24xx_lun_reset(struct fc_port *, uint64_t, int); |
Giridhar Malavali | 4d78c97 | 2010-07-23 15:28:35 +0500 | [diff] [blame] | 381 | extern int |
| 382 | qla2x00_eh_wait_for_pending_commands(scsi_qla_host_t *, unsigned int, |
Hannes Reinecke | 9cb78c1 | 2014-06-25 15:27:36 +0200 | [diff] [blame] | 383 | uint64_t, enum nexus_wait_type); |
Andrew Vasquez | 1c7c635 | 2005-07-06 10:30:57 -0700 | [diff] [blame] | 384 | extern int |
Andrew Vasquez | 68af081 | 2008-05-12 22:21:13 -0700 | [diff] [blame] | 385 | qla2x00_system_error(scsi_qla_host_t *); |
| 386 | |
| 387 | extern int |
Joe Carnuccio | db64e93 | 2013-10-30 03:38:18 -0400 | [diff] [blame] | 388 | qla2x00_write_serdes_word(scsi_qla_host_t *, uint16_t, uint16_t); |
| 389 | extern int |
| 390 | qla2x00_read_serdes_word(scsi_qla_host_t *, uint16_t, uint16_t *); |
| 391 | |
| 392 | extern int |
Joe Carnuccio | e8887c5 | 2014-04-11 16:54:17 -0400 | [diff] [blame] | 393 | qla8044_write_serdes_word(scsi_qla_host_t *, uint32_t, uint32_t); |
| 394 | extern int |
| 395 | qla8044_read_serdes_word(scsi_qla_host_t *, uint32_t, uint32_t *); |
| 396 | |
| 397 | extern int |
Andrew Vasquez | 1c7c635 | 2005-07-06 10:30:57 -0700 | [diff] [blame] | 398 | qla2x00_set_serdes_params(scsi_qla_host_t *, uint16_t, uint16_t, uint16_t); |
| 399 | |
Andrew Vasquez | f6ef3b1 | 2005-08-26 19:10:20 -0700 | [diff] [blame] | 400 | extern int |
| 401 | qla2x00_stop_firmware(scsi_qla_host_t *); |
| 402 | |
Andrew Vasquez | a7a167b | 2006-06-23 16:10:29 -0700 | [diff] [blame] | 403 | extern int |
Andrew Vasquez | 00b6bd2 | 2008-01-17 09:02:16 -0800 | [diff] [blame] | 404 | qla2x00_enable_eft_trace(scsi_qla_host_t *, dma_addr_t, uint16_t); |
| 405 | extern int |
| 406 | qla2x00_disable_eft_trace(scsi_qla_host_t *); |
Andrew Vasquez | a7a167b | 2006-06-23 16:10:29 -0700 | [diff] [blame] | 407 | |
Andrew Vasquez | 88729e5 | 2006-06-23 16:10:50 -0700 | [diff] [blame] | 408 | extern int |
Andrew Vasquez | df613b9 | 2008-01-17 09:02:17 -0800 | [diff] [blame] | 409 | qla2x00_enable_fce_trace(scsi_qla_host_t *, dma_addr_t, uint16_t , uint16_t *, |
| 410 | uint32_t *); |
| 411 | |
| 412 | extern int |
| 413 | qla2x00_disable_fce_trace(scsi_qla_host_t *, uint64_t *, uint64_t *); |
| 414 | |
| 415 | extern int |
Joe Carnuccio | c46e65c | 2013-08-27 01:37:35 -0400 | [diff] [blame] | 416 | qla82xx_set_driver_version(scsi_qla_host_t *, char *); |
| 417 | |
| 418 | extern int |
| 419 | qla25xx_set_driver_version(scsi_qla_host_t *, char *); |
| 420 | |
| 421 | extern int |
Joe Carnuccio | 6766df9 | 2011-05-10 11:30:15 -0700 | [diff] [blame] | 422 | qla2x00_read_sfp(scsi_qla_host_t *, dma_addr_t, uint8_t *, |
| 423 | uint16_t, uint16_t, uint16_t, uint16_t); |
Andrew Vasquez | 88729e5 | 2006-06-23 16:10:50 -0700 | [diff] [blame] | 424 | |
Andrew Vasquez | d8b4521 | 2006-10-02 12:00:43 -0700 | [diff] [blame] | 425 | extern int |
Joe Carnuccio | 6766df9 | 2011-05-10 11:30:15 -0700 | [diff] [blame] | 426 | qla2x00_write_sfp(scsi_qla_host_t *, dma_addr_t, uint8_t *, |
| 427 | uint16_t, uint16_t, uint16_t, uint16_t); |
Joe Carnuccio | ad0ecd6 | 2009-03-24 09:08:12 -0700 | [diff] [blame] | 428 | |
| 429 | extern int |
Andrew Vasquez | d8b4521 | 2006-10-02 12:00:43 -0700 | [diff] [blame] | 430 | qla2x00_set_idma_speed(scsi_qla_host_t *, uint16_t, uint16_t, uint16_t *); |
| 431 | |
Harihara Kadayam | 4d4df19 | 2008-04-03 13:13:26 -0700 | [diff] [blame] | 432 | extern int qla84xx_verify_chip(struct scsi_qla_host *, uint16_t *); |
| 433 | |
Andrew Vasquez | 8a65957 | 2009-02-08 20:50:12 -0800 | [diff] [blame] | 434 | extern int qla81xx_idc_ack(scsi_qla_host_t *, uint16_t *); |
| 435 | |
Joe Carnuccio | 1d2874d | 2009-03-24 09:08:06 -0700 | [diff] [blame] | 436 | extern int |
| 437 | qla81xx_fac_get_sector_size(scsi_qla_host_t *, uint32_t *); |
| 438 | |
| 439 | extern int |
| 440 | qla81xx_fac_do_write_enable(scsi_qla_host_t *, int); |
| 441 | |
| 442 | extern int |
| 443 | qla81xx_fac_erase_sector(scsi_qla_host_t *, uint32_t, uint32_t); |
| 444 | |
Andrew Vasquez | ce0423f | 2009-06-03 09:55:13 -0700 | [diff] [blame] | 445 | extern int |
| 446 | qla2x00_get_xgmac_stats(scsi_qla_host_t *, dma_addr_t, uint16_t, uint16_t *); |
| 447 | |
Andrew Vasquez | 11bbc1d | 2009-06-03 09:55:14 -0700 | [diff] [blame] | 448 | extern int |
| 449 | qla2x00_get_dcbx_params(scsi_qla_host_t *, dma_addr_t, uint16_t); |
| 450 | |
Andrew Vasquez | 18e7555 | 2009-06-03 09:55:30 -0700 | [diff] [blame] | 451 | extern int |
| 452 | qla2x00_read_ram_word(scsi_qla_host_t *, uint32_t, uint32_t *); |
| 453 | |
| 454 | extern int |
| 455 | qla2x00_write_ram_word(scsi_qla_host_t *, uint32_t, uint32_t); |
| 456 | |
Madhuranath Iyengar | b1d46989 | 2010-09-03 15:20:54 -0700 | [diff] [blame] | 457 | extern int |
| 458 | qla81xx_write_mpi_register(scsi_qla_host_t *, uint16_t *); |
Michael Hernandez | 3064ff3 | 2009-12-15 21:29:44 -0800 | [diff] [blame] | 459 | extern int qla2x00_get_data_rate(scsi_qla_host_t *); |
Sarang Radke | 09ff701 | 2010-03-19 17:03:59 -0700 | [diff] [blame] | 460 | extern int qla24xx_set_fcp_prio(scsi_qla_host_t *, uint16_t, uint16_t, |
| 461 | uint16_t *); |
Sarang Radke | 23f2ebd | 2010-05-28 15:08:21 -0700 | [diff] [blame] | 462 | extern int |
| 463 | qla81xx_get_port_config(scsi_qla_host_t *, uint16_t *); |
| 464 | |
| 465 | extern int |
| 466 | qla81xx_set_port_config(scsi_qla_host_t *, uint16_t *); |
Sarang Radke | 09ff701 | 2010-03-19 17:03:59 -0700 | [diff] [blame] | 467 | |
Andrew Vasquez | af11f64 | 2012-02-09 11:15:43 -0800 | [diff] [blame] | 468 | extern int |
| 469 | qla2x00_port_logout(scsi_qla_host_t *, struct fc_port *); |
| 470 | |
Saurav Kashyap | 8117877 | 2012-08-22 14:21:04 -0400 | [diff] [blame] | 471 | extern int |
| 472 | qla2x00_dump_mctp_data(scsi_qla_host_t *, dma_addr_t, uint32_t, uint32_t); |
| 473 | |
Joe Carnuccio | ec89146 | 2016-07-06 11:14:26 -0400 | [diff] [blame] | 474 | extern int |
| 475 | qla26xx_dport_diagnostics(scsi_qla_host_t *, void *, uint, uint); |
| 476 | |
Quinn Tran | 15f30a5 | 2017-03-15 09:48:52 -0700 | [diff] [blame] | 477 | int qla24xx_send_mb_cmd(struct scsi_qla_host *, mbx_cmd_t *); |
| 478 | int qla24xx_gpdb_wait(struct scsi_qla_host *, fc_port_t *, u8); |
| 479 | int qla24xx_gidlist_wait(struct scsi_qla_host *, void *, dma_addr_t, |
| 480 | uint16_t *); |
| 481 | int __qla24xx_parse_gpdb(struct scsi_qla_host *, fc_port_t *, |
| 482 | struct port_database_24xx *); |
| 483 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 484 | /* |
| 485 | * Global Function Prototypes in qla_isr.c source file. |
| 486 | */ |
David Howells | 7d12e78 | 2006-10-05 14:55:46 +0100 | [diff] [blame] | 487 | extern irqreturn_t qla2100_intr_handler(int, void *); |
| 488 | extern irqreturn_t qla2300_intr_handler(int, void *); |
| 489 | extern irqreturn_t qla24xx_intr_handler(int, void *); |
Anirban Chakraborty | 73208df | 2008-12-09 16:45:39 -0800 | [diff] [blame] | 490 | extern void qla2x00_process_response_queue(struct rsp_que *); |
Anirban Chakraborty | 2afa19a | 2009-04-06 22:33:40 -0700 | [diff] [blame] | 491 | extern void |
| 492 | qla24xx_process_response_queue(struct scsi_qla_host *, struct rsp_que *); |
Anirban Chakraborty | 73208df | 2008-12-09 16:45:39 -0800 | [diff] [blame] | 493 | extern int qla2x00_request_irqs(struct qla_hw_data *, struct rsp_que *); |
Andrew Vasquez | a8488ab | 2007-01-29 10:22:19 -0800 | [diff] [blame] | 494 | extern void qla2x00_free_irqs(scsi_qla_host_t *); |
| 495 | |
Giridhar Malavali | a908301 | 2010-04-12 17:59:55 -0700 | [diff] [blame] | 496 | extern int qla2x00_get_data_rate(scsi_qla_host_t *); |
Joe Carnuccio | d0297c9 | 2012-11-21 02:40:40 -0500 | [diff] [blame] | 497 | extern const char *qla2x00_get_link_speed_str(struct qla_hw_data *, uint16_t); |
Giridhar Malavali | 8ae6d9c | 2013-03-28 08:21:23 -0400 | [diff] [blame] | 498 | extern srb_t * |
| 499 | qla2x00_get_sp_from_handle(scsi_qla_host_t *, const char *, struct req_que *, |
| 500 | void *); |
| 501 | extern void |
| 502 | qla2x00_process_completed_request(struct scsi_qla_host *, struct req_que *, |
| 503 | uint32_t); |
Michael Hernandez | d745952 | 2016-12-12 14:40:07 -0800 | [diff] [blame] | 504 | extern irqreturn_t |
| 505 | qla2xxx_msix_rsp_q(int irq, void *dev_id); |
Quinn Tran | 726b854 | 2017-01-19 22:28:00 -0800 | [diff] [blame] | 506 | fc_port_t *qla2x00_find_fcport_by_loopid(scsi_qla_host_t *, uint16_t); |
| 507 | fc_port_t *qla2x00_find_fcport_by_wwpn(scsi_qla_host_t *, u8 *, u8); |
| 508 | fc_port_t *qla2x00_find_fcport_by_nportid(scsi_qla_host_t *, port_id_t *, u8); |
Chad Dupuis | daae62a | 2012-05-15 14:34:23 -0400 | [diff] [blame] | 509 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 510 | /* |
| 511 | * Global Function Prototypes in qla_sup.c source file. |
| 512 | */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 513 | extern void qla2x00_release_nvram_protection(scsi_qla_host_t *); |
Andrew Vasquez | 459c537 | 2005-07-06 10:31:07 -0700 | [diff] [blame] | 514 | extern uint32_t *qla24xx_read_flash_data(scsi_qla_host_t *, uint32_t *, |
Atul Deshmukh | 7ec0eff | 2013-08-27 01:37:28 -0400 | [diff] [blame] | 515 | uint32_t, uint32_t); |
Andrew Vasquez | 459c537 | 2005-07-06 10:31:07 -0700 | [diff] [blame] | 516 | extern uint8_t *qla2x00_read_nvram_data(scsi_qla_host_t *, uint8_t *, uint32_t, |
Atul Deshmukh | 7ec0eff | 2013-08-27 01:37:28 -0400 | [diff] [blame] | 517 | uint32_t); |
Andrew Vasquez | 459c537 | 2005-07-06 10:31:07 -0700 | [diff] [blame] | 518 | extern uint8_t *qla24xx_read_nvram_data(scsi_qla_host_t *, uint8_t *, uint32_t, |
Atul Deshmukh | 7ec0eff | 2013-08-27 01:37:28 -0400 | [diff] [blame] | 519 | uint32_t); |
Andrew Vasquez | 459c537 | 2005-07-06 10:31:07 -0700 | [diff] [blame] | 520 | extern int qla2x00_write_nvram_data(scsi_qla_host_t *, uint8_t *, uint32_t, |
Atul Deshmukh | 7ec0eff | 2013-08-27 01:37:28 -0400 | [diff] [blame] | 521 | uint32_t); |
Andrew Vasquez | 459c537 | 2005-07-06 10:31:07 -0700 | [diff] [blame] | 522 | extern int qla24xx_write_nvram_data(scsi_qla_host_t *, uint8_t *, uint32_t, |
Atul Deshmukh | 7ec0eff | 2013-08-27 01:37:28 -0400 | [diff] [blame] | 523 | uint32_t); |
Andrew Vasquez | c3a2f0d | 2007-07-19 20:37:34 -0700 | [diff] [blame] | 524 | extern uint8_t *qla25xx_read_nvram_data(scsi_qla_host_t *, uint8_t *, uint32_t, |
Atul Deshmukh | 7ec0eff | 2013-08-27 01:37:28 -0400 | [diff] [blame] | 525 | uint32_t); |
Andrew Vasquez | c3a2f0d | 2007-07-19 20:37:34 -0700 | [diff] [blame] | 526 | extern int qla25xx_write_nvram_data(scsi_qla_host_t *, uint8_t *, uint32_t, |
Atul Deshmukh | 7ec0eff | 2013-08-27 01:37:28 -0400 | [diff] [blame] | 527 | uint32_t); |
Chad Dupuis | bb4cf5b | 2013-02-08 01:58:01 -0500 | [diff] [blame] | 528 | extern int qla2x00_is_a_vp_did(scsi_qla_host_t *, uint32_t); |
Joe Lawrence | c821e0d | 2014-08-26 17:11:41 -0400 | [diff] [blame] | 529 | bool qla2x00_check_reg32_for_disconnect(scsi_qla_host_t *, uint32_t); |
| 530 | bool qla2x00_check_reg16_for_disconnect(scsi_qla_host_t *, uint16_t); |
Andrew Vasquez | 459c537 | 2005-07-06 10:31:07 -0700 | [diff] [blame] | 531 | |
andrew.vasquez@qlogic.com | f6df144 | 2006-01-31 16:05:07 -0800 | [diff] [blame] | 532 | extern int qla2x00_beacon_on(struct scsi_qla_host *); |
| 533 | extern int qla2x00_beacon_off(struct scsi_qla_host *); |
| 534 | extern void qla2x00_beacon_blink(struct scsi_qla_host *); |
| 535 | extern int qla24xx_beacon_on(struct scsi_qla_host *); |
| 536 | extern int qla24xx_beacon_off(struct scsi_qla_host *); |
| 537 | extern void qla24xx_beacon_blink(struct scsi_qla_host *); |
Giridhar Malavali | 6246b8a | 2012-02-09 11:15:34 -0800 | [diff] [blame] | 538 | extern void qla83xx_beacon_blink(struct scsi_qla_host *); |
Saurav Kashyap | 999916d | 2011-08-16 11:31:45 -0700 | [diff] [blame] | 539 | extern int qla82xx_beacon_on(struct scsi_qla_host *); |
| 540 | extern int qla82xx_beacon_off(struct scsi_qla_host *); |
Santosh Vernekar | 7d613ac | 2012-08-22 14:21:03 -0400 | [diff] [blame] | 541 | extern int qla83xx_wr_reg(scsi_qla_host_t *, uint32_t, uint32_t); |
| 542 | extern int qla83xx_rd_reg(scsi_qla_host_t *, uint32_t, uint32_t *); |
| 543 | extern int qla83xx_restart_nic_firmware(scsi_qla_host_t *); |
| 544 | extern int qla83xx_access_control(scsi_qla_host_t *, uint16_t, uint32_t, |
Atul Deshmukh | 7ec0eff | 2013-08-27 01:37:28 -0400 | [diff] [blame] | 545 | uint32_t, uint16_t *); |
andrew.vasquez@qlogic.com | f6df144 | 2006-01-31 16:05:07 -0800 | [diff] [blame] | 546 | |
andrew.vasquez@qlogic.com | 854165f | 2006-01-31 16:05:17 -0800 | [diff] [blame] | 547 | extern uint8_t *qla2x00_read_optrom_data(struct scsi_qla_host *, uint8_t *, |
Atul Deshmukh | 7ec0eff | 2013-08-27 01:37:28 -0400 | [diff] [blame] | 548 | uint32_t, uint32_t); |
andrew.vasquez@qlogic.com | 854165f | 2006-01-31 16:05:17 -0800 | [diff] [blame] | 549 | extern int qla2x00_write_optrom_data(struct scsi_qla_host *, uint8_t *, |
Atul Deshmukh | 7ec0eff | 2013-08-27 01:37:28 -0400 | [diff] [blame] | 550 | uint32_t, uint32_t); |
andrew.vasquez@qlogic.com | 854165f | 2006-01-31 16:05:17 -0800 | [diff] [blame] | 551 | extern uint8_t *qla24xx_read_optrom_data(struct scsi_qla_host *, uint8_t *, |
Atul Deshmukh | 7ec0eff | 2013-08-27 01:37:28 -0400 | [diff] [blame] | 552 | uint32_t, uint32_t); |
andrew.vasquez@qlogic.com | 854165f | 2006-01-31 16:05:17 -0800 | [diff] [blame] | 553 | extern int qla24xx_write_optrom_data(struct scsi_qla_host *, uint8_t *, |
Atul Deshmukh | 7ec0eff | 2013-08-27 01:37:28 -0400 | [diff] [blame] | 554 | uint32_t, uint32_t); |
Andrew Vasquez | 338c916 | 2007-09-20 14:07:33 -0700 | [diff] [blame] | 555 | extern uint8_t *qla25xx_read_optrom_data(struct scsi_qla_host *, uint8_t *, |
Atul Deshmukh | 7ec0eff | 2013-08-27 01:37:28 -0400 | [diff] [blame] | 556 | uint32_t, uint32_t); |
| 557 | extern uint8_t *qla8044_read_optrom_data(struct scsi_qla_host *, |
| 558 | uint8_t *, uint32_t, uint32_t); |
| 559 | extern void qla8044_watchdog(struct scsi_qla_host *vha); |
andrew.vasquez@qlogic.com | 854165f | 2006-01-31 16:05:17 -0800 | [diff] [blame] | 560 | |
Andrew Vasquez | 30c4766 | 2007-01-29 10:22:21 -0800 | [diff] [blame] | 561 | extern int qla2x00_get_flash_version(scsi_qla_host_t *, void *); |
| 562 | extern int qla24xx_get_flash_version(scsi_qla_host_t *, void *); |
Atul Deshmukh | 7ec0eff | 2013-08-27 01:37:28 -0400 | [diff] [blame] | 563 | extern int qla82xx_get_flash_version(scsi_qla_host_t *, void *); |
Andrew Vasquez | 30c4766 | 2007-01-29 10:22:21 -0800 | [diff] [blame] | 564 | |
Andrew Vasquez | c00d899 | 2008-09-11 21:22:49 -0700 | [diff] [blame] | 565 | extern int qla2xxx_get_flash_info(scsi_qla_host_t *); |
Joe Carnuccio | 1ee2714 | 2008-07-10 16:55:53 -0700 | [diff] [blame] | 566 | extern int qla2xxx_get_vpd_field(scsi_qla_host_t *, char *, char *, size_t); |
Andrew Vasquez | 7d232c7 | 2008-04-03 13:13:22 -0700 | [diff] [blame] | 567 | |
Andrew Vasquez | 272976c | 2008-09-11 21:22:50 -0700 | [diff] [blame] | 568 | extern void qla2xxx_flash_npiv_conf(scsi_qla_host_t *); |
Sarang Radke | 09ff701 | 2010-03-19 17:03:59 -0700 | [diff] [blame] | 569 | extern int qla24xx_read_fcp_prio_cfg(scsi_qla_host_t *); |
Andrew Vasquez | 272976c | 2008-09-11 21:22:50 -0700 | [diff] [blame] | 570 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 571 | /* |
| 572 | * Global Function Prototypes in qla_dbg.c source file. |
| 573 | */ |
| 574 | extern void qla2100_fw_dump(scsi_qla_host_t *, int); |
| 575 | extern void qla2300_fw_dump(scsi_qla_host_t *, int); |
Andrew Vasquez | 6d9b61e | 2005-07-06 10:30:36 -0700 | [diff] [blame] | 576 | extern void qla24xx_fw_dump(scsi_qla_host_t *, int); |
Andrew Vasquez | c3a2f0d | 2007-07-19 20:37:34 -0700 | [diff] [blame] | 577 | extern void qla25xx_fw_dump(scsi_qla_host_t *, int); |
Andrew Vasquez | 3a03eb7 | 2009-01-05 11:18:11 -0800 | [diff] [blame] | 578 | extern void qla81xx_fw_dump(scsi_qla_host_t *, int); |
Chad Dupuis | a1b23c5 | 2014-02-26 04:15:12 -0500 | [diff] [blame] | 579 | extern void qla82xx_fw_dump(scsi_qla_host_t *, int); |
| 580 | extern void qla8044_fw_dump(scsi_qla_host_t *, int); |
Chad Dupuis | f73cb69 | 2014-02-26 04:15:06 -0500 | [diff] [blame] | 581 | |
| 582 | extern void qla27xx_fwdump(scsi_qla_host_t *, int); |
| 583 | extern ulong qla27xx_fwdt_calculate_dump_size(struct scsi_qla_host *); |
| 584 | extern int qla27xx_fwdt_template_valid(void *); |
| 585 | extern ulong qla27xx_fwdt_template_size(void *); |
| 586 | extern const void *qla27xx_fwdt_template_default(void); |
| 587 | extern ulong qla27xx_fwdt_template_default_size(void); |
| 588 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 589 | extern void qla2x00_dump_regs(scsi_qla_host_t *); |
| 590 | extern void qla2x00_dump_buffer(uint8_t *, uint32_t); |
Arun Easi | bad7500 | 2010-05-04 15:01:30 -0700 | [diff] [blame] | 591 | extern void qla2x00_dump_buffer_zipped(uint8_t *, uint32_t); |
Saurav Kashyap | 3ce8866 | 2011-07-14 12:00:12 -0700 | [diff] [blame] | 592 | extern void ql_dump_regs(uint32_t, scsi_qla_host_t *, int32_t); |
| 593 | extern void ql_dump_buffer(uint32_t, scsi_qla_host_t *, int32_t, |
Atul Deshmukh | 7ec0eff | 2013-08-27 01:37:28 -0400 | [diff] [blame] | 594 | uint8_t *, uint32_t); |
Giridhar Malavali | 08de284 | 2011-08-16 11:31:44 -0700 | [diff] [blame] | 595 | extern void qla2xxx_dump_post_process(scsi_qla_host_t *, int); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 596 | |
| 597 | /* |
| 598 | * Global Function Prototypes in qla_gs.c source file. |
| 599 | */ |
Quinn Tran | 726b854 | 2017-01-19 22:28:00 -0800 | [diff] [blame] | 600 | extern void *qla2x00_prep_ms_iocb(scsi_qla_host_t *, struct ct_arg *); |
| 601 | extern void *qla24xx_prep_ms_iocb(scsi_qla_host_t *, struct ct_arg *); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 602 | extern int qla2x00_ga_nxt(scsi_qla_host_t *, fc_port_t *); |
| 603 | extern int qla2x00_gid_pt(scsi_qla_host_t *, sw_info_t *); |
| 604 | extern int qla2x00_gpn_id(scsi_qla_host_t *, sw_info_t *); |
| 605 | extern int qla2x00_gnn_id(scsi_qla_host_t *, sw_info_t *); |
Chad Dupuis | e8c72ba | 2010-07-23 15:28:25 +0500 | [diff] [blame] | 606 | extern void qla2x00_gff_id(scsi_qla_host_t *, sw_info_t *); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 607 | extern int qla2x00_rft_id(scsi_qla_host_t *); |
| 608 | extern int qla2x00_rff_id(scsi_qla_host_t *); |
| 609 | extern int qla2x00_rnn_id(scsi_qla_host_t *); |
| 610 | extern int qla2x00_rsnn_nn(scsi_qla_host_t *); |
Andrew Vasquez | cca5335 | 2005-08-26 19:08:30 -0700 | [diff] [blame] | 611 | extern void *qla2x00_prep_ms_fdmi_iocb(scsi_qla_host_t *, uint32_t, uint32_t); |
| 612 | extern void *qla24xx_prep_ms_fdmi_iocb(scsi_qla_host_t *, uint32_t, uint32_t); |
| 613 | extern int qla2x00_fdmi_register(scsi_qla_host_t *); |
Andrew Vasquez | d8b4521 | 2006-10-02 12:00:43 -0700 | [diff] [blame] | 614 | extern int qla2x00_gfpn_id(scsi_qla_host_t *, sw_info_t *); |
| 615 | extern int qla2x00_gpsc(scsi_qla_host_t *, sw_info_t *); |
Himanshu Madhani | df57cab | 2014-09-25 05:16:46 -0400 | [diff] [blame] | 616 | extern void qla2x00_get_sym_node_name(scsi_qla_host_t *, uint8_t *, size_t); |
Quinn Tran | 726b854 | 2017-01-19 22:28:00 -0800 | [diff] [blame] | 617 | extern int qla2x00_chk_ms_status(scsi_qla_host_t *, ms_iocb_entry_t *, |
| 618 | struct ct_sns_rsp *, const char *); |
| 619 | extern void qla2x00_async_iocb_timeout(void *data); |
| 620 | extern int qla24xx_async_gidpn(scsi_qla_host_t *, fc_port_t *); |
| 621 | int qla24xx_post_gidpn_work(struct scsi_qla_host *, fc_port_t *); |
| 622 | void qla24xx_handle_gidpn_event(scsi_qla_host_t *, struct event_arg *); |
| 623 | |
| 624 | extern void qla2x00_free_fcport(fc_port_t *); |
| 625 | |
| 626 | extern int qla24xx_post_gpnid_work(struct scsi_qla_host *, port_id_t *); |
| 627 | extern int qla24xx_async_gpnid(scsi_qla_host_t *, port_id_t *); |
| 628 | void qla24xx_async_gpnid_done(scsi_qla_host_t *, srb_t*); |
| 629 | void qla24xx_handle_gpnid_event(scsi_qla_host_t *, struct event_arg *); |
| 630 | |
| 631 | int qla24xx_post_gpsc_work(struct scsi_qla_host *, fc_port_t *); |
| 632 | int qla24xx_async_gpsc(scsi_qla_host_t *, fc_port_t *); |
| 633 | int qla2x00_mgmt_svr_login(scsi_qla_host_t *); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 634 | |
| 635 | /* |
| 8482e118 | 2005-04-17 15:04:54 -0500 | [diff] [blame] | 636 | * Global Function Prototypes in qla_attr.c source file. |
| 637 | */ |
Tony Jones | ee959b0 | 2008-02-22 00:13:36 +0100 | [diff] [blame] | 638 | struct device_attribute; |
| 639 | extern struct device_attribute *qla2x00_host_attrs[]; |
Andrew Vasquez | 1c97a12 | 2005-04-21 16:13:36 -0400 | [diff] [blame] | 640 | struct fc_function_template; |
| 641 | extern struct fc_function_template qla2xxx_transport_functions; |
Seokmann Ju | 2c3dfe3 | 2007-07-05 13:16:51 -0700 | [diff] [blame] | 642 | extern struct fc_function_template qla2xxx_transport_vport_functions; |
| 8482e118 | 2005-04-17 15:04:54 -0500 | [diff] [blame] | 643 | extern void qla2x00_alloc_sysfs_attr(scsi_qla_host_t *); |
Chad Dupuis | fe1b806 | 2013-10-30 03:38:15 -0400 | [diff] [blame] | 644 | extern void qla2x00_free_sysfs_attr(scsi_qla_host_t *, bool); |
| 8482e118 | 2005-04-17 15:04:54 -0500 | [diff] [blame] | 645 | extern void qla2x00_init_host_attr(scsi_qla_host_t *); |
| 646 | extern void qla2x00_alloc_sysfs_attr(scsi_qla_host_t *); |
Giridhar Malavali | 9a069e1 | 2010-01-12 13:02:47 -0800 | [diff] [blame] | 647 | extern int qla2x00_loopback_test(scsi_qla_host_t *, struct msg_echo_lb *, uint16_t *); |
Sarang Radke | 09ff701 | 2010-03-19 17:03:59 -0700 | [diff] [blame] | 648 | extern int qla2x00_echo_test(scsi_qla_host_t *, |
| 649 | struct msg_echo_lb *, uint16_t *); |
| 650 | extern int qla24xx_update_all_fcp_prio(scsi_qla_host_t *); |
Saurav Kashyap | 7c3df13 | 2011-07-14 12:00:13 -0700 | [diff] [blame] | 651 | extern int qla24xx_fcp_prio_cfg_valid(scsi_qla_host_t *, |
| 652 | struct qla_fcp_prio_cfg *, uint8_t); |
Andrew Vasquez | df613b9 | 2008-01-17 09:02:17 -0800 | [diff] [blame] | 653 | |
| 654 | /* |
| 655 | * Global Function Prototypes in qla_dfs.c source file. |
| 656 | */ |
| 657 | extern int qla2x00_dfs_setup(scsi_qla_host_t *); |
| 658 | extern int qla2x00_dfs_remove(scsi_qla_host_t *); |
Anirban Chakraborty | 73208df | 2008-12-09 16:45:39 -0800 | [diff] [blame] | 659 | |
| 660 | /* Globa function prototypes for multi-q */ |
Michael Hernandez | d745952 | 2016-12-12 14:40:07 -0800 | [diff] [blame] | 661 | extern int qla25xx_request_irq(struct qla_hw_data *, struct qla_qpair *, |
| 662 | struct qla_msix_entry *, int); |
Anirban Chakraborty | 618a752 | 2009-02-08 20:50:11 -0800 | [diff] [blame] | 663 | extern int qla25xx_init_req_que(struct scsi_qla_host *, struct req_que *); |
| 664 | extern int qla25xx_init_rsp_que(struct scsi_qla_host *, struct rsp_que *); |
Anirban Chakraborty | 73208df | 2008-12-09 16:45:39 -0800 | [diff] [blame] | 665 | extern int qla25xx_create_req_que(struct qla_hw_data *, uint16_t, uint8_t, |
Anirban Chakraborty | 2afa19a | 2009-04-06 22:33:40 -0700 | [diff] [blame] | 666 | uint16_t, int, uint8_t); |
Anirban Chakraborty | 73208df | 2008-12-09 16:45:39 -0800 | [diff] [blame] | 667 | extern int qla25xx_create_rsp_que(struct qla_hw_data *, uint16_t, uint8_t, |
Michael Hernandez | d745952 | 2016-12-12 14:40:07 -0800 | [diff] [blame] | 668 | uint16_t, struct qla_qpair *); |
| 669 | |
Anirban Chakraborty | 73208df | 2008-12-09 16:45:39 -0800 | [diff] [blame] | 670 | extern void qla2x00_init_response_q_entries(struct rsp_que *); |
| 671 | extern int qla25xx_delete_req_que(struct scsi_qla_host *, struct req_que *); |
Michael Hernandez | d745952 | 2016-12-12 14:40:07 -0800 | [diff] [blame] | 672 | extern int qla25xx_delete_rsp_que(struct scsi_qla_host *, struct rsp_que *); |
Anirban Chakraborty | 2afa19a | 2009-04-06 22:33:40 -0700 | [diff] [blame] | 673 | extern int qla25xx_delete_queues(struct scsi_qla_host *); |
Anirban Chakraborty | 17d9863 | 2008-12-18 10:06:15 -0800 | [diff] [blame] | 674 | extern uint16_t qla24xx_rd_req_reg(struct qla_hw_data *, uint16_t); |
| 675 | extern uint16_t qla25xx_rd_req_reg(struct qla_hw_data *, uint16_t); |
| 676 | extern void qla24xx_wrt_req_reg(struct qla_hw_data *, uint16_t, uint16_t); |
| 677 | extern void qla25xx_wrt_req_reg(struct qla_hw_data *, uint16_t, uint16_t); |
| 678 | extern void qla25xx_wrt_rsp_reg(struct qla_hw_data *, uint16_t, uint16_t); |
| 679 | extern void qla24xx_wrt_rsp_reg(struct qla_hw_data *, uint16_t, uint16_t); |
Anirban Chakraborty | 2afa19a | 2009-04-06 22:33:40 -0700 | [diff] [blame] | 680 | |
Giridhar Malavali | 8ae6d9c | 2013-03-28 08:21:23 -0400 | [diff] [blame] | 681 | /* qlafx00 related functions */ |
| 682 | extern int qlafx00_pci_config(struct scsi_qla_host *); |
| 683 | extern int qlafx00_initialize_adapter(struct scsi_qla_host *); |
| 684 | extern void qlafx00_soft_reset(scsi_qla_host_t *); |
| 685 | extern int qlafx00_chip_diag(scsi_qla_host_t *); |
| 686 | extern void qlafx00_config_rings(struct scsi_qla_host *); |
| 687 | extern char *qlafx00_pci_info_str(struct scsi_qla_host *, char *); |
Himanshu Madhani | df57cab | 2014-09-25 05:16:46 -0400 | [diff] [blame] | 688 | extern char *qlafx00_fw_version_str(struct scsi_qla_host *, char *, size_t); |
Giridhar Malavali | 8ae6d9c | 2013-03-28 08:21:23 -0400 | [diff] [blame] | 689 | extern irqreturn_t qlafx00_intr_handler(int, void *); |
| 690 | extern void qlafx00_enable_intrs(struct qla_hw_data *); |
| 691 | extern void qlafx00_disable_intrs(struct qla_hw_data *); |
Hannes Reinecke | 9cb78c1 | 2014-06-25 15:27:36 +0200 | [diff] [blame] | 692 | extern int qlafx00_abort_target(fc_port_t *, uint64_t, int); |
| 693 | extern int qlafx00_lun_reset(fc_port_t *, uint64_t, int); |
Giridhar Malavali | 8ae6d9c | 2013-03-28 08:21:23 -0400 | [diff] [blame] | 694 | extern int qlafx00_start_scsi(srb_t *); |
| 695 | extern int qlafx00_abort_isp(scsi_qla_host_t *); |
| 696 | extern int qlafx00_iospace_config(struct qla_hw_data *); |
| 697 | extern int qlafx00_init_firmware(scsi_qla_host_t *, uint16_t); |
Armen Baloyan | 4247934 | 2013-08-27 01:37:37 -0400 | [diff] [blame] | 698 | extern int qlafx00_driver_shutdown(scsi_qla_host_t *, int); |
Giridhar Malavali | 8ae6d9c | 2013-03-28 08:21:23 -0400 | [diff] [blame] | 699 | extern int qlafx00_fw_ready(scsi_qla_host_t *); |
| 700 | extern int qlafx00_configure_devices(scsi_qla_host_t *); |
| 701 | extern int qlafx00_reset_initialize(scsi_qla_host_t *); |
Saurav Kashyap | 1f8deef | 2013-06-25 11:27:21 -0400 | [diff] [blame] | 702 | extern int qlafx00_fx_disc(scsi_qla_host_t *, fc_port_t *, uint16_t); |
Giridhar Malavali | 8ae6d9c | 2013-03-28 08:21:23 -0400 | [diff] [blame] | 703 | extern int qlafx00_process_aen(struct scsi_qla_host *, struct qla_work_evt *); |
| 704 | extern int qlafx00_post_aenfx_work(struct scsi_qla_host *, uint32_t, |
| 705 | uint32_t *, int); |
| 706 | extern uint32_t qlafx00_fw_state_show(struct device *, |
| 707 | struct device_attribute *, char *); |
| 708 | extern void qlafx00_get_host_speed(struct Scsi_Host *); |
| 709 | extern void qlafx00_init_response_q_entries(struct rsp_que *); |
| 710 | |
| 711 | extern void qlafx00_tm_iocb(srb_t *, struct tsk_mgmt_entry_fx00 *); |
| 712 | extern void qlafx00_abort_iocb(srb_t *, struct abort_iocb_entry_fx00 *); |
| 713 | extern void qlafx00_fxdisc_iocb(srb_t *, struct fxdisc_entry_fx00 *); |
| 714 | extern void qlafx00_timer_routine(scsi_qla_host_t *); |
| 715 | extern int qlafx00_rescan_isp(scsi_qla_host_t *); |
Armen Baloyan | 5854771 | 2013-08-27 01:37:33 -0400 | [diff] [blame] | 716 | extern int qlafx00_loop_reset(scsi_qla_host_t *vha); |
Giridhar Malavali | 8ae6d9c | 2013-03-28 08:21:23 -0400 | [diff] [blame] | 717 | |
Giridhar Malavali | a908301 | 2010-04-12 17:59:55 -0700 | [diff] [blame] | 718 | /* qla82xx related functions */ |
| 719 | |
| 720 | /* PCI related functions */ |
| 721 | extern int qla82xx_pci_config(struct scsi_qla_host *); |
| 722 | extern int qla82xx_pci_mem_read_2M(struct qla_hw_data *, u64, void *, int); |
Giridhar Malavali | a908301 | 2010-04-12 17:59:55 -0700 | [diff] [blame] | 723 | extern int qla82xx_pci_region_offset(struct pci_dev *, int); |
Giridhar Malavali | a908301 | 2010-04-12 17:59:55 -0700 | [diff] [blame] | 724 | extern int qla82xx_iospace_config(struct qla_hw_data *); |
| 725 | |
| 726 | /* Initialization related functions */ |
| 727 | extern void qla82xx_reset_chip(struct scsi_qla_host *); |
| 728 | extern void qla82xx_config_rings(struct scsi_qla_host *); |
Giridhar Malavali | a908301 | 2010-04-12 17:59:55 -0700 | [diff] [blame] | 729 | extern void qla82xx_watchdog(scsi_qla_host_t *); |
Lalit Chandivade | a5b3632 | 2010-09-03 15:20:50 -0700 | [diff] [blame] | 730 | extern int qla82xx_start_firmware(scsi_qla_host_t *); |
Giridhar Malavali | a908301 | 2010-04-12 17:59:55 -0700 | [diff] [blame] | 731 | |
| 732 | /* Firmware and flash related functions */ |
| 733 | extern int qla82xx_load_risc(scsi_qla_host_t *, uint32_t *); |
| 734 | extern uint8_t *qla82xx_read_optrom_data(struct scsi_qla_host *, uint8_t *, |
Atul Deshmukh | 7ec0eff | 2013-08-27 01:37:28 -0400 | [diff] [blame] | 735 | uint32_t, uint32_t); |
Giridhar Malavali | a908301 | 2010-04-12 17:59:55 -0700 | [diff] [blame] | 736 | extern int qla82xx_write_optrom_data(struct scsi_qla_host *, uint8_t *, |
Atul Deshmukh | 7ec0eff | 2013-08-27 01:37:28 -0400 | [diff] [blame] | 737 | uint32_t, uint32_t); |
Giridhar Malavali | a908301 | 2010-04-12 17:59:55 -0700 | [diff] [blame] | 738 | |
| 739 | /* Mailbox related functions */ |
| 740 | extern int qla82xx_abort_isp(scsi_qla_host_t *); |
| 741 | extern int qla82xx_restart_isp(scsi_qla_host_t *); |
| 742 | |
| 743 | /* IOCB related functions */ |
| 744 | extern int qla82xx_start_scsi(srb_t *); |
Joe Carnuccio | 25ff6af | 2017-01-19 22:28:04 -0800 | [diff] [blame] | 745 | extern void qla2x00_sp_free(void *); |
Giridhar Malavali | 9ba56b9 | 2012-02-09 11:15:36 -0800 | [diff] [blame] | 746 | extern void qla2x00_sp_timeout(unsigned long); |
Joe Carnuccio | 25ff6af | 2017-01-19 22:28:04 -0800 | [diff] [blame] | 747 | extern void qla2x00_bsg_job_done(void *, int); |
| 748 | extern void qla2x00_bsg_sp_free(void *); |
Nicholas Bellinger | 2d70c10 | 2012-05-15 14:34:28 -0400 | [diff] [blame] | 749 | extern void qla2x00_start_iocbs(struct scsi_qla_host *, struct req_que *); |
Giridhar Malavali | a908301 | 2010-04-12 17:59:55 -0700 | [diff] [blame] | 750 | |
| 751 | /* Interrupt related */ |
| 752 | extern irqreturn_t qla82xx_intr_handler(int, void *); |
| 753 | extern irqreturn_t qla82xx_msi_handler(int, void *); |
| 754 | extern irqreturn_t qla82xx_msix_default(int, void *); |
| 755 | extern irqreturn_t qla82xx_msix_rsp_q(int, void *); |
| 756 | extern void qla82xx_enable_intrs(struct qla_hw_data *); |
| 757 | extern void qla82xx_disable_intrs(struct qla_hw_data *); |
Giridhar Malavali | a908301 | 2010-04-12 17:59:55 -0700 | [diff] [blame] | 758 | extern void qla82xx_poll(int, void *); |
| 759 | extern void qla82xx_init_flags(struct qla_hw_data *); |
| 760 | |
| 761 | /* ISP 8021 hardware related */ |
Lalit Chandivade | a5b3632 | 2010-09-03 15:20:50 -0700 | [diff] [blame] | 762 | extern void qla82xx_set_drv_active(scsi_qla_host_t *); |
Giridhar Malavali | a908301 | 2010-04-12 17:59:55 -0700 | [diff] [blame] | 763 | extern int qla82xx_wr_32(struct qla_hw_data *, ulong, u32); |
| 764 | extern int qla82xx_rd_32(struct qla_hw_data *, ulong); |
| 765 | extern int qla82xx_rdmem(struct qla_hw_data *, u64, void *, int); |
| 766 | extern int qla82xx_wrmem(struct qla_hw_data *, u64, void *, int); |
Giridhar Malavali | a908301 | 2010-04-12 17:59:55 -0700 | [diff] [blame] | 767 | |
| 768 | /* ISP 8021 IDC */ |
| 769 | extern void qla82xx_clear_drv_active(struct qla_hw_data *); |
Saurav Kashyap | 579d12b | 2010-12-21 16:00:14 -0800 | [diff] [blame] | 770 | extern uint32_t qla82xx_wait_for_state_change(scsi_qla_host_t *, uint32_t); |
Giridhar Malavali | a908301 | 2010-04-12 17:59:55 -0700 | [diff] [blame] | 771 | extern int qla82xx_idc_lock(struct qla_hw_data *); |
| 772 | extern void qla82xx_idc_unlock(struct qla_hw_data *); |
| 773 | extern int qla82xx_device_state_handler(scsi_qla_host_t *); |
Santosh Vernekar | 7d613ac | 2012-08-22 14:21:03 -0400 | [diff] [blame] | 774 | extern void qla8xxx_dev_failed_handler(scsi_qla_host_t *); |
Saurav Kashyap | 579d12b | 2010-12-21 16:00:14 -0800 | [diff] [blame] | 775 | extern void qla82xx_clear_qsnt_ready(scsi_qla_host_t *); |
Giridhar Malavali | a908301 | 2010-04-12 17:59:55 -0700 | [diff] [blame] | 776 | |
| 777 | extern void qla2x00_set_model_info(scsi_qla_host_t *, uint8_t *, |
Atul Deshmukh | 7ec0eff | 2013-08-27 01:37:28 -0400 | [diff] [blame] | 778 | size_t, char *); |
Giridhar Malavali | a908301 | 2010-04-12 17:59:55 -0700 | [diff] [blame] | 779 | extern int qla82xx_mbx_intr_enable(scsi_qla_host_t *); |
| 780 | extern int qla82xx_mbx_intr_disable(scsi_qla_host_t *); |
Giridhar Malavali | 5162cf0 | 2011-11-18 09:03:18 -0800 | [diff] [blame] | 781 | extern void qla82xx_start_iocbs(scsi_qla_host_t *); |
Giridhar Malavali | a908301 | 2010-04-12 17:59:55 -0700 | [diff] [blame] | 782 | extern int qla82xx_fcoe_ctx_reset(scsi_qla_host_t *); |
Giridhar Malavali | 3173167 | 2011-08-16 11:31:54 -0700 | [diff] [blame] | 783 | extern int qla82xx_check_md_needed(scsi_qla_host_t *); |
Giridhar Malavali | 7190575 | 2011-02-23 15:27:10 -0800 | [diff] [blame] | 784 | extern void qla82xx_chip_reset_cleanup(scsi_qla_host_t *); |
Giridhar Malavali | 6246b8a | 2012-02-09 11:15:34 -0800 | [diff] [blame] | 785 | extern int qla81xx_set_led_config(scsi_qla_host_t *, uint16_t *); |
| 786 | extern int qla81xx_get_led_config(scsi_qla_host_t *, uint16_t *); |
Saurav Kashyap | 999916d | 2011-08-16 11:31:45 -0700 | [diff] [blame] | 787 | extern int qla82xx_mbx_beacon_ctl(scsi_qla_host_t *, int); |
Giridhar Malavali | 08de284 | 2011-08-16 11:31:44 -0700 | [diff] [blame] | 788 | extern char *qdev_state(uint32_t); |
Chad Dupuis | c8f6544 | 2011-11-18 09:02:17 -0800 | [diff] [blame] | 789 | extern void qla82xx_clear_pending_mbx(scsi_qla_host_t *); |
Joe Carnuccio | 1ae47cf | 2013-08-27 01:37:36 -0400 | [diff] [blame] | 790 | extern int qla82xx_read_temperature(scsi_qla_host_t *); |
| 791 | extern int qla8044_read_temperature(scsi_qla_host_t *); |
Giridhar Malavali | a908301 | 2010-04-12 17:59:55 -0700 | [diff] [blame] | 792 | |
Giridhar Malavali | 6e98016 | 2010-03-19 17:03:58 -0700 | [diff] [blame] | 793 | /* BSG related functions */ |
Johannes Thumshirn | 75cc8cf | 2016-11-17 10:31:19 +0100 | [diff] [blame] | 794 | extern int qla24xx_bsg_request(struct bsg_job *); |
| 795 | extern int qla24xx_bsg_timeout(struct bsg_job *); |
Giridhar Malavali | 6e98016 | 2010-03-19 17:03:58 -0700 | [diff] [blame] | 796 | extern int qla84xx_reset_chip(scsi_qla_host_t *, uint16_t); |
| 797 | extern int qla2x00_issue_iocb_timeout(scsi_qla_host_t *, void *, |
| 798 | dma_addr_t, size_t, uint32_t); |
| 799 | extern int qla2x00_get_idma_speed(scsi_qla_host_t *, uint16_t, |
| 800 | uint16_t *, uint16_t *); |
Giridhar Malavali | 08de284 | 2011-08-16 11:31:44 -0700 | [diff] [blame] | 801 | |
Giridhar Malavali | 6246b8a | 2012-02-09 11:15:34 -0800 | [diff] [blame] | 802 | /* 83xx related functions */ |
| 803 | extern void qla83xx_fw_dump(scsi_qla_host_t *, int); |
| 804 | |
Giridhar Malavali | 08de284 | 2011-08-16 11:31:44 -0700 | [diff] [blame] | 805 | /* Minidump related functions */ |
| 806 | extern int qla82xx_md_get_template_size(scsi_qla_host_t *); |
| 807 | extern int qla82xx_md_get_template(scsi_qla_host_t *); |
| 808 | extern int qla82xx_md_alloc(scsi_qla_host_t *); |
| 809 | extern void qla82xx_md_free(scsi_qla_host_t *); |
| 810 | extern int qla82xx_md_collect(scsi_qla_host_t *); |
| 811 | extern void qla82xx_md_prep(scsi_qla_host_t *); |
| 812 | extern void qla82xx_set_reset_owner(scsi_qla_host_t *); |
Atul Deshmukh | 7ec0eff | 2013-08-27 01:37:28 -0400 | [diff] [blame] | 813 | extern int qla82xx_validate_template_chksum(scsi_qla_host_t *vha); |
| 814 | |
| 815 | /* Function declarations for ISP8044 */ |
| 816 | extern int qla8044_idc_lock(struct qla_hw_data *ha); |
| 817 | extern void qla8044_idc_unlock(struct qla_hw_data *ha); |
| 818 | extern uint32_t qla8044_rd_reg(struct qla_hw_data *ha, ulong addr); |
| 819 | extern void qla8044_wr_reg(struct qla_hw_data *ha, ulong addr, uint32_t val); |
| 820 | extern void qla8044_read_reset_template(struct scsi_qla_host *ha); |
| 821 | extern void qla8044_set_idc_dontreset(struct scsi_qla_host *ha); |
| 822 | extern int qla8044_rd_direct(struct scsi_qla_host *vha, const uint32_t crb_reg); |
| 823 | extern void qla8044_wr_direct(struct scsi_qla_host *vha, |
| 824 | const uint32_t crb_reg, const uint32_t value); |
Atul Deshmukh | 7ec0eff | 2013-08-27 01:37:28 -0400 | [diff] [blame] | 825 | extern int qla8044_device_state_handler(struct scsi_qla_host *vha); |
| 826 | extern void qla8044_clear_qsnt_ready(struct scsi_qla_host *vha); |
Saurav Kashyap | c41afc9 | 2013-11-07 02:54:56 -0500 | [diff] [blame] | 827 | extern void qla8044_clear_drv_active(struct qla_hw_data *); |
Atul Deshmukh | 7ec0eff | 2013-08-27 01:37:28 -0400 | [diff] [blame] | 828 | void qla8044_get_minidump(struct scsi_qla_host *vha); |
| 829 | int qla8044_collect_md_data(struct scsi_qla_host *vha); |
| 830 | extern int qla8044_md_get_template(scsi_qla_host_t *); |
| 831 | extern int qla8044_write_optrom_data(struct scsi_qla_host *, uint8_t *, |
| 832 | uint32_t, uint32_t); |
| 833 | extern irqreturn_t qla8044_intr_handler(int, void *); |
| 834 | extern void qla82xx_mbx_completion(scsi_qla_host_t *, uint16_t); |
| 835 | extern int qla8044_abort_isp(scsi_qla_host_t *); |
| 836 | extern int qla8044_check_fw_alive(struct scsi_qla_host *); |
Giridhar Malavali | 08de284 | 2011-08-16 11:31:44 -0700 | [diff] [blame] | 837 | |
Arun Easi | c0cb449 | 2014-09-25 06:14:51 -0400 | [diff] [blame] | 838 | extern void qlt_host_reset_handler(struct qla_hw_data *ha); |
Himanshu Madhani | b0d6cab | 2015-12-17 14:56:56 -0500 | [diff] [blame] | 839 | extern int qla_get_exlogin_status(scsi_qla_host_t *, uint16_t *, |
| 840 | uint16_t *); |
| 841 | extern int qla_set_exlogin_mem_cfg(scsi_qla_host_t *vha, dma_addr_t phys_addr); |
Himanshu Madhani | 2f56a7f | 2015-12-17 14:56:57 -0500 | [diff] [blame] | 842 | extern int qla_get_exchoffld_status(scsi_qla_host_t *, uint16_t *, uint16_t *); |
Quinn Tran | 99e1b68 | 2017-06-02 09:12:03 -0700 | [diff] [blame^] | 843 | extern int qla_set_exchoffld_mem_cfg(scsi_qla_host_t *); |
Quinn Tran | 2f424b9 | 2015-12-17 14:57:07 -0500 | [diff] [blame] | 844 | extern void qlt_handle_abts_recv(struct scsi_qla_host *, response_t *); |
Himanshu Madhani | b0d6cab | 2015-12-17 14:56:56 -0500 | [diff] [blame] | 845 | |
Quinn Tran | 726b854 | 2017-01-19 22:28:00 -0800 | [diff] [blame] | 846 | int qla24xx_async_notify_ack(scsi_qla_host_t *, fc_port_t *, |
| 847 | struct imm_ntfy_from_isp *, int); |
| 848 | void qla24xx_do_nack_work(struct scsi_qla_host *, struct qla_work_evt *); |
| 849 | void qlt_plogi_ack_link(struct scsi_qla_host *, struct qlt_plogi_ack_t *, |
| 850 | struct fc_port *, enum qlt_plogi_link_t); |
| 851 | void qlt_plogi_ack_unref(struct scsi_qla_host *, struct qlt_plogi_ack_t *); |
| 852 | extern void qlt_schedule_sess_for_deletion(struct fc_port *, bool); |
| 853 | extern void qlt_schedule_sess_for_deletion_lock(struct fc_port *); |
| 854 | extern struct fc_port *qlt_find_sess_invalidate_other(scsi_qla_host_t *, |
| 855 | uint64_t wwn, port_id_t port_id, uint16_t loop_id, struct fc_port **); |
| 856 | void qla24xx_delete_sess_fn(struct work_struct *); |
Quinn Tran | 41dc529 | 2017-01-19 22:28:03 -0800 | [diff] [blame] | 857 | void qlt_unknown_atio_work_fn(struct work_struct *); |
Quinn Tran | 482c9dc | 2017-03-15 09:48:54 -0700 | [diff] [blame] | 858 | void qlt_update_host_map(struct scsi_qla_host *, port_id_t); |
| 859 | void qlt_remove_target_resources(struct qla_hw_data *); |
Quinn Tran | 726b854 | 2017-01-19 22:28:00 -0800 | [diff] [blame] | 860 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 861 | #endif /* _QLA_GBL_H */ |