1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25#ifndef _BC_DTS_TYPES_H_
26#define _BC_DTS_TYPES_H_
27
28#ifdef __LINUX_USER__
29#include <stdint.h>
30#endif
31
32#ifndef PVOID
33typedef void *PVOID;
34#endif
35
36#ifndef BOOL
37typedef int BOOL;
38#endif
39
40#if defined(__KERNEL__) || defined(__LINUX_USER__)
41
42#ifdef __LINUX_USER__
43typedef uint32_t ULONG;
44typedef int32_t LONG;
45typedef void *HANDLE;
46#ifndef VOID
47typedef void VOID;
48#endif
49typedef void *LPVOID;
50typedef uint32_t DWORD;
51typedef uint32_t UINT32;
52typedef uint32_t *LPDWORD;
53typedef unsigned char *PUCHAR;
54
55#ifndef TRUE
56 #define TRUE 1
57#endif
58
59#ifndef FALSE
60 #define FALSE 0
61#endif
62
63#define TEXT
64
65#else
66
67
68typedef bool bc_bool_t;
69#endif
70
71#else
72
73#ifndef uint64_t
74typedef struct _uint64_t {
75 uint32_t low_dw;
76 uint32_t hi_dw;
77} uint64_t;
78#endif
79
80#ifndef int32_t
81typedef signed long int32_t;
82#endif
83
84#ifndef uint32_t
85typedef unsigned long uint32_t;
86#endif
87
88#ifndef uint16_t
89typedef unsigned short uint16_t;
90#endif
91
92#ifndef uint8_t
93typedef unsigned char uint8_t;
94#endif
95#endif
96
97#endif
98
99