FreeBSD/sys/contrib/dev/acpica/common/dmrestag.c
/*******************************************************************************
 *
 * FUNCTION:    AcpiDmAddResourcesToNamespace
 *
 * PARAMETERS:  BufferNode          - Node for the parent buffer
 *              Op                  - Parse op for the buffer
 *
 * RETURN:      None
 *
 * DESCRIPTION: Add an entire resource template to the namespace. Each
 *              resource descriptor is added as a namespace node.
 *
 ******************************************************************************/
AcpiDmAddResourcesToNamespace
PARAMETERS:  BufferNode          - Node for the parent buffer
Op                  - Parse op for the buffer

None

Add an entire resource template to the namespace. Each
resource descriptor is added as a namespace node.
AcpiDmAddResourcesToNamespace PARAMETERS : BufferNode - Node for the parent buffer Op - Parse op for the buffer None Add an entire resource template to the namespace . Each resource descriptor is added as a namespace node .
static void
AcpiDmAddResourcesToNamespace (
    ACPI_NAMESPACE_NODE     *BufferNode,
    ACPI_PARSE_OBJECT       *Op)
{
    ACPI_PARSE_OBJECT       *NextOp;
    NextOp = Op->Common.Value.Arg;
    NextOp = NextOp->Common.Next;
    if (!NextOp)
    {
        return;
    }
    BufferNode->Op = Op;
    Op->Common.Node = BufferNode;
    AcpiUtWalkAmlResources (NULL, (UINT8 *) NextOp->Named.Data,
        (ACPI_SIZE) NextOp->Common.Value.Integer,
        AcpiDmAddResourceToNamespace, (void **) BufferNode);
}
static void AcpiDmAddResourcesToNamespace ( ACPI_NAMESPACE_NODE * BufferNode , ACPI_PARSE_OBJECT * Op ) { ACPI_PARSE_OBJECT * NextOp ; NextOp = Op -> Common . Value . Arg ; NextOp = NextOp -> Common . Next ; if ( ! NextOp ) { return ; } BufferNode -> Op = Op ; Op -> Common . Node = BufferNode ; AcpiUtWalkAmlResources ( NULL , ( UINT8 * ) NextOp -> Named . Data , ( ACPI_SIZE ) NextOp -> Common . Value . Integer , AcpiDmAddResourceToNamespace , ( void * * ) BufferNode ) ; }
FUNCTION:    AcpiDmAddResourcesToNamespace
 PARAMETERS:  BufferNode          - Node for the parent buffer
              Op                  - Parse op for the buffer
FUNCTION : AcpiDmAddResourcesToNamespace PARAMETERS : BufferNode - Node for the parent buffer Op - Parse op for the buffer
/* Get to the ByteData list */ /* Set Node and Op to point to each other */ /*
     * Insert each resource into the namespace
     * NextOp contains the Aml pointer and the Aml length
     */