FreeBSD/sys/contrib/dev/acpica/compiler/asloperands.c
/*******************************************************************************
 *
 * FUNCTION:    OpnDoRegion
 *
 * PARAMETERS:  Op        - The parent parse node
 *
 * RETURN:      None
 *
 * DESCRIPTION: Tries to get the length of the region. Can only do this at
 *              compile time if the length is a constant.
 *
 ******************************************************************************/
OpnDoRegion
PARAMETERS:  Op        - The parent parse node

None

Tries to get the length of the region. Can only do this at
compile time if the length is a constant.
OpnDoRegion PARAMETERS : Op - The parent parse node None Tries to get the length of the region . Can only do this at compile time if the length is a constant .
static void
OpnDoRegion (
    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_INTEGER)
    {
        Op->Asl.Value.Integer = Next->Asl.Value.Integer;
    }
    else
    {
        Op->Asl.Value.Integer = ACPI_UINT64_MAX;
    }
}
static void OpnDoRegion ( 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_INTEGER ) { Op -> Asl . Value . Integer = Next -> Asl . Value . Integer ; } else { Op -> Asl . Value . Integer = ACPI_UINT64_MAX ; } }
FUNCTION:    OpnDoRegion
 PARAMETERS:  Op        - The parent parse node
FUNCTION : OpnDoRegion PARAMETERS : Op - The parent parse node
/* Opcode is parent node */ /* First child is the region name */ /* Second child is the space ID*/ /* Third child is the region offset */ /* Fourth child is the region length */