Lines Matching +full:loss +full:- +full:of +full:- +full:signal

1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
5 * Maintained at www.Open-FCoE.org
15 * Fibre Channel Switch - Enhanced Link Services definitions.
16 * From T11 FC-LS Rev 1.2 June 7, 2005.
20 * ELS Command codes - byte 0 of the frame payload
28 ELS_ABTX = 0x06, /* Abort exchange - obsolete */
56 ELS_NACT = 0x33, /* N-port activate alias_id */
57 ELS_NDACT = 0x34, /* N-port deactivate alias_id */
58 ELS_QOSR = 0x40, /* quality of service request */
72 ELS_RNFT = 0x63, /* report node FC-4 types */
81 ELS_SBRP = 0x7c, /* set bit-error reporting params */
85 ELS_LKA = 0x80, /* link keep-alive */
183 ELS_RJT_NONE = 0, /* no reject - not to be sent */
201 ELS_EXPL_SPP_OPT_ERR = 0x01, /* service parameter error - options */
202 ELS_EXPL_SPP_ICTL_ERR = 0x03, /* service parm error - initiator ctl */
206 ELS_EXPL_OXID_RXID = 0x17, /* invalid OX_ID-RX_ID combination */
214 /* TBD - above definitions incomplete */
259 * as the "tlv header" - which contains the tag and len fields.
263 __be32 desc_len; /* Length of Descriptor (in bytes).
264 * Size of descriptor excluding
277 * Length is size of descriptor minus the tag and len fields.
280 (sizeof(desc) - FC_TLV_DESC_HDR_SZ)
284 (__be32_to_cpu((tlv)->desc_len) + FC_TLV_DESC_HDR_SZ)
288 * Given the address of the current descriptor, which minimally contains a
289 * tag and len field, calculate the address of the next descriptor based
305 __be32 desc_len; /* Length of Descriptor (in bytes) (4).
306 * Size of descriptor excluding
322 __be16 sp_bb_cred; /* buffer-to-buffer credits */
324 __be16 sp_bb_data; /* b-b state number and data field sz */
372 * Class-specific service parameters.
380 __be16 cp_ee_cred; /* N-port end-to-end credit */
392 #define FC_CPC_CAMP 0x0200 /* camp-on */
416 struct fc_els_cssp fl_cssp[4]; /* class 1-4 service parameters */
442 * SPP response code in spp_flags - lower 4 bits.
446 FC_SPP_RESP_RES = 2, /* unable due to lack of resources */
456 * ELS_RRQ - Reinstate Recovery Qualifier
460 __u8 rrq_zero[3]; /* specified as zero - part of cmd */
468 * ELS_REC - Read exchange concise.
472 __u8 rec_zero[3]; /* specified as zero - part of cmd */
484 __u8 reca_zero[3]; /* specified as zero - part of cmd */
496 * ELS_PRLI - Process login request and response.
500 __u8 prli_spp_len; /* length of each serv. parm. page */
501 __be16 prli_len; /* length of entire payload */
506 * ELS_PRLO - Process logout request and response.
529 * ELS_LOGO - process or fabric logout.
533 __u8 fl_zero[3]; /* specified as zero - part of cmd */
540 * ELS_RTV - read timeout value.
544 __u8 rtv_zero[3]; /* specified as zero - part of cmd */
548 * LS_ACC for ELS_RTV - read timeout value.
552 __u8 rtv_zero[3]; /* specified as zero - part of cmd */
565 * ELS_SCR - state change registration payload.
574 ELS_SCRF_FAB = 1, /* fabric-detected registration */
575 ELS_SCRF_NPORT = 2, /* Nx_Port-detected registration */
581 * ELS_RSCN - registered state change notification payload.
588 /* followed by 4-byte generic affected Port_ID pages */
618 * ELS_RNID - request Node ID.
653 __u8 rnid_vend_id[16]; /* vendor-unique ID */
656 __be32 rnid_att_nodes; /* number of attached nodes */
662 __be16 rnid_vend_spec; /* vendor-specific field */
667 ELS_RNIDA_OTHER = 0x02, /* none of the following */
710 * ELS RPL - Read Port List.
714 __u8 rpl_resv[5]; /* reserved - must be zero */
716 __u8 rpl_resv1; /* reserved - must be zero */
735 __u8 rpl_resv1; /* reserved - must be zero */
737 __u8 rpl_resv2; /* reserved - must be zero */
739 __u8 rpl_resv3; /* reserved - must be zero */
741 struct fc_els_pnb rpl_pnb[1]; /* variable number of PNBs */
749 __be32 lesb_sync_loss; /* loss of synchronization count */
750 __be32 lesb_sig_loss; /* loss of signal count */
757 * ELS RPS - Read Port Status Block request.
761 __u8 rps_resv[2]; /* reserved - must be zero */
762 __u8 rps_flag; /* flag - see below */
767 FC_ELS_RPS_DID = 0x00, /* port identified by D_ID of req. */
776 __u8 rps_cmd; /* command - LS_ACC */
777 __u8 rps_resv[2]; /* reserved - must be zero */
778 __u8 rps_flag; /* flag - see below */
780 __be16 rps_status; /* port status - see below */
789 FC_ELS_RPS_PTP = 1 << 5, /* point-to-point connection */
792 FC_ELS_RPS_NO_SIG = 1 << 2, /* loss of signal */
793 FC_ELS_RPS_NO_SYNC = 1 << 1, /* loss of synchronization */
798 * ELS LIRR - Link Incident Record Registration request.
802 __u8 lirr_resv[3]; /* reserved - must be zero */
804 __u8 lirr_fmt; /* FC-4 type of RLIR requested */
805 __u8 lirr_resv2[2]; /* reserved - must be zero */
809 ELS_LIRR_SET_COND = 0x01, /* set - conditionally receive */
810 ELS_LIRR_SET_UNCOND = 0x02, /* set - unconditionally receive */
815 * ELS SRL - Scan Remote Loop request.
819 __u8 srl_resv[3]; /* reserved - must be zero */
820 __u8 srl_flag; /* flag - see below */
832 * ELS RLS - Read Link Error Status Block request.
836 __u8 rls_resv[4]; /* reserved - must be zero */
845 __u8 rls_resv[3]; /* reserved - must be zero */
850 * ELS RLIR - Registered Link Incident Report.
855 __u8 rlir_resv[3]; /* reserved - must be zero */
856 __u8 rlir_fmt; /* format (FC4-type if type specific) */
863 * CLIR - Common Link Incident Record Data. - Sent via RLIR.
882 * CLIR clir_ts_fmt - time stamp format values.
891 * Common Link Incident Descriptor - sent via RLIR.
896 __be16 clid_epai; /* domain/area of ISL */
905 ELS_CLID_SEV_MASK = 0x0c, /* severity 2-bit field mask */
918 ELS_CLID_IC_BER = 2, /* bit-error-rate threshold exceeded */
919 ELS_CLID_IC_LOS = 3, /* loss of synch or signal */
920 ELS_CLID_IC_NOS = 4, /* non-operational primitive sequence */
948 { FPIN_LI_LOSS_OF_SYNC, "Loss of Synchronization" }, \
949 { FPIN_LI_LOSS_OF_SIG, "Loss of Signal" }, \
1010 __be32 desc_len; /* Length of Descriptor (in bytes).
1011 * Size of descriptor excluding
1015 __be64 attached_wwpn; /* Port Name of device attached to
1022 __be32 event_threshold;/* duration in ms of the link
1025 __be32 event_count; /* minimum number of event
1029 __be32 pname_count; /* number of portname_list elements */
1030 __be64 pname_list[]; /* list of N_Port_Names accessible
1040 __be32 desc_len; /* Length of Descriptor (in bytes).
1041 * Size of descriptor excluding
1045 __be64 attached_wwpn; /* Port Name of device attached to
1056 __be32 desc_len; /* Length of Descriptor (in bytes).
1057 * Size of descriptor excluding
1061 __be64 attached_wwpn; /* Port Name of device attached to
1068 __be32 event_period; /* duration (ms) of the detected
1071 __be32 pname_count; /* number of portname_list elements */
1072 __be64 pname_list[]; /* list of N_Port_Names accessible
1082 __be32 desc_len; /* Length of Descriptor (in bytes).
1083 * Size of descriptor excluding
1090 __be32 event_period; /* duration (ms) of the detected
1094 __u8 resv[3]; /* reserved - must be zero */
1098 * ELS_FPIN - Fabric Performance Impact Notification
1102 __u8 fpin_zero[3]; /* specified as zero - part of cmd */
1103 __be32 desc_len; /* Length of Descriptor List (in bytes).
1104 * Size of ELS excluding fpin_cmd,
1110 /* Diagnostic Function Descriptor - FPIN Registration */
1113 __be32 desc_len; /* Length of Descriptor (in bytes).
1114 * Size of descriptor excluding
1117 __be32 count; /* Number of desc_tags elements */
1118 __be32 desc_tags[]; /* Array of Descriptor Tags.
1123 * of the request).
1129 * ELS_RDF - Register Diagnostic Functions
1133 __u8 fpin_zero[3]; /* specified as zero - part of cmd */
1134 __be32 desc_len; /* Length of Descriptor List (in bytes).
1135 * Size of ELS excluding fpin_cmd,
1146 __be32 desc_list_len; /* Length of response (in
1164 __be32 desc_len; /* Length of Descriptor (in bytes).
1165 * Size of descriptor excluding
1187 { EDC_CG_SIG_WARN_ONLY, "Warning Signal" }, \
1213 __be32 desc_len; /* Length of Descriptor (in bytes).
1214 * Size of descriptor excluding
1225 * ELS_EDC - Exchange Diagnostic Capabilities
1229 __u8 edc_zero[3]; /* specified as zero - part of cmd */
1230 __be32 desc_len; /* Length of Descriptor List (in bytes).
1231 * Size of ELS excluding edc_cmd,
1243 __be32 desc_list_len; /* Length of response (in