![]() |
|
|||
0001 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 0002 /* 0003 * Copyright(c) 2007 Intel Corporation. All rights reserved. 0004 * 0005 * Maintained at www.Open-FCoE.org 0006 */ 0007 0008 #ifndef _FC_GS_H_ 0009 #define _FC_GS_H_ 0010 0011 #include <linux/types.h> 0012 0013 /* 0014 * Fibre Channel Services - Common Transport. 0015 * From T11.org FC-GS-2 Rev 5.3 November 1998. 0016 */ 0017 0018 struct fc_ct_hdr { 0019 __u8 ct_rev; /* revision */ 0020 __u8 ct_in_id[3]; /* N_Port ID of original requestor */ 0021 __u8 ct_fs_type; /* type of fibre channel service */ 0022 __u8 ct_fs_subtype; /* subtype */ 0023 __u8 ct_options; 0024 __u8 _ct_resvd1; 0025 __be16 ct_cmd; /* command / response code */ 0026 __be16 ct_mr_size; /* maximum / residual size */ 0027 __u8 _ct_resvd2; 0028 __u8 ct_reason; /* reject reason */ 0029 __u8 ct_explan; /* reason code explanation */ 0030 __u8 ct_vendor; /* vendor unique data */ 0031 }; 0032 0033 #define FC_CT_HDR_LEN 16 /* expected sizeof (struct fc_ct_hdr) */ 0034 0035 enum fc_ct_rev { 0036 FC_CT_REV = 1 /* common transport revision */ 0037 }; 0038 0039 /* 0040 * ct_fs_type values. 0041 */ 0042 enum fc_ct_fs_type { 0043 FC_FST_ALIAS = 0xf8, /* alias service */ 0044 FC_FST_MGMT = 0xfa, /* management service */ 0045 FC_FST_TIME = 0xfb, /* time service */ 0046 FC_FST_DIR = 0xfc, /* directory service */ 0047 }; 0048 0049 /* 0050 * ct_cmd: Command / response codes 0051 */ 0052 enum fc_ct_cmd { 0053 FC_FS_RJT = 0x8001, /* reject */ 0054 FC_FS_ACC = 0x8002, /* accept */ 0055 }; 0056 0057 /* 0058 * FS_RJT reason codes. 0059 */ 0060 enum fc_ct_reason { 0061 FC_FS_RJT_CMD = 0x01, /* invalid command code */ 0062 FC_FS_RJT_VER = 0x02, /* invalid version level */ 0063 FC_FS_RJT_LOG = 0x03, /* logical error */ 0064 FC_FS_RJT_IUSIZ = 0x04, /* invalid IU size */ 0065 FC_FS_RJT_BSY = 0x05, /* logical busy */ 0066 FC_FS_RJT_PROTO = 0x07, /* protocol error */ 0067 FC_FS_RJT_UNABL = 0x09, /* unable to perform command request */ 0068 FC_FS_RJT_UNSUP = 0x0b, /* command not supported */ 0069 }; 0070 0071 /* 0072 * FS_RJT reason code explanations. 0073 */ 0074 enum fc_ct_explan { 0075 FC_FS_EXP_NONE = 0x00, /* no additional explanation */ 0076 FC_FS_EXP_PID = 0x01, /* port ID not registered */ 0077 FC_FS_EXP_PNAM = 0x02, /* port name not registered */ 0078 FC_FS_EXP_NNAM = 0x03, /* node name not registered */ 0079 FC_FS_EXP_COS = 0x04, /* class of service not registered */ 0080 FC_FS_EXP_FTNR = 0x07, /* FC-4 types not registered */ 0081 /* definitions not complete */ 0082 }; 0083 0084 #endif /* _FC_GS_H_ */
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |