diff options
Diffstat (limited to 'include/acpi/platform/acenv.h')
-rw-r--r-- | include/acpi/platform/acenv.h | 70 |
1 files changed, 33 insertions, 37 deletions
diff --git a/include/acpi/platform/acenv.h b/include/acpi/platform/acenv.h index adf969efa510..16609c1ab2eb 100644 --- a/include/acpi/platform/acenv.h +++ b/include/acpi/platform/acenv.h | |||
@@ -44,40 +44,42 @@ | |||
44 | #ifndef __ACENV_H__ | 44 | #ifndef __ACENV_H__ |
45 | #define __ACENV_H__ | 45 | #define __ACENV_H__ |
46 | 46 | ||
47 | |||
48 | /* | 47 | /* |
49 | * Configuration for ACPI tools and utilities | 48 | * Configuration for ACPI tools and utilities |
50 | */ | 49 | */ |
51 | 50 | ||
52 | #ifdef _ACPI_DUMP_APP | 51 | #ifdef ACPI_LIBRARY |
52 | #define ACPI_USE_LOCAL_CACHE | ||
53 | #endif | ||
54 | |||
55 | #ifdef ACPI_DUMP_APP | ||
53 | #ifndef MSDOS | 56 | #ifndef MSDOS |
54 | #define ACPI_DEBUG_OUTPUT | 57 | #define ACPI_DEBUG_OUTPUT |
55 | #endif | 58 | #endif |
56 | #define ACPI_APPLICATION | 59 | #define ACPI_APPLICATION |
57 | #define ACPI_DISASSEMBLER | 60 | #define ACPI_DISASSEMBLER |
58 | #define ACPI_NO_METHOD_EXECUTION | 61 | #define ACPI_NO_METHOD_EXECUTION |
59 | #define ACPI_USE_SYSTEM_CLIBRARY | ||
60 | #define ACPI_ENABLE_OBJECT_CACHE | ||
61 | #endif | 62 | #endif |
62 | 63 | ||
63 | #ifdef _ACPI_EXEC_APP | 64 | #ifdef ACPI_EXEC_APP |
64 | #undef DEBUGGER_THREADING | 65 | #undef DEBUGGER_THREADING |
65 | #define DEBUGGER_THREADING DEBUGGER_SINGLE_THREADED | 66 | #define DEBUGGER_THREADING DEBUGGER_SINGLE_THREADED |
66 | #define ACPI_DEBUG_OUTPUT | 67 | #define ACPI_DEBUG_OUTPUT |
67 | #define ACPI_APPLICATION | 68 | #define ACPI_APPLICATION |
68 | #define ACPI_DEBUGGER | 69 | #define ACPI_DEBUGGER |
69 | #define ACPI_DISASSEMBLER | 70 | #define ACPI_DISASSEMBLER |
70 | #define ACPI_USE_SYSTEM_CLIBRARY | ||
71 | #define ACPI_ENABLE_OBJECT_CACHE | ||
72 | #endif | 71 | #endif |
73 | 72 | ||
74 | #ifdef _ACPI_ASL_COMPILER | 73 | #ifdef ACPI_ASL_COMPILER |
75 | #define ACPI_DEBUG_OUTPUT | 74 | #define ACPI_DEBUG_OUTPUT |
76 | #define ACPI_APPLICATION | 75 | #define ACPI_APPLICATION |
77 | #define ACPI_DISASSEMBLER | 76 | #define ACPI_DISASSEMBLER |
78 | #define ACPI_CONSTANT_EVAL_ONLY | 77 | #define ACPI_CONSTANT_EVAL_ONLY |
78 | #endif | ||
79 | |||
80 | #ifdef ACPI_APPLICATION | ||
79 | #define ACPI_USE_SYSTEM_CLIBRARY | 81 | #define ACPI_USE_SYSTEM_CLIBRARY |
80 | #define ACPI_ENABLE_OBJECT_CACHE | 82 | #define ACPI_USE_LOCAL_CACHE |
81 | #endif | 83 | #endif |
82 | 84 | ||
83 | /* | 85 | /* |
@@ -131,7 +133,7 @@ | |||
131 | #elif defined(WIN64) | 133 | #elif defined(WIN64) |
132 | #include "acwin64.h" | 134 | #include "acwin64.h" |
133 | 135 | ||
134 | #elif defined(MSDOS) /* Must appear after WIN32 and WIN64 check */ | 136 | #elif defined(MSDOS) /* Must appear after WIN32 and WIN64 check */ |
135 | #include "acdos16.h" | 137 | #include "acdos16.h" |
136 | 138 | ||
137 | #elif defined(__FreeBSD__) | 139 | #elif defined(__FreeBSD__) |
@@ -177,7 +179,6 @@ | |||
177 | 179 | ||
178 | /*! [End] no source code translation !*/ | 180 | /*! [End] no source code translation !*/ |
179 | 181 | ||
180 | |||
181 | /* | 182 | /* |
182 | * Debugger threading model | 183 | * Debugger threading model |
183 | * Use single threaded if the entire subsystem is contained in an application | 184 | * Use single threaded if the entire subsystem is contained in an application |
@@ -196,8 +197,7 @@ | |||
196 | #else | 197 | #else |
197 | #define DEBUGGER_THREADING DEBUGGER_MULTI_THREADED | 198 | #define DEBUGGER_THREADING DEBUGGER_MULTI_THREADED |
198 | #endif | 199 | #endif |
199 | #endif /* !DEBUGGER_THREADING */ | 200 | #endif /* !DEBUGGER_THREADING */ |
200 | |||
201 | 201 | ||
202 | /****************************************************************************** | 202 | /****************************************************************************** |
203 | * | 203 | * |
@@ -219,7 +219,7 @@ | |||
219 | #include <string.h> | 219 | #include <string.h> |
220 | #include <ctype.h> | 220 | #include <ctype.h> |
221 | 221 | ||
222 | #endif /* ACPI_USE_STANDARD_HEADERS */ | 222 | #endif /* ACPI_USE_STANDARD_HEADERS */ |
223 | 223 | ||
224 | /* | 224 | /* |
225 | * We will be linking to the standard Clib functions | 225 | * We will be linking to the standard Clib functions |
@@ -238,15 +238,15 @@ | |||
238 | #define ACPI_MEMCPY(d,s,n) (void) memcpy((d), (s), (acpi_size)(n)) | 238 | #define ACPI_MEMCPY(d,s,n) (void) memcpy((d), (s), (acpi_size)(n)) |
239 | #define ACPI_MEMSET(d,s,n) (void) memset((d), (s), (acpi_size)(n)) | 239 | #define ACPI_MEMSET(d,s,n) (void) memset((d), (s), (acpi_size)(n)) |
240 | 240 | ||
241 | #define ACPI_TOUPPER toupper | 241 | #define ACPI_TOUPPER(i) toupper((int) (i)) |
242 | #define ACPI_TOLOWER tolower | 242 | #define ACPI_TOLOWER(i) tolower((int) (i)) |
243 | #define ACPI_IS_XDIGIT isxdigit | 243 | #define ACPI_IS_XDIGIT(i) isxdigit((int) (i)) |
244 | #define ACPI_IS_DIGIT isdigit | 244 | #define ACPI_IS_DIGIT(i) isdigit((int) (i)) |
245 | #define ACPI_IS_SPACE isspace | 245 | #define ACPI_IS_SPACE(i) isspace((int) (i)) |
246 | #define ACPI_IS_UPPER isupper | 246 | #define ACPI_IS_UPPER(i) isupper((int) (i)) |
247 | #define ACPI_IS_PRINT isprint | 247 | #define ACPI_IS_PRINT(i) isprint((int) (i)) |
248 | #define ACPI_IS_ALPHA isalpha | 248 | #define ACPI_IS_ALPHA(i) isalpha((int) (i)) |
249 | #define ACPI_IS_ASCII isascii | 249 | #define ACPI_IS_ASCII(i) isascii((int) (i)) |
250 | 250 | ||
251 | #else | 251 | #else |
252 | 252 | ||
@@ -257,18 +257,18 @@ | |||
257 | *****************************************************************************/ | 257 | *****************************************************************************/ |
258 | 258 | ||
259 | /* | 259 | /* |
260 | * Use local definitions of C library macros and functions | 260 | * Use local definitions of C library macros and functions |
261 | * NOTE: The function implementations may not be as efficient | 261 | * NOTE: The function implementations may not be as efficient |
262 | * as an inline or assembly code implementation provided by a | 262 | * as an inline or assembly code implementation provided by a |
263 | * native C library. | 263 | * native C library. |
264 | */ | 264 | */ |
265 | 265 | ||
266 | #ifndef va_arg | 266 | #ifndef va_arg |
267 | 267 | ||
268 | #ifndef _VALIST | 268 | #ifndef _VALIST |
269 | #define _VALIST | 269 | #define _VALIST |
270 | typedef char *va_list; | 270 | typedef char *va_list; |
271 | #endif /* _VALIST */ | 271 | #endif /* _VALIST */ |
272 | 272 | ||
273 | /* | 273 | /* |
274 | * Storage alignment properties | 274 | * Storage alignment properties |
@@ -284,8 +284,7 @@ typedef char *va_list; | |||
284 | #define va_end(ap) (void) 0 | 284 | #define va_end(ap) (void) 0 |
285 | #define va_start(ap, A) (void) ((ap) = (((char *) &(A)) + (_bnd (A,_AUPBND)))) | 285 | #define va_start(ap, A) (void) ((ap) = (((char *) &(A)) + (_bnd (A,_AUPBND)))) |
286 | 286 | ||
287 | #endif /* va_arg */ | 287 | #endif /* va_arg */ |
288 | |||
289 | 288 | ||
290 | #define ACPI_STRSTR(s1,s2) acpi_ut_strstr ((s1), (s2)) | 289 | #define ACPI_STRSTR(s1,s2) acpi_ut_strstr ((s1), (s2)) |
291 | #define ACPI_STRCHR(s1,c) acpi_ut_strchr ((s1), (c)) | 290 | #define ACPI_STRCHR(s1,c) acpi_ut_strchr ((s1), (c)) |
@@ -303,8 +302,7 @@ typedef char *va_list; | |||
303 | #define ACPI_TOUPPER acpi_ut_to_upper | 302 | #define ACPI_TOUPPER acpi_ut_to_upper |
304 | #define ACPI_TOLOWER acpi_ut_to_lower | 303 | #define ACPI_TOLOWER acpi_ut_to_lower |
305 | 304 | ||
306 | #endif /* ACPI_USE_SYSTEM_CLIBRARY */ | 305 | #endif /* ACPI_USE_SYSTEM_CLIBRARY */ |
307 | |||
308 | 306 | ||
309 | /****************************************************************************** | 307 | /****************************************************************************** |
310 | * | 308 | * |
@@ -345,8 +343,7 @@ typedef char *va_list; | |||
345 | #define ACPI_ACQUIRE_GLOBAL_LOCK(Glptr, acq) | 343 | #define ACPI_ACQUIRE_GLOBAL_LOCK(Glptr, acq) |
346 | #define ACPI_RELEASE_GLOBAL_LOCK(Glptr, acq) | 344 | #define ACPI_RELEASE_GLOBAL_LOCK(Glptr, acq) |
347 | 345 | ||
348 | #endif /* ACPI_ASM_MACROS */ | 346 | #endif /* ACPI_ASM_MACROS */ |
349 | |||
350 | 347 | ||
351 | #ifdef ACPI_APPLICATION | 348 | #ifdef ACPI_APPLICATION |
352 | 349 | ||
@@ -356,11 +353,10 @@ typedef char *va_list; | |||
356 | #define BREAKPOINT3 | 353 | #define BREAKPOINT3 |
357 | #endif | 354 | #endif |
358 | 355 | ||
359 | |||
360 | /****************************************************************************** | 356 | /****************************************************************************** |
361 | * | 357 | * |
362 | * Compiler-specific information is contained in the compiler-specific | 358 | * Compiler-specific information is contained in the compiler-specific |
363 | * headers. | 359 | * headers. |
364 | * | 360 | * |
365 | *****************************************************************************/ | 361 | *****************************************************************************/ |
366 | #endif /* __ACENV_H__ */ | 362 | #endif /* __ACENV_H__ */ |