diff options
author | Lin Ming <ming.m.lin@intel.com> | 2010-12-13 00:39:37 -0500 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2011-01-12 04:27:00 -0500 |
commit | da50337373c90c15c6db6ed4239e87c5a3806f9a (patch) | |
tree | fb13213a1af36ece5cb760a9567dd44683f6f368 /drivers/acpi/acpica/evxfgpe.c | |
parent | a0fcdb237fcd4eaa7e5009b28ef5be07415f287d (diff) |
ACPICA: Misc comments to minimize code divergence
Modify/add some comments to minimize ACPICA/linux GPE code divergence.
Acked-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Lin Ming <ming.m.lin@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/acpica/evxfgpe.c')
-rw-r--r-- | drivers/acpi/acpica/evxfgpe.c | 32 |
1 files changed, 21 insertions, 11 deletions
diff --git a/drivers/acpi/acpica/evxfgpe.c b/drivers/acpi/acpica/evxfgpe.c index fcf4a5cdc9a4..416845bc9c1f 100644 --- a/drivers/acpi/acpica/evxfgpe.c +++ b/drivers/acpi/acpica/evxfgpe.c | |||
@@ -55,13 +55,19 @@ ACPI_MODULE_NAME("evxfgpe") | |||
55 | * | 55 | * |
56 | * PARAMETERS: None | 56 | * PARAMETERS: None |
57 | * | 57 | * |
58 | * RETURN: None | 58 | * RETURN: Status |
59 | * | ||
60 | * DESCRIPTION: Complete GPE initialization and enable all GPEs that have | ||
61 | * associated _Lxx or _Exx methods and are not pointed to by any | ||
62 | * device _PRW methods (this indicates that these GPEs are | ||
63 | * generally intended for system or device wakeup. Such GPEs | ||
64 | * have to be enabled directly when the devices whose _PRW | ||
65 | * methods point to them are set up for wakeup signaling.) | ||
59 | * | 66 | * |
60 | * DESCRIPTION: Enable all GPEs that have associated _Lxx or _Exx methods and | 67 | * NOTE: Should be called after any GPEs are added to the system. Primarily, |
61 | * are not pointed to by any device _PRW methods indicating that | 68 | * after the system _PRW methods have been run, but also after a GPE Block |
62 | * these GPEs are generally intended for system or device wakeup | 69 | * Device has been added or if any new GPE methods have been added via a |
63 | * (such GPEs have to be enabled directly when the devices whose | 70 | * dynamic table load. |
64 | * _PRW methods point to them are set up for wakeup signaling). | ||
65 | * | 71 | * |
66 | ******************************************************************************/ | 72 | ******************************************************************************/ |
67 | 73 | ||
@@ -252,7 +258,8 @@ ACPI_EXPORT_SYMBOL(acpi_setup_gpe_for_wake) | |||
252 | * | 258 | * |
253 | * RETURN: Status | 259 | * RETURN: Status |
254 | * | 260 | * |
255 | * DESCRIPTION: Set or clear the GPE's wakeup enable mask bit. | 261 | * DESCRIPTION: Set or clear the GPE's wakeup enable mask bit. The GPE must |
262 | * already be marked as a WAKE GPE. | ||
256 | * | 263 | * |
257 | ******************************************************************************/ | 264 | ******************************************************************************/ |
258 | 265 | ||
@@ -268,8 +275,10 @@ acpi_status acpi_set_gpe_wake_mask(acpi_handle gpe_device, u32 gpe_number, u8 ac | |||
268 | 275 | ||
269 | flags = acpi_os_acquire_lock(acpi_gbl_gpe_lock); | 276 | flags = acpi_os_acquire_lock(acpi_gbl_gpe_lock); |
270 | 277 | ||
271 | /* Ensure that we have a valid GPE number */ | 278 | /* |
272 | 279 | * Ensure that we have a valid GPE number and that this GPE is in | |
280 | * fact a wake GPE | ||
281 | */ | ||
273 | gpe_event_info = acpi_ev_get_gpe_event_info(gpe_device, gpe_number); | 282 | gpe_event_info = acpi_ev_get_gpe_event_info(gpe_device, gpe_number); |
274 | if (!gpe_event_info) { | 283 | if (!gpe_event_info) { |
275 | status = AE_BAD_PARAMETER; | 284 | status = AE_BAD_PARAMETER; |
@@ -366,7 +375,7 @@ ACPI_EXPORT_SYMBOL(acpi_clear_gpe) | |||
366 | * | 375 | * |
367 | * RETURN: Status | 376 | * RETURN: Status |
368 | * | 377 | * |
369 | * DESCRIPTION: Get status of an event (general purpose) | 378 | * DESCRIPTION: Get the current status of a GPE (signalled/not_signalled) |
370 | * | 379 | * |
371 | ******************************************************************************/ | 380 | ******************************************************************************/ |
372 | acpi_status | 381 | acpi_status |
@@ -476,7 +485,8 @@ ACPI_EXPORT_SYMBOL(acpi_enable_all_runtime_gpes) | |||
476 | * | 485 | * |
477 | * RETURN: Status | 486 | * RETURN: Status |
478 | * | 487 | * |
479 | * DESCRIPTION: Create and Install a block of GPE registers | 488 | * DESCRIPTION: Create and Install a block of GPE registers. The GPEs are not |
489 | * enabled here. | ||
480 | * | 490 | * |
481 | ******************************************************************************/ | 491 | ******************************************************************************/ |
482 | acpi_status | 492 | acpi_status |