RT-AC56 3.0.0.4.374.37 core
[tomato.git] / release / src-rt-6.x.4708 / linux / linux-2.6.36 / drivers / staging / crystalhd / bc_dts_types.h
blobafe8259364a6e4e812af3bcbb96a2f528c68714f
1 /********************************************************************
2 * Copyright(c) 2006-2009 Broadcom Corporation.
4 * Name: bc_dts_types.h
6 * Description: Data types
8 * AU
10 * HISTORY:
12 ********************************************************************
13 * This header is free software: you can redistribute it and/or modify
14 * it under the terms of the GNU Lesser General Public License as published
15 * by the Free Software Foundation, either version 2.1 of the License.
17 * This header is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU Lesser General Public License for more details.
21 * You should have received a copy of the GNU Lesser General Public License
22 * along with this header. If not, see <http://www.gnu.org/licenses/>.
23 *******************************************************************/
25 #ifndef _BC_DTS_TYPES_H_
26 #define _BC_DTS_TYPES_H_
28 #ifdef __LINUX_USER__ /* Don't include these for KERNEL.. */
29 #include <stdint.h>
30 #endif
32 #ifndef PVOID
33 typedef void *PVOID;
34 #endif
36 #ifndef BOOL
37 typedef int BOOL;
38 #endif
40 #if defined(__KERNEL__) || defined(__LINUX_USER__)
42 #ifdef __LINUX_USER__ /* Don't include these for KERNEL */
43 typedef uint32_t ULONG;
44 typedef int32_t LONG;
45 typedef void *HANDLE;
46 #ifndef VOID
47 typedef void VOID;
48 #endif
49 typedef void *LPVOID;
50 typedef uint32_t DWORD;
51 typedef uint32_t UINT32;
52 typedef uint32_t *LPDWORD;
53 typedef unsigned char *PUCHAR;
55 #ifndef TRUE
56 #define TRUE 1
57 #endif
59 #ifndef FALSE
60 #define FALSE 0
61 #endif
63 #define TEXT
65 #else
67 /* For Kernel usage.. */
68 typedef bool bc_bool_t;
69 #endif
71 #else
73 #ifndef uint64_t
74 typedef struct _uint64_t {
75 uint32_t low_dw;
76 uint32_t hi_dw;
77 } uint64_t;
78 #endif
80 #ifndef int32_t
81 typedef signed long int32_t;
82 #endif
84 #ifndef uint32_t
85 typedef unsigned long uint32_t;
86 #endif
88 #ifndef uint16_t
89 typedef unsigned short uint16_t;
90 #endif
92 #ifndef uint8_t
93 typedef unsigned char uint8_t;
94 #endif
95 #endif
97 #endif