FreeBSD/sys/contrib/dev/acpica/common/adwalk.c
/*******************************************************************************
 *
 * FUNCTION:    AcpiDmConvertResourceIndexes
 *
 * PARAMETERS:  ParseTreeRoot       - Root of the parse tree
 *              NamespaceRoot       - Root of the internal namespace
 *
 * RETURN:      None
 *
 * DESCRIPTION: Convert fixed-offset references to resource descriptors to
 *              symbolic references. Should only be called after namespace has
 *              been cross referenced.
 *
 ******************************************************************************/
AcpiDmConvertResourceIndexes
PARAMETERS:  ParseTreeRoot       - Root of the parse tree
NamespaceRoot       - Root of the internal namespace

None

Convert fixed-offset references to resource descriptors to
symbolic references. Should only be called after namespace has
been cross referenced.
AcpiDmConvertResourceIndexes PARAMETERS : ParseTreeRoot - Root of the parse tree NamespaceRoot - Root of the internal namespace None Convert fixed - offset references to resource descriptors to symbolic references . Should only be called after namespace has been cross referenced .
void
AcpiDmConvertResourceIndexes (
    ACPI_PARSE_OBJECT       *ParseTreeRoot,
    ACPI_NAMESPACE_NODE     *NamespaceRoot)
{
    ACPI_STATUS             Status;
    ACPI_OP_WALK_INFO       Info;
    ACPI_WALK_STATE         *WalkState;
    if (!ParseTreeRoot)
    {
        return;
    }
    WalkState = AcpiDsCreateWalkState (0, ParseTreeRoot, NULL, NULL);
    if (!WalkState)
    {
        return;
    }
    Status = AcpiDsScopeStackPush (NamespaceRoot, NamespaceRoot->Type,
        WalkState);
    if (ACPI_FAILURE (Status))
    {
        ACPI_FREE (WalkState);
        return;
    }
    Info.Flags = 0;
    Info.Level = 0;
    Info.WalkState = WalkState;
    AcpiDmWalkParseTree (ParseTreeRoot, AcpiDmResourceDescendingOp,
        AcpiDmCommonAscendingOp, &Info);
    ACPI_FREE (WalkState);
    return;
}
void AcpiDmConvertResourceIndexes ( ACPI_PARSE_OBJECT * ParseTreeRoot , ACPI_NAMESPACE_NODE * NamespaceRoot ) { ACPI_STATUS Status ; ACPI_OP_WALK_INFO Info ; ACPI_WALK_STATE * WalkState ; if ( ! ParseTreeRoot ) { return ; } WalkState = AcpiDsCreateWalkState ( 0 , ParseTreeRoot , NULL , NULL ) ; if ( ! WalkState ) { return ; } Status = AcpiDsScopeStackPush ( NamespaceRoot , NamespaceRoot -> Type , WalkState ) ; if ( ACPI_FAILURE ( Status ) ) { ACPI_FREE ( WalkState ) ; return ; } Info . Flags = 0 ; Info . Level = 0 ; Info . WalkState = WalkState ; AcpiDmWalkParseTree ( ParseTreeRoot , AcpiDmResourceDescendingOp , AcpiDmCommonAscendingOp , & Info ) ; ACPI_FREE ( WalkState ) ; return ; }
FUNCTION:    AcpiDmConvertResourceIndexes
 PARAMETERS:  ParseTreeRoot       - Root of the parse tree
              NamespaceRoot       - Root of the internal namespace
FUNCTION : AcpiDmConvertResourceIndexes PARAMETERS : ParseTreeRoot - Root of the parse tree NamespaceRoot - Root of the internal namespace
/* Create and initialize a new walk state */