FreeBSD/sys/contrib/dev/acpica/compiler/asloperands.c
/*******************************************************************************
 *
 * FUNCTION:    OpnDoLoadTable
 *
 * PARAMETERS:  Op        - The parent parse node
 *
 * RETURN:      None
 *
 * DESCRIPTION: Construct the AML operands for the LOADTABLE ASL keyword.
 *
 ******************************************************************************/
OpnDoLoadTable
PARAMETERS:  Op        - The parent parse node

None

Construct the AML operands for the LOADTABLE ASL keyword.
OpnDoLoadTable PARAMETERS : Op - The parent parse node None Construct the AML operands for the LOADTABLE ASL keyword .
static void
OpnDoLoadTable (
    ACPI_PARSE_OBJECT       *Op)
{
    ACPI_PARSE_OBJECT       *Next;
    Next = Op->Asl.Child;
    Next = Next->Asl.Next;
    Next = Next->Asl.Next;
    Next = Next->Asl.Next;
    if (Next->Asl.ParseOpcode == PARSEOP_ZERO)
    {
        Next->Asl.ParseOpcode = PARSEOP_STRING_LITERAL;
        Next->Asl.Value.String = "\\";
        Next->Asl.AmlLength = 2;
        OpcGenerateAmlOpcode (Next);
    }
#ifdef ASL_FUTURE_IMPLEMENTATION
    Next = Next->Asl.Next;
    if (Next->Asl.ParseOpcode == DEFAULT_ARG)
    {
        Next->Asl.AmlLength = 1;
        Next->Asl.ParseOpcode = ZERO;
        OpcGenerateAmlOpcode (Next);
    }
    Next = Next->Asl.Next;
    if (Next->Asl.ParseOpcode == DEFAULT_ARG)
    {
        Next->Asl.AmlLength = 1;
        Next->Asl.ParseOpcode = ZERO;
        OpcGenerateAmlOpcode (Next);
    }
#endif
}
static void OpnDoLoadTable ( ACPI_PARSE_OBJECT * Op ) { ACPI_PARSE_OBJECT * Next ; Next = Op -> Asl . Child ; Next = Next -> Asl . Next ; Next = Next -> Asl . Next ; Next = Next -> Asl . Next ; if ( Next -> Asl . ParseOpcode == PARSEOP_ZERO ) { Next -> Asl . ParseOpcode = PARSEOP_STRING_LITERAL ; Next -> Asl . Value . String = " \\ " ; Next -> Asl . AmlLength = 2 ; OpcGenerateAmlOpcode ( Next ) ; } #ifdef ASL_FUTURE_IMPLEMENTATION Next = Next -> Asl . Next ; if ( Next -> Asl . ParseOpcode == DEFAULT_ARG ) { Next -> Asl . AmlLength = 1 ; Next -> Asl . ParseOpcode = ZERO ; OpcGenerateAmlOpcode ( Next ) ; } Next = Next -> Asl . Next ; if ( Next -> Asl . ParseOpcode == DEFAULT_ARG ) { Next -> Asl . AmlLength = 1 ; Next -> Asl . ParseOpcode = ZERO ; OpcGenerateAmlOpcode ( Next ) ; } #endif }
FUNCTION:    OpnDoLoadTable
 PARAMETERS:  Op        - The parent parse node
FUNCTION : OpnDoLoadTable PARAMETERS : Op - The parent parse node
/* Opcode is parent node */ /* First child is the table signature */ /* Second child is the OEM ID*/ /* Third child is the OEM table ID */ /* Fourth child is the RootPath string */ /* TBD: NOT IMPLEMENTED */ /* Fifth child is the [optional] ParameterPathString */ /* Sixth child is the [optional] ParameterData */