2011-06-14 02:55:11 +04:00
/*
2015-11-26 11:54:45 +03:00
* Copyright ( c ) 2005 - 2014 Brocade Communications Systems , Inc .
* Copyright ( c ) 2014 - QLogic Corporation .
2011-06-14 02:55:11 +04:00
* All rights reserved
2015-11-26 11:54:45 +03:00
* www . qlogic . com
2011-06-14 02:55:11 +04:00
*
2015-11-26 11:54:46 +03:00
* Linux driver for QLogic BR - series Fibre Channel Host Bus Adapter .
2011-06-14 02:55:11 +04:00
*
* This program is free software ; you can redistribute it and / or modify it
* under the terms of the GNU General Public License ( GPL ) Version 2 as
* published by the Free Software Foundation
*
* This program is distributed in the hope that it will be useful , but
* WITHOUT ANY WARRANTY ; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE . See the GNU
* General Public License for more details .
*/
# ifndef BFAD_BSG_H
# define BFAD_BSG_H
# include "bfa_defs.h"
# include "bfa_defs_fcs.h"
/* Definitions of vendor unique structures and command codes passed in
* using FC_BSG_HST_VENDOR message code .
*/
enum {
2011-06-25 07:25:15 +04:00
IOCMD_IOC_ENABLE = 0x1 ,
IOCMD_IOC_DISABLE ,
IOCMD_IOC_GET_ATTR ,
2011-06-14 02:55:11 +04:00
IOCMD_IOC_GET_INFO ,
2011-06-25 07:25:15 +04:00
IOCMD_IOC_GET_STATS ,
IOCMD_IOC_GET_FWSTATS ,
2011-07-21 04:01:34 +04:00
IOCMD_IOC_RESET_STATS ,
IOCMD_IOC_RESET_FWSTATS ,
IOCMD_IOC_SET_ADAPTER_NAME ,
IOCMD_IOC_SET_PORT_NAME ,
2013-11-21 13:37:28 +04:00
IOCMD_IOC_FW_SIG_INV ,
2011-06-25 07:25:15 +04:00
IOCMD_IOCFC_GET_ATTR ,
IOCMD_IOCFC_SET_INTR ,
IOCMD_PORT_ENABLE ,
IOCMD_PORT_DISABLE ,
2011-06-14 02:55:11 +04:00
IOCMD_PORT_GET_ATTR ,
2011-06-25 07:25:15 +04:00
IOCMD_PORT_GET_STATS ,
2011-07-21 04:01:34 +04:00
IOCMD_PORT_RESET_STATS ,
IOCMD_PORT_CFG_TOPO ,
IOCMD_PORT_CFG_SPEED ,
IOCMD_PORT_CFG_ALPA ,
IOCMD_PORT_CFG_MAXFRSZ ,
IOCMD_PORT_CLR_ALPA ,
2013-05-13 13:33:19 +04:00
IOCMD_PORT_BBCR_ENABLE ,
IOCMD_PORT_BBCR_DISABLE ,
IOCMD_PORT_BBCR_GET_ATTR ,
2011-06-14 02:55:11 +04:00
IOCMD_LPORT_GET_ATTR ,
2011-06-25 07:25:15 +04:00
IOCMD_LPORT_GET_RPORTS ,
IOCMD_LPORT_GET_STATS ,
2011-07-21 04:01:34 +04:00
IOCMD_LPORT_RESET_STATS ,
2011-06-25 07:25:15 +04:00
IOCMD_LPORT_GET_IOSTATS ,
IOCMD_RPORT_GET_ATTR ,
2011-06-14 02:55:11 +04:00
IOCMD_RPORT_GET_ADDR ,
2011-06-25 07:25:15 +04:00
IOCMD_RPORT_GET_STATS ,
2011-07-21 04:01:34 +04:00
IOCMD_RPORT_RESET_STATS ,
IOCMD_RPORT_SET_SPEED ,
IOCMD_VPORT_GET_ATTR ,
IOCMD_VPORT_GET_STATS ,
IOCMD_VPORT_RESET_STATS ,
2011-06-14 02:55:11 +04:00
IOCMD_FABRIC_GET_LPORTS ,
2011-07-21 04:01:34 +04:00
IOCMD_RATELIM_ENABLE ,
IOCMD_RATELIM_DISABLE ,
IOCMD_RATELIM_DEF_SPEED ,
IOCMD_FCPIM_FAILOVER ,
2011-06-25 07:25:15 +04:00
IOCMD_FCPIM_MODSTATS ,
2011-07-21 04:01:34 +04:00
IOCMD_FCPIM_MODSTATSCLR ,
2011-06-25 07:25:15 +04:00
IOCMD_FCPIM_DEL_ITN_STATS ,
2011-06-14 02:55:11 +04:00
IOCMD_ITNIM_GET_ATTR ,
2011-06-25 07:25:15 +04:00
IOCMD_ITNIM_GET_IOSTATS ,
2011-07-21 04:01:34 +04:00
IOCMD_ITNIM_RESET_STATS ,
2011-06-25 07:25:15 +04:00
IOCMD_ITNIM_GET_ITNSTATS ,
2011-06-25 07:22:28 +04:00
IOCMD_IOC_PCIFN_CFG ,
2011-06-25 07:25:15 +04:00
IOCMD_FCPORT_ENABLE ,
IOCMD_FCPORT_DISABLE ,
2011-06-25 07:22:28 +04:00
IOCMD_PCIFN_CREATE ,
IOCMD_PCIFN_DELETE ,
IOCMD_PCIFN_BW ,
IOCMD_ADAPTER_CFG_MODE ,
IOCMD_PORT_CFG_MODE ,
IOCMD_FLASH_ENABLE_OPTROM ,
IOCMD_FLASH_DISABLE_OPTROM ,
2011-06-25 07:23:19 +04:00
IOCMD_FAA_QUERY ,
2011-06-25 07:25:36 +04:00
IOCMD_CEE_GET_ATTR ,
IOCMD_CEE_GET_STATS ,
IOCMD_CEE_RESET_STATS ,
2011-06-25 07:26:25 +04:00
IOCMD_SFP_MEDIA ,
IOCMD_SFP_SPEED ,
2011-06-25 07:27:13 +04:00
IOCMD_FLASH_GET_ATTR ,
IOCMD_FLASH_ERASE_PART ,
IOCMD_FLASH_UPDATE_PART ,
IOCMD_FLASH_READ_PART ,
2011-06-25 07:28:17 +04:00
IOCMD_DIAG_TEMP ,
IOCMD_DIAG_MEMTEST ,
IOCMD_DIAG_LOOPBACK ,
IOCMD_DIAG_FWPING ,
IOCMD_DIAG_QUEUETEST ,
IOCMD_DIAG_SFP ,
IOCMD_DIAG_LED ,
IOCMD_DIAG_BEACON_LPORT ,
IOCMD_DIAG_LB_STAT ,
2011-06-25 07:28:37 +04:00
IOCMD_PHY_GET_ATTR ,
IOCMD_PHY_GET_STATS ,
IOCMD_PHY_UPDATE_FW ,
IOCMD_PHY_READ_FW ,
2011-06-25 07:29:07 +04:00
IOCMD_VHBA_QUERY ,
IOCMD_DEBUG_PORTLOG ,
2011-07-21 04:01:34 +04:00
IOCMD_DEBUG_FW_CORE ,
IOCMD_DEBUG_FW_STATE_CLR ,
IOCMD_DEBUG_PORTLOG_CLR ,
IOCMD_DEBUG_START_DTRC ,
IOCMD_DEBUG_STOP_DTRC ,
IOCMD_DEBUG_PORTLOG_CTL ,
2011-07-21 04:01:52 +04:00
IOCMD_FCPIM_PROFILE_ON ,
IOCMD_FCPIM_PROFILE_OFF ,
IOCMD_ITNIM_GET_IOPROFILE ,
2011-07-21 04:02:11 +04:00
IOCMD_FCPORT_GET_STATS ,
IOCMD_FCPORT_RESET_STATS ,
2011-07-21 04:02:32 +04:00
IOCMD_BOOT_CFG ,
IOCMD_BOOT_QUERY ,
IOCMD_PREBOOT_QUERY ,
IOCMD_ETHBOOT_CFG ,
IOCMD_ETHBOOT_QUERY ,
2011-07-21 04:02:50 +04:00
IOCMD_TRUNK_ENABLE ,
IOCMD_TRUNK_DISABLE ,
IOCMD_TRUNK_GET_ATTR ,
2011-07-21 04:03:09 +04:00
IOCMD_QOS_ENABLE ,
IOCMD_QOS_DISABLE ,
IOCMD_QOS_GET_ATTR ,
IOCMD_QOS_GET_VC_ATTR ,
IOCMD_QOS_GET_STATS ,
IOCMD_QOS_RESET_STATS ,
2011-07-21 04:03:27 +04:00
IOCMD_VF_GET_STATS ,
IOCMD_VF_RESET_STATS ,
2011-07-21 04:04:24 +04:00
IOCMD_FCPIM_LUNMASK_ENABLE ,
IOCMD_FCPIM_LUNMASK_DISABLE ,
IOCMD_FCPIM_LUNMASK_CLEAR ,
IOCMD_FCPIM_LUNMASK_QUERY ,
IOCMD_FCPIM_LUNMASK_ADD ,
IOCMD_FCPIM_LUNMASK_DELETE ,
2012-09-22 04:26:07 +04:00
IOCMD_DIAG_DPORT_ENABLE ,
IOCMD_DIAG_DPORT_DISABLE ,
2012-09-22 04:26:31 +04:00
IOCMD_QOS_SET_BW ,
2012-09-22 04:26:41 +04:00
IOCMD_FCPIM_THROTTLE_QUERY ,
2012-09-22 04:27:14 +04:00
IOCMD_FCPIM_THROTTLE_SET ,
IOCMD_TFRU_READ ,
IOCMD_TFRU_WRITE ,
IOCMD_FRUVPD_READ ,
IOCMD_FRUVPD_UPDATE ,
IOCMD_FRUVPD_GET_MAX_SIZE ,
2013-05-13 13:33:21 +04:00
IOCMD_DIAG_DPORT_SHOW ,
IOCMD_DIAG_DPORT_START ,
2011-06-25 07:22:28 +04:00
} ;
struct bfa_bsg_gen_s {
bfa_status_t status ;
u16 bfad_num ;
u16 rsvd ;
2011-06-14 02:55:11 +04:00
} ;
2011-07-21 04:01:34 +04:00
struct bfa_bsg_portlogctl_s {
bfa_status_t status ;
u16 bfad_num ;
u16 rsvd ;
bfa_boolean_t ctl ;
int inst_no ;
} ;
2011-07-21 04:01:52 +04:00
struct bfa_bsg_fcpim_profile_s {
bfa_status_t status ;
u16 bfad_num ;
u16 rsvd ;
} ;
struct bfa_bsg_itnim_ioprofile_s {
bfa_status_t status ;
u16 bfad_num ;
u16 vf_id ;
wwn_t lpwwn ;
wwn_t rpwwn ;
struct bfa_itnim_ioprofile_s ioprofile ;
} ;
2011-07-21 04:02:11 +04:00
struct bfa_bsg_fcport_stats_s {
bfa_status_t status ;
u16 bfad_num ;
u16 rsvd ;
union bfa_fcport_stats_u stats ;
} ;
2011-07-21 04:01:34 +04:00
struct bfa_bsg_ioc_name_s {
bfa_status_t status ;
u16 bfad_num ;
u16 rsvd ;
char name [ BFA_ADAPTER_SYM_NAME_LEN ] ;
} ;
2011-06-14 02:55:11 +04:00
struct bfa_bsg_ioc_info_s {
bfa_status_t status ;
u16 bfad_num ;
u16 rsvd ;
char serialnum [ 64 ] ;
char hwpath [ BFA_STRING_32 ] ;
char adapter_hwpath [ BFA_STRING_32 ] ;
char guid [ BFA_ADAPTER_SYM_NAME_LEN * 2 ] ;
char name [ BFA_ADAPTER_SYM_NAME_LEN ] ;
char port_name [ BFA_ADAPTER_SYM_NAME_LEN ] ;
char eth_name [ BFA_ADAPTER_SYM_NAME_LEN ] ;
wwn_t pwwn ;
wwn_t nwwn ;
wwn_t factorypwwn ;
wwn_t factorynwwn ;
mac_t mac ;
mac_t factory_mac ; /* Factory mac address */
mac_t current_mac ; /* Currently assigned mac address */
enum bfa_ioc_type_e ioc_type ;
u16 pvid ; /* Port vlan id */
u16 rsvd1 ;
u32 host ;
u32 bandwidth ; /* For PF support */
u32 rsvd2 ;
} ;
struct bfa_bsg_ioc_attr_s {
bfa_status_t status ;
u16 bfad_num ;
u16 rsvd ;
struct bfa_ioc_attr_s ioc_attr ;
} ;
2011-06-25 07:25:15 +04:00
struct bfa_bsg_ioc_stats_s {
bfa_status_t status ;
u16 bfad_num ;
u16 rsvd ;
struct bfa_ioc_stats_s ioc_stats ;
} ;
struct bfa_bsg_ioc_fwstats_s {
bfa_status_t status ;
u16 bfad_num ;
u16 rsvd ;
u32 buf_size ;
u32 rsvd1 ;
u64 buf_ptr ;
} ;
struct bfa_bsg_iocfc_attr_s {
bfa_status_t status ;
u16 bfad_num ;
u16 rsvd ;
struct bfa_iocfc_attr_s iocfc_attr ;
} ;
struct bfa_bsg_iocfc_intr_s {
bfa_status_t status ;
u16 bfad_num ;
u16 rsvd ;
struct bfa_iocfc_intr_attr_s attr ;
} ;
2011-06-14 02:55:11 +04:00
struct bfa_bsg_port_attr_s {
bfa_status_t status ;
u16 bfad_num ;
u16 rsvd ;
struct bfa_port_attr_s attr ;
} ;
2011-07-21 04:01:34 +04:00
struct bfa_bsg_port_cfg_s {
bfa_status_t status ;
u16 bfad_num ;
u16 rsvd ;
u32 param ;
u32 rsvd1 ;
} ;
struct bfa_bsg_port_cfg_maxfrsize_s {
bfa_status_t status ;
u16 bfad_num ;
u16 maxfrsize ;
} ;
2011-06-25 07:25:15 +04:00
struct bfa_bsg_port_stats_s {
bfa_status_t status ;
u16 bfad_num ;
u16 rsvd ;
u32 buf_size ;
u32 rsvd1 ;
u64 buf_ptr ;
} ;
2011-06-14 02:55:11 +04:00
struct bfa_bsg_lport_attr_s {
bfa_status_t status ;
u16 bfad_num ;
u16 vf_id ;
wwn_t pwwn ;
struct bfa_lport_attr_s port_attr ;
} ;
2011-06-25 07:25:15 +04:00
struct bfa_bsg_lport_stats_s {
bfa_status_t status ;
u16 bfad_num ;
u16 vf_id ;
wwn_t pwwn ;
struct bfa_lport_stats_s port_stats ;
} ;
struct bfa_bsg_lport_iostats_s {
bfa_status_t status ;
u16 bfad_num ;
u16 vf_id ;
wwn_t pwwn ;
struct bfa_itnim_iostats_s iostats ;
} ;
struct bfa_bsg_lport_get_rports_s {
bfa_status_t status ;
u16 bfad_num ;
u16 vf_id ;
wwn_t pwwn ;
u64 rbuf_ptr ;
u32 nrports ;
u32 rsvd ;
} ;
struct bfa_bsg_rport_attr_s {
bfa_status_t status ;
u16 bfad_num ;
u16 vf_id ;
wwn_t pwwn ;
wwn_t rpwwn ;
2012-08-23 06:50:43 +04:00
u32 pid ;
u32 rsvd ;
2011-06-25 07:25:15 +04:00
struct bfa_rport_attr_s attr ;
} ;
struct bfa_bsg_rport_stats_s {
bfa_status_t status ;
u16 bfad_num ;
u16 vf_id ;
wwn_t pwwn ;
wwn_t rpwwn ;
struct bfa_rport_stats_s stats ;
} ;
2011-06-14 02:55:11 +04:00
struct bfa_bsg_rport_scsi_addr_s {
bfa_status_t status ;
u16 bfad_num ;
u16 vf_id ;
wwn_t pwwn ;
wwn_t rpwwn ;
u32 host ;
u32 bus ;
u32 target ;
u32 lun ;
} ;
2011-07-21 04:01:34 +04:00
struct bfa_bsg_rport_reset_stats_s {
bfa_status_t status ;
u16 bfad_num ;
u16 vf_id ;
wwn_t pwwn ;
wwn_t rpwwn ;
} ;
struct bfa_bsg_rport_set_speed_s {
bfa_status_t status ;
u16 bfad_num ;
u16 vf_id ;
enum bfa_port_speed speed ;
u32 rsvd ;
wwn_t pwwn ;
wwn_t rpwwn ;
} ;
struct bfa_bsg_vport_attr_s {
bfa_status_t status ;
u16 bfad_num ;
u16 vf_id ;
wwn_t vpwwn ;
struct bfa_vport_attr_s vport_attr ;
} ;
struct bfa_bsg_vport_stats_s {
bfa_status_t status ;
u16 bfad_num ;
u16 vf_id ;
wwn_t vpwwn ;
struct bfa_vport_stats_s vport_stats ;
} ;
struct bfa_bsg_reset_stats_s {
bfa_status_t status ;
u16 bfad_num ;
u16 vf_id ;
wwn_t vpwwn ;
} ;
2011-06-14 02:55:11 +04:00
struct bfa_bsg_fabric_get_lports_s {
bfa_status_t status ;
u16 bfad_num ;
u16 vf_id ;
u64 buf_ptr ;
u32 nports ;
u32 rsvd ;
} ;
2011-07-21 04:01:34 +04:00
struct bfa_bsg_trl_speed_s {
bfa_status_t status ;
u16 bfad_num ;
u16 rsvd ;
enum bfa_port_speed speed ;
} ;
struct bfa_bsg_fcpim_s {
bfa_status_t status ;
u16 bfad_num ;
u16 param ;
} ;
2011-06-25 07:25:15 +04:00
struct bfa_bsg_fcpim_modstats_s {
bfa_status_t status ;
u16 bfad_num ;
struct bfa_itnim_iostats_s modstats ;
} ;
struct bfa_bsg_fcpim_del_itn_stats_s {
bfa_status_t status ;
u16 bfad_num ;
struct bfa_fcpim_del_itn_stats_s modstats ;
} ;
2011-07-21 04:01:34 +04:00
struct bfa_bsg_fcpim_modstatsclr_s {
bfa_status_t status ;
u16 bfad_num ;
} ;
2011-06-14 02:55:11 +04:00
struct bfa_bsg_itnim_attr_s {
bfa_status_t status ;
u16 bfad_num ;
u16 vf_id ;
wwn_t lpwwn ;
wwn_t rpwwn ;
struct bfa_itnim_attr_s attr ;
} ;
2011-06-25 07:25:15 +04:00
struct bfa_bsg_itnim_iostats_s {
bfa_status_t status ;
u16 bfad_num ;
u16 vf_id ;
wwn_t lpwwn ;
wwn_t rpwwn ;
struct bfa_itnim_iostats_s iostats ;
} ;
struct bfa_bsg_itnim_itnstats_s {
bfa_status_t status ;
u16 bfad_num ;
u16 vf_id ;
wwn_t lpwwn ;
wwn_t rpwwn ;
struct bfa_itnim_stats_s itnstats ;
} ;
2011-06-25 07:22:28 +04:00
struct bfa_bsg_pcifn_cfg_s {
bfa_status_t status ;
u16 bfad_num ;
u16 rsvd ;
struct bfa_ablk_cfg_s pcifn_cfg ;
} ;
struct bfa_bsg_pcifn_s {
bfa_status_t status ;
u16 bfad_num ;
u16 pcifn_id ;
2012-09-22 04:26:50 +04:00
u16 bw_min ;
u16 bw_max ;
2011-06-25 07:22:28 +04:00
u8 port ;
enum bfi_pcifn_class pcifn_class ;
u8 rsvd [ 1 ] ;
} ;
struct bfa_bsg_adapter_cfg_mode_s {
bfa_status_t status ;
u16 bfad_num ;
u16 rsvd ;
struct bfa_adapter_cfg_mode_s cfg ;
} ;
struct bfa_bsg_port_cfg_mode_s {
bfa_status_t status ;
u16 bfad_num ;
u16 instance ;
struct bfa_port_cfg_mode_s cfg ;
} ;
2013-05-13 13:33:19 +04:00
struct bfa_bsg_bbcr_enable_s {
bfa_status_t status ;
u16 bfad_num ;
u8 bb_scn ;
u8 rsvd ;
} ;
struct bfa_bsg_bbcr_attr_s {
bfa_status_t status ;
u16 bfad_num ;
u16 rsvd ;
struct bfa_bbcr_attr_s attr ;
} ;
2011-06-25 07:23:19 +04:00
struct bfa_bsg_faa_attr_s {
bfa_status_t status ;
u16 bfad_num ;
u16 rsvd ;
struct bfa_faa_attr_s faa_attr ;
} ;
2011-06-25 07:25:36 +04:00
struct bfa_bsg_cee_attr_s {
bfa_status_t status ;
u16 bfad_num ;
u16 rsvd ;
u32 buf_size ;
u32 rsvd1 ;
u64 buf_ptr ;
} ;
struct bfa_bsg_cee_stats_s {
bfa_status_t status ;
u16 bfad_num ;
u16 rsvd ;
u32 buf_size ;
u32 rsvd1 ;
u64 buf_ptr ;
} ;
2011-06-25 07:26:25 +04:00
struct bfa_bsg_sfp_media_s {
bfa_status_t status ;
u16 bfad_num ;
u16 rsvd ;
enum bfa_defs_sfp_media_e media ;
} ;
struct bfa_bsg_sfp_speed_s {
bfa_status_t status ;
u16 bfad_num ;
u16 rsvd ;
enum bfa_port_speed speed ;
} ;
2011-06-25 07:27:13 +04:00
struct bfa_bsg_flash_attr_s {
bfa_status_t status ;
u16 bfad_num ;
u16 rsvd ;
struct bfa_flash_attr_s attr ;
} ;
struct bfa_bsg_flash_s {
bfa_status_t status ;
u16 bfad_num ;
u8 instance ;
u8 rsvd ;
enum bfa_flash_part_type type ;
int bufsz ;
u64 buf_ptr ;
} ;
2011-06-25 07:28:17 +04:00
struct bfa_bsg_diag_get_temp_s {
bfa_status_t status ;
u16 bfad_num ;
u16 rsvd ;
struct bfa_diag_results_tempsensor_s result ;
} ;
struct bfa_bsg_diag_memtest_s {
bfa_status_t status ;
u16 bfad_num ;
u16 rsvd [ 3 ] ;
u32 pat ;
struct bfa_diag_memtest_result result ;
struct bfa_diag_memtest_s memtest ;
} ;
struct bfa_bsg_diag_loopback_s {
bfa_status_t status ;
u16 bfad_num ;
u16 rsvd ;
enum bfa_port_opmode opmode ;
enum bfa_port_speed speed ;
u32 lpcnt ;
u32 pat ;
struct bfa_diag_loopback_result_s result ;
} ;
2013-05-13 13:33:21 +04:00
struct bfa_bsg_diag_dport_show_s {
bfa_status_t status ;
u16 bfad_num ;
u16 rsvd ;
struct bfa_diag_dport_result_s result ;
} ;
struct bfa_bsg_dport_enable_s {
bfa_status_t status ;
u16 bfad_num ;
u16 rsvd ;
u16 lpcnt ;
u16 pat ;
} ;
2011-06-25 07:28:17 +04:00
struct bfa_bsg_diag_fwping_s {
bfa_status_t status ;
u16 bfad_num ;
u16 rsvd ;
u32 cnt ;
u32 pattern ;
struct bfa_diag_results_fwping result ;
} ;
struct bfa_bsg_diag_qtest_s {
bfa_status_t status ;
u16 bfad_num ;
u16 rsvd ;
u32 force ;
u32 queue ;
struct bfa_diag_qtest_result_s result ;
} ;
struct bfa_bsg_sfp_show_s {
bfa_status_t status ;
u16 bfad_num ;
u16 rsvd ;
struct sfp_mem_s sfp ;
} ;
struct bfa_bsg_diag_led_s {
bfa_status_t status ;
u16 bfad_num ;
u16 rsvd ;
struct bfa_diag_ledtest_s ledtest ;
} ;
struct bfa_bsg_diag_beacon_s {
bfa_status_t status ;
u16 bfad_num ;
u16 rsvd ;
bfa_boolean_t beacon ;
bfa_boolean_t link_e2e_beacon ;
u32 second ;
} ;
struct bfa_bsg_diag_lb_stat_s {
bfa_status_t status ;
u16 bfad_num ;
u16 rsvd ;
} ;
2011-06-25 07:28:37 +04:00
struct bfa_bsg_phy_attr_s {
bfa_status_t status ;
u16 bfad_num ;
u16 instance ;
struct bfa_phy_attr_s attr ;
} ;
struct bfa_bsg_phy_s {
bfa_status_t status ;
u16 bfad_num ;
u16 instance ;
u64 bufsz ;
u64 buf_ptr ;
} ;
2011-06-25 07:29:07 +04:00
struct bfa_bsg_debug_s {
bfa_status_t status ;
u16 bfad_num ;
u16 rsvd ;
u32 bufsz ;
int inst_no ;
u64 buf_ptr ;
u64 offset ;
} ;
2011-06-25 07:28:37 +04:00
struct bfa_bsg_phy_stats_s {
bfa_status_t status ;
u16 bfad_num ;
u16 instance ;
struct bfa_phy_stats_s stats ;
} ;
2011-06-25 07:29:07 +04:00
struct bfa_bsg_vhba_attr_s {
bfa_status_t status ;
u16 bfad_num ;
u16 pcifn_id ;
struct bfa_vhba_attr_s attr ;
} ;
2011-07-21 04:02:32 +04:00
struct bfa_bsg_boot_s {
bfa_status_t status ;
u16 bfad_num ;
u16 rsvd ;
struct bfa_boot_cfg_s cfg ;
} ;
struct bfa_bsg_preboot_s {
bfa_status_t status ;
u16 bfad_num ;
u16 rsvd ;
struct bfa_boot_pbc_s cfg ;
} ;
struct bfa_bsg_ethboot_s {
bfa_status_t status ;
u16 bfad_num ;
u16 rsvd ;
struct bfa_ethboot_cfg_s cfg ;
} ;
2011-07-21 04:02:50 +04:00
struct bfa_bsg_trunk_attr_s {
bfa_status_t status ;
u16 bfad_num ;
u16 rsvd ;
struct bfa_trunk_attr_s attr ;
} ;
2011-07-21 04:03:09 +04:00
struct bfa_bsg_qos_attr_s {
bfa_status_t status ;
u16 bfad_num ;
u16 rsvd ;
struct bfa_qos_attr_s attr ;
} ;
struct bfa_bsg_qos_vc_attr_s {
bfa_status_t status ;
u16 bfad_num ;
u16 rsvd ;
struct bfa_qos_vc_attr_s attr ;
} ;
2012-09-22 04:26:31 +04:00
struct bfa_bsg_qos_bw_s {
bfa_status_t status ;
u16 bfad_num ;
u16 rsvd ;
struct bfa_qos_bw_s qos_bw ;
} ;
2011-07-21 04:03:27 +04:00
struct bfa_bsg_vf_stats_s {
bfa_status_t status ;
u16 bfad_num ;
u16 vf_id ;
struct bfa_vf_stats_s stats ;
} ;
struct bfa_bsg_vf_reset_stats_s {
bfa_status_t status ;
u16 bfad_num ;
u16 vf_id ;
} ;
2011-07-21 04:04:24 +04:00
struct bfa_bsg_fcpim_lunmask_query_s {
bfa_status_t status ;
u16 bfad_num ;
struct bfa_lunmask_cfg_s lun_mask ;
} ;
struct bfa_bsg_fcpim_lunmask_s {
bfa_status_t status ;
u16 bfad_num ;
u16 vf_id ;
wwn_t pwwn ;
wwn_t rpwwn ;
struct scsi_lun lun ;
} ;
2012-09-22 04:26:41 +04:00
struct bfa_bsg_fcpim_throttle_s {
bfa_status_t status ;
u16 bfad_num ;
u16 vf_id ;
struct bfa_defs_fcpim_throttle_s throttle ;
} ;
2012-09-22 04:27:14 +04:00
# define BFA_TFRU_DATA_SIZE 64
# define BFA_MAX_FRUVPD_TRANSFER_SIZE 0x1000
struct bfa_bsg_tfru_s {
bfa_status_t status ;
u16 bfad_num ;
u16 rsvd ;
u32 offset ;
u32 len ;
u8 data [ BFA_TFRU_DATA_SIZE ] ;
} ;
struct bfa_bsg_fruvpd_s {
bfa_status_t status ;
u16 bfad_num ;
2013-05-13 13:33:28 +04:00
u16 rsvd1 ;
2012-09-22 04:27:14 +04:00
u32 offset ;
u32 len ;
u8 data [ BFA_MAX_FRUVPD_TRANSFER_SIZE ] ;
2013-05-13 13:33:28 +04:00
u8 trfr_cmpl ;
u8 rsvd2 [ 3 ] ;
2012-09-22 04:27:14 +04:00
} ;
struct bfa_bsg_fruvpd_max_size_s {
bfa_status_t status ;
u16 bfad_num ;
u16 rsvd ;
u32 max_size ;
} ;
2011-06-14 02:55:11 +04:00
struct bfa_bsg_fcpt_s {
bfa_status_t status ;
u16 vf_id ;
wwn_t lpwwn ;
wwn_t dpwwn ;
u32 tsecs ;
int cts ;
enum fc_cos cos ;
struct fchs_s fchs ;
} ;
# define bfa_bsg_fcpt_t struct bfa_bsg_fcpt_s
2013-05-13 13:33:27 +04:00
# pragma pack(1)
2011-06-14 02:55:11 +04:00
struct bfa_bsg_data {
int payload_len ;
2013-05-13 13:33:27 +04:00
u64 payload ;
2011-06-14 02:55:11 +04:00
} ;
2013-05-13 13:33:27 +04:00
# pragma pack()
2011-06-14 02:55:11 +04:00
# define bfad_chk_iocmd_sz(__payload_len, __hdrsz, __bufsz) \
( ( ( __payload_len ) ! = ( ( __hdrsz ) + ( __bufsz ) ) ) ? \
BFA_STATUS_FAILED : BFA_STATUS_OK )
# endif /* BFAD_BSG_H */