1 
2 /*
3  * Copyright (c) 2024, Qualcomm Innovation Center, Inc. All rights reserved.
4  * SPDX-License-Identifier: ISC
5  */
6 
7 
8 
9 
10 #ifndef COM_DTYPES_H
11 #define COM_DTYPES_H
12 
13 
14 
15 
16 
17 
18 
19 
20 
21 
22 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
27 
28 #ifdef T_WINNT
29    #ifndef WIN32
30       #define WIN32
31    #endif
32    #include <stdlib.h>
33 #endif
34 
35 
36 
37 #ifdef TRUE
38 #undef TRUE
39 #endif
40 
41 #ifdef FALSE
42 #undef FALSE
43 #endif
44 
45 
46 
47 
48 #define TRUE   1
49 #define FALSE  0
50 
51 #define  ON   1
52 #define  OFF  0
53 
54 #ifndef NULL
55   #define NULL  0
56 #endif
57 
58 
59 
60 
61 
62 
63 
64 #ifndef _ARM_ASM_
65 #ifndef _BOOLEAN_DEFINED
66 
67 
68 
69 typedef  unsigned char      boolean;
70 #define _BOOLEAN_DEFINED
71 #endif
72 
73 
74 #if defined(DALSTDDEF_H)
75 #define _BOOLEAN_DEFINED
76 #define _UINT32_DEFINED
77 #define _UINT16_DEFINED
78 #define _UINT8_DEFINED
79 #define _INT32_DEFINED
80 #define _INT16_DEFINED
81 #define _INT8_DEFINED
82 #define _UINT64_DEFINED
83 #define _INT64_DEFINED
84 #define _BYTE_DEFINED
85 #endif
86 
87 
88 #ifndef _UINT32_DEFINED
89 
90 typedef  unsigned int  uint32;
91 #define _UINT32_DEFINED
92 #endif
93 
94 #ifndef _UINT16_DEFINED
95 
96 typedef  unsigned short     uint16;
97 #define _UINT16_DEFINED
98 #endif
99 
100 #ifndef _UINT8_DEFINED
101 
102 typedef  unsigned char      uint8;
103 #define _UINT8_DEFINED
104 #endif
105 
106 #ifndef _INT32_DEFINED
107 
108 typedef  signed int    int32;
109 #define _INT32_DEFINED
110 #endif
111 
112 #ifndef _INT16_DEFINED
113 
114 typedef  signed short       int16;
115 #define _INT16_DEFINED
116 #endif
117 
118 #ifndef _INT8_DEFINED
119 
120 typedef  signed char        int8;
121 #define _INT8_DEFINED
122 #endif
123 
124 
125 
126 #ifndef _BYTE_DEFINED
127 
128 typedef  unsigned char      byte;
129 #define  _BYTE_DEFINED
130 #endif
131 
132 
133 typedef  unsigned short     word;
134 
135 typedef  unsigned long      dword;
136 
137 
138 typedef  unsigned char      uint1;
139 
140 typedef  unsigned short     uint2;
141 
142 typedef  unsigned long      uint4;
143 
144 
145 typedef  signed char        int1;
146 
147 typedef  signed short       int2;
148 
149 typedef  long int           int4;
150 
151 
152 typedef  signed long        sint31;
153 
154 typedef  signed short       sint15;
155 
156 typedef  signed char        sint7;
157 
158 typedef uint16 UWord16 ;
159 typedef uint32 UWord32 ;
160 typedef int32  Word32 ;
161 typedef int16  Word16 ;
162 typedef uint8  UWord8 ;
163 typedef int8   Word8 ;
164 typedef int32  Vect32 ;
165 
166 
167 #if (! defined T_WINNT) && (! defined __GNUC__)
168 
169   #ifndef _INT64_DEFINED
170 
171     typedef long long     int64;
172     #define _INT64_DEFINED
173   #endif
174   #ifndef _UINT64_DEFINED
175 
176     typedef  unsigned long long  uint64;
177     #define _UINT64_DEFINED
178   #endif
179 #else
180 
181   #if (defined __GNUC__)
182     #ifndef _INT64_DEFINED
183       typedef long long           int64;
184       #define _INT64_DEFINED
185     #endif
186     #ifndef _UINT64_DEFINED
187       typedef unsigned long long  uint64;
188       #define _UINT64_DEFINED
189     #endif
190   #else
191     typedef  __int64              int64;
192     #ifndef _UINT64_DEFINED
193       typedef  unsigned __int64   uint64;
194       #define _UINT64_DEFINED
195     #endif
196   #endif
197 #endif
198 
199 #endif
200 
201 #ifdef __cplusplus
202 }
203 #endif
204 
205 
206 #endif
207