FreeBSD/sys/contrib/dev/acpica/compiler/asloperands.c
/*******************************************************************************
 *
 * FUNCTION:    OpnGenerateAmlOperands
 *
 * PARAMETERS:  Op        - The parent parse node
 *
 * RETURN:      None
 *
 * DESCRIPTION: Prepare nodes to be output as AML data and operands. The more
 *              complex AML opcodes require processing of the child nodes
 *              (arguments/operands).
 *
 ******************************************************************************/
OpnGenerateAmlOperands
PARAMETERS:  Op        - The parent parse node

None

Prepare nodes to be output as AML data and operands. The more
complex AML opcodes require processing of the child nodes
(arguments/operands).
OpnGenerateAmlOperands PARAMETERS : Op - The parent parse node None Prepare nodes to be output as AML data and operands . The more complex AML opcodes require processing of the child nodes ( arguments / operands ) .
void
OpnGenerateAmlOperands (
    ACPI_PARSE_OBJECT       *Op)
{
    if (Op->Asl.AmlOpcode == AML_RAW_DATA_BYTE)
    {
        return;
    }
    switch (Op->Asl.ParseOpcode)
    {
    case PARSEOP_DEFINITION_BLOCK:
        OpnDoDefinitionBlock (Op);
        break;
    case PARSEOP_METHOD:
        OpnDoMethod (Op);
        break;
    case PARSEOP_MUTEX:
        OpnDoMutex (Op);
        break;
    case PARSEOP_FIELD:
        OpnDoField (Op);
        break;
    case PARSEOP_INDEXFIELD:
        OpnDoIndexField (Op);
        break;
    case PARSEOP_BANKFIELD:
        OpnDoBankField (Op);
        break;
    case PARSEOP_BUFFER:
        OpnDoBuffer (Op);
        break;
    case PARSEOP_LOADTABLE:
        OpnDoLoadTable (Op);
        break;
    case PARSEOP_OPERATIONREGION:
        OpnDoRegion (Op);
        break;
    case PARSEOP_RESOURCETEMPLATE:
        RsDoResourceTemplate (Op);
        break;
    case PARSEOP_NAMESEG:
    case PARSEOP_NAMESTRING:
    case PARSEOP_METHODCALL:
    case PARSEOP_STRING_LITERAL:
    default:
        break;
    }
    OpnAttachNameToNode (Op);
}
void OpnGenerateAmlOperands ( ACPI_PARSE_OBJECT * Op ) { if ( Op -> Asl . AmlOpcode == AML_RAW_DATA_BYTE ) { return ; } switch ( Op -> Asl . ParseOpcode ) { case PARSEOP_DEFINITION_BLOCK : OpnDoDefinitionBlock ( Op ) ; break ; case PARSEOP_METHOD : OpnDoMethod ( Op ) ; break ; case PARSEOP_MUTEX : OpnDoMutex ( Op ) ; break ; case PARSEOP_FIELD : OpnDoField ( Op ) ; break ; case PARSEOP_INDEXFIELD : OpnDoIndexField ( Op ) ; break ; case PARSEOP_BANKFIELD : OpnDoBankField ( Op ) ; break ; case PARSEOP_BUFFER : OpnDoBuffer ( Op ) ; break ; case PARSEOP_LOADTABLE : OpnDoLoadTable ( Op ) ; break ; case PARSEOP_OPERATIONREGION : OpnDoRegion ( Op ) ; break ; case PARSEOP_RESOURCETEMPLATE : RsDoResourceTemplate ( Op ) ; break ; case PARSEOP_NAMESEG : case PARSEOP_NAMESTRING : case PARSEOP_METHODCALL : case PARSEOP_STRING_LITERAL : default : break ; } OpnAttachNameToNode ( Op ) ; }
FUNCTION:    OpnGenerateAmlOperands
 PARAMETERS:  Op        - The parent parse node
FUNCTION : OpnGenerateAmlOperands PARAMETERS : Op - The parent parse node
/* TBD: move */