92742d3e1fc1f0e9abad709272a8a8b565deffe2
2 * Copyright (c) 2010 Broadcom Corporation
4 * Permission to use, copy, modify, and/or distribute this software for any
5 * purpose with or without fee is hereby granted, provided that the above
6 * copyright notice and this permission notice appear in all copies.
8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
11 * SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
13 * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
14 * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
21 * Infer the compile environment based on preprocessor symbols and pragmas.
22 * Override type definitions as needed, and include configuration-dependent
23 * header files to define types.
26 #if defined(__x86_64__)
27 #define TYPEDEF_UINTPTR
28 typedef unsigned long long int uintptr
;
32 #define TYPEDEF_USHORT
34 #include <linux/version.h>
37 /* Do not support the (u)int64 types with strict ansi for GNU C */
38 #if defined(__GNUC__) && defined(__STRICT_ANSI__)
40 #define TYPEDEF_UINT64
43 #include <linux/types.h>
49 typedef /* @abstract@ */ unsigned char bool;
52 /* define uchar, ushort, uint, ulong */
55 typedef unsigned char uchar
;
58 #ifndef TYPEDEF_USHORT
59 typedef unsigned short ushort
;
63 typedef unsigned int uint
;
67 typedef unsigned long ulong
;
70 /* define [u]int8/16/32/64, uintptr */
73 typedef unsigned char uint8
;
76 #ifndef TYPEDEF_UINT16
77 typedef unsigned short uint16
;
80 #ifndef TYPEDEF_UINT32
81 typedef unsigned int uint32
;
84 #ifndef TYPEDEF_UINT64
85 typedef unsigned long long uint64
;
88 #ifndef TYPEDEF_UINTPTR
89 typedef unsigned int uintptr
;
93 typedef signed char int8
;
97 typedef signed short int16
;
100 #ifndef TYPEDEF_INT32
101 typedef signed int int32
;
104 #ifndef TYPEDEF_INT64
105 typedef signed long long int64
;
109 /* define macro values */
116 #define TRUE 1 /* TRUE */
128 #define ON 1 /* ON = 1 */
131 #define AUTO (-1) /* Auto = -1 */
135 #undef TYPEDEF_USHORT
139 #undef TYPEDEF_UINT16
140 #undef TYPEDEF_UINT32
141 #undef TYPEDEF_UINT64
142 #undef TYPEDEF_UINTPTR
147 #undef TYPEDEF_FLOAT32
148 #undef TYPEDEF_FLOAT64
149 #undef TYPEDEF_FLOAT_T
152 * Including the bcmdefs.h here, to make sure everyone including typedefs.h
153 * gets this automatically
157 #endif /* _TYPEDEFS_H_ */
This page took 0.053098 seconds and 4 git commands to generate.