FreeBSD/sys/contrib/dev/acpica/components/executer/exoparg1.c
/*******************************************************************************
 *
 * FUNCTION:    AcpiExOpcode_1A_0T_0R
 *
 * PARAMETERS:  WalkState           - Current state (contains AML opcode)
 *
 * RETURN:      Status
 *
 * DESCRIPTION: Execute Type 1 monadic operator with numeric operand on
 *              object stack
 *
 ******************************************************************************/
AcpiExOpcode_1A_0T_0R
PARAMETERS:  WalkState           - Current state (contains AML opcode)

Status

Execute Type 1 monadic operator with numeric operand on
object stack
AcpiExOpcode_1A_0T_0R PARAMETERS : WalkState - Current state ( contains AML opcode ) Status Execute Type 1 monadic operator with numeric operand on object stack
ACPI_STATUS
AcpiExOpcode_1A_0T_0R (
    ACPI_WALK_STATE         *WalkState)
{
    ACPI_OPERAND_OBJECT     **Operand = &WalkState->Operands[0];
    ACPI_STATUS             Status = AE_OK;
    ACPI_FUNCTION_TRACE_STR (ExOpcode_1A_0T_0R,
        AcpiPsGetOpcodeName (WalkState->Opcode));
    switch (WalkState->Opcode)
    {
    case AML_RELEASE_OP:    
        Status = AcpiExReleaseMutex (Operand[0], WalkState);
        break;
    case AML_RESET_OP:      
        Status = AcpiExSystemResetEvent (Operand[0]);
        break;
    case AML_SIGNAL_OP:     
        Status = AcpiExSystemSignalEvent (Operand[0]);
        break;
    case AML_SLEEP_OP:      
        Status = AcpiExSystemDoSleep (Operand[0]->Integer.Value);
        break;
    case AML_STALL_OP:      
        Status = AcpiExSystemDoStall ((UINT32) Operand[0]->Integer.Value);
        break;
    case AML_UNLOAD_OP:     
        Status = AcpiExUnloadTable (Operand[0]);
        break;
    default:                
        ACPI_ERROR ((AE_INFO, "Unknown AML opcode 0x%X",
            WalkState->Opcode));
        Status = AE_AML_BAD_OPCODE;
        break;
    }
    return_ACPI_STATUS (Status);
}
ACPI_STATUS AcpiExOpcode_1A_0T_0R ( ACPI_WALK_STATE * WalkState ) { ACPI_OPERAND_OBJECT * * Operand = & WalkState -> Operands [ 0 ] ; ACPI_STATUS Status = AE_OK ; ACPI_FUNCTION_TRACE_STR ( ExOpcode_1A_0T_0R , AcpiPsGetOpcodeName ( WalkState -> Opcode ) ) ; switch ( WalkState -> Opcode ) { case AML_RELEASE_OP : Status = AcpiExReleaseMutex ( Operand [ 0 ] , WalkState ) ; break ; case AML_RESET_OP : Status = AcpiExSystemResetEvent ( Operand [ 0 ] ) ; break ; case AML_SIGNAL_OP : Status = AcpiExSystemSignalEvent ( Operand [ 0 ] ) ; break ; case AML_SLEEP_OP : Status = AcpiExSystemDoSleep ( Operand [ 0 ] -> Integer . Value ) ; break ; case AML_STALL_OP : Status = AcpiExSystemDoStall ( ( UINT32 ) Operand [ 0 ] -> Integer . Value ) ; break ; case AML_UNLOAD_OP : Status = AcpiExUnloadTable ( Operand [ 0 ] ) ; break ; default : ACPI_ERROR ( ( AE_INFO , " " , WalkState -> Opcode ) ) ; Status = AE_AML_BAD_OPCODE ; break ; } return_ACPI_STATUS ( Status ) ; }
FUNCTION:    AcpiExOpcode_1A_0T_0R
 PARAMETERS:  WalkState           - Current state (contains AML opcode)
FUNCTION : AcpiExOpcode_1A_0T_0R PARAMETERS : WalkState - Current state ( contains AML opcode )
/* Examine the AML opcode */ /*  Release (MutexObject) */ /*  Reset (EventObject) */ /*  Signal (EventObject) */ /*  Sleep (MsecTime) */ /*  Stall (UsecTime) */ /*  Unload (Handle) */ /*  Unknown opcode  */