diff options
author | Bob Moore <robert.moore@intel.com> | 2008-12-30 14:03:29 -0500 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2008-12-31 01:16:39 -0500 |
commit | 1685bd404dc2ecce2fdae6410e85ded2f2c0136d (patch) | |
tree | 5ccce028c1b60c50082fb6641b4afc7afdd6e636 /include/acpi/platform/acenv.h | |
parent | 7488c8d51134a152f022bc11547157f80a725ff1 (diff) |
ACPICA: Add ACPI_MUTEX_TYPE configuration option
Used to specify whether the OSL mutex interfaces should be used,
or binary semaphores instead.
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Lin Ming <ming.m.lin@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'include/acpi/platform/acenv.h')
-rw-r--r-- | include/acpi/platform/acenv.h | 35 |
1 files changed, 29 insertions, 6 deletions
diff --git a/include/acpi/platform/acenv.h b/include/acpi/platform/acenv.h index cbae39c728a5..e62f10d9a7d8 100644 --- a/include/acpi/platform/acenv.h +++ b/include/acpi/platform/acenv.h | |||
@@ -44,13 +44,26 @@ | |||
44 | #ifndef __ACENV_H__ | 44 | #ifndef __ACENV_H__ |
45 | #define __ACENV_H__ | 45 | #define __ACENV_H__ |
46 | 46 | ||
47 | /* | 47 | /* Types for ACPI_MUTEX_TYPE */ |
48 | |||
49 | #define ACPI_BINARY_SEMAPHORE 0 | ||
50 | #define ACPI_OSL_MUTEX 1 | ||
51 | |||
52 | /* Types for DEBUGGER_THREADING */ | ||
53 | |||
54 | #define DEBUGGER_SINGLE_THREADED 0 | ||
55 | #define DEBUGGER_MULTI_THREADED 1 | ||
56 | |||
57 | /****************************************************************************** | ||
58 | * | ||
48 | * Configuration for ACPI tools and utilities | 59 | * Configuration for ACPI tools and utilities |
49 | */ | 60 | * |
61 | *****************************************************************************/ | ||
62 | |||
50 | #ifdef ACPI_LIBRARY | 63 | #ifdef ACPI_LIBRARY |
51 | /* | 64 | /* |
52 | * Note: The non-debug version of the acpi_library does not contain any | 65 | * Note: The non-debug version of the acpi_library does not contain any |
53 | * debug support, for minimimal size. The debug version uses ACPI_FULL_DEBUG | 66 | * debug support, for minimal size. The debug version uses ACPI_FULL_DEBUG |
54 | */ | 67 | */ |
55 | #define ACPI_USE_LOCAL_CACHE | 68 | #define ACPI_USE_LOCAL_CACHE |
56 | #endif | 69 | #endif |
@@ -167,6 +180,19 @@ | |||
167 | 180 | ||
168 | /*! [End] no source code translation !*/ | 181 | /*! [End] no source code translation !*/ |
169 | 182 | ||
183 | /****************************************************************************** | ||
184 | * | ||
185 | * Miscellaneous configuration | ||
186 | * | ||
187 | *****************************************************************************/ | ||
188 | |||
189 | /* | ||
190 | * Are mutexes supported by the host? default is no, use binary semaphores. | ||
191 | */ | ||
192 | #ifndef ACPI_MUTEX_TYPE | ||
193 | #define ACPI_MUTEX_TYPE ACPI_BINARY_SEMAPHORE | ||
194 | #endif | ||
195 | |||
170 | /* | 196 | /* |
171 | * Debugger threading model | 197 | * Debugger threading model |
172 | * Use single threaded if the entire subsystem is contained in an application | 198 | * Use single threaded if the entire subsystem is contained in an application |
@@ -175,9 +201,6 @@ | |||
175 | * By default the model is single threaded if ACPI_APPLICATION is set, | 201 | * By default the model is single threaded if ACPI_APPLICATION is set, |
176 | * multi-threaded if ACPI_APPLICATION is not set. | 202 | * multi-threaded if ACPI_APPLICATION is not set. |
177 | */ | 203 | */ |
178 | #define DEBUGGER_SINGLE_THREADED 0 | ||
179 | #define DEBUGGER_MULTI_THREADED 1 | ||
180 | |||
181 | #ifndef DEBUGGER_THREADING | 204 | #ifndef DEBUGGER_THREADING |
182 | #ifdef ACPI_APPLICATION | 205 | #ifdef ACPI_APPLICATION |
183 | #define DEBUGGER_THREADING DEBUGGER_SINGLE_THREADED | 206 | #define DEBUGGER_THREADING DEBUGGER_SINGLE_THREADED |