fc301d62960130b574b4893c2a23917f18a87b82
1 /*******************************\r
2 * file: netapi_err.h\r
3 * purpose: netapi error codes\r
4 **************************************************************\r
5 * @file netapi.h\r
6 * \r
7 * @brief DESCRIPTION: netapi Error Definitions for user space transport\r
8 * library\r
9 * \r
10 * REVISION HISTORY: rev 0.0.1 \r
11 *\r
12 * Copyright (c) Texas Instruments Incorporated 2010-2011\r
13 * \r
14 * Redistribution and use in source and binary forms, with or without \r
15 * modification, are permitted provided that the following conditions \r
16 * are met:\r
17 *\r
18 * Redistributions of source code must retain the above copyright \r
19 * notice, this list of conditions and the following disclaimer.\r
20 *\r
21 * Redistributions in binary form must reproduce the above copyright\r
22 * notice, this list of conditions and the following disclaimer in the \r
23 * documentation and/or other materials provided with the \r
24 * distribution.\r
25 *\r
26 * Neither the name of Texas Instruments Incorporated nor the names of\r
27 * its contributors may be used to endorse or promote products derived\r
28 * from this software without specific prior written permission.\r
29 *\r
30 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \r
31 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT \r
32 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\r
33 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT \r
34 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, \r
35 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT \r
36 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
37 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\r
38 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT \r
39 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE \r
40 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
41 \r
42 ******************************/\r
43 \r
44 #ifndef __NETAPI_ERR__\r
45 #define __NETAPI_ERR__\r
46 /**\r
47 * @defgroup NETAPI_RetValue NETAPI Return Codes\r
48 */\r
49 /** @ingroup NETAPI_RetValue */\r
50 \r
51 /**\r
52 * @def NETAPI_ERR_OK\r
53 * No error \r
54 */\r
55 #define NETAPI_ERR_OK 0\r
56 /**\r
57 * @ingroup NETAPI_RetValue\r
58 * @def NETAPI_ERR_NOMEM\r
59 * @brief out of memory error \r
60 */\r
61 #define NETAPI_ERR_NOMEM -1\r
62 /**\r
63 * @ingroup NETAPI_RetValue\r
64 * @def NETAPI_ERR_BAD_INPUT\r
65 * arguments or configuraiton is invalid\r
66 */\r
67 #define NETAPI_ERR_BAD_INPUT -2\r
68 /**\r
69 * @ingroup NETAPI_RetValue\r
70 * @def NETAPI_ERR_QLLD \r
71 * QUEUE MANAGER Reports an error\r
72 */\r
73 #define NETAPI_ERR_QLLD -3\r
74 /**\r
75 * @ingroup NETAPI_RetValue\r
76 * @def NETAPI_ERR_NOTFOUND\r
77 * the resource cannot be located\r
78 */\r
79 #define NETAPI_ERR_NOTFOUND -4\r
80 /**\r
81 * @ingroup NETAPI_RetValue\r
82 * @def NETAPI_ERR_BUSY\r
83 * Temporarily out of resources or resource leak\r
84 */\r
85 #define NETAPI_ERR_BUSY -5 \r
86 /**\r
87 * @ingroup NETAPI_RetValue\r
88 * @def NETAPI_ERR_NWAL_ERR0\r
89 * NWAL subsytem reports error \r
90 */\r
91 #define NETAPI_ERR_NWAL_ERR0 -6\r
92 /**\r
93 * @ingroup NETAPI_RetValue\r
94 * @def NETAPI_ERR_NOT_IMLEMENTED_\r
95 * Feature not implemented in this version \r
96 */\r
97 #define NETAPI_ERR_NOT_IMPLEMENTED -7\r
98 /**\r
99 * @ingroup NETAPI_RetValue\r
100 * @def NETAPI_ERR_NORES\r
101 * no free (hw) resources available \r
102 */\r
103 #define NETAPI_ERR_NORES -8\r
104 /**\r
105 * @ingroup NETAPI_RetValue\r
106 * @def NETAPI_ERR_ALREADY_CANCELLED\r
107 * timer has already been cancelled\r
108 */\r
109 #define NETAPI_ERR_ALREADY_CANCELLED -100\r
110 /**\r
111 * @ingroup NETAPI_RetValue\r
112 * @def NETAPI_ERR_NWAL_TX_ERR\r
113 * error trying to send to NWAL. \r
114 */\r
115 #define NETAPI_ERR_NWAL_TX_ERR -65536\r
116 #endif\r