1 /*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License, v.1,  (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 * or http://opensource.org/licenses/CDDL-1.0.
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
12 *
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 *
19 * CDDL HEADER END
20 */
21 
22 /*
23 * Copyright 2014-2017 Cavium, Inc.
24 * The contents of this file are subject to the terms of the Common Development
25 * and Distribution License, v.1,  (the "License").
26 
27 * You may not use this file except in compliance with the License.
28 
29 * You can obtain a copy of the License at available
30 * at http://opensource.org/licenses/CDDL-1.0
31 
32 * See the License for the specific language governing permissions and
33 * limitations under the License.
34 */
35 
36 #ifndef __ECORE_STATUS_H__
37 #define __ECORE_STATUS_H__
38 
39 enum _ecore_status_t {
40 	ECORE_CONN_REFUSED = -14,
41 	ECORE_CONN_RESET = -13,
42 	ECORE_UNKNOWN_ERROR  = -12,
43 	ECORE_NORESOURCES	 = -11,
44 	ECORE_NODEV   = -10,
45 	ECORE_ABORTED = -9,
46 	ECORE_AGAIN   = -8,
47 	ECORE_NOTIMPL = -7,
48 	ECORE_EXISTS  = -6,
49 	ECORE_IO      = -5,
50 	ECORE_TIMEOUT = -4,
51 	ECORE_INVAL   = -3,
52 	ECORE_BUSY    = -2,
53 	ECORE_NOMEM   = -1,
54 	ECORE_SUCCESS = 0,
55 	/* PENDING is not an error and should be positive */
56 	ECORE_PENDING = 1,
57 };
58 
59 #endif /* __ECORE_STATUS_H__ */
60 
61