PDK API Guide for J721E
csitx/V0/cdn_errno.h
Go to the documentation of this file.
1 /******************************************************************************
2  * Copyright (C) 2012-2019 Cadence Design Systems, Inc.
3  * Redistribution and use in source and binary forms, with or without
4  * modification, are permitted provided that the following conditions
5  * are met:
6  *
7  * 1. Redistributions of source code must retain the above copyright
8  * notice, this list of conditions and the following disclaimer.
9  * 2. Redistributions in binary form must reproduce the above copyright
10  * notice, this list of conditions and the following disclaimer in the
11  * documentation and/or other materials provided with the distribution.
12  * 3. Neither the name of the copyright holder nor the names of its
13  * contributors may be used to endorse or promote products derived from
14  * this software without specific prior written permission.
15  *
16  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
17  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19  * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
20  * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
21  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
22  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
23  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
24  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
25  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
26  * POSSIBILITY OF SUCH DAMAGE.
27  *
28  ******************************************************************************
29  * cdn_errno.h
30  * Cadence error codes
31  ******************************************************************************
32  */
33 
34 #ifndef INCLUDE_CDN_ERRNO_H
35 #define INCLUDE_CDN_ERRNO_H
36 
37 #ifndef ERRNO_H_NOT_PRESENT
38 #include <errno.h>
39 #endif /* ERRNO_H_NOT_PRESENT */
40 
41 #ifndef REMOVE_OLD_ERRORCODES
42 
43 #ifndef EOK
44 #define EOK 0 /* no error */
45 #endif /* EOK */
46 
47 #ifndef EPERM
48 #define EPERM 1 /* Operation not permitted */
49 #endif /* EPERM */
50 
51 #ifndef ENOENT
52 #define ENOENT 2 /* No such file or directory */
53 #endif /* ENOENT */
54 
55 #ifndef EIO
56 #define EIO 5 /* I/O error */
57 #endif /* EIO */
58 
59 #ifndef ENOEXEC
60 #define ENOEXEC 8 /* Exec format error */
61 #endif /* ENOEXEC */
62 
63 #ifndef EAGAIN
64 #define EAGAIN 11 /* Try again */
65 #endif /* EAGAIN */
66 
67 #ifndef ENOMEM
68 #define ENOMEM 12 /* Out of memory */
69 #endif /* ENOMEM */
70 
71 #ifndef EFAULT
72 #define EFAULT 14 /* Bad address */
73 #endif /* EFAULT */
74 
75 #ifndef EBUSY
76 #define EBUSY 16 /* Device or resource busy */
77 #endif /* EBUSY */
78 
79 #ifndef EINVAL
80 #define EINVAL 22 /* Invalid argument */
81 #endif /* EINVAL */
82 
83 #ifndef ENOSPC
84 #define ENOSPC 28 /* No space left on device */
85 #endif /* ENOSPC */
86 
87 #ifndef EBADSLT
88 #define EBADSLT 57 /* Invalid slot */
89 #endif /* EBADSLT */
90 
91 #ifndef EPROTO
92 #define EPROTO 71 /* Protocol error */
93 #endif /* EPROTO */
94 
95 #ifndef EOVERFLOW
96 #define EOVERFLOW 75 /* Value too large for defined data type */
97 #endif /* EOVERFLOW */
98 
99 #ifndef EOPNOTSUPP
100 #define EOPNOTSUPP 95 /* Operation not supported */
101 #endif /* EOPNOTSUPP */
102 
103 #ifndef ETIMEDOUT
104 #define ETIMEDOUT 110 /* Connection timed out */
105 #endif /* ETIMEDOUT */
106 
107 #ifndef EINPROGRESS
108 #define EINPROGRESS 115 /* Operation now in progress */
109 #endif /* EINPROGRESS */
110 
111 #ifndef EDQUOT
112 #define EDQUOT 122 /* Quota exceeded */
113 #endif /* EDQUOT */
114 
115 #ifndef ENOTSUP
116 #define ENOTSUP EOPNOTSUPP
117 #endif /* ENOTSUP */
118 
119 #ifndef ECANCELED
120 #define ECANCELED 126 /* Cancelled */
121 #endif /* ECANCELED */
122 
123 #endif /* REMOVE_OLD_ERRORCODES */
124 
125 #define CDN_EOK 0U /* no error */
126 
127 #define CDN_EPERM 1U /* Operation not permitted */
128 
129 #define CDN_ENOENT 2U /* No such file or directory */
130 
131 #define CDN_EIO 5U /* I/O error */
132 
133 #define CDN_ENOEXEC 8U /* Exec format error */
134 
135 #define CDN_EAGAIN 11U /* Try again */
136 
137 #define CDN_ENOMEM 12U /* Out of memory */
138 
139 #define CDN_EFAULT 14U /* Bad address */
140 
141 #define CDN_EBUSY 16U /* Device or resource busy */
142 
143 #define CDN_EINVAL 22U /* Invalid argument */
144 
145 #define CDN_ENOSPC 28U /* No space left on device */
146 
147 #define CDN_EBADSLT 57U /* Invalid slot */
148 
149 #define CDN_EPROTO 71U /* Protocol error */
150 
151 #define CDN_EOVERFLOW 75U /* Value too large for defined data type */
152 
153 #define CDN_EOPNOTSUPP 95U /* Operation not supported */
154 
155 #define CDN_ETIMEDOUT 110U /* Connection timed out */
156 
157 #define CDN_EINPROGRESS 115U /* Operation now in progress */
158 
159 #define CDN_EDQUOT 122U /* Quota exceeded */
160 
161 #define CDN_ENOTSUP CDN_EOPNOTSUPP
162 
163 #define CDN_ECANCELED 126U /* Cancelled */
164 
165 #endif /* INCLUDE_CDN_ERRNO_H */