1 
2 /* Copyright (c) 2021, Qualcomm Innovation Center, Inc. All rights reserved.
3  *
4  * Permission to use, copy, modify, and/or distribute this software for any
5  * purpose with or without fee is hereby granted, provided that the above
6  * copyright notice and this permission notice appear in all copies.
7  *
8  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15  */
16 
17 #ifndef COM_DTYPES_H
18 #define COM_DTYPES_H
19 
20 
21 
22 
23 
24 
25 
26 
27 
28 
29 
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
33 
34 
35 #ifdef T_WINNT
36    #ifndef WIN32
37       #define WIN32
38    #endif
39    #include <stdlib.h>
40 #endif
41 
42 
43 
44 #ifdef TRUE
45 #undef TRUE
46 #endif
47 
48 #ifdef FALSE
49 #undef FALSE
50 #endif
51 
52 
53 
54 
55 #define TRUE   1
56 #define FALSE  0
57 
58 #define  ON   1
59 #define  OFF  0
60 
61 #ifndef NULL
62   #define NULL  0
63 #endif
64 
65 
66 
67 
68 
69 
70 
71 #ifndef _ARM_ASM_
72 #ifndef _BOOLEAN_DEFINED
73 
74 
75 
76 typedef  unsigned char      boolean;
77 #define _BOOLEAN_DEFINED
78 #endif
79 
80 
81 #if defined(DALSTDDEF_H)
82 #define _BOOLEAN_DEFINED
83 #define _UINT32_DEFINED
84 #define _UINT16_DEFINED
85 #define _UINT8_DEFINED
86 #define _INT32_DEFINED
87 #define _INT16_DEFINED
88 #define _INT8_DEFINED
89 #define _UINT64_DEFINED
90 #define _INT64_DEFINED
91 #define _BYTE_DEFINED
92 #endif
93 
94 
95 #ifndef _UINT32_DEFINED
96 
97 typedef  unsigned long int  uint32;
98 #define _UINT32_DEFINED
99 #endif
100 
101 #ifndef _UINT16_DEFINED
102 
103 typedef  unsigned short     uint16;
104 #define _UINT16_DEFINED
105 #endif
106 
107 #ifndef _UINT8_DEFINED
108 
109 typedef  unsigned char      uint8;
110 #define _UINT8_DEFINED
111 #endif
112 
113 #ifndef _INT32_DEFINED
114 
115 typedef  signed long int    int32;
116 #define _INT32_DEFINED
117 #endif
118 
119 #ifndef _INT16_DEFINED
120 
121 typedef  signed short       int16;
122 #define _INT16_DEFINED
123 #endif
124 
125 #ifndef _INT8_DEFINED
126 
127 typedef  signed char        int8;
128 #define _INT8_DEFINED
129 #endif
130 
131 
132 
133 #ifndef _BYTE_DEFINED
134 
135 typedef  unsigned char      byte;
136 #define  _BYTE_DEFINED
137 #endif
138 
139 
140 typedef  unsigned short     word;
141 
142 typedef  unsigned long      dword;
143 
144 
145 typedef  unsigned char      uint1;
146 
147 typedef  unsigned short     uint2;
148 
149 typedef  unsigned long      uint4;
150 
151 
152 typedef  signed char        int1;
153 
154 typedef  signed short       int2;
155 
156 typedef  long int           int4;
157 
158 
159 typedef  signed long        sint31;
160 
161 typedef  signed short       sint15;
162 
163 typedef  signed char        sint7;
164 
165 typedef uint16 UWord16 ;
166 typedef uint32 UWord32 ;
167 typedef int32  Word32 ;
168 typedef int16  Word16 ;
169 typedef uint8  UWord8 ;
170 typedef int8   Word8 ;
171 typedef int32  Vect32 ;
172 
173 
174 #if (! defined T_WINNT) && (! defined __GNUC__)
175 
176   #ifndef _INT64_DEFINED
177 
178     typedef long long     int64;
179     #define _INT64_DEFINED
180   #endif
181   #ifndef _UINT64_DEFINED
182 
183     typedef  unsigned long long  uint64;
184     #define _UINT64_DEFINED
185   #endif
186 #else
187 
188   #if (defined __GNUC__)
189     #ifndef _INT64_DEFINED
190       typedef long long           int64;
191       #define _INT64_DEFINED
192     #endif
193     #ifndef _UINT64_DEFINED
194       typedef unsigned long long  uint64;
195       #define _UINT64_DEFINED
196     #endif
197   #else
198     typedef  __int64              int64;
199     #ifndef _UINT64_DEFINED
200       typedef  unsigned __int64   uint64;
201       #define _UINT64_DEFINED
202     #endif
203   #endif
204 #endif
205 
206 #endif
207 
208 #ifdef __cplusplus
209 }
210 #endif
211 
212 
213 #endif
214