diff options
author | Bob Moore <robert.moore@intel.com> | 2009-03-05 20:49:25 -0500 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2009-03-27 12:11:01 -0400 |
commit | 768aaaf196e8a40f5cfc792d9d365795cc52ed13 (patch) | |
tree | b223711c833a4848711b3c322dea9a9809e22836 /drivers/acpi/acpica/hwsleep.c | |
parent | 2affa28605fa5387192c72d9889a00c9c51aa712 (diff) |
ACPICA: Add manifest constants for bit register values
Add and deploy constants for the PM status/enable/control
registers.
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 'drivers/acpi/acpica/hwsleep.c')
-rw-r--r-- | drivers/acpi/acpica/hwsleep.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/drivers/acpi/acpica/hwsleep.c b/drivers/acpi/acpica/hwsleep.c index 78d62b8a5c31..4d14b49a0f6c 100644 --- a/drivers/acpi/acpica/hwsleep.c +++ b/drivers/acpi/acpica/hwsleep.c | |||
@@ -250,7 +250,8 @@ acpi_status asmlinkage acpi_enter_sleep_state(u8 sleep_state) | |||
250 | 250 | ||
251 | /* Clear wake status */ | 251 | /* Clear wake status */ |
252 | 252 | ||
253 | status = acpi_write_bit_register(ACPI_BITREG_WAKE_STATUS, 1); | 253 | status = |
254 | acpi_write_bit_register(ACPI_BITREG_WAKE_STATUS, ACPI_CLEAR_STATUS); | ||
254 | if (ACPI_FAILURE(status)) { | 255 | if (ACPI_FAILURE(status)) { |
255 | return_ACPI_STATUS(status); | 256 | return_ACPI_STATUS(status); |
256 | } | 257 | } |
@@ -399,7 +400,10 @@ acpi_status asmlinkage acpi_enter_sleep_state_s4bios(void) | |||
399 | 400 | ||
400 | ACPI_FUNCTION_TRACE(acpi_enter_sleep_state_s4bios); | 401 | ACPI_FUNCTION_TRACE(acpi_enter_sleep_state_s4bios); |
401 | 402 | ||
402 | status = acpi_write_bit_register(ACPI_BITREG_WAKE_STATUS, 1); | 403 | /* Clear the wake status bit (PM1) */ |
404 | |||
405 | status = | ||
406 | acpi_write_bit_register(ACPI_BITREG_WAKE_STATUS, ACPI_CLEAR_STATUS); | ||
403 | if (ACPI_FAILURE(status)) { | 407 | if (ACPI_FAILURE(status)) { |
404 | return_ACPI_STATUS(status); | 408 | return_ACPI_STATUS(status); |
405 | } | 409 | } |
@@ -601,11 +605,13 @@ acpi_status acpi_leave_sleep_state(u8 sleep_state) | |||
601 | 605 | ||
602 | (void) | 606 | (void) |
603 | acpi_write_bit_register(acpi_gbl_fixed_event_info | 607 | acpi_write_bit_register(acpi_gbl_fixed_event_info |
604 | [ACPI_EVENT_POWER_BUTTON].enable_register_id, 1); | 608 | [ACPI_EVENT_POWER_BUTTON]. |
609 | enable_register_id, ACPI_ENABLE_EVENT); | ||
605 | 610 | ||
606 | (void) | 611 | (void) |
607 | acpi_write_bit_register(acpi_gbl_fixed_event_info | 612 | acpi_write_bit_register(acpi_gbl_fixed_event_info |
608 | [ACPI_EVENT_POWER_BUTTON].status_register_id, 1); | 613 | [ACPI_EVENT_POWER_BUTTON]. |
614 | status_register_id, ACPI_CLEAR_STATUS); | ||
609 | 615 | ||
610 | arg.integer.value = ACPI_SST_WORKING; | 616 | arg.integer.value = ACPI_SST_WORKING; |
611 | status = acpi_evaluate_object(NULL, METHOD_NAME__SST, &arg_list, NULL); | 617 | status = acpi_evaluate_object(NULL, METHOD_NAME__SST, &arg_list, NULL); |