1 /*
2  * Linux network driver for QLogic BR-series Converged Network Adapter.
3  *
4  * This program is free software; you can redistribute it and/or modify it
5  * under the terms of the GNU General Public License (GPL) Version 2 as
6  * published by the Free Software Foundation
7  *
8  * This program is distributed in the hope that it will be useful, but
9  * WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11  * General Public License for more details.
12  */
13 /*
14  * Copyright (c) 2005-2014 Brocade Communications Systems, Inc.
15  * Copyright (c) 2014-2015 QLogic Corporation
16  * All rights reserved
17  * www.qlogic.com
18  */
19 #ifndef __BFA_DEFS_STATUS_H__
20 #define __BFA_DEFS_STATUS_H__
21 
22 /* API status return values
23  *
24  * NOTE: The error msgs are auto generated from the comments. Only singe line
25  * comments are supported
26  */
27 enum bfa_status {
28 	BFA_STATUS_OK = 0,
29 	BFA_STATUS_FAILED = 1,
30 	BFA_STATUS_EINVAL = 2,
31 	BFA_STATUS_ENOMEM = 3,
32 	BFA_STATUS_ENOSYS = 4,
33 	BFA_STATUS_ETIMER = 5,
34 	BFA_STATUS_EPROTOCOL = 6,
35 	BFA_STATUS_ENOFCPORTS = 7,
36 	BFA_STATUS_NOFLASH = 8,
37 	BFA_STATUS_BADFLASH = 9,
38 	BFA_STATUS_SFP_UNSUPP = 10,
39 	BFA_STATUS_UNKNOWN_VFID = 11,
40 	BFA_STATUS_DATACORRUPTED = 12,
41 	BFA_STATUS_DEVBUSY = 13,
42 	BFA_STATUS_ABORTED = 14,
43 	BFA_STATUS_NODEV = 15,
44 	BFA_STATUS_HDMA_FAILED = 16,
45 	BFA_STATUS_FLASH_BAD_LEN = 17,
46 	BFA_STATUS_UNKNOWN_LWWN = 18,
47 	BFA_STATUS_UNKNOWN_RWWN = 19,
48 	BFA_STATUS_FCPT_LS_RJT = 20,
49 	BFA_STATUS_VPORT_EXISTS = 21,
50 	BFA_STATUS_VPORT_MAX = 22,
51 	BFA_STATUS_UNSUPP_SPEED = 23,
52 	BFA_STATUS_INVLD_DFSZ = 24,
53 	BFA_STATUS_CNFG_FAILED = 25,
54 	BFA_STATUS_CMD_NOTSUPP = 26,
55 	BFA_STATUS_NO_ADAPTER = 27,
56 	BFA_STATUS_LINKDOWN = 28,
57 	BFA_STATUS_FABRIC_RJT = 29,
58 	BFA_STATUS_UNKNOWN_VWWN = 30,
59 	BFA_STATUS_NSLOGIN_FAILED = 31,
60 	BFA_STATUS_NO_RPORTS = 32,
61 	BFA_STATUS_NSQUERY_FAILED = 33,
62 	BFA_STATUS_PORT_OFFLINE = 34,
63 	BFA_STATUS_RPORT_OFFLINE = 35,
64 	BFA_STATUS_TGTOPEN_FAILED = 36,
65 	BFA_STATUS_BAD_LUNS = 37,
66 	BFA_STATUS_IO_FAILURE = 38,
67 	BFA_STATUS_NO_FABRIC = 39,
68 	BFA_STATUS_EBADF = 40,
69 	BFA_STATUS_EINTR = 41,
70 	BFA_STATUS_EIO = 42,
71 	BFA_STATUS_ENOTTY = 43,
72 	BFA_STATUS_ENXIO = 44,
73 	BFA_STATUS_EFOPEN = 45,
74 	BFA_STATUS_VPORT_WWN_BP = 46,
75 	BFA_STATUS_PORT_NOT_DISABLED = 47,
76 	BFA_STATUS_BADFRMHDR = 48,
77 	BFA_STATUS_BADFRMSZ = 49,
78 	BFA_STATUS_MISSINGFRM = 50,
79 	BFA_STATUS_LINKTIMEOUT = 51,
80 	BFA_STATUS_NO_FCPIM_NEXUS = 52,
81 	BFA_STATUS_CHECKSUM_FAIL = 53,
82 	BFA_STATUS_GZME_FAILED = 54,
83 	BFA_STATUS_SCSISTART_REQD = 55,
84 	BFA_STATUS_IOC_FAILURE = 56,
85 	BFA_STATUS_INVALID_WWN = 57,
86 	BFA_STATUS_MISMATCH = 58,
87 	BFA_STATUS_IOC_ENABLED = 59,
88 	BFA_STATUS_ADAPTER_ENABLED = 60,
89 	BFA_STATUS_IOC_NON_OP = 61,
90 	BFA_STATUS_ADDR_MAP_FAILURE = 62,
91 	BFA_STATUS_SAME_NAME = 63,
92 	BFA_STATUS_PENDING = 64,
93 	BFA_STATUS_8G_SPD = 65,
94 	BFA_STATUS_4G_SPD = 66,
95 	BFA_STATUS_AD_IS_ENABLE = 67,
96 	BFA_STATUS_EINVAL_TOV = 68,
97 	BFA_STATUS_EINVAL_QDEPTH = 69,
98 	BFA_STATUS_VERSION_FAIL = 70,
99 	BFA_STATUS_DIAG_BUSY = 71,
100 	BFA_STATUS_BEACON_ON = 72,
101 	BFA_STATUS_BEACON_OFF = 73,
102 	BFA_STATUS_LBEACON_ON = 74,
103 	BFA_STATUS_LBEACON_OFF = 75,
104 	BFA_STATUS_PORT_NOT_INITED = 76,
105 	BFA_STATUS_RPSC_ENABLED = 77,
106 	BFA_STATUS_ENOFSAVE = 78,
107 	BFA_STATUS_BAD_FILE = 79,
108 	BFA_STATUS_RLIM_EN = 80,
109 	BFA_STATUS_RLIM_DIS = 81,
110 	BFA_STATUS_IOC_DISABLED = 82,
111 	BFA_STATUS_ADAPTER_DISABLED = 83,
112 	BFA_STATUS_BIOS_DISABLED = 84,
113 	BFA_STATUS_AUTH_ENABLED = 85,
114 	BFA_STATUS_AUTH_DISABLED = 86,
115 	BFA_STATUS_ERROR_TRL_ENABLED = 87,
116 	BFA_STATUS_ERROR_QOS_ENABLED = 88,
117 	BFA_STATUS_NO_SFP_DEV = 89,
118 	BFA_STATUS_MEMTEST_FAILED = 90,
119 	BFA_STATUS_INVALID_DEVID = 91,
120 	BFA_STATUS_QOS_ENABLED = 92,
121 	BFA_STATUS_QOS_DISABLED = 93,
122 	BFA_STATUS_INCORRECT_DRV_CONFIG = 94,
123 	BFA_STATUS_REG_FAIL = 95,
124 	BFA_STATUS_IM_INV_CODE = 96,
125 	BFA_STATUS_IM_INV_VLAN = 97,
126 	BFA_STATUS_IM_INV_ADAPT_NAME = 98,
127 	BFA_STATUS_IM_LOW_RESOURCES = 99,
128 	BFA_STATUS_IM_VLANID_IS_PVID = 100,
129 	BFA_STATUS_IM_VLANID_EXISTS = 101,
130 	BFA_STATUS_IM_FW_UPDATE_FAIL = 102,
131 	BFA_STATUS_PORTLOG_ENABLED = 103,
132 	BFA_STATUS_PORTLOG_DISABLED = 104,
133 	BFA_STATUS_FILE_NOT_FOUND = 105,
134 	BFA_STATUS_QOS_FC_ONLY = 106,
135 	BFA_STATUS_RLIM_FC_ONLY = 107,
136 	BFA_STATUS_CT_SPD = 108,
137 	BFA_STATUS_LEDTEST_OP = 109,
138 	BFA_STATUS_CEE_NOT_DN = 110,
139 	BFA_STATUS_10G_SPD = 111,
140 	BFA_STATUS_IM_INV_TEAM_NAME = 112,
141 	BFA_STATUS_IM_DUP_TEAM_NAME = 113,
142 	BFA_STATUS_IM_ADAPT_ALREADY_IN_TEAM = 114,
143 	BFA_STATUS_IM_ADAPT_HAS_VLANS = 115,
144 	BFA_STATUS_IM_PVID_MISMATCH = 116,
145 	BFA_STATUS_IM_LINK_SPEED_MISMATCH = 117,
146 	BFA_STATUS_IM_MTU_MISMATCH = 118,
147 	BFA_STATUS_IM_RSS_MISMATCH = 119,
148 	BFA_STATUS_IM_HDS_MISMATCH = 120,
149 	BFA_STATUS_IM_OFFLOAD_MISMATCH = 121,
150 	BFA_STATUS_IM_PORT_PARAMS = 122,
151 	BFA_STATUS_IM_PORT_NOT_IN_TEAM = 123,
152 	BFA_STATUS_IM_CANNOT_REM_PRI = 124,
153 	BFA_STATUS_IM_MAX_PORTS_REACHED = 125,
154 	BFA_STATUS_IM_LAST_PORT_DELETE = 126,
155 	BFA_STATUS_IM_NO_DRIVER = 127,
156 	BFA_STATUS_IM_MAX_VLANS_REACHED = 128,
157 	BFA_STATUS_TOMCAT_SPD_NOT_ALLOWED = 129,
158 	BFA_STATUS_NO_MINPORT_DRIVER = 130,
159 	BFA_STATUS_CARD_TYPE_MISMATCH = 131,
160 	BFA_STATUS_BAD_ASICBLK = 132,
161 	BFA_STATUS_NO_DRIVER = 133,
162 	BFA_STATUS_INVALID_MAC = 134,
163 	BFA_STATUS_IM_NO_VLAN = 135,
164 	BFA_STATUS_IM_ETH_LB_FAILED = 136,
165 	BFA_STATUS_IM_PVID_REMOVE = 137,
166 	BFA_STATUS_IM_PVID_EDIT = 138,
167 	BFA_STATUS_CNA_NO_BOOT = 139,
168 	BFA_STATUS_IM_PVID_NON_ZERO = 140,
169 	BFA_STATUS_IM_INETCFG_LOCK_FAILED = 141,
170 	BFA_STATUS_IM_GET_INETCFG_FAILED = 142,
171 	BFA_STATUS_IM_NOT_BOUND = 143,
172 	BFA_STATUS_INSUFFICIENT_PERMS = 144,
173 	BFA_STATUS_IM_INV_VLAN_NAME = 145,
174 	BFA_STATUS_CMD_NOTSUPP_CNA = 146,
175 	BFA_STATUS_IM_PASSTHRU_EDIT = 147,
176 	BFA_STATUS_IM_BIND_FAILED = 148,
177 	BFA_STATUS_IM_UNBIND_FAILED = 149,
178 	BFA_STATUS_IM_PORT_IN_TEAM = 150,
179 	BFA_STATUS_IM_VLAN_NOT_FOUND = 151,
180 	BFA_STATUS_IM_TEAM_NOT_FOUND = 152,
181 	BFA_STATUS_IM_TEAM_CFG_NOT_ALLOWED = 153,
182 	BFA_STATUS_PBC = 154,
183 	BFA_STATUS_DEVID_MISSING = 155,
184 	BFA_STATUS_BAD_FWCFG = 156,
185 	BFA_STATUS_CREATE_FILE = 157,
186 	BFA_STATUS_INVALID_VENDOR = 158,
187 	BFA_STATUS_SFP_NOT_READY = 159,
188 	BFA_STATUS_FLASH_UNINIT = 160,
189 	BFA_STATUS_FLASH_EMPTY = 161,
190 	BFA_STATUS_FLASH_CKFAIL = 162,
191 	BFA_STATUS_TRUNK_UNSUPP = 163,
192 	BFA_STATUS_TRUNK_ENABLED = 164,
193 	BFA_STATUS_TRUNK_DISABLED = 165,
194 	BFA_STATUS_TRUNK_ERROR_TRL_ENABLED = 166,
195 	BFA_STATUS_BOOT_CODE_UPDATED = 167,
196 	BFA_STATUS_BOOT_VERSION = 168,
197 	BFA_STATUS_CARDTYPE_MISSING = 169,
198 	BFA_STATUS_INVALID_CARDTYPE = 170,
199 	BFA_STATUS_NO_TOPOLOGY_FOR_CNA = 171,
200 	BFA_STATUS_IM_VLAN_OVER_TEAM_DELETE_FAILED = 172,
201 	BFA_STATUS_ETHBOOT_ENABLED = 173,
202 	BFA_STATUS_ETHBOOT_DISABLED = 174,
203 	BFA_STATUS_IOPROFILE_OFF = 175,
204 	BFA_STATUS_NO_PORT_INSTANCE = 176,
205 	BFA_STATUS_BOOT_CODE_TIMEDOUT = 177,
206 	BFA_STATUS_NO_VPORT_LOCK = 178,
207 	BFA_STATUS_VPORT_NO_CNFG = 179,
208 	BFA_STATUS_MAX_VAL
209 };
210 
211 enum bfa_eproto_status {
212 	BFA_EPROTO_BAD_ACCEPT = 0,
213 	BFA_EPROTO_UNKNOWN_RSP = 1
214 };
215 
216 #endif /* __BFA_DEFS_STATUS_H__ */
217