mirror of
https://github.com/acpica/acpica/
synced 2025-01-14 21:39:19 +03:00
Debugger: Add support to test all possible sleep values.
Add to Sleep command. Call AcpiGetSleepTypeData for all possible sleep states.
This commit is contained in:
parent
f1ddee53c2
commit
0c6e074436
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user