OpenCores
URL https://opencores.org/ocsvn/pcie_ds_dma/pcie_ds_dma/trunk

Subversion Repositories pcie_ds_dma

[/] [pcie_ds_dma/] [trunk/] [soft/] [linux/] [common/] [utils/] [utypes.h] - Blame information for rev 6

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 6 v.karak
/***************************************************
2
*
3
* UTYPES.H - define usefull types.
4
*
5
* (C) Instrumental Systems Corp. Ekkore, Dec. 1997-2001
6
*
7
****************************************************/
8
 
9
 
10
#ifndef _UTYPES_H_
11
#define _UTYPES_H_
12
 
13
#include "utypes_linux.h"
14
 
15
 
16
 
17
/*************************************
18
*
19
*  Types for MSDOS
20
*/
21
 
22
 
23
#ifdef __MSDOS__
24
 
25
typedef unsigned char   UINT08;
26
typedef signed   char   SINT08;
27
typedef unsigned short  UINT16;
28
typedef signed   short  SINT16;
29
typedef unsigned long   UINT32;
30
typedef signed   long   SINT32;
31
 
32
typedef unsigned char   U08, *PU08;
33
typedef signed   char   S08, *PS08;
34
typedef unsigned short  U16, *PU16;
35
typedef signed   short  S16, *PS16;
36
typedef unsigned long   U32, *PU32;
37
typedef signed   long   S32, *PS32;
38
 
39
typedef float                   REAL32, *PREAL32;
40
typedef double                  REAL64, *PREAL64;
41
 
42
//typedef enum{ FALSE=0, TRUE=1}        BOOL;
43
typedef unsigned char   UCHAR;
44
typedef unsigned short  USHORT;
45
typedef unsigned long   ULONG;
46
typedef unsigned long   HANDLE;
47
 
48
#endif /* __MSDOS__ */
49
 
50
 
51
/*************************************
52
*
53
*  Types for Windows
54
*/
55
 
56
 
57
#ifdef _WIN32
58
 
59
typedef unsigned char   UINT08;
60
typedef signed   char   SINT08;
61
typedef unsigned short  UINT16;
62
typedef signed   short  SINT16;
63
typedef unsigned int    UINT32;
64
typedef signed   int    SINT32;
65
 
66
typedef unsigned char   U08, *PU08;
67
typedef signed   char   S08, *PS08;
68
typedef unsigned short  U16, *PU16;
69
typedef signed   short  S16, *PS16;
70
typedef unsigned int    U32, *PU32;
71
typedef signed   int    S32, *PS32;
72
 
73
#if _MSC_VER == 1200
74
#else
75
typedef unsigned long long int  U64, *PU64;
76
typedef signed   long long int  S64, *PS64;
77
#endif
78
 
79
typedef float                   REAL32, *PREAL32;
80
typedef double                  REAL64, *PREAL64;
81
 
82
#ifdef _WIN64
83
typedef wchar_t                 BRDCHAR;
84
#define _BRDC(x)                L ## x
85
#define BRDC_strlen             wcslen
86
#define BRDC_strcpy             wcscpy
87
#define BRDC_strncpy    wcsncpy
88
#define BRDC_strcmp             wcscmp
89
#define BRDC_stricmp    _wcsicmp
90
#define BRDC_strnicmp   wcsnicmp
91
#define BRDC_strcat             wcscat
92
#define BRDC_strchr             wcschr
93
#define BRDC_strstr             wcsstr
94
#define BRDC_strtol             wcstol
95
#define BRDC_strtoul    wcstoul
96
#define BRDC_strtod             wcstod
97
#define BRDC_atol               _wtol
98
#define BRDC_atoi               _wtoi
99
#define BRDC_atoi64             _wtoi64
100
#define BRDC_atof               _wtof
101
#define BRDC_printf             wprintf
102
#define BRDC_fprintf    fwprintf
103
#define BRDC_sprintf    swprintf
104
#define BRDC_vsprintf   vswprintf
105
#define BRDC_sscanf             swscanf
106
#define BRDC_fopen              _wfopen
107
#define BRDC_sopen              _wsopen
108
#define BRDC_fgets              fgetws
109
#define BRDC_fputs              fputws
110
#define BRDC_getenv             _wgetenv
111
#define BRDC_main               wmain
112
#else
113
typedef char                    BRDCHAR;
114
#define _BRDC(x)                x
115
#define BRDC_strlen             strlen
116
#define BRDC_strcpy             strcpy
117
#define BRDC_strncpy    strncpy
118
#define BRDC_strcmp             strcmp
119
#define BRDC_stricmp    _stricmp
120
#define BRDC_strnicmp   _strnicmp
121
#define BRDC_strcat             strcat
122
#define BRDC_strchr             strchr
123
#define BRDC_strstr             strstr
124
#define BRDC_strtol             strtol
125
#define BRDC_strtoul    strtoul
126
#define BRDC_strtod             strtod
127
#define BRDC_atol               atol
128
#define BRDC_atoi               atoi
129
#define BRDC_atoi64             _atoi64
130
#define BRDC_atof               atof
131
#define BRDC_printf             printf
132
#define BRDC_fprintf    fprintf
133
#define BRDC_sprintf    sprintf
134
#define BRDC_vsprintf   vsprintf
135
#define BRDC_sscanf             sscanf
136
#define BRDC_fopen              fopen
137
#define BRDC_sopen              sopen
138
#define BRDC_fgets              fgets
139
#define BRDC_fputs              fputs
140
#define BRDC_getenv             getenv
141
#define BRDC_main               main
142
#endif
143
 
144
#endif /* _WIN32 */
145
 
146
 
147
/*************************************
148
*
149
*  Types for TMS320C3x/C4x
150
*/
151
 
152
 
153
#if defined(_TMS320C30) || defined(_TMS320C40 )
154
 
155
/*
156
typedef unsigned char   UINT08;
157
typedef signed   char   SINT08;
158
typedef unsigned short  UINT16;
159
typedef signed   short  SINT16;
160
*/
161
typedef unsigned int    UINT32;
162
typedef signed   int    SINT32;
163
 
164
typedef unsigned int    U32, *PU32;
165
typedef signed   int    S32, *PS32;
166
 
167
typedef float                   REAL32, *PREAL32;
168
typedef double                  REAL64, *PREAL64;
169
 
170
typedef UINT32  ULONG;
171
typedef UINT32  USHORT;
172
typedef UINT32  UCHAR;
173
 
174
#endif /* _TMS320C30 || _TMS320C40 */
175
 
176
 
177
/*************************************
178
*
179
*  Types for TMS320C6x
180
*/
181
 
182
 
183
#ifdef _TMS320C6X
184
 
185
typedef unsigned char   UINT08;
186
typedef signed   char   SINT08;
187
typedef unsigned short  UINT16;
188
typedef signed   short  SINT16;
189
typedef unsigned int    UINT32;
190
typedef signed   int    SINT32;
191
 
192
typedef unsigned char   U08, *PU08;
193
typedef signed   char   S08, *PS08;
194
typedef unsigned short  U16, *PU16;
195
typedef signed   short  S16, *PS16;
196
typedef unsigned int    U32, *PU32;
197
typedef signed   int    S32, *PS32;
198
 
199
typedef unsigned long long int  U64, *PU64;
200
typedef signed   long long int  S64, *PS64;
201
 
202
typedef float                   REAL32, *PREAL32;
203
typedef double                  REAL64, *PREAL64;
204
 
205
typedef UINT32  ULONG;
206
typedef UINT16  USHORT;
207
typedef UINT08  UCHAR;
208
 
209
#endif /* _TMS320C6X */
210
 
211
 
212
/*************************************
213
*
214
*  Types for ADSP2106x
215
*/
216
 
217
 
218
#if defined(__ADSP21060__) || defined(__ADSP21061__) || defined(__ADSP21062__)|| defined(__ADSP21065L__)
219
 
220
typedef unsigned int    UINT32;
221
typedef signed   int    SINT32;
222
 
223
typedef unsigned int    U32, *PU32;
224
typedef signed   int    S32, *PS32;
225
 
226
typedef float    REAL32, *PREAL32;
227
typedef double   REAL64, *PREAL64;
228
 
229
typedef UINT32  ULONG;
230
typedef UINT32  USHORT;
231
typedef UINT32  UCHAR;
232
 
233
#endif /* __ADSP2106x__ */
234
 
235
/*************************************
236
*
237
*  Types for ADSP2116x
238
*/
239
 
240
 
241
#if defined(__ADSP21160__) || defined(__ADSP21161__)
242
 
243
typedef unsigned int    UINT32;
244
typedef signed   int    SINT32;
245
 
246
typedef unsigned int    U32, *PU32;
247
typedef signed   int    S32, *PS32;
248
 
249
typedef float    REAL32, *PREAL32;
250
typedef double   REAL64, *PREAL64;
251
 
252
typedef UINT32  ULONG;
253
typedef UINT32  USHORT;
254
typedef UINT32  UCHAR;
255
 
256
#endif /* __ADSP2116x__ */
257
 
258
/*************************************
259
*
260
*  Types for ADSP-TS101
261
*/
262
 
263
 
264
#if defined(__ADSPTS__)
265
 
266
typedef unsigned int    UINT32;
267
typedef signed   int    SINT32;
268
 
269
typedef unsigned int    U32, *PU32;
270
typedef signed   int    S32, *PS32;
271
 
272
typedef unsigned long long int  U64, *PU64;
273
typedef signed   long long int  S64, *PS64;
274
 
275
typedef float    REAL32, *PREAL32;
276
typedef long double      REAL64, *PREAL64;
277
 
278
typedef UINT32  ULONG;
279
typedef UINT32  USHORT;
280
typedef UINT32  UCHAR;
281
 
282
#endif /* __ADSPTS__ */
283
 
284
/*************************************
285
*
286
*  Types for MC24
287
*/
288
 
289
#if defined(__GNUC__) && !defined(__linux__)
290
 
291
typedef unsigned char   UINT08;
292
typedef signed   char   SINT08;
293
typedef unsigned short  UINT16;
294
typedef signed   short  SINT16;
295
typedef unsigned long   UINT32;
296
typedef signed   long   SINT32;
297
 
298
typedef unsigned char   U08, *PU08;
299
typedef signed   char   S08, *PS08;
300
typedef unsigned short  U16, *PU16;
301
typedef signed   short  S16, *PS16;
302
typedef unsigned long   U32, *PU32;
303
typedef signed   long   S32, *PS32;
304
 
305
typedef unsigned long long int  U64, *PU64;
306
typedef signed   long long int  S64, *PS64;
307
 
308
typedef float           REAL32, *PREAL32;
309
typedef double          REAL64, *PREAL64;
310
 
311
typedef unsigned char   UCHAR;
312
typedef unsigned short  USHORT;
313
typedef unsigned long   ULONG;
314
typedef unsigned long   HANDLE;
315
 
316
#endif /* __GNUC__ */
317
 
318
/*************************************
319
*
320
*  Type Aliasing
321
*/
322
 
323
typedef UINT32  Uns;
324
 
325
/*************************************************
326
*
327
* Entry Point types
328
*
329
*/
330
#if !defined(WIN32) && !defined(__WIN32__)
331
//#ifndef WIN32
332
#define FENTRY
333
#define STDCALL
334
#else
335
#include <windows.h>
336
#define DllImport       __declspec( dllimport )
337
#define DllExport       __declspec( dllexport )
338
#define FENTRY          DllExport
339
#define STDCALL         __stdcall
340
#define huge
341
#endif  // WIN32
342
 
343
 
344
#endif /* _UTYPES_H_ */
345
 
346
/*
347
*  End of File
348
*/
349
 
350
 
351
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.