src/add-ons/kernel/bus_managers/acpi/acpica/components/hardware/hwesleep.c
/*******************************************************************************
 *
 * FUNCTION:    AcpiHwExtendedWake
 *
 * PARAMETERS:  SleepState          - Which sleep state we just exited
 *
 * RETURN:      Status
 *
 * DESCRIPTION: Perform OS-independent ACPI cleanup after a sleep
 *              Called with interrupts ENABLED.
 *
 ******************************************************************************/
AcpiHwExtendedWake
PARAMETERS:  SleepState          - Which sleep state we just exited

Status

Perform OS-independent ACPI cleanup after a sleep
Called with interrupts ENABLED.
AcpiHwExtendedWake PARAMETERS : SleepState - Which sleep state we just exited Status Perform OS - independent ACPI cleanup after a sleep Called with interrupts ENABLED .
ACPI_STATUS
AcpiHwExtendedWake (
    UINT8                   SleepState)
{
    ACPI_FUNCTION_TRACE (HwExtendedWake);
    AcpiGbl_SleepTypeA = ACPI_SLEEP_TYPE_INVALID;
    AcpiHwExecuteSleepMethod (METHOD_PATHNAME__SST, ACPI_SST_WAKING);
    AcpiHwExecuteSleepMethod (METHOD_PATHNAME__WAK, SleepState);
    (void) AcpiWrite ((UINT64) ACPI_X_WAKE_STATUS, &AcpiGbl_FADT.SleepStatus);
    AcpiGbl_SystemAwakeAndRunning = TRUE;
    AcpiHwExecuteSleepMethod (METHOD_PATHNAME__SST, ACPI_SST_WORKING);
    return_ACPI_STATUS (AE_OK);
}
ACPI_STATUS AcpiHwExtendedWake ( UINT8 SleepState ) { ACPI_FUNCTION_TRACE ( HwExtendedWake ) ; AcpiGbl_SleepTypeA = ACPI_SLEEP_TYPE_INVALID ; AcpiHwExecuteSleepMethod ( METHOD_PATHNAME__SST , ACPI_SST_WAKING ) ; AcpiHwExecuteSleepMethod ( METHOD_PATHNAME__WAK , SleepState ) ; ( void ) AcpiWrite ( ( UINT64 ) ACPI_X_WAKE_STATUS , & AcpiGbl_FADT . SleepStatus ) ; AcpiGbl_SystemAwakeAndRunning = TRUE ; AcpiHwExecuteSleepMethod ( METHOD_PATHNAME__SST , ACPI_SST_WORKING ) ; return_ACPI_STATUS ( AE_OK ) ; }
FUNCTION:    AcpiHwExtendedWake
 PARAMETERS:  SleepState          - Which sleep state we just exited
FUNCTION : AcpiHwExtendedWake PARAMETERS : SleepState - Which sleep state we just exited
/* Ensure EnterSleepStatePrep -> EnterSleepState ordering */ /* Execute the wake methods */ /*
     * Some BIOS code assumes that WAK_STS will be cleared on resume
     * and use it to determine whether the system is rebooting or
     * resuming. Clear WAK_STS for compatibility.
     */