diff options
author | Bob Moore <robert.moore@intel.com> | 2014-04-29 22:06:22 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2014-05-06 18:55:02 -0400 |
commit | 1011080dd27ac61950afa43433c47e570e2146d7 (patch) | |
tree | 169b2abb86d4eb4ac62ddec58131cbb5c86d481f /include/acpi/acpixf.h | |
parent | 7505da4c3f90dd61302e825b005d08144c5de050 (diff) |
ACPICA: Comment/format update, no functional change.
Add some additional commenting the the public acpixf.h file.
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'include/acpi/acpixf.h')
-rw-r--r-- | include/acpi/acpixf.h | 73 |
1 files changed, 54 insertions, 19 deletions
diff --git a/include/acpi/acpixf.h b/include/acpi/acpixf.h index 2d074ba1db42..b3b21087a158 100644 --- a/include/acpi/acpixf.h +++ b/include/acpi/acpixf.h | |||
@@ -55,11 +55,17 @@ | |||
55 | 55 | ||
56 | extern u8 acpi_gbl_permanent_mmap; | 56 | extern u8 acpi_gbl_permanent_mmap; |
57 | 57 | ||
58 | /***************************************************************************** | ||
59 | * | ||
60 | * Macros used for ACPICA globals and configuration | ||
61 | * | ||
62 | ****************************************************************************/ | ||
63 | |||
58 | /* | 64 | /* |
59 | * Ensure that the globals are actually defined and initialized only once. | 65 | * Ensure that global variables are defined and initialized only once. |
60 | * | 66 | * |
61 | * The use of these macros allows a single list of globals (here) in order | 67 | * The use of these macros allows for a single list of globals (here) |
62 | * to simplify maintenance of the code. | 68 | * in order to simplify maintenance of the code. |
63 | */ | 69 | */ |
64 | #ifdef DEFINE_ACPI_GLOBALS | 70 | #ifdef DEFINE_ACPI_GLOBALS |
65 | #define ACPI_GLOBAL(type,name) \ | 71 | #define ACPI_GLOBAL(type,name) \ |
@@ -81,8 +87,11 @@ extern u8 acpi_gbl_permanent_mmap; | |||
81 | #endif | 87 | #endif |
82 | #endif | 88 | #endif |
83 | 89 | ||
84 | /* ACPICA prototypes */ | 90 | /* |
85 | 91 | * These macros configure the various ACPICA interfaces. They are | |
92 | * useful for generating stub inline functions for features that are | ||
93 | * configured out of the current kernel or ACPICA application. | ||
94 | */ | ||
86 | #ifndef ACPI_EXTERNAL_RETURN_STATUS | 95 | #ifndef ACPI_EXTERNAL_RETURN_STATUS |
87 | #define ACPI_EXTERNAL_RETURN_STATUS(prototype) \ | 96 | #define ACPI_EXTERNAL_RETURN_STATUS(prototype) \ |
88 | prototype; | 97 | prototype; |
@@ -108,16 +117,14 @@ extern u8 acpi_gbl_permanent_mmap; | |||
108 | prototype; | 117 | prototype; |
109 | #endif | 118 | #endif |
110 | 119 | ||
111 | /* Public globals, available from outside ACPICA subsystem */ | ||
112 | |||
113 | /***************************************************************************** | 120 | /***************************************************************************** |
114 | * | 121 | * |
115 | * Runtime configuration (static defaults that can be overriden at runtime) | 122 | * Public globals and runtime configuration options |
116 | * | 123 | * |
117 | ****************************************************************************/ | 124 | ****************************************************************************/ |
118 | 125 | ||
119 | /* | 126 | /* |
120 | * Enable "slack" in the AML interpreter? Default is FALSE, and the | 127 | * Enable "slack mode" of the AML interpreter? Default is FALSE, and the |
121 | * interpreter strictly follows the ACPI specification. Setting to TRUE | 128 | * interpreter strictly follows the ACPI specification. Setting to TRUE |
122 | * allows the interpreter to ignore certain errors and/or bad AML constructs. | 129 | * allows the interpreter to ignore certain errors and/or bad AML constructs. |
123 | * | 130 | * |
@@ -234,16 +241,34 @@ ACPI_INIT_GLOBAL(u32, acpi_dbg_level, ACPI_DEBUG_DEFAULT); | |||
234 | ACPI_INIT_GLOBAL(u32, acpi_dbg_layer, 0); | 241 | ACPI_INIT_GLOBAL(u32, acpi_dbg_layer, 0); |
235 | 242 | ||
236 | /* | 243 | /* |
237 | * Globals that are publically available | 244 | * Other miscellaneous globals |
238 | */ | 245 | */ |
239 | ACPI_GLOBAL(u32, acpi_current_gpe_count); | ||
240 | ACPI_GLOBAL(struct acpi_table_fadt, acpi_gbl_FADT); | 246 | ACPI_GLOBAL(struct acpi_table_fadt, acpi_gbl_FADT); |
247 | ACPI_GLOBAL(u32, acpi_current_gpe_count); | ||
241 | ACPI_GLOBAL(u8, acpi_gbl_system_awake_and_running); | 248 | ACPI_GLOBAL(u8, acpi_gbl_system_awake_and_running); |
242 | 249 | ||
250 | /***************************************************************************** | ||
251 | * | ||
252 | * ACPICA public interface configuration. | ||
253 | * | ||
254 | * Interfaces that are configured out of the ACPICA build are replaced | ||
255 | * by inlined stubs by default. | ||
256 | * | ||
257 | ****************************************************************************/ | ||
258 | |||
243 | /* | 259 | /* |
244 | * Hardware-reduced prototypes. All interfaces that use these macros will | 260 | * Hardware-reduced prototypes (default: Not hardware reduced). |
245 | * be configured out of the ACPICA build if the ACPI_REDUCED_HARDWARE flag | 261 | * |
262 | * All ACPICA hardware-related interfaces that use these macros will be | ||
263 | * configured out of the ACPICA build if the ACPI_REDUCED_HARDWARE flag | ||
246 | * is set to TRUE. | 264 | * is set to TRUE. |
265 | * | ||
266 | * Note: This static build option for reduced hardware is intended to | ||
267 | * reduce ACPICA code size if desired or necessary. However, even if this | ||
268 | * option is not specified, the runtime behavior of ACPICA is dependent | ||
269 | * on the actual FADT reduced hardware flag (HW_REDUCED_ACPI). If set, | ||
270 | * the flag will enable similar behavior -- ACPICA will not attempt | ||
271 | * to access any ACPI-relate hardware (SCI, GPEs, Fixed Events, etc.) | ||
247 | */ | 272 | */ |
248 | #if (!ACPI_REDUCED_HARDWARE) | 273 | #if (!ACPI_REDUCED_HARDWARE) |
249 | #define ACPI_HW_DEPENDENT_RETURN_STATUS(prototype) \ | 274 | #define ACPI_HW_DEPENDENT_RETURN_STATUS(prototype) \ |
@@ -268,9 +293,11 @@ ACPI_GLOBAL(u8, acpi_gbl_system_awake_and_running); | |||
268 | #endif /* !ACPI_REDUCED_HARDWARE */ | 293 | #endif /* !ACPI_REDUCED_HARDWARE */ |
269 | 294 | ||
270 | /* | 295 | /* |
271 | * Error-message prototypes. All interfaces that use these macros will | 296 | * Error message prototypes (default: error messages enabled). |
272 | * be configured out of the ACPICA build if the ACPI_NO_ERROR_MESSAGE flag | 297 | * |
273 | * is defined. | 298 | * All interfaces related to error and warning messages |
299 | * will be configured out of the ACPICA build if the | ||
300 | * ACPI_NO_ERROR_MESSAGE flag is defined. | ||
274 | */ | 301 | */ |
275 | #ifndef ACPI_NO_ERROR_MESSAGES | 302 | #ifndef ACPI_NO_ERROR_MESSAGES |
276 | #define ACPI_MSG_DEPENDENT_RETURN_VOID(prototype) \ | 303 | #define ACPI_MSG_DEPENDENT_RETURN_VOID(prototype) \ |
@@ -283,9 +310,11 @@ ACPI_GLOBAL(u8, acpi_gbl_system_awake_and_running); | |||
283 | #endif /* ACPI_NO_ERROR_MESSAGES */ | 310 | #endif /* ACPI_NO_ERROR_MESSAGES */ |
284 | 311 | ||
285 | /* | 312 | /* |
286 | * Debugging-output prototypes. All interfaces that use these macros will | 313 | * Debugging output prototypes (default: no debug output). |
287 | * be configured out of the ACPICA build if the ACPI_DEBUG_OUTPUT flag is | 314 | * |
288 | * not defined. | 315 | * All interfaces related to debug output messages |
316 | * will be configured out of the ACPICA build unless the | ||
317 | * ACPI_DEBUG_OUTPUT flag is defined. | ||
289 | */ | 318 | */ |
290 | #ifdef ACPI_DEBUG_OUTPUT | 319 | #ifdef ACPI_DEBUG_OUTPUT |
291 | #define ACPI_DBG_DEPENDENT_RETURN_VOID(prototype) \ | 320 | #define ACPI_DBG_DEPENDENT_RETURN_VOID(prototype) \ |
@@ -297,6 +326,12 @@ ACPI_GLOBAL(u8, acpi_gbl_system_awake_and_running); | |||
297 | 326 | ||
298 | #endif /* ACPI_DEBUG_OUTPUT */ | 327 | #endif /* ACPI_DEBUG_OUTPUT */ |
299 | 328 | ||
329 | /***************************************************************************** | ||
330 | * | ||
331 | * ACPICA public interface prototypes | ||
332 | * | ||
333 | ****************************************************************************/ | ||
334 | |||
300 | /* | 335 | /* |
301 | * Initialization | 336 | * Initialization |
302 | */ | 337 | */ |