diff options
author | njl <njl@FreeBSD.org> | 2004-05-25 02:34:44 +0000 |
---|---|---|
committer | njl <njl@FreeBSD.org> | 2004-05-25 02:34:44 +0000 |
commit | 7dda61e34c56846a7ad4da7feef2a91aec7b9c02 (patch) | |
tree | 29dd9bbba1b290e1293c9cd9f23c53bf025abfa3 /sys/contrib/dev/acpica/dbcmds.c | |
parent | dddb7af88f13c7148125c30a85f44b025270f810 (diff) | |
download | FreeBSD-src-7dda61e34c56846a7ad4da7feef2a91aec7b9c02.zip FreeBSD-src-7dda61e34c56846a7ad4da7feef2a91aec7b9c02.tar.gz |
Vendor import of Intel ACPI-CA 20040514.
Diffstat (limited to 'sys/contrib/dev/acpica/dbcmds.c')
-rw-r--r-- | sys/contrib/dev/acpica/dbcmds.c | 35 |
1 files changed, 33 insertions, 2 deletions
diff --git a/sys/contrib/dev/acpica/dbcmds.c b/sys/contrib/dev/acpica/dbcmds.c index 75bb091..33c6e6b 100644 --- a/sys/contrib/dev/acpica/dbcmds.c +++ b/sys/contrib/dev/acpica/dbcmds.c @@ -1,7 +1,7 @@ /******************************************************************************* * * Module Name: dbcmds - debug commands and output routines - * $Revision: 110 $ + * $Revision: 112 $ * ******************************************************************************/ @@ -157,6 +157,37 @@ static ARGUMENT_INFO AcpiDbObjectTypes [] = }; +ACPI_STATUS +AcpiDbSleep ( + char *ObjectArg) +{ + ACPI_STATUS Status; + UINT8 SleepState; + + + SleepState = (UINT8) ACPI_STRTOUL (ObjectArg, NULL, 0); + + AcpiOsPrintf ("**** Prepare to sleep ****\n"); + Status = AcpiEnterSleepStatePrep (SleepState); + if (ACPI_FAILURE (Status)) + { + return (Status); + } + + AcpiOsPrintf ("**** Going to sleep ****\n"); + Status = AcpiEnterSleepState (SleepState); + if (ACPI_FAILURE (Status)) + { + return (Status); + } + + AcpiOsPrintf ("**** returning from sleep ****\n"); + Status = AcpiLeaveSleepState (SleepState); + + return (Status); +} + + /******************************************************************************* * * FUNCTION: AcpiDbWalkForReferences @@ -1298,7 +1329,7 @@ AcpiDbGenerateGpe ( return; } - AcpiEvGpeDispatch (GpeEventInfo, GpeNumber); + (void) AcpiEvGpeDispatch (GpeEventInfo, GpeNumber); } #endif /* ACPI_DEBUGGER */ |