Go to the documentation of this file.
49 #define ACPI_BINARY_SEMAPHORE 0
50 #define ACPI_OSL_MUTEX 1
54 #define DEBUGGER_SINGLE_THREADED 0
55 #define DEBUGGER_MULTI_THREADED 1
68 #define ACPI_USE_LOCAL_CACHE
71 #ifdef ACPI_ASL_COMPILER
72 #define ACPI_DEBUG_OUTPUT
73 #define ACPI_APPLICATION
74 #define ACPI_DISASSEMBLER
75 #define ACPI_CONSTANT_EVAL_ONLY
76 #define ACPI_LARGE_NAMESPACE_NODE
77 #define ACPI_DATA_TABLE_DISASSEMBLY
81 #undef DEBUGGER_THREADING
82 #define DEBUGGER_THREADING DEBUGGER_SINGLE_THREADED
83 #define ACPI_FULL_DEBUG
84 #define ACPI_APPLICATION
86 #define ACPI_MUTEX_DEBUG
87 #define ACPI_DBG_TRACK_ALLOCATIONS
90 #ifdef ACPI_APPLICATION
91 #define ACPI_USE_SYSTEM_CLIBRARY
92 #define ACPI_USE_LOCAL_CACHE
95 #ifdef ACPI_FULL_DEBUG
97 #define ACPI_DEBUG_OUTPUT
98 #define ACPI_DISASSEMBLER
140 #if defined(_LINUX) || defined(__linux__)
143 #elif defined(_AED_EFI)
155 #elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
156 #include "acfreebsd.h"
158 #elif defined(__NetBSD__)
159 #include "acnetbsd.h"
161 #elif defined(MODESTO)
162 #include "acmodesto.h"
164 #elif defined(NETWARE)
165 #include "acnetware.h"
168 #include "acsolaris.h"
174 #define ACPI_USE_STANDARD_HEADERS
176 #define COMPILER_DEPENDENT_INT64 long long
177 #define COMPILER_DEPENDENT_UINT64 unsigned long long
192 #ifndef ACPI_MUTEX_TYPE
193 #define ACPI_MUTEX_TYPE ACPI_BINARY_SEMAPHORE
210 #ifndef DEBUGGER_THREADING
211 #ifdef ACPI_APPLICATION
212 #define DEBUGGER_THREADING DEBUGGER_SINGLE_THREADED
215 #define DEBUGGER_THREADING DEBUGGER_MULTI_THREADED
225 #define ACPI_IS_ASCII(c) ((c) < 0x80)
227 #ifdef ACPI_USE_SYSTEM_CLIBRARY
232 #ifdef ACPI_USE_STANDARD_HEADERS
246 #define ACPI_STRSTR(s1,s2) strstr((s1), (s2))
247 #define ACPI_STRCHR(s1,c) strchr((s1), (c))
248 #define ACPI_STRLEN(s) (acpi_size) strlen((s))
249 #define ACPI_STRCPY(d,s) (void) strcpy((d), (s))
250 #define ACPI_STRNCPY(d,s,n) (void) strncpy((d), (s), (acpi_size)(n))
251 #define ACPI_STRNCMP(d,s,n) strncmp((d), (s), (acpi_size)(n))
252 #define ACPI_STRCMP(d,s) strcmp((d), (s))
253 #define ACPI_STRCAT(d,s) (void) strcat((d), (s))
254 #define ACPI_STRNCAT(d,s,n) strncat((d), (s), (acpi_size)(n))
255 #define ACPI_STRTOUL(d,s,n) strtoul((d), (s), (acpi_size)(n))
256 #define ACPI_MEMCMP(s1,s2,n) memcmp((const char *)(s1), (const char *)(s2), (acpi_size)(n))
257 #define ACPI_MEMCPY(d,s,n) (void) memcpy((d), (s), (acpi_size)(n))
258 #define ACPI_MEMSET(d,s,n) (void) memset((d), (s), (acpi_size)(n))
260 #define ACPI_TOUPPER(i) toupper((int) (i))
261 #define ACPI_TOLOWER(i) tolower((int) (i))
262 #define ACPI_IS_XDIGIT(i) isxdigit((int) (i))
263 #define ACPI_IS_DIGIT(i) isdigit((int) (i))
264 #define ACPI_IS_SPACE(i) isspace((int) (i))
265 #define ACPI_IS_UPPER(i) isupper((int) (i))
266 #define ACPI_IS_PRINT(i) isprint((int) (i))
267 #define ACPI_IS_ALPHA(i) isalpha((int) (i))
294 #define _AUPBND (sizeof (acpi_native_int) - 1)
295 #define _ADNBND (sizeof (acpi_native_int) - 1)
300 #define _bnd(X, bnd) (((sizeof (X)) + (bnd)) & (~(bnd)))
301 #define va_arg(ap, T) (*(T *)(((ap) += (_bnd (T, _AUPBND))) - (_bnd (T,_ADNBND))))
302 #define va_end(ap) (void) 0
303 #define va_start(ap, A) (void) ((ap) = (((char *) &(A)) + (_bnd (A,_AUPBND))))
307 #define ACPI_STRSTR(s1,s2) acpi_ut_strstr ((s1), (s2))
308 #define ACPI_STRCHR(s1,c) acpi_ut_strchr ((s1), (c))
309 #define ACPI_STRLEN(s) (acpi_size) acpi_ut_strlen ((s))
310 #define ACPI_STRCPY(d,s) (void) acpi_ut_strcpy ((d), (s))
311 #define ACPI_STRNCPY(d,s,n) (void) acpi_ut_strncpy ((d), (s), (acpi_size)(n))
312 #define ACPI_STRNCMP(d,s,n) acpi_ut_strncmp ((d), (s), (acpi_size)(n))
313 #define ACPI_STRCMP(d,s) acpi_ut_strcmp ((d), (s))
314 #define ACPI_STRCAT(d,s) (void) acpi_ut_strcat ((d), (s))
315 #define ACPI_STRNCAT(d,s,n) acpi_ut_strncat ((d), (s), (acpi_size)(n))
316 #define ACPI_STRTOUL(d,s,n) acpi_ut_strtoul ((d), (s), (acpi_size)(n))
317 #define ACPI_MEMCMP(s1,s2,n) acpi_ut_memcmp((const char *)(s1), (const char *)(s2), (acpi_size)(n))
318 #define ACPI_MEMCPY(d,s,n) (void) acpi_ut_memcpy ((d), (s), (acpi_size)(n))
319 #define ACPI_MEMSET(d,v,n) (void) acpi_ut_memset ((d), (v), (acpi_size)(n))
320 #define ACPI_TOUPPER(c) acpi_ut_to_upper ((int) (c))
321 #define ACPI_TOLOWER(c) acpi_ut_to_lower ((int) (c))
342 #ifndef ACPI_ASM_MACROS
352 #define ACPI_SYSTEM_XFACE
353 #define ACPI_EXTERNAL_XFACE
354 #define ACPI_INTERNAL_XFACE
355 #define ACPI_INTERNAL_VAR_XFACE
357 #define ACPI_ASM_MACROS
359 #define ACPI_DISABLE_IRQS()
360 #define ACPI_ENABLE_IRQS()
361 #define ACPI_ACQUIRE_GLOBAL_LOCK(Glptr, acq)
362 #define ACPI_RELEASE_GLOBAL_LOCK(Glptr, acq)
366 #ifdef ACPI_APPLICATION