2 /******************************************************************************
4 * Module Name: aslstubs - Stubs used to link to Aml interpreter
6 *****************************************************************************/
9 * Copyright (C) 2000 - 2011, Intel Corp.
10 * All rights reserved.
12 * Redistribution and use in source and binary forms, with or without
13 * modification, are permitted provided that the following conditions
15 * 1. Redistributions of source code must retain the above copyright
16 * notice, this list of conditions, and the following disclaimer,
17 * without modification.
18 * 2. Redistributions in binary form must reproduce at minimum a disclaimer
19 * substantially similar to the "NO WARRANTY" disclaimer below
20 * ("Disclaimer") and any redistribution must be conditioned upon
21 * including a substantially similar Disclaimer requirement for further
22 * binary redistribution.
23 * 3. Neither the names of the above-listed copyright holders nor the names
24 * of any contributors may be used to endorse or promote products derived
25 * from this software without specific prior written permission.
27 * Alternatively, this software may be distributed under the terms of the
28 * GNU General Public License ("GPL") version 2 as published by the Free
29 * Software Foundation.
32 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
33 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
34 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR
35 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
36 * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
37 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
38 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
39 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
40 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
41 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
42 * POSSIBILITY OF SUCH DAMAGES.
45 #include <contrib/dev/acpica/compiler/aslcompiler.h>
46 #include <contrib/dev/acpica/include/acdispat.h>
47 #include <contrib/dev/acpica/include/actables.h>
48 #include <contrib/dev/acpica/include/acevents.h>
49 #include <contrib/dev/acpica/include/acinterp.h>
50 #include <contrib/dev/acpica/include/acnamesp.h>
52 #define _COMPONENT ACPI_COMPILER
53 ACPI_MODULE_NAME ("aslstubs")
57 * Stubs to simplify linkage to the ACPI CA core subsystem.
58 * Things like Events, Global Lock, etc. are not used
59 * by the compiler, so they are stubbed out here.
62 AeLocalGetRootPointer (
69 AcpiNsExecModuleCodeList (
76 ACPI_IO_ADDRESS Address,
85 ACPI_IO_ADDRESS Address,
95 ACPI_WALK_STATE *WalkState)
101 AcpiDsMethodDataGetValue (
104 ACPI_WALK_STATE *WalkState,
105 ACPI_OPERAND_OBJECT **DestDesc)
111 AcpiDsMethodDataGetNode (
114 ACPI_WALK_STATE *WalkState,
115 ACPI_NAMESPACE_NODE **Node)
121 AcpiDsStoreObjectToLocal (
124 ACPI_OPERAND_OBJECT *SrcDesc,
125 ACPI_WALK_STATE *WalkState)
131 AcpiEvDeleteGpeBlock (
132 ACPI_GPE_BLOCK_INFO *GpeBlock)
138 AcpiEvQueueNotifyRequest (
139 ACPI_NAMESPACE_NODE *Node,
146 AcpiEvIsNotifyObject (
147 ACPI_NAMESPACE_NODE *Node)
153 AcpiEvAcquireGlobalLock (
160 AcpiEvReleaseGlobalLock (
167 AcpiEvInitializeRegion (
168 ACPI_OPERAND_OBJECT *RegionObj,
169 BOOLEAN AcpiNsLocked)
175 AcpiExDoDebugObject (
176 ACPI_OPERAND_OBJECT *SourceDesc,
184 AcpiExReadDataFromField (
185 ACPI_WALK_STATE *WalkState,
186 ACPI_OPERAND_OBJECT *ObjDesc,
187 ACPI_OPERAND_OBJECT **RetBufferDesc)
193 AcpiExWriteDataToField (
194 ACPI_OPERAND_OBJECT *SourceDesc,
195 ACPI_OPERAND_OBJECT *ObjDesc,
196 ACPI_OPERAND_OBJECT **ResultDesc)
203 ACPI_WALK_STATE *WalkState,
204 ACPI_OPERAND_OBJECT **ReturnDesc)
211 ACPI_OPERAND_OBJECT *DdbHandle)
218 ACPI_OPERAND_OBJECT *ObjDesc,
219 ACPI_OPERAND_OBJECT *Target,
220 ACPI_WALK_STATE *WalkState)