Deleted Added
full compact
59a60,62
> #ifdef ACPI_ASL_COMPILER
> #include <contrib/dev/acpica/include/acdisasm.h>
>
60a64,72
> AcpiDsCreateExternalRegion (
> ACPI_STATUS LookupStatus,
> ACPI_PARSE_OBJECT *Op,
> char *Path,
> ACPI_WALK_STATE *WalkState,
> ACPI_NAMESPACE_NODE **Node);
> #endif
>
> static ACPI_STATUS
66a79
> #ifdef ACPI_ASL_COMPILER
68a82,143
> * FUNCTION: AcpiDsCreateExternalRegion (iASL Disassembler only)
> *
> * PARAMETERS: LookupStatus - Status from NsLookup operation
> * Op - Op containing the Field definition and args
> * Path - Pathname of the region
> * ` WalkState - Current method state
> * Node - Where the new region node is returned
> *
> * RETURN: Status
> *
> * DESCRIPTION: Add region to the external list if NOT_FOUND. Create a new
> * region node/object.
> *
> ******************************************************************************/
>
> static ACPI_STATUS
> AcpiDsCreateExternalRegion (
> ACPI_STATUS LookupStatus,
> ACPI_PARSE_OBJECT *Op,
> char *Path,
> ACPI_WALK_STATE *WalkState,
> ACPI_NAMESPACE_NODE **Node)
> {
> ACPI_STATUS Status;
> ACPI_OPERAND_OBJECT *ObjDesc;
>
>
> if (LookupStatus != AE_NOT_FOUND)
> {
> return (LookupStatus);
> }
>
> /*
> * Table disassembly:
> * OperationRegion not found. Generate an External for it, and
> * insert the name into the namespace.
> */
> AcpiDmAddToExternalList (Op, Path, ACPI_TYPE_REGION, 0);
> Status = AcpiNsLookup (WalkState->ScopeInfo, Path, ACPI_TYPE_REGION,
> ACPI_IMODE_LOAD_PASS1, ACPI_NS_SEARCH_PARENT, WalkState, Node);
> if (ACPI_FAILURE (Status))
> {
> return (Status);
> }
>
> /* Must create and install a region object for the new node */
>
> ObjDesc = AcpiUtCreateInternalObject (ACPI_TYPE_REGION);
> if (!ObjDesc)
> {
> return (AE_NO_MEMORY);
> }
>
> ObjDesc->Region.Node = *Node;
> Status = AcpiNsAttachObject (*Node, ObjDesc, ACPI_TYPE_REGION);
> return (Status);
> }
> #endif
>
>
> /*******************************************************************************
> *
440a516
>
445a522,525
> #ifdef ACPI_ASL_COMPILER
> Status = AcpiDsCreateExternalRegion (Status, Arg,
> Arg->Common.Value.Name, WalkState, &RegionNode);
> #endif
630a711,714
> #ifdef ACPI_ASL_COMPILER
> Status = AcpiDsCreateExternalRegion (Status, Arg,
> Arg->Common.Value.Name, WalkState, &RegionNode);
> #endif