Krishna Gudipati | b85daaf | 2011-06-13 15:55:11 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2005-2010 Brocade Communications Systems, Inc. |
| 3 | * All rights reserved |
| 4 | * www.brocade.com |
| 5 | * |
| 6 | * Linux driver for Brocade Fibre Channel Host Bus Adapter. |
| 7 | * |
| 8 | * This program is free software; you can redistribute it and/or modify it |
| 9 | * under the terms of the GNU General Public License (GPL) Version 2 as |
| 10 | * published by the Free Software Foundation |
| 11 | * |
| 12 | * This program is distributed in the hope that it will be useful, but |
| 13 | * WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 | * General Public License for more details. |
| 16 | */ |
| 17 | #ifndef BFAD_BSG_H |
| 18 | #define BFAD_BSG_H |
| 19 | |
| 20 | #include "bfa_defs.h" |
| 21 | #include "bfa_defs_fcs.h" |
| 22 | |
| 23 | /* Definitions of vendor unique structures and command codes passed in |
| 24 | * using FC_BSG_HST_VENDOR message code. |
| 25 | */ |
| 26 | enum { |
Krishna Gudipati | 6013806 | 2011-06-24 20:25:15 -0700 | [diff] [blame] | 27 | IOCMD_IOC_ENABLE = 0x1, |
| 28 | IOCMD_IOC_DISABLE, |
| 29 | IOCMD_IOC_GET_ATTR, |
Krishna Gudipati | b85daaf | 2011-06-13 15:55:11 -0700 | [diff] [blame] | 30 | IOCMD_IOC_GET_INFO, |
Krishna Gudipati | 6013806 | 2011-06-24 20:25:15 -0700 | [diff] [blame] | 31 | IOCMD_IOC_GET_STATS, |
| 32 | IOCMD_IOC_GET_FWSTATS, |
| 33 | IOCMD_IOCFC_GET_ATTR, |
| 34 | IOCMD_IOCFC_SET_INTR, |
| 35 | IOCMD_PORT_ENABLE, |
| 36 | IOCMD_PORT_DISABLE, |
Krishna Gudipati | b85daaf | 2011-06-13 15:55:11 -0700 | [diff] [blame] | 37 | IOCMD_PORT_GET_ATTR, |
Krishna Gudipati | 6013806 | 2011-06-24 20:25:15 -0700 | [diff] [blame] | 38 | IOCMD_PORT_GET_STATS, |
Krishna Gudipati | b85daaf | 2011-06-13 15:55:11 -0700 | [diff] [blame] | 39 | IOCMD_LPORT_GET_ATTR, |
Krishna Gudipati | 6013806 | 2011-06-24 20:25:15 -0700 | [diff] [blame] | 40 | IOCMD_LPORT_GET_RPORTS, |
| 41 | IOCMD_LPORT_GET_STATS, |
| 42 | IOCMD_LPORT_GET_IOSTATS, |
| 43 | IOCMD_RPORT_GET_ATTR, |
Krishna Gudipati | b85daaf | 2011-06-13 15:55:11 -0700 | [diff] [blame] | 44 | IOCMD_RPORT_GET_ADDR, |
Krishna Gudipati | 6013806 | 2011-06-24 20:25:15 -0700 | [diff] [blame] | 45 | IOCMD_RPORT_GET_STATS, |
Krishna Gudipati | b85daaf | 2011-06-13 15:55:11 -0700 | [diff] [blame] | 46 | IOCMD_FABRIC_GET_LPORTS, |
Krishna Gudipati | 6013806 | 2011-06-24 20:25:15 -0700 | [diff] [blame] | 47 | IOCMD_FCPIM_MODSTATS, |
| 48 | IOCMD_FCPIM_DEL_ITN_STATS, |
Krishna Gudipati | b85daaf | 2011-06-13 15:55:11 -0700 | [diff] [blame] | 49 | IOCMD_ITNIM_GET_ATTR, |
Krishna Gudipati | 6013806 | 2011-06-24 20:25:15 -0700 | [diff] [blame] | 50 | IOCMD_ITNIM_GET_IOSTATS, |
| 51 | IOCMD_ITNIM_GET_ITNSTATS, |
Krishna Gudipati | 1a4d8e1 | 2011-06-24 20:22:28 -0700 | [diff] [blame] | 52 | IOCMD_IOC_PCIFN_CFG, |
Krishna Gudipati | 6013806 | 2011-06-24 20:25:15 -0700 | [diff] [blame] | 53 | IOCMD_FCPORT_ENABLE, |
| 54 | IOCMD_FCPORT_DISABLE, |
Krishna Gudipati | 1a4d8e1 | 2011-06-24 20:22:28 -0700 | [diff] [blame] | 55 | IOCMD_PCIFN_CREATE, |
| 56 | IOCMD_PCIFN_DELETE, |
| 57 | IOCMD_PCIFN_BW, |
| 58 | IOCMD_ADAPTER_CFG_MODE, |
| 59 | IOCMD_PORT_CFG_MODE, |
| 60 | IOCMD_FLASH_ENABLE_OPTROM, |
| 61 | IOCMD_FLASH_DISABLE_OPTROM, |
Krishna Gudipati | a714134 | 2011-06-24 20:23:19 -0700 | [diff] [blame] | 62 | IOCMD_FAA_ENABLE, |
| 63 | IOCMD_FAA_DISABLE, |
| 64 | IOCMD_FAA_QUERY, |
Krishna Gudipati | 148d610 | 2011-06-24 20:25:36 -0700 | [diff] [blame] | 65 | IOCMD_CEE_GET_ATTR, |
| 66 | IOCMD_CEE_GET_STATS, |
| 67 | IOCMD_CEE_RESET_STATS, |
Krishna Gudipati | 51e569a | 2011-06-24 20:26:25 -0700 | [diff] [blame] | 68 | IOCMD_SFP_MEDIA, |
| 69 | IOCMD_SFP_SPEED, |
Krishna Gudipati | 5a54b1d | 2011-06-24 20:27:13 -0700 | [diff] [blame] | 70 | IOCMD_FLASH_GET_ATTR, |
| 71 | IOCMD_FLASH_ERASE_PART, |
| 72 | IOCMD_FLASH_UPDATE_PART, |
| 73 | IOCMD_FLASH_READ_PART, |
Krishna Gudipati | 3d7fc66 | 2011-06-24 20:28:17 -0700 | [diff] [blame] | 74 | IOCMD_DIAG_TEMP, |
| 75 | IOCMD_DIAG_MEMTEST, |
| 76 | IOCMD_DIAG_LOOPBACK, |
| 77 | IOCMD_DIAG_FWPING, |
| 78 | IOCMD_DIAG_QUEUETEST, |
| 79 | IOCMD_DIAG_SFP, |
| 80 | IOCMD_DIAG_LED, |
| 81 | IOCMD_DIAG_BEACON_LPORT, |
| 82 | IOCMD_DIAG_LB_STAT, |
Krishna Gudipati | 3350d98 | 2011-06-24 20:28:37 -0700 | [diff] [blame^] | 83 | IOCMD_PHY_GET_ATTR, |
| 84 | IOCMD_PHY_GET_STATS, |
| 85 | IOCMD_PHY_UPDATE_FW, |
| 86 | IOCMD_PHY_READ_FW, |
Krishna Gudipati | 1a4d8e1 | 2011-06-24 20:22:28 -0700 | [diff] [blame] | 87 | }; |
| 88 | |
| 89 | struct bfa_bsg_gen_s { |
| 90 | bfa_status_t status; |
| 91 | u16 bfad_num; |
| 92 | u16 rsvd; |
Krishna Gudipati | b85daaf | 2011-06-13 15:55:11 -0700 | [diff] [blame] | 93 | }; |
| 94 | |
| 95 | struct bfa_bsg_ioc_info_s { |
| 96 | bfa_status_t status; |
| 97 | u16 bfad_num; |
| 98 | u16 rsvd; |
| 99 | char serialnum[64]; |
| 100 | char hwpath[BFA_STRING_32]; |
| 101 | char adapter_hwpath[BFA_STRING_32]; |
| 102 | char guid[BFA_ADAPTER_SYM_NAME_LEN*2]; |
| 103 | char name[BFA_ADAPTER_SYM_NAME_LEN]; |
| 104 | char port_name[BFA_ADAPTER_SYM_NAME_LEN]; |
| 105 | char eth_name[BFA_ADAPTER_SYM_NAME_LEN]; |
| 106 | wwn_t pwwn; |
| 107 | wwn_t nwwn; |
| 108 | wwn_t factorypwwn; |
| 109 | wwn_t factorynwwn; |
| 110 | mac_t mac; |
| 111 | mac_t factory_mac; /* Factory mac address */ |
| 112 | mac_t current_mac; /* Currently assigned mac address */ |
| 113 | enum bfa_ioc_type_e ioc_type; |
| 114 | u16 pvid; /* Port vlan id */ |
| 115 | u16 rsvd1; |
| 116 | u32 host; |
| 117 | u32 bandwidth; /* For PF support */ |
| 118 | u32 rsvd2; |
| 119 | }; |
| 120 | |
| 121 | struct bfa_bsg_ioc_attr_s { |
| 122 | bfa_status_t status; |
| 123 | u16 bfad_num; |
| 124 | u16 rsvd; |
| 125 | struct bfa_ioc_attr_s ioc_attr; |
| 126 | }; |
| 127 | |
Krishna Gudipati | 6013806 | 2011-06-24 20:25:15 -0700 | [diff] [blame] | 128 | struct bfa_bsg_ioc_stats_s { |
| 129 | bfa_status_t status; |
| 130 | u16 bfad_num; |
| 131 | u16 rsvd; |
| 132 | struct bfa_ioc_stats_s ioc_stats; |
| 133 | }; |
| 134 | |
| 135 | struct bfa_bsg_ioc_fwstats_s { |
| 136 | bfa_status_t status; |
| 137 | u16 bfad_num; |
| 138 | u16 rsvd; |
| 139 | u32 buf_size; |
| 140 | u32 rsvd1; |
| 141 | u64 buf_ptr; |
| 142 | }; |
| 143 | |
| 144 | struct bfa_bsg_iocfc_attr_s { |
| 145 | bfa_status_t status; |
| 146 | u16 bfad_num; |
| 147 | u16 rsvd; |
| 148 | struct bfa_iocfc_attr_s iocfc_attr; |
| 149 | }; |
| 150 | |
| 151 | struct bfa_bsg_iocfc_intr_s { |
| 152 | bfa_status_t status; |
| 153 | u16 bfad_num; |
| 154 | u16 rsvd; |
| 155 | struct bfa_iocfc_intr_attr_s attr; |
| 156 | }; |
| 157 | |
Krishna Gudipati | b85daaf | 2011-06-13 15:55:11 -0700 | [diff] [blame] | 158 | struct bfa_bsg_port_attr_s { |
| 159 | bfa_status_t status; |
| 160 | u16 bfad_num; |
| 161 | u16 rsvd; |
| 162 | struct bfa_port_attr_s attr; |
| 163 | }; |
| 164 | |
Krishna Gudipati | 6013806 | 2011-06-24 20:25:15 -0700 | [diff] [blame] | 165 | struct bfa_bsg_port_stats_s { |
| 166 | bfa_status_t status; |
| 167 | u16 bfad_num; |
| 168 | u16 rsvd; |
| 169 | u32 buf_size; |
| 170 | u32 rsvd1; |
| 171 | u64 buf_ptr; |
| 172 | }; |
| 173 | |
Krishna Gudipati | b85daaf | 2011-06-13 15:55:11 -0700 | [diff] [blame] | 174 | struct bfa_bsg_lport_attr_s { |
| 175 | bfa_status_t status; |
| 176 | u16 bfad_num; |
| 177 | u16 vf_id; |
| 178 | wwn_t pwwn; |
| 179 | struct bfa_lport_attr_s port_attr; |
| 180 | }; |
| 181 | |
Krishna Gudipati | 6013806 | 2011-06-24 20:25:15 -0700 | [diff] [blame] | 182 | struct bfa_bsg_lport_stats_s { |
| 183 | bfa_status_t status; |
| 184 | u16 bfad_num; |
| 185 | u16 vf_id; |
| 186 | wwn_t pwwn; |
| 187 | struct bfa_lport_stats_s port_stats; |
| 188 | }; |
| 189 | |
| 190 | struct bfa_bsg_lport_iostats_s { |
| 191 | bfa_status_t status; |
| 192 | u16 bfad_num; |
| 193 | u16 vf_id; |
| 194 | wwn_t pwwn; |
| 195 | struct bfa_itnim_iostats_s iostats; |
| 196 | }; |
| 197 | |
| 198 | struct bfa_bsg_lport_get_rports_s { |
| 199 | bfa_status_t status; |
| 200 | u16 bfad_num; |
| 201 | u16 vf_id; |
| 202 | wwn_t pwwn; |
| 203 | u64 rbuf_ptr; |
| 204 | u32 nrports; |
| 205 | u32 rsvd; |
| 206 | }; |
| 207 | |
| 208 | struct bfa_bsg_rport_attr_s { |
| 209 | bfa_status_t status; |
| 210 | u16 bfad_num; |
| 211 | u16 vf_id; |
| 212 | wwn_t pwwn; |
| 213 | wwn_t rpwwn; |
| 214 | struct bfa_rport_attr_s attr; |
| 215 | }; |
| 216 | |
| 217 | struct bfa_bsg_rport_stats_s { |
| 218 | bfa_status_t status; |
| 219 | u16 bfad_num; |
| 220 | u16 vf_id; |
| 221 | wwn_t pwwn; |
| 222 | wwn_t rpwwn; |
| 223 | struct bfa_rport_stats_s stats; |
| 224 | }; |
| 225 | |
Krishna Gudipati | b85daaf | 2011-06-13 15:55:11 -0700 | [diff] [blame] | 226 | struct bfa_bsg_rport_scsi_addr_s { |
| 227 | bfa_status_t status; |
| 228 | u16 bfad_num; |
| 229 | u16 vf_id; |
| 230 | wwn_t pwwn; |
| 231 | wwn_t rpwwn; |
| 232 | u32 host; |
| 233 | u32 bus; |
| 234 | u32 target; |
| 235 | u32 lun; |
| 236 | }; |
| 237 | |
| 238 | struct bfa_bsg_fabric_get_lports_s { |
| 239 | bfa_status_t status; |
| 240 | u16 bfad_num; |
| 241 | u16 vf_id; |
| 242 | u64 buf_ptr; |
| 243 | u32 nports; |
| 244 | u32 rsvd; |
| 245 | }; |
| 246 | |
Krishna Gudipati | 6013806 | 2011-06-24 20:25:15 -0700 | [diff] [blame] | 247 | struct bfa_bsg_fcpim_modstats_s { |
| 248 | bfa_status_t status; |
| 249 | u16 bfad_num; |
| 250 | struct bfa_itnim_iostats_s modstats; |
| 251 | }; |
| 252 | |
| 253 | struct bfa_bsg_fcpim_del_itn_stats_s { |
| 254 | bfa_status_t status; |
| 255 | u16 bfad_num; |
| 256 | struct bfa_fcpim_del_itn_stats_s modstats; |
| 257 | }; |
| 258 | |
Krishna Gudipati | b85daaf | 2011-06-13 15:55:11 -0700 | [diff] [blame] | 259 | struct bfa_bsg_itnim_attr_s { |
| 260 | bfa_status_t status; |
| 261 | u16 bfad_num; |
| 262 | u16 vf_id; |
| 263 | wwn_t lpwwn; |
| 264 | wwn_t rpwwn; |
| 265 | struct bfa_itnim_attr_s attr; |
| 266 | }; |
| 267 | |
Krishna Gudipati | 6013806 | 2011-06-24 20:25:15 -0700 | [diff] [blame] | 268 | struct bfa_bsg_itnim_iostats_s { |
| 269 | bfa_status_t status; |
| 270 | u16 bfad_num; |
| 271 | u16 vf_id; |
| 272 | wwn_t lpwwn; |
| 273 | wwn_t rpwwn; |
| 274 | struct bfa_itnim_iostats_s iostats; |
| 275 | }; |
| 276 | |
| 277 | struct bfa_bsg_itnim_itnstats_s { |
| 278 | bfa_status_t status; |
| 279 | u16 bfad_num; |
| 280 | u16 vf_id; |
| 281 | wwn_t lpwwn; |
| 282 | wwn_t rpwwn; |
| 283 | struct bfa_itnim_stats_s itnstats; |
| 284 | }; |
| 285 | |
Krishna Gudipati | 1a4d8e1 | 2011-06-24 20:22:28 -0700 | [diff] [blame] | 286 | struct bfa_bsg_pcifn_cfg_s { |
| 287 | bfa_status_t status; |
| 288 | u16 bfad_num; |
| 289 | u16 rsvd; |
| 290 | struct bfa_ablk_cfg_s pcifn_cfg; |
| 291 | }; |
| 292 | |
| 293 | struct bfa_bsg_pcifn_s { |
| 294 | bfa_status_t status; |
| 295 | u16 bfad_num; |
| 296 | u16 pcifn_id; |
| 297 | u32 bandwidth; |
| 298 | u8 port; |
| 299 | enum bfi_pcifn_class pcifn_class; |
| 300 | u8 rsvd[1]; |
| 301 | }; |
| 302 | |
| 303 | struct bfa_bsg_adapter_cfg_mode_s { |
| 304 | bfa_status_t status; |
| 305 | u16 bfad_num; |
| 306 | u16 rsvd; |
| 307 | struct bfa_adapter_cfg_mode_s cfg; |
| 308 | }; |
| 309 | |
| 310 | struct bfa_bsg_port_cfg_mode_s { |
| 311 | bfa_status_t status; |
| 312 | u16 bfad_num; |
| 313 | u16 instance; |
| 314 | struct bfa_port_cfg_mode_s cfg; |
| 315 | }; |
| 316 | |
Krishna Gudipati | a714134 | 2011-06-24 20:23:19 -0700 | [diff] [blame] | 317 | struct bfa_bsg_faa_attr_s { |
| 318 | bfa_status_t status; |
| 319 | u16 bfad_num; |
| 320 | u16 rsvd; |
| 321 | struct bfa_faa_attr_s faa_attr; |
| 322 | }; |
| 323 | |
Krishna Gudipati | 148d610 | 2011-06-24 20:25:36 -0700 | [diff] [blame] | 324 | struct bfa_bsg_cee_attr_s { |
| 325 | bfa_status_t status; |
| 326 | u16 bfad_num; |
| 327 | u16 rsvd; |
| 328 | u32 buf_size; |
| 329 | u32 rsvd1; |
| 330 | u64 buf_ptr; |
| 331 | }; |
| 332 | |
| 333 | struct bfa_bsg_cee_stats_s { |
| 334 | bfa_status_t status; |
| 335 | u16 bfad_num; |
| 336 | u16 rsvd; |
| 337 | u32 buf_size; |
| 338 | u32 rsvd1; |
| 339 | u64 buf_ptr; |
| 340 | }; |
| 341 | |
Krishna Gudipati | 51e569a | 2011-06-24 20:26:25 -0700 | [diff] [blame] | 342 | struct bfa_bsg_sfp_media_s { |
| 343 | bfa_status_t status; |
| 344 | u16 bfad_num; |
| 345 | u16 rsvd; |
| 346 | enum bfa_defs_sfp_media_e media; |
| 347 | }; |
| 348 | |
| 349 | struct bfa_bsg_sfp_speed_s { |
| 350 | bfa_status_t status; |
| 351 | u16 bfad_num; |
| 352 | u16 rsvd; |
| 353 | enum bfa_port_speed speed; |
| 354 | }; |
| 355 | |
Krishna Gudipati | 5a54b1d | 2011-06-24 20:27:13 -0700 | [diff] [blame] | 356 | struct bfa_bsg_flash_attr_s { |
| 357 | bfa_status_t status; |
| 358 | u16 bfad_num; |
| 359 | u16 rsvd; |
| 360 | struct bfa_flash_attr_s attr; |
| 361 | }; |
| 362 | |
| 363 | struct bfa_bsg_flash_s { |
| 364 | bfa_status_t status; |
| 365 | u16 bfad_num; |
| 366 | u8 instance; |
| 367 | u8 rsvd; |
| 368 | enum bfa_flash_part_type type; |
| 369 | int bufsz; |
| 370 | u64 buf_ptr; |
| 371 | }; |
| 372 | |
Krishna Gudipati | 3d7fc66 | 2011-06-24 20:28:17 -0700 | [diff] [blame] | 373 | struct bfa_bsg_diag_get_temp_s { |
| 374 | bfa_status_t status; |
| 375 | u16 bfad_num; |
| 376 | u16 rsvd; |
| 377 | struct bfa_diag_results_tempsensor_s result; |
| 378 | }; |
| 379 | |
| 380 | struct bfa_bsg_diag_memtest_s { |
| 381 | bfa_status_t status; |
| 382 | u16 bfad_num; |
| 383 | u16 rsvd[3]; |
| 384 | u32 pat; |
| 385 | struct bfa_diag_memtest_result result; |
| 386 | struct bfa_diag_memtest_s memtest; |
| 387 | }; |
| 388 | |
| 389 | struct bfa_bsg_diag_loopback_s { |
| 390 | bfa_status_t status; |
| 391 | u16 bfad_num; |
| 392 | u16 rsvd; |
| 393 | enum bfa_port_opmode opmode; |
| 394 | enum bfa_port_speed speed; |
| 395 | u32 lpcnt; |
| 396 | u32 pat; |
| 397 | struct bfa_diag_loopback_result_s result; |
| 398 | }; |
| 399 | |
| 400 | struct bfa_bsg_diag_fwping_s { |
| 401 | bfa_status_t status; |
| 402 | u16 bfad_num; |
| 403 | u16 rsvd; |
| 404 | u32 cnt; |
| 405 | u32 pattern; |
| 406 | struct bfa_diag_results_fwping result; |
| 407 | }; |
| 408 | |
| 409 | struct bfa_bsg_diag_qtest_s { |
| 410 | bfa_status_t status; |
| 411 | u16 bfad_num; |
| 412 | u16 rsvd; |
| 413 | u32 force; |
| 414 | u32 queue; |
| 415 | struct bfa_diag_qtest_result_s result; |
| 416 | }; |
| 417 | |
| 418 | struct bfa_bsg_sfp_show_s { |
| 419 | bfa_status_t status; |
| 420 | u16 bfad_num; |
| 421 | u16 rsvd; |
| 422 | struct sfp_mem_s sfp; |
| 423 | }; |
| 424 | |
| 425 | struct bfa_bsg_diag_led_s { |
| 426 | bfa_status_t status; |
| 427 | u16 bfad_num; |
| 428 | u16 rsvd; |
| 429 | struct bfa_diag_ledtest_s ledtest; |
| 430 | }; |
| 431 | |
| 432 | struct bfa_bsg_diag_beacon_s { |
| 433 | bfa_status_t status; |
| 434 | u16 bfad_num; |
| 435 | u16 rsvd; |
| 436 | bfa_boolean_t beacon; |
| 437 | bfa_boolean_t link_e2e_beacon; |
| 438 | u32 second; |
| 439 | }; |
| 440 | |
| 441 | struct bfa_bsg_diag_lb_stat_s { |
| 442 | bfa_status_t status; |
| 443 | u16 bfad_num; |
| 444 | u16 rsvd; |
| 445 | }; |
| 446 | |
Krishna Gudipati | 3350d98 | 2011-06-24 20:28:37 -0700 | [diff] [blame^] | 447 | struct bfa_bsg_phy_attr_s { |
| 448 | bfa_status_t status; |
| 449 | u16 bfad_num; |
| 450 | u16 instance; |
| 451 | struct bfa_phy_attr_s attr; |
| 452 | }; |
| 453 | |
| 454 | struct bfa_bsg_phy_s { |
| 455 | bfa_status_t status; |
| 456 | u16 bfad_num; |
| 457 | u16 instance; |
| 458 | u64 bufsz; |
| 459 | u64 buf_ptr; |
| 460 | }; |
| 461 | |
| 462 | struct bfa_bsg_phy_stats_s { |
| 463 | bfa_status_t status; |
| 464 | u16 bfad_num; |
| 465 | u16 instance; |
| 466 | struct bfa_phy_stats_s stats; |
| 467 | }; |
| 468 | |
Krishna Gudipati | b85daaf | 2011-06-13 15:55:11 -0700 | [diff] [blame] | 469 | struct bfa_bsg_fcpt_s { |
| 470 | bfa_status_t status; |
| 471 | u16 vf_id; |
| 472 | wwn_t lpwwn; |
| 473 | wwn_t dpwwn; |
| 474 | u32 tsecs; |
| 475 | int cts; |
| 476 | enum fc_cos cos; |
| 477 | struct fchs_s fchs; |
| 478 | }; |
| 479 | #define bfa_bsg_fcpt_t struct bfa_bsg_fcpt_s |
| 480 | |
| 481 | struct bfa_bsg_data { |
| 482 | int payload_len; |
| 483 | void *payload; |
| 484 | }; |
| 485 | |
| 486 | #define bfad_chk_iocmd_sz(__payload_len, __hdrsz, __bufsz) \ |
| 487 | (((__payload_len) != ((__hdrsz) + (__bufsz))) ? \ |
| 488 | BFA_STATUS_FAILED : BFA_STATUS_OK) |
| 489 | |
| 490 | #endif /* BFAD_BSG_H */ |