aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/crystalhd
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/staging/crystalhd')
-rw-r--r--drivers/staging/crystalhd/bc_dts_types.h97
1 files changed, 97 insertions, 0 deletions
diff --git a/drivers/staging/crystalhd/bc_dts_types.h b/drivers/staging/crystalhd/bc_dts_types.h
new file mode 100644
index 00000000000..d2131e7fe2f
--- /dev/null
+++ b/drivers/staging/crystalhd/bc_dts_types.h
@@ -0,0 +1,97 @@
1/********************************************************************
2 * Copyright(c) 2006-2009 Broadcom Corporation.
3 *
4 * Name: bc_dts_types.h
5 *
6 * Description: Data types
7 *
8 * AU
9 *
10 * HISTORY:
11 *
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.
16 *
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 *******************************************************************/
24
25#ifndef _BC_DTS_TYPES_H_
26#define _BC_DTS_TYPES_H_
27
28#ifdef __LINUX_USER__ /* Don't include these for KERNEL.. */
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__ /* Don't include these for KERNEL */
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/* For Kernel usage.. */
68#endif
69
70#else
71
72#ifndef uint64_t
73typedef struct _uint64_t {
74 uint32_t low_dw;
75 uint32_t hi_dw;
76} uint64_t;
77#endif
78
79#ifndef int32_t
80typedef signed long int32_t;
81#endif
82
83#ifndef uint32_t
84typedef unsigned long uint32_t;
85#endif
86
87#ifndef uint16_t
88typedef unsigned short uint16_t;
89#endif
90
91#ifndef uint8_t
92typedef unsigned char uint8_t;
93#endif
94#endif
95
96#endif
97