1 /********************************************************************
2 * Copyright(c) 2006-2009 Broadcom Corporation.
6 * Description: Data types
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..
32 #if defined(_WIN64) || defined(_WIN32)
37 typedef unsigned char U8;
50 typedef unsigned __int64 U64;
56 #if !(defined(POINTER_32))
57 #define POINTER_32 __ptr32
63 #if defined(__KERNEL__) || defined(__LINUX_USER__)
65 #ifdef __LINUX_USER__ /* Don't include these for KERNEL */
66 typedef uint32_t ULONG;
73 typedef uint32_t DWORD;
74 typedef uint32_t UINT32;
75 typedef uint32_t *LPDWORD;
76 typedef unsigned char *PUCHAR;
90 /* For Kernel usage.. */
91 typedef bool bc_bool_t;
97 typedef struct _uint64_t {
104 typedef signed long int32_t;
108 typedef unsigned long uint32_t;
112 typedef unsigned short uint16_t;
116 typedef unsigned char uint8_t;