Jayamohan Kallickal | 6733b39 | 2009-09-05 07:36:35 +0530 | [diff] [blame] | 1 | /** |
Ketan Mukadam | c4f39bd | 2015-07-04 04:12:33 +0530 | [diff] [blame] | 2 | * Copyright (C) 2005 - 2015 Emulex |
Jayamohan Kallickal | 6733b39 | 2009-09-05 07:36:35 +0530 | [diff] [blame] | 3 | * All rights reserved. |
| 4 | * |
| 5 | * This program is free software; you can redistribute it and/or |
| 6 | * modify it under the terms of the GNU General Public License version 2 |
| 7 | * as published by the Free Software Foundation. The full GNU General |
| 8 | * Public License is included in this distribution in the file called COPYING. |
| 9 | * |
Minh Tran | 4627de9 | 2015-05-14 23:16:17 -0700 | [diff] [blame] | 10 | * Written by: Jayamohan Kallickal (jayamohan.kallickal@avagotech.com) |
Jayamohan Kallickal | 6733b39 | 2009-09-05 07:36:35 +0530 | [diff] [blame] | 11 | * |
| 12 | * Contact Information: |
Minh Tran | 4627de9 | 2015-05-14 23:16:17 -0700 | [diff] [blame] | 13 | * linux-drivers@avagotech.com |
Jayamohan Kallickal | 6733b39 | 2009-09-05 07:36:35 +0530 | [diff] [blame] | 14 | * |
Ketan Mukadam | c4f39bd | 2015-07-04 04:12:33 +0530 | [diff] [blame] | 15 | * Emulex |
Jayamohan Kallickal | 255fa9a | 2011-03-25 14:23:57 -0700 | [diff] [blame] | 16 | * 3333 Susan Street |
| 17 | * Costa Mesa, CA 92626 |
Jayamohan Kallickal | 6733b39 | 2009-09-05 07:36:35 +0530 | [diff] [blame] | 18 | */ |
| 19 | |
| 20 | #ifndef _BEISCSI_MGMT_ |
| 21 | #define _BEISCSI_MGMT_ |
| 22 | |
Jayamohan Kallickal | ffce3e2 | 2012-04-03 23:41:50 -0500 | [diff] [blame] | 23 | #include <scsi/scsi_bsg_iscsi.h> |
Jayamohan Kallickal | 6733b39 | 2009-09-05 07:36:35 +0530 | [diff] [blame] | 24 | #include "be_iscsi.h" |
| 25 | #include "be_main.h" |
| 26 | |
Mike Christie | 0e43895 | 2012-04-03 23:41:51 -0500 | [diff] [blame] | 27 | #define IP_ACTION_ADD 0x01 |
| 28 | #define IP_ACTION_DEL 0x02 |
| 29 | |
| 30 | #define IP_V6_LEN 16 |
| 31 | #define IP_V4_LEN 4 |
| 32 | |
John Soni Jose | 7a15800 | 2012-10-20 04:45:51 +0530 | [diff] [blame] | 33 | /* UE Status and Mask register */ |
| 34 | #define PCICFG_UE_STATUS_LOW 0xA0 |
| 35 | #define PCICFG_UE_STATUS_HIGH 0xA4 |
| 36 | #define PCICFG_UE_STATUS_MASK_LOW 0xA8 |
| 37 | #define PCICFG_UE_STATUS_MASK_HI 0xAC |
| 38 | |
Jayamohan Kallickal | 6733b39 | 2009-09-05 07:36:35 +0530 | [diff] [blame] | 39 | /** |
| 40 | * Pseudo amap definition in which each bit of the actual structure is defined |
| 41 | * as a byte: used to calculate offset/shift/mask of each field |
| 42 | */ |
| 43 | struct amap_mcc_sge { |
| 44 | u8 pa_lo[32]; /* dword 0 */ |
| 45 | u8 pa_hi[32]; /* dword 1 */ |
| 46 | u8 length[32]; /* DWORD 2 */ |
| 47 | } __packed; |
| 48 | |
| 49 | /** |
| 50 | * Pseudo amap definition in which each bit of the actual structure is defined |
| 51 | * as a byte: used to calculate offset/shift/mask of each field |
| 52 | */ |
| 53 | struct amap_mcc_wrb_payload { |
| 54 | union { |
| 55 | struct amap_mcc_sge sgl[19]; |
| 56 | u8 embedded[59 * 32]; /* DWORDS 57 to 115 */ |
| 57 | } u; |
| 58 | } __packed; |
| 59 | |
| 60 | /** |
| 61 | * Pseudo amap definition in which each bit of the actual structure is defined |
| 62 | * as a byte: used to calculate offset/shift/mask of each field |
| 63 | */ |
| 64 | struct amap_mcc_wrb { |
| 65 | u8 embedded; /* DWORD 0 */ |
| 66 | u8 rsvd0[2]; /* DWORD 0 */ |
| 67 | u8 sge_count[5]; /* DWORD 0 */ |
| 68 | u8 rsvd1[16]; /* DWORD 0 */ |
| 69 | u8 special[8]; /* DWORD 0 */ |
| 70 | u8 payload_length[32]; |
| 71 | u8 tag[64]; /* DWORD 2 */ |
| 72 | u8 rsvd2[32]; /* DWORD 4 */ |
| 73 | struct amap_mcc_wrb_payload payload; |
| 74 | }; |
| 75 | |
| 76 | struct mcc_sge { |
| 77 | u32 pa_lo; /* dword 0 */ |
| 78 | u32 pa_hi; /* dword 1 */ |
| 79 | u32 length; /* DWORD 2 */ |
| 80 | } __packed; |
| 81 | |
| 82 | struct mcc_wrb_payload { |
| 83 | union { |
| 84 | struct mcc_sge sgl[19]; |
| 85 | u32 embedded[59]; /* DWORDS 57 to 115 */ |
| 86 | } u; |
| 87 | } __packed; |
| 88 | |
| 89 | #define MCC_WRB_EMBEDDED_MASK 0x00000001 |
| 90 | |
| 91 | struct mcc_wrb { |
| 92 | u32 dw[0]; /* DWORD 0 */ |
| 93 | u32 payload_length; |
| 94 | u32 tag[2]; /* DWORD 2 */ |
| 95 | u32 rsvd2[1]; /* DWORD 4 */ |
| 96 | struct mcc_wrb_payload payload; |
| 97 | }; |
| 98 | |
Jayamohan Kallickal | 03a1231 | 2010-07-22 04:17:16 +0530 | [diff] [blame] | 99 | int mgmt_epfw_cleanup(struct beiscsi_hba *phba, unsigned short chute); |
Jayamohan Kallickal | 3cbb7a7 | 2010-07-22 04:27:47 +0530 | [diff] [blame] | 100 | int mgmt_open_connection(struct beiscsi_hba *phba, |
| 101 | struct sockaddr *dst_addr, |
| 102 | struct beiscsi_endpoint *beiscsi_ep, |
| 103 | struct be_dma_mem *nonemb_cmd); |
Jayamohan Kallickal | 6733b39 | 2009-09-05 07:36:35 +0530 | [diff] [blame] | 104 | |
Jayamohan Kallickal | 03a1231 | 2010-07-22 04:17:16 +0530 | [diff] [blame] | 105 | unsigned int mgmt_upload_connection(struct beiscsi_hba *phba, |
Jayamohan Kallickal | 6733b39 | 2009-09-05 07:36:35 +0530 | [diff] [blame] | 106 | unsigned short cid, |
| 107 | unsigned int upload_flag); |
Jayamohan Kallickal | 03a1231 | 2010-07-22 04:17:16 +0530 | [diff] [blame] | 108 | unsigned int mgmt_invalidate_icds(struct beiscsi_hba *phba, |
Jayamohan Kallickal | 4183122 | 2010-02-20 08:02:39 +0530 | [diff] [blame] | 109 | struct invalidate_command_table *inv_tbl, |
Jayamohan Kallickal | 3cbb7a7 | 2010-07-22 04:27:47 +0530 | [diff] [blame] | 110 | unsigned int num_invalidate, unsigned int cid, |
| 111 | struct be_dma_mem *nonemb_cmd); |
Jayamohan Kallickal | ffce3e2 | 2012-04-03 23:41:50 -0500 | [diff] [blame] | 112 | unsigned int mgmt_vendor_specific_fw_cmd(struct be_ctrl_info *ctrl, |
| 113 | struct beiscsi_hba *phba, |
| 114 | struct bsg_job *job, |
| 115 | struct be_dma_mem *nonemb_cmd); |
Jayamohan Kallickal | 6733b39 | 2009-09-05 07:36:35 +0530 | [diff] [blame] | 116 | |
John Soni Jose | 0a513dd | 2012-08-20 23:00:55 +0530 | [diff] [blame] | 117 | #define BEISCSI_NO_RST_ISSUE 0 |
Jayamohan Kallickal | 6733b39 | 2009-09-05 07:36:35 +0530 | [diff] [blame] | 118 | struct iscsi_invalidate_connection_params_in { |
| 119 | struct be_cmd_req_hdr hdr; |
| 120 | unsigned int session_handle; |
| 121 | unsigned short cid; |
| 122 | unsigned short unused; |
| 123 | unsigned short cleanup_type; |
| 124 | unsigned short save_cfg; |
| 125 | } __packed; |
| 126 | |
| 127 | struct iscsi_invalidate_connection_params_out { |
| 128 | unsigned int session_handle; |
| 129 | unsigned short cid; |
| 130 | unsigned short unused; |
| 131 | } __packed; |
| 132 | |
| 133 | union iscsi_invalidate_connection_params { |
| 134 | struct iscsi_invalidate_connection_params_in request; |
| 135 | struct iscsi_invalidate_connection_params_out response; |
| 136 | } __packed; |
| 137 | |
Jayamohan Kallickal | 6733b39 | 2009-09-05 07:36:35 +0530 | [diff] [blame] | 138 | struct invalidate_commands_params_in { |
| 139 | struct be_cmd_req_hdr hdr; |
| 140 | unsigned int ref_handle; |
| 141 | unsigned int icd_count; |
| 142 | struct invalidate_command_table table[128]; |
| 143 | unsigned short cleanup_type; |
| 144 | unsigned short unused; |
| 145 | } __packed; |
| 146 | |
| 147 | struct invalidate_commands_params_out { |
| 148 | unsigned int ref_handle; |
| 149 | unsigned int icd_count; |
| 150 | unsigned int icd_status[128]; |
| 151 | } __packed; |
| 152 | |
| 153 | union invalidate_commands_params { |
| 154 | struct invalidate_commands_params_in request; |
| 155 | struct invalidate_commands_params_out response; |
| 156 | } __packed; |
| 157 | |
| 158 | struct mgmt_hba_attributes { |
Jayamohan Kallickal | 22661e2 | 2013-04-05 20:38:28 -0700 | [diff] [blame] | 159 | u8 flashrom_version_string[BEISCSI_VER_STRLEN]; |
| 160 | u8 manufacturer_name[BEISCSI_VER_STRLEN]; |
Jayamohan Kallickal | 6733b39 | 2009-09-05 07:36:35 +0530 | [diff] [blame] | 161 | u32 supported_modes; |
| 162 | u8 seeprom_version_lo; |
| 163 | u8 seeprom_version_hi; |
| 164 | u8 rsvd0[2]; |
| 165 | u32 fw_cmd_data_struct_version; |
| 166 | u32 ep_fw_data_struct_version; |
Jayamohan Kallickal | 22661e2 | 2013-04-05 20:38:28 -0700 | [diff] [blame] | 167 | u8 ncsi_version_string[12]; |
Jayamohan Kallickal | 6733b39 | 2009-09-05 07:36:35 +0530 | [diff] [blame] | 168 | u32 default_extended_timeout; |
Jayamohan Kallickal | 22661e2 | 2013-04-05 20:38:28 -0700 | [diff] [blame] | 169 | u8 controller_model_number[BEISCSI_VER_STRLEN]; |
Jayamohan Kallickal | 6733b39 | 2009-09-05 07:36:35 +0530 | [diff] [blame] | 170 | u8 controller_description[64]; |
Jayamohan Kallickal | 22661e2 | 2013-04-05 20:38:28 -0700 | [diff] [blame] | 171 | u8 controller_serial_number[BEISCSI_VER_STRLEN]; |
| 172 | u8 ip_version_string[BEISCSI_VER_STRLEN]; |
| 173 | u8 firmware_version_string[BEISCSI_VER_STRLEN]; |
| 174 | u8 bios_version_string[BEISCSI_VER_STRLEN]; |
| 175 | u8 redboot_version_string[BEISCSI_VER_STRLEN]; |
| 176 | u8 driver_version_string[BEISCSI_VER_STRLEN]; |
| 177 | u8 fw_on_flash_version_string[BEISCSI_VER_STRLEN]; |
Jayamohan Kallickal | 6733b39 | 2009-09-05 07:36:35 +0530 | [diff] [blame] | 178 | u32 functionalities_supported; |
| 179 | u16 max_cdblength; |
| 180 | u8 asic_revision; |
| 181 | u8 generational_guid[16]; |
| 182 | u8 hba_port_count; |
| 183 | u16 default_link_down_timeout; |
| 184 | u8 iscsi_ver_min_max; |
| 185 | u8 multifunction_device; |
| 186 | u8 cache_valid; |
| 187 | u8 hba_status; |
| 188 | u8 max_domains_supported; |
| 189 | u8 phy_port; |
| 190 | u32 firmware_post_status; |
| 191 | u32 hba_mtu[8]; |
Jayamohan Kallickal | bfead3b | 2009-10-23 11:52:33 +0530 | [diff] [blame] | 192 | u8 iscsi_features; |
Jayamohan Kallickal | 22661e2 | 2013-04-05 20:38:28 -0700 | [diff] [blame] | 193 | u8 asic_generation; |
| 194 | u8 future_u8[2]; |
Jayamohan Kallickal | bfead3b | 2009-10-23 11:52:33 +0530 | [diff] [blame] | 195 | u32 future_u32[3]; |
Jayamohan Kallickal | 6733b39 | 2009-09-05 07:36:35 +0530 | [diff] [blame] | 196 | } __packed; |
| 197 | |
| 198 | struct mgmt_controller_attributes { |
| 199 | struct mgmt_hba_attributes hba_attribs; |
| 200 | u16 pci_vendor_id; |
| 201 | u16 pci_device_id; |
| 202 | u16 pci_sub_vendor_id; |
| 203 | u16 pci_sub_system_id; |
| 204 | u8 pci_bus_number; |
| 205 | u8 pci_device_number; |
| 206 | u8 pci_function_number; |
| 207 | u8 interface_type; |
| 208 | u64 unique_identifier; |
| 209 | u8 netfilters; |
| 210 | u8 rsvd0[3]; |
Jayamohan Kallickal | 22661e2 | 2013-04-05 20:38:28 -0700 | [diff] [blame] | 211 | u32 future_u32[4]; |
Jayamohan Kallickal | 6733b39 | 2009-09-05 07:36:35 +0530 | [diff] [blame] | 212 | } __packed; |
| 213 | |
| 214 | struct be_mgmt_controller_attributes { |
| 215 | struct be_cmd_req_hdr hdr; |
| 216 | struct mgmt_controller_attributes params; |
| 217 | } __packed; |
| 218 | |
| 219 | struct be_mgmt_controller_attributes_resp { |
| 220 | struct be_cmd_resp_hdr hdr; |
| 221 | struct mgmt_controller_attributes params; |
| 222 | } __packed; |
| 223 | |
Jayamohan Kallickal | ffce3e2 | 2012-04-03 23:41:50 -0500 | [diff] [blame] | 224 | struct be_bsg_vendor_cmd { |
| 225 | struct be_cmd_req_hdr hdr; |
| 226 | unsigned short region; |
| 227 | unsigned short offset; |
| 228 | unsigned short sector; |
| 229 | } __packed; |
| 230 | |
Jayamohan Kallickal | 6733b39 | 2009-09-05 07:36:35 +0530 | [diff] [blame] | 231 | /* configuration management */ |
| 232 | |
| 233 | #define GET_MGMT_CONTROLLER_WS(phba) (phba->pmgmt_ws) |
| 234 | |
| 235 | /* MGMT CMD flags */ |
| 236 | |
| 237 | #define MGMT_CMDH_FREE (1<<0) |
| 238 | |
| 239 | /* --- MGMT_ERROR_CODES --- */ |
| 240 | /* Error Codes returned in the status field of the CMD response header */ |
| 241 | #define MGMT_STATUS_SUCCESS 0 /* The CMD completed without errors */ |
| 242 | #define MGMT_STATUS_FAILED 1 /* Error status in the Status field of */ |
| 243 | /* the CMD_RESPONSE_HEADER */ |
| 244 | |
| 245 | #define ISCSI_GET_PDU_TEMPLATE_ADDRESS(pc, pa) {\ |
Jayamohan Kallickal | 3ec7827 | 2012-04-03 23:41:38 -0500 | [diff] [blame] | 246 | pa->lo = phba->init_mem[ISCSI_MEM_GLOBAL_HEADER].mem_array[0].\ |
Jayamohan Kallickal | 6733b39 | 2009-09-05 07:36:35 +0530 | [diff] [blame] | 247 | bus_address.u.a32.address_lo; \ |
Jayamohan Kallickal | 3ec7827 | 2012-04-03 23:41:38 -0500 | [diff] [blame] | 248 | pa->hi = phba->init_mem[ISCSI_MEM_GLOBAL_HEADER].mem_array[0].\ |
Jayamohan Kallickal | 6733b39 | 2009-09-05 07:36:35 +0530 | [diff] [blame] | 249 | bus_address.u.a32.address_hi; \ |
| 250 | } |
| 251 | |
Jayamohan Kallickal | ffce3e2 | 2012-04-03 23:41:50 -0500 | [diff] [blame] | 252 | #define BEISCSI_WRITE_FLASH 0 |
| 253 | #define BEISCSI_READ_FLASH 1 |
| 254 | |
Jayamohan Kallickal | 6733b39 | 2009-09-05 07:36:35 +0530 | [diff] [blame] | 255 | struct beiscsi_endpoint { |
| 256 | struct beiscsi_hba *phba; |
| 257 | struct beiscsi_sess *sess; |
| 258 | struct beiscsi_conn *conn; |
Jayamohan Kallickal | c246228 | 2010-01-05 05:05:34 +0530 | [diff] [blame] | 259 | struct iscsi_endpoint *openiscsi_ep; |
Jayamohan Kallickal | 6733b39 | 2009-09-05 07:36:35 +0530 | [diff] [blame] | 260 | unsigned short ip_type; |
| 261 | char dst6_addr[ISCSI_ADDRESS_BUF_LEN]; |
| 262 | unsigned long dst_addr; |
| 263 | unsigned short ep_cid; |
| 264 | unsigned int fw_handle; |
| 265 | u16 dst_tcpport; |
| 266 | u16 cid_vld; |
| 267 | }; |
| 268 | |
Jayamohan Kallickal | 03a1231 | 2010-07-22 04:17:16 +0530 | [diff] [blame] | 269 | int mgmt_get_fw_config(struct be_ctrl_info *ctrl, |
Jayamohan Kallickal | 6733b39 | 2009-09-05 07:36:35 +0530 | [diff] [blame] | 270 | struct beiscsi_hba *phba); |
| 271 | |
Jayamohan Kallickal | 03a1231 | 2010-07-22 04:17:16 +0530 | [diff] [blame] | 272 | unsigned int mgmt_invalidate_connection(struct beiscsi_hba *phba, |
Jayamohan Kallickal | 6733b39 | 2009-09-05 07:36:35 +0530 | [diff] [blame] | 273 | struct beiscsi_endpoint *beiscsi_ep, |
| 274 | unsigned short cid, |
| 275 | unsigned short issue_reset, |
| 276 | unsigned short savecfg_flag); |
Jayamohan Kallickal | bfead3b | 2009-10-23 11:52:33 +0530 | [diff] [blame] | 277 | |
Mike Christie | 0e43895 | 2012-04-03 23:41:51 -0500 | [diff] [blame] | 278 | int mgmt_set_ip(struct beiscsi_hba *phba, |
| 279 | struct iscsi_iface_param_info *ip_param, |
| 280 | struct iscsi_iface_param_info *subnet_param, |
| 281 | uint32_t boot_proto); |
| 282 | |
| 283 | unsigned int mgmt_get_boot_target(struct beiscsi_hba *phba); |
| 284 | |
John Soni Jose | 9aef420 | 2012-08-20 23:00:08 +0530 | [diff] [blame] | 285 | unsigned int mgmt_reopen_session(struct beiscsi_hba *phba, |
| 286 | unsigned int reopen_type, |
| 287 | unsigned sess_handle); |
| 288 | |
Mike Christie | 0e43895 | 2012-04-03 23:41:51 -0500 | [diff] [blame] | 289 | unsigned int mgmt_get_session_info(struct beiscsi_hba *phba, |
| 290 | u32 boot_session_handle, |
| 291 | struct be_dma_mem *nonemb_cmd); |
| 292 | |
| 293 | int mgmt_get_nic_conf(struct beiscsi_hba *phba, |
| 294 | struct be_cmd_get_nic_conf_resp *mac); |
| 295 | |
| 296 | int mgmt_get_if_info(struct beiscsi_hba *phba, int ip_type, |
Jayamohan Kallickal | 1f536d4 | 2013-09-28 15:35:56 -0700 | [diff] [blame] | 297 | struct be_cmd_get_if_info_resp **if_info); |
Mike Christie | 0e43895 | 2012-04-03 23:41:51 -0500 | [diff] [blame] | 298 | |
| 299 | int mgmt_get_gateway(struct beiscsi_hba *phba, int ip_type, |
| 300 | struct be_cmd_get_def_gateway_resp *gateway); |
| 301 | |
| 302 | int mgmt_set_gateway(struct beiscsi_hba *phba, |
| 303 | struct iscsi_iface_param_info *gateway_param); |
| 304 | |
John Soni Jose | 9aef420 | 2012-08-20 23:00:08 +0530 | [diff] [blame] | 305 | int be_mgmt_get_boot_shandle(struct beiscsi_hba *phba, |
| 306 | unsigned int *s_handle); |
John Soni Jose | 6f72238 | 2012-08-20 23:00:43 +0530 | [diff] [blame] | 307 | |
| 308 | unsigned int mgmt_get_all_if_id(struct beiscsi_hba *phba); |
| 309 | |
| 310 | int mgmt_set_vlan(struct beiscsi_hba *phba, uint16_t vlan_tag); |
John Soni Jose | 5cac759 | 2012-10-20 04:42:25 +0530 | [diff] [blame] | 311 | |
| 312 | ssize_t beiscsi_drvr_ver_disp(struct device *dev, |
| 313 | struct device_attribute *attr, char *buf); |
John Soni Jose | acb9693 | 2012-10-20 04:44:35 +0530 | [diff] [blame] | 314 | |
Jayamohan Kallickal | 22661e2 | 2013-04-05 20:38:28 -0700 | [diff] [blame] | 315 | ssize_t beiscsi_fw_ver_disp(struct device *dev, |
| 316 | struct device_attribute *attr, char *buf); |
| 317 | |
Jayamohan Kallickal | 6103c1f | 2013-09-28 15:35:52 -0700 | [diff] [blame] | 318 | ssize_t beiscsi_active_session_disp(struct device *dev, |
| 319 | struct device_attribute *attr, char *buf); |
Jayamohan Kallickal | 7ad4dfe | 2013-04-05 20:38:29 -0700 | [diff] [blame] | 320 | |
John Soni Jose | 26000db | 2012-10-20 04:45:06 +0530 | [diff] [blame] | 321 | ssize_t beiscsi_adap_family_disp(struct device *dev, |
| 322 | struct device_attribute *attr, char *buf); |
| 323 | |
Jayamohan Kallickal | 6103c1f | 2013-09-28 15:35:52 -0700 | [diff] [blame] | 324 | |
| 325 | ssize_t beiscsi_free_session_disp(struct device *dev, |
| 326 | struct device_attribute *attr, char *buf); |
| 327 | |
Jayamohan Kallickal | d3fea9a | 2013-09-28 15:35:53 -0700 | [diff] [blame] | 328 | ssize_t beiscsi_phys_port_disp(struct device *dev, |
| 329 | struct device_attribute *attr, char *buf); |
| 330 | |
John Soni Jose | acb9693 | 2012-10-20 04:44:35 +0530 | [diff] [blame] | 331 | void beiscsi_offload_cxn_v0(struct beiscsi_offload_params *params, |
| 332 | struct wrb_handle *pwrb_handle, |
John Soni Jose | 340c99e | 2015-08-20 04:44:30 +0530 | [diff] [blame] | 333 | struct be_mem_descriptor *mem_descr, |
| 334 | struct hwi_wrb_context *pwrb_context); |
John Soni Jose | acb9693 | 2012-10-20 04:44:35 +0530 | [diff] [blame] | 335 | |
| 336 | void beiscsi_offload_cxn_v2(struct beiscsi_offload_params *params, |
John Soni Jose | 340c99e | 2015-08-20 04:44:30 +0530 | [diff] [blame] | 337 | struct wrb_handle *pwrb_handle, |
| 338 | struct hwi_wrb_context *pwrb_context); |
| 339 | |
John Soni Jose | 7a15800 | 2012-10-20 04:45:51 +0530 | [diff] [blame] | 340 | void beiscsi_ue_detect(struct beiscsi_hba *phba); |
Jayamohan Kallickal | 73af08e | 2014-05-05 21:41:26 -0400 | [diff] [blame] | 341 | int be_cmd_modify_eq_delay(struct beiscsi_hba *phba, |
| 342 | struct be_set_eqd *, int num); |
John Soni Jose | acb9693 | 2012-10-20 04:44:35 +0530 | [diff] [blame] | 343 | |
John Soni Jose | 3f4134c | 2015-04-25 08:18:13 +0530 | [diff] [blame] | 344 | int beiscsi_logout_fw_sess(struct beiscsi_hba *phba, |
| 345 | uint32_t fw_sess_handle); |
| 346 | |
Jayamohan Kallickal | 6733b39 | 2009-09-05 07:36:35 +0530 | [diff] [blame] | 347 | #endif |