summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorRobert Moore <Robert.Moore@intel.com>2012-12-21 13:25:20 -0800
committerRobert Moore <Robert.Moore@intel.com>2012-12-21 13:25:20 -0800
commit0c6e0744366a0012dc582aff06cff3a26bbbf33e (patch)
tree9837ebda2d72005f7912b87e4beb3d6d9a03dca7 /source
parentf1ddee53c219d64613a4b0f24f3513a7c28d43cb (diff)
downloadacpica-0c6e0744366a0012dc582aff06cff3a26bbbf33e.tar.gz
Debugger: Add support to test all possible sleep values.
Add to Sleep command. Call AcpiGetSleepTypeData for all possible sleep states.
Diffstat (limited to 'source')
-rw-r--r--source/components/debugger/dbcmds.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/source/components/debugger/dbcmds.c b/source/components/debugger/dbcmds.c
index 6e1f24e28..76f8aadac 100644
--- a/source/components/debugger/dbcmds.c
+++ b/source/components/debugger/dbcmds.c
@@ -231,11 +231,21 @@ AcpiDbSleep (
{
ACPI_STATUS Status;
UINT8 SleepState;
+ UINT8 i;
+ UINT8 SleepTypeA;
+ UINT8 SleepTypeB;
ACPI_FUNCTION_TRACE (AcpiDbSleep);
+ /* Check all possible sleep states */
+
+ for (i = 0; i < ACPI_S_STATES_MAX; i++)
+ {
+ Status = AcpiGetSleepTypeData (i, &SleepTypeA, &SleepTypeB);
+ }
+
SleepState = (UINT8) ACPI_STRTOUL (ObjectArg, NULL, 0);
AcpiOsPrintf ("**** Prepare to sleep ****\n");