/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (c) 2005-2014 Brocade Communications Systems, Inc. * Copyright (c) 2014- QLogic Corporation. * All rights reserved * www.qlogic.com * * Linux driver for QLogic BR-series Fibre Channel Host Bus Adapter. */ #ifndef __BFA_DEFS_FCS_H__ #define __BFA_DEFS_FCS_H__ #include "bfa_fc.h" #include "bfa_defs_svc.h" /* * VF states */ enum bfa_vf_state { … }; /* * VF statistics */ struct bfa_vf_stats_s { … }; /* * VF attributes returned in queries */ struct bfa_vf_attr_s { … }; #define BFA_FCS_MAX_LPORTS … #define BFA_FCS_FABRIC_IPADDR_SZ … /* * symbolic names for base port/virtual port */ #define BFA_SYMNAME_MAXLEN … struct bfa_lport_symname_s { … }; /* * Roles of FCS port: * - FCP IM and FCP TM roles cannot be enabled together for a FCS port * - Create multiple ports if both IM and TM functions required. * - Atleast one role must be specified. */ enum bfa_lport_role { … }; /* * FCS port configuration. */ struct bfa_lport_cfg_s { … }; /* * FCS port states */ enum bfa_lport_state { … }; /* * FCS port type. */ enum bfa_lport_type { … }; /* * FCS port offline reason. */ enum bfa_lport_offline_reason { … }; /* * FCS lport info. */ struct bfa_lport_info_s { … }; /* * FCS port statistics */ struct bfa_lport_stats_s { … }; /* * BFA port attribute returned in queries */ struct bfa_lport_attr_s { … }; /* * VPORT states */ enum bfa_vport_state { … }; /* * vport statistics */ struct bfa_vport_stats_s { … }; /* * BFA vport attribute returned in queries */ struct bfa_vport_attr_s { … }; /* * FCS remote port states */ enum bfa_rport_state { … }; /* * Rport Scsi Function : Initiator/Target. */ enum bfa_rport_function { … }; /* * port/node symbolic names for rport */ #define BFA_RPORT_SYMNAME_MAXLEN … struct bfa_rport_symname_s { … }; /* * FCS remote port statistics */ struct bfa_rport_stats_s { … }; /* * FCS remote port attributes returned in queries */ struct bfa_rport_attr_s { … }; struct bfa_rport_remote_link_stats_s { … }; struct bfa_rport_qualifier_s { … }; #define BFA_MAX_IO_INDEX … #define BFA_NO_IO_INDEX … /* * FCS itnim states */ enum bfa_itnim_state { … }; /* * FCS remote port statistics */ struct bfa_itnim_stats_s { … }; /* * FCS itnim attributes returned in queries */ struct bfa_itnim_attr_s { … }; #endif /* __BFA_DEFS_FCS_H__ */