Staging: epl: remove some unused types
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / drivers / staging / epl / global.h
blob31ea536e48b9f3758d886fb630f9c22c303f902b
1 /****************************************************************************
3 global project definition file
5 12.06.1998 -rs
6 11.02.2002 r.d. Erweiterungen, Ergaenzungen
7 20.08.2002 SYS TEC electronic -as
8 Definition Schluesselwort 'GENERIC'
9 fuer das Erzeugen von Generic Pointer
10 28.08.2002 r.d. erweiterter SYS TEC Debug Code
11 16.09.2002 r.d. komplette Uebersetzung in Englisch
12 11.04.2003 f.j. Ergaenzung fuer Mitsubishi NC30 Compiler
13 17.06.2003 -rs Definition von Basistypen in <#ifndef _WINDEF_> gesetzt
14 16.04.2004 r.d. Ergaenzung fuer Borland C++ Builder
15 30.08.2004 -rs TRACE5 eingefügt
16 23.12.2005 d.k. Definitions for IAR compiler
18 $Id: global.h,v 1.6 2008/11/07 13:55:56 D.Krueger Exp $
20 ****************************************************************************/
22 #ifndef _GLOBAL_H_
23 #define _GLOBAL_H_
26 #ifndef QWORD
27 #define QWORD long long int
28 #endif
30 #ifndef CONST
31 #define CONST const // variables mapped to ROM (i.e. flash)
32 #endif
34 #define TRACE printk
36 // --- logic types ---
37 #ifndef BYTE
38 #define BYTE unsigned char
39 #endif
40 #ifndef WORD
41 #define WORD unsigned short int
42 #endif
43 #ifndef DWORD
44 #define DWORD unsigned long int
45 #endif
46 #ifndef BOOL
47 #define BOOL unsigned char
48 #endif
50 // --- alias types ---
51 #ifndef TRUE
52 #define TRUE 0xFF
53 #endif
54 #ifndef FALSE
55 #define FALSE 0x00
56 #endif
57 #ifndef _TIME_OF_DAY_DEFINED_
58 typedef struct {
59 unsigned long int m_dwMs;
60 unsigned short int m_wDays;
62 } tTimeOfDay;
64 #define _TIME_OF_DAY_DEFINED_
66 #endif
68 //---------------------------------------------------------------------------
69 // Definition von TRACE
70 //---------------------------------------------------------------------------
72 #ifndef NDEBUG
74 #ifndef TRACE0
75 #define TRACE0(p0) TRACE(p0)
76 #endif
78 #ifndef TRACE1
79 #define TRACE1(p0, p1) TRACE(p0, p1)
80 #endif
82 #ifndef TRACE2
83 #define TRACE2(p0, p1, p2) TRACE(p0, p1, p2)
84 #endif
86 #ifndef TRACE3
87 #define TRACE3(p0, p1, p2, p3) TRACE(p0, p1, p2, p3)
88 #endif
90 #ifndef TRACE4
91 #define TRACE4(p0, p1, p2, p3, p4) TRACE(p0, p1, p2, p3, p4)
92 #endif
94 #ifndef TRACE5
95 #define TRACE5(p0, p1, p2, p3, p4, p5) TRACE(p0, p1, p2, p3, p4, p5)
96 #endif
98 #ifndef TRACE6
99 #define TRACE6(p0, p1, p2, p3, p4, p5, p6) TRACE(p0, p1, p2, p3, p4, p5, p6)
100 #endif
102 #else
104 #ifndef TRACE0
105 #define TRACE0(p0)
106 #endif
108 #ifndef TRACE1
109 #define TRACE1(p0, p1)
110 #endif
112 #ifndef TRACE2
113 #define TRACE2(p0, p1, p2)
114 #endif
116 #ifndef TRACE3
117 #define TRACE3(p0, p1, p2, p3)
118 #endif
120 #ifndef TRACE4
121 #define TRACE4(p0, p1, p2, p3, p4)
122 #endif
124 #ifndef TRACE5
125 #define TRACE5(p0, p1, p2, p3, p4, p5)
126 #endif
128 #ifndef TRACE6
129 #define TRACE6(p0, p1, p2, p3, p4, p5, p6)
130 #endif
132 #endif
134 //---------------------------------------------------------------------------
135 // definition of ASSERT
136 //---------------------------------------------------------------------------
138 #ifndef ASSERT
139 #define ASSERT(p)
140 #endif
142 //---------------------------------------------------------------------------
143 // SYS TEC extensions
144 //---------------------------------------------------------------------------
146 // This macro doesn't print out C-file and line number of the failed assertion
147 // but a string, which exactly names the mistake.
148 #ifndef NDEBUG
150 #define ASSERTMSG(expr,string) if (!(expr)) {\
151 PRINTF0 ("Assertion failed: " string );\
152 while (1);}
153 #else
154 #define ASSERTMSG(expr,string)
155 #endif
157 //---------------------------------------------------------------------------
159 #endif // #ifndef _GLOBAL_H_
161 // Please keep an empty line at the end of this file.