diff options
author | Lv Zheng <lv.zheng@intel.com> | 2014-07-07 22:06:31 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2014-07-08 08:22:25 -0400 |
commit | afbdc6aece93edb6c8f14722782696ef7c439231 (patch) | |
tree | 23d4a3964389fb43e4091636355d118c251b473f | |
parent | e23d9b8297546c6ceb7e70771e4915f2a41733cd (diff) |
ACPICA: OSL: Update environments to improve portability
This patch contains some environment updates that will be used by acpidump
because:
1. The follow-up commits will release osunixxf.c to the Linux kernel for
acpidump to link, and
2. Such environment settings will be used to avoid linkage issues.
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
-rw-r--r-- | include/acpi/platform/acenv.h | 48 |
1 files changed, 36 insertions, 12 deletions
diff --git a/include/acpi/platform/acenv.h b/include/acpi/platform/acenv.h index e863dd5c4e04..b6429e46847a 100644 --- a/include/acpi/platform/acenv.h +++ b/include/acpi/platform/acenv.h | |||
@@ -87,20 +87,14 @@ | |||
87 | #define ACPI_DBG_TRACK_ALLOCATIONS | 87 | #define ACPI_DBG_TRACK_ALLOCATIONS |
88 | #endif | 88 | #endif |
89 | 89 | ||
90 | /* acpi_names configuration. Single threaded with debugger output enabled. */ | ||
91 | |||
92 | #ifdef ACPI_NAMES_APP | ||
93 | #define ACPI_DEBUGGER | ||
94 | #define ACPI_APPLICATION | ||
95 | #define ACPI_SINGLE_THREADED | ||
96 | #endif | ||
97 | |||
98 | /* | 90 | /* |
99 | * acpi_bin/acpi_dump/acpi_src/acpi_xtract/Example configuration. All single | 91 | * acpi_bin/acpi_dump/acpi_help/acpi_names/acpi_src/acpi_xtract/Example configuration. |
100 | * threaded, with no debug output. | 92 | * All single threaded. |
101 | */ | 93 | */ |
102 | #if (defined ACPI_BIN_APP) || \ | 94 | #if (defined ACPI_BIN_APP) || \ |
103 | (defined ACPI_DUMP_APP) || \ | 95 | (defined ACPI_DUMP_APP) || \ |
96 | (defined ACPI_HELP_APP) || \ | ||
97 | (defined ACPI_NAMES_APP) || \ | ||
104 | (defined ACPI_SRC_APP) || \ | 98 | (defined ACPI_SRC_APP) || \ |
105 | (defined ACPI_XTRACT_APP) || \ | 99 | (defined ACPI_XTRACT_APP) || \ |
106 | (defined ACPI_EXAMPLE_APP) | 100 | (defined ACPI_EXAMPLE_APP) |
@@ -108,12 +102,39 @@ | |||
108 | #define ACPI_SINGLE_THREADED | 102 | #define ACPI_SINGLE_THREADED |
109 | #endif | 103 | #endif |
110 | 104 | ||
105 | /* acpi_help configuration. Error messages disabled. */ | ||
106 | |||
111 | #ifdef ACPI_HELP_APP | 107 | #ifdef ACPI_HELP_APP |
112 | #define ACPI_APPLICATION | ||
113 | #define ACPI_SINGLE_THREADED | ||
114 | #define ACPI_NO_ERROR_MESSAGES | 108 | #define ACPI_NO_ERROR_MESSAGES |
115 | #endif | 109 | #endif |
116 | 110 | ||
111 | /* acpi_names configuration. Debug output enabled. */ | ||
112 | |||
113 | #ifdef ACPI_NAMES_APP | ||
114 | #define ACPI_DEBUG_OUTPUT | ||
115 | #endif | ||
116 | |||
117 | /* acpi_exec/acpi_names/Example configuration. Native RSDP used. */ | ||
118 | |||
119 | #if (defined ACPI_EXEC_APP) || \ | ||
120 | (defined ACPI_EXAMPLE_APP) || \ | ||
121 | (defined ACPI_NAMES_APP) | ||
122 | #define ACPI_USE_NATIVE_RSDP_POINTER | ||
123 | #endif | ||
124 | |||
125 | /* acpi_dump configuration. Native mapping used if provied by OSPMs */ | ||
126 | |||
127 | #ifdef ACPI_DUMP_APP | ||
128 | #define ACPI_USE_NATIVE_MEMORY_MAPPING | ||
129 | #endif | ||
130 | |||
131 | /* acpi_names/Example configuration. Hardware disabled */ | ||
132 | |||
133 | #if (defined ACPI_EXAMPLE_APP) || \ | ||
134 | (defined ACPI_NAMES_APP) | ||
135 | #define ACPI_REDUCED_HARDWARE 1 | ||
136 | #endif | ||
137 | |||
117 | /* Linkable ACPICA library */ | 138 | /* Linkable ACPICA library */ |
118 | 139 | ||
119 | #ifdef ACPI_LIBRARY | 140 | #ifdef ACPI_LIBRARY |
@@ -185,6 +206,9 @@ | |||
185 | #elif defined(_AED_EFI) | 206 | #elif defined(_AED_EFI) |
186 | #include "acefi.h" | 207 | #include "acefi.h" |
187 | 208 | ||
209 | #elif defined(_GNU_EFI) | ||
210 | #include "acefi.h" | ||
211 | |||
188 | #elif defined(__HAIKU__) | 212 | #elif defined(__HAIKU__) |
189 | #include "achaiku.h" | 213 | #include "achaiku.h" |
190 | 214 | ||