FreeBSD/sys/contrib/dev/acpica/components/executer/exsystem.c
/*******************************************************************************
 *
 * FUNCTION:    AcpiExSystemWaitEvent
 *
 * PARAMETERS:  TimeDesc        - The 'time to delay' object descriptor
 *              ObjDesc         - The object descriptor for this op
 *
 * RETURN:      Status
 *
 * DESCRIPTION: Provides an access point to perform synchronization operations
 *              within the AML. This operation is a request to wait for an
 *              event.
 *
 ******************************************************************************/
AcpiExSystemWaitEvent
PARAMETERS:  TimeDesc        - The 'time to delay' object descriptor
ObjDesc         - The object descriptor for this op

Status

Provides an access point to perform synchronization operations
within the AML. This operation is a request to wait for an
event.
AcpiExSystemWaitEvent PARAMETERS : TimeDesc - The ' time to delay ' object descriptor ObjDesc - The object descriptor for this op Status Provides an access point to perform synchronization operations within the AML . This operation is a request to wait for an event .
ACPI_STATUS
AcpiExSystemWaitEvent (
    ACPI_OPERAND_OBJECT     *TimeDesc,
    ACPI_OPERAND_OBJECT     *ObjDesc)
{
    ACPI_STATUS             Status = AE_OK;
    ACPI_FUNCTION_TRACE (ExSystemWaitEvent);
    if (ObjDesc)
    {
        Status = AcpiExSystemWaitSemaphore (ObjDesc->Event.OsSemaphore,
            (UINT16) TimeDesc->Integer.Value);
    }
    return_ACPI_STATUS (Status);
}
ACPI_STATUS AcpiExSystemWaitEvent ( ACPI_OPERAND_OBJECT * TimeDesc , ACPI_OPERAND_OBJECT * ObjDesc ) { ACPI_STATUS Status = AE_OK ; ACPI_FUNCTION_TRACE ( ExSystemWaitEvent ) ; if ( ObjDesc ) { Status = AcpiExSystemWaitSemaphore ( ObjDesc -> Event . OsSemaphore , ( UINT16 ) TimeDesc -> Integer . Value ) ; } return_ACPI_STATUS ( Status ) ; }
FUNCTION:    AcpiExSystemWaitEvent
 PARAMETERS:  TimeDesc        - The 'time to delay' object descriptor
              ObjDesc         - The object descriptor for this op
FUNCTION : AcpiExSystemWaitEvent PARAMETERS : TimeDesc - The ' time to delay ' object descriptor ObjDesc - The object descriptor for this op