Lines Matching +full:clock +full:- +full:duration +full:- +full:ns

1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
5 * Maintained at www.Open-FCoE.org
21 * Fibre Channel Switch - Enhanced Link Services definitions.
22 * From T11 FC-LS Rev 1.2 June 7, 2005.
26 * ELS Command codes - byte 0 of the frame payload
34 ELS_ABTX = 0x06, /* Abort exchange - obsolete */
62 ELS_NACT = 0x33, /* N-port activate alias_id */
63 ELS_NDACT = 0x34, /* N-port deactivate alias_id */
78 ELS_RNFT = 0x63, /* report node FC-4 types */
79 ELS_CSR = 0x68, /* clock synch. request */
80 ELS_CSU = 0x69, /* clock synch. update */
87 ELS_SBRP = 0x7c, /* set bit-error reporting params */
91 ELS_LKA = 0x80, /* link keep-alive */
189 ELS_RJT_NONE = 0, /* no reject - not to be sent */
207 ELS_EXPL_SPP_OPT_ERR = 0x01, /* service parameter error - options */
208 ELS_EXPL_SPP_ICTL_ERR = 0x03, /* service parm error - initiator ctl */
212 ELS_EXPL_OXID_RXID = 0x17, /* invalid OX_ID-RX_ID combination */
220 /* TBD - above definitions incomplete */
265 * as the "tlv header" - which contains the tag and len fields.
286 (sizeof(desc) - FC_TLV_DESC_HDR_SZ)
290 (__be32_to_cpu((tlv)->desc_len) + FC_TLV_DESC_HDR_SZ)
328 __be16 sp_bb_cred; /* buffer-to-buffer credits */
330 __be16 sp_bb_data; /* b-b state number and data field sz */
371 #define FC_SP_FT_CSYN 0x0010 /* clock synch. supported */
378 * Class-specific service parameters.
386 __be16 cp_ee_cred; /* N-port end-to-end credit */
398 #define FC_CPC_CAMP 0x0200 /* camp-on */
405 #define FC_CPI_CSYN 0x0010 /* clock synch. capable */
410 #define FC_CPR_CSYN 0x0008 /* clock synch. capable */
422 struct fc_els_cssp fl_cssp[4]; /* class 1-4 service parameters */
448 * SPP response code in spp_flags - lower 4 bits.
462 * ELS_RRQ - Reinstate Recovery Qualifier
466 __u8 rrq_zero[3]; /* specified as zero - part of cmd */
474 * ELS_REC - Read exchange concise.
478 __u8 rec_zero[3]; /* specified as zero - part of cmd */
490 __u8 reca_zero[3]; /* specified as zero - part of cmd */
502 * ELS_PRLI - Process login request and response.
512 * ELS_PRLO - Process logout request and response.
535 * ELS_LOGO - process or fabric logout.
539 __u8 fl_zero[3]; /* specified as zero - part of cmd */
546 * ELS_RTV - read timeout value.
550 __u8 rtv_zero[3]; /* specified as zero - part of cmd */
554 * LS_ACC for ELS_RTV - read timeout value.
558 __u8 rtv_zero[3]; /* specified as zero - part of cmd */
567 #define FC_ELS_RTV_EDRES (1 << 26) /* E_D_TOV resolution is nS else mS */
571 * ELS_SCR - state change registration payload.
580 ELS_SCRF_FAB = 1, /* fabric-detected registration */
581 ELS_SCRF_NPORT = 2, /* Nx_Port-detected registration */
587 * ELS_RSCN - registered state change notification payload.
594 /* followed by 4-byte generic affected Port_ID pages */
624 * ELS_RNID - request Node ID.
659 __u8 rnid_vend_id[16]; /* vendor-unique ID */
668 __be16 rnid_vend_spec; /* vendor-specific field */
716 * ELS RPL - Read Port List.
720 __u8 rpl_resv[5]; /* reserved - must be zero */
722 __u8 rpl_resv1; /* reserved - must be zero */
741 __u8 rpl_resv1; /* reserved - must be zero */
743 __u8 rpl_resv2; /* reserved - must be zero */
745 __u8 rpl_resv3; /* reserved - must be zero */
763 * ELS RPS - Read Port Status Block request.
767 __u8 rps_resv[2]; /* reserved - must be zero */
768 __u8 rps_flag; /* flag - see below */
782 __u8 rps_cmd; /* command - LS_ACC */
783 __u8 rps_resv[2]; /* reserved - must be zero */
784 __u8 rps_flag; /* flag - see below */
786 __be16 rps_status; /* port status - see below */
795 FC_ELS_RPS_PTP = 1 << 5, /* point-to-point connection */
804 * ELS LIRR - Link Incident Record Registration request.
808 __u8 lirr_resv[3]; /* reserved - must be zero */
810 __u8 lirr_fmt; /* FC-4 type of RLIR requested */
811 __u8 lirr_resv2[2]; /* reserved - must be zero */
815 ELS_LIRR_SET_COND = 0x01, /* set - conditionally receive */
816 ELS_LIRR_SET_UNCOND = 0x02, /* set - unconditionally receive */
821 * ELS SRL - Scan Remote Loop request.
825 __u8 srl_resv[3]; /* reserved - must be zero */
826 __u8 srl_flag; /* flag - see below */
838 * ELS RLS - Read Link Error Status Block request.
842 __u8 rls_resv[4]; /* reserved - must be zero */
851 __u8 rls_resv[3]; /* reserved - must be zero */
856 * ELS RLIR - Registered Link Incident Report.
861 __u8 rlir_resv[3]; /* reserved - must be zero */
862 __u8 rlir_fmt; /* format (FC4-type if type specific) */
869 * CLIR - Common Link Incident Record Data. - Sent via RLIR.
888 * CLIR clir_ts_fmt - time stamp format values.
893 ELS_CLIR_TS_CSU = 2, /* time in clock synch update format */
897 * Common Link Incident Descriptor - sent via RLIR.
911 ELS_CLID_SEV_MASK = 0x0c, /* severity 2-bit field mask */
924 ELS_CLID_IC_BER = 2, /* bit-error-rate threshold exceeded */
926 ELS_CLID_IC_NOS = 4, /* non-operational primitive sequence */
1028 __be32 event_threshold;/* duration in ms of the link
1074 __be32 event_period; /* duration (ms) of the detected
1096 __be32 event_period; /* duration (ms) of the detected
1100 __u8 resv[3]; /* reserved - must be zero */
1104 * ELS_FPIN - Fabric Performance Impact Notification
1108 __u8 fpin_zero[3]; /* specified as zero - part of cmd */
1116 /* Diagnostic Function Descriptor - FPIN Registration */
1140 * ELS_RDF - Register Diagnostic Functions
1146 __u8 fpin_zero[3]; /* specified as zero - part of cmd */
1245 * ELS_EDC - Exchange Diagnostic Capabilities
1249 __u8 edc_zero[3]; /* specified as zero - part of cmd */