Lines Matching +full:port +full:- +full:specific

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 */
66 ELS_RPS = 0x56, /* read port status block */
67 ELS_RPL = 0x57, /* read port list */
68 ELS_RPBC = 0x58, /* read port buffer condition */
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 */
176 __u8 er_vendor; /* vendor specific code */
183 ELS_RJT_NONE = 0, /* no reject - not to be sent */
192 ELS_RJT_VENDOR = 0xff, /* vendor specific error */
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.
280 (sizeof(desc) - FC_TLV_DESC_HDR_SZ)
284 (__be32_to_cpu((tlv)->desc_len) + FC_TLV_DESC_HDR_SZ)
322 __be16 sp_bb_cred; /* buffer-to-buffer credits */
324 __be16 sp_bb_data; /* b-b state number and data field sz */
357 #define FC_SP_FT_FPORT 0x1000 /* F port (1) vs. N port (0) */
372 * Class-specific service parameters.
380 __be16 cp_ee_cred; /* N-port end-to-end credit */
392 #define FC_CPC_CAMP 0x0200 /* camp-on */
408 * NFC_ELS_PLOGI: Port login request (same format).
414 __be64 fl_wwpn; /* port name */
416 struct fc_els_cssp fl_cssp[4]; /* class 1-4 service parameters */
442 * SPP response code in spp_flags - lower 4 bits.
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.
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 */
535 __u8 fl_n_port_id[3];/* N port ID */
536 __be64 fl_n_port_wwn; /* port name */
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 */
604 ELS_EV_QUAL_PORT_ATTR = 2, /* changed port attribute */
611 ELS_ADDR_FMT_PORT = 0, /* rscn_fid is a port address */
618 * ELS_RNID - request Node ID.
631 ELS_RNIDF_NONE = 0, /* no specific identification data */
644 __u8 rnid_sid_len; /* specific ID data length */
648 __be64 rnid_wwpn; /* N port name */
653 __u8 rnid_vend_id[16]; /* vendor-unique ID */
655 __be32 rnid_phys_port; /* physical port number */
659 __be16 rnid_prot_port; /* UDP / TCP port number */
662 __be16 rnid_vend_spec; /* vendor-specific field */
710 * ELS RPL - Read Port List.
714 __u8 rpl_resv[5]; /* reserved - must be zero */
716 __u8 rpl_resv1; /* reserved - must be zero */
721 * Port number block in RPL response.
724 __be32 pnb_phys_pn; /* physical port number */
726 __u8 pnb_port_id[3]; /* port ID */
727 __be64 pnb_wwpn; /* port name */
735 __u8 rpl_resv1; /* reserved - must be zero */
737 __u8 rpl_resv2; /* reserved - must be zero */
739 __u8 rpl_resv3; /* reserved - must be zero */
757 * ELS RPS - Read Port Status Block request.
761 __u8 rps_resv[2]; /* reserved - must be zero */
762 __u8 rps_flag; /* flag - see below */
763 __be64 rps_port_spec; /* port selection */
767 FC_ELS_RPS_DID = 0x00, /* port identified by D_ID of req. */
768 FC_ELS_RPS_PPN = 0x01, /* port_spec is physical port number */
769 FC_ELS_RPS_WWPN = 0x02, /* port_spec is port WWN */
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 */
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 */
837 __u8 rls_port_id[3]; /* port ID */
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.
866 __be64 clir_wwpn; /* incident port name */
867 __be64 clir_wwnn; /* incident port node name */
868 __u8 clir_port_type; /* incident port type */
869 __u8 clir_port_id[3]; /* incident port ID */
871 __be64 clir_conn_wwpn; /* connected port name */
874 __be32 clir_phys_port; /* physical port number */
882 * CLIR clir_ts_fmt - time stamp format values.
891 * Common Link Incident Descriptor - sent via RLIR.
903 ELS_CLID_SWITCH = 0x20, /* incident port is a switch node */
904 ELS_CLID_E_PORT = 0x10, /* incident is an ISL (E) port */
905 ELS_CLID_SEV_MASK = 0x0c, /* severity 2-bit field mask */
918 ELS_CLID_IC_BER = 2, /* bit-error-rate threshold exceeded */
920 ELS_CLID_IC_NOS = 4, /* non-operational primitive sequence */
953 { FPIN_LI_DEVICE_SPEC, "Device Specific" }, \
974 { FPIN_DELI_DEVICE_SPEC, "Device Specific" }, \
997 { FPIN_CONGN_DEVICE_SPEC, "Device Specific" }, \
1014 __be64 detecting_wwpn; /* Port Name that detected event */
1015 __be64 attached_wwpn; /* Port Name of device attached to
1016 * detecting Port Name
1019 __be16 event_modifier; /* Implementation specific value
1031 * through the attached port
1044 __be64 detecting_wwpn; /* Port Name that detected event */
1045 __be64 attached_wwpn; /* Port Name of device attached to
1046 * detecting Port Name
1060 __be64 detecting_wwpn; /* Port Name that detected event */
1061 __be64 attached_wwpn; /* Port Name of device attached to
1062 * detecting Port Name
1065 __be16 event_modifier; /* Implementation specific value
1073 * through the attached port
1087 __be16 event_modifier; /* Implementation specific value
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 */
1110 /* Diagnostic Function Descriptor - FPIN Registration */
1129 * ELS_RDF - Register Diagnostic Functions
1133 __u8 fpin_zero[3]; /* specified as zero - part of cmd */
1225 * ELS_EDC - Exchange Diagnostic Capabilities
1229 __u8 edc_zero[3]; /* specified as zero - part of cmd */