aslstubs.c revision 197104
1118611Snjl
2118611Snjl/******************************************************************************
3118611Snjl *
4118611Snjl * Module Name: aslstubs - Stubs used to link to Aml interpreter
5118611Snjl *
6118611Snjl *****************************************************************************/
7118611Snjl
8118611Snjl/******************************************************************************
9118611Snjl *
10118611Snjl * 1. Copyright Notice
11118611Snjl *
12193529Sjkim * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
13118611Snjl * All rights reserved.
14118611Snjl *
15118611Snjl * 2. License
16118611Snjl *
17118611Snjl * 2.1. This is your license from Intel Corp. under its intellectual property
18118611Snjl * rights.  You may have additional license terms from the party that provided
19118611Snjl * you this software, covering your right to use that party's intellectual
20118611Snjl * property rights.
21118611Snjl *
22118611Snjl * 2.2. Intel grants, free of charge, to any person ("Licensee") obtaining a
23118611Snjl * copy of the source code appearing in this file ("Covered Code") an
24118611Snjl * irrevocable, perpetual, worldwide license under Intel's copyrights in the
25118611Snjl * base code distributed originally by Intel ("Original Intel Code") to copy,
26118611Snjl * make derivatives, distribute, use and display any portion of the Covered
27118611Snjl * Code in any form, with the right to sublicense such rights; and
28118611Snjl *
29118611Snjl * 2.3. Intel grants Licensee a non-exclusive and non-transferable patent
30118611Snjl * license (with the right to sublicense), under only those claims of Intel
31118611Snjl * patents that are infringed by the Original Intel Code, to make, use, sell,
32118611Snjl * offer to sell, and import the Covered Code and derivative works thereof
33118611Snjl * solely to the minimum extent necessary to exercise the above copyright
34118611Snjl * license, and in no event shall the patent license extend to any additions
35118611Snjl * to or modifications of the Original Intel Code.  No other license or right
36118611Snjl * is granted directly or by implication, estoppel or otherwise;
37118611Snjl *
38118611Snjl * The above copyright and patent license is granted only if the following
39118611Snjl * conditions are met:
40118611Snjl *
41118611Snjl * 3. Conditions
42118611Snjl *
43118611Snjl * 3.1. Redistribution of Source with Rights to Further Distribute Source.
44118611Snjl * Redistribution of source code of any substantial portion of the Covered
45118611Snjl * Code or modification with rights to further distribute source must include
46118611Snjl * the above Copyright Notice, the above License, this list of Conditions,
47118611Snjl * and the following Disclaimer and Export Compliance provision.  In addition,
48118611Snjl * Licensee must cause all Covered Code to which Licensee contributes to
49118611Snjl * contain a file documenting the changes Licensee made to create that Covered
50118611Snjl * Code and the date of any change.  Licensee must include in that file the
51118611Snjl * documentation of any changes made by any predecessor Licensee.  Licensee
52118611Snjl * must include a prominent statement that the modification is derived,
53118611Snjl * directly or indirectly, from Original Intel Code.
54118611Snjl *
55118611Snjl * 3.2. Redistribution of Source with no Rights to Further Distribute Source.
56118611Snjl * Redistribution of source code of any substantial portion of the Covered
57118611Snjl * Code or modification without rights to further distribute source must
58118611Snjl * include the following Disclaimer and Export Compliance provision in the
59118611Snjl * documentation and/or other materials provided with distribution.  In
60118611Snjl * addition, Licensee may not authorize further sublicense of source of any
61118611Snjl * portion of the Covered Code, and must include terms to the effect that the
62118611Snjl * license from Licensee to its licensee is limited to the intellectual
63118611Snjl * property embodied in the software Licensee provides to its licensee, and
64118611Snjl * not to intellectual property embodied in modifications its licensee may
65118611Snjl * make.
66118611Snjl *
67118611Snjl * 3.3. Redistribution of Executable. Redistribution in executable form of any
68118611Snjl * substantial portion of the Covered Code or modification must reproduce the
69118611Snjl * above Copyright Notice, and the following Disclaimer and Export Compliance
70118611Snjl * provision in the documentation and/or other materials provided with the
71118611Snjl * distribution.
72118611Snjl *
73118611Snjl * 3.4. Intel retains all right, title, and interest in and to the Original
74118611Snjl * Intel Code.
75118611Snjl *
76118611Snjl * 3.5. Neither the name Intel nor any other trademark owned or controlled by
77118611Snjl * Intel shall be used in advertising or otherwise to promote the sale, use or
78118611Snjl * other dealings in products derived from or relating to the Covered Code
79118611Snjl * without prior written authorization from Intel.
80118611Snjl *
81118611Snjl * 4. Disclaimer and Export Compliance
82118611Snjl *
83118611Snjl * 4.1. INTEL MAKES NO WARRANTY OF ANY KIND REGARDING ANY SOFTWARE PROVIDED
84118611Snjl * HERE.  ANY SOFTWARE ORIGINATING FROM INTEL OR DERIVED FROM INTEL SOFTWARE
85118611Snjl * IS PROVIDED "AS IS," AND INTEL WILL NOT PROVIDE ANY SUPPORT,  ASSISTANCE,
86118611Snjl * INSTALLATION, TRAINING OR OTHER SERVICES.  INTEL WILL NOT PROVIDE ANY
87118611Snjl * UPDATES, ENHANCEMENTS OR EXTENSIONS.  INTEL SPECIFICALLY DISCLAIMS ANY
88118611Snjl * IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT AND FITNESS FOR A
89118611Snjl * PARTICULAR PURPOSE.
90118611Snjl *
91118611Snjl * 4.2. IN NO EVENT SHALL INTEL HAVE ANY LIABILITY TO LICENSEE, ITS LICENSEES
92118611Snjl * OR ANY OTHER THIRD PARTY, FOR ANY LOST PROFITS, LOST DATA, LOSS OF USE OR
93118611Snjl * COSTS OF PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, OR FOR ANY INDIRECT,
94118611Snjl * SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THIS AGREEMENT, UNDER ANY
95118611Snjl * CAUSE OF ACTION OR THEORY OF LIABILITY, AND IRRESPECTIVE OF WHETHER INTEL
96118611Snjl * HAS ADVANCE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES.  THESE LIMITATIONS
97118611Snjl * SHALL APPLY NOTWITHSTANDING THE FAILURE OF THE ESSENTIAL PURPOSE OF ANY
98118611Snjl * LIMITED REMEDY.
99118611Snjl *
100118611Snjl * 4.3. Licensee shall not export, either directly or indirectly, any of this
101118611Snjl * software or system incorporating such software without first obtaining any
102118611Snjl * required license or other approval from the U. S. Department of Commerce or
103118611Snjl * any other agency or department of the United States Government.  In the
104118611Snjl * event Licensee exports any such software from the United States or
105118611Snjl * re-exports any such software from a foreign destination, Licensee shall
106118611Snjl * ensure that the distribution and export/re-export of the software is in
107118611Snjl * compliance with all laws, regulations, orders, or other restrictions of the
108118611Snjl * U.S. Export Administration Regulations. Licensee agrees that neither it nor
109118611Snjl * any of its subsidiaries will export/re-export any technical data, process,
110118611Snjl * software, or service, directly or indirectly, to any country for which the
111118611Snjl * United States government or any agency thereof requires an export license,
112118611Snjl * other governmental approval, or letter of assurance, without first obtaining
113118611Snjl * such license, approval or letter.
114118611Snjl *
115118611Snjl *****************************************************************************/
116118611Snjl
117151937Sjkim#include <contrib/dev/acpica/compiler/aslcompiler.h>
118193529Sjkim#include <contrib/dev/acpica/include/acdispat.h>
119193529Sjkim#include <contrib/dev/acpica/include/actables.h>
120193529Sjkim#include <contrib/dev/acpica/include/acevents.h>
121193529Sjkim#include <contrib/dev/acpica/include/acinterp.h>
122197104Sjkim#include "acnamesp.h"
123118611Snjl
124118611Snjl#define _COMPONENT          ACPI_COMPILER
125118611Snjl        ACPI_MODULE_NAME    ("aslstubs")
126118611Snjl
127118611Snjl
128118611Snjl/*
129118611Snjl * Stubs to simplify linkage to the ACPI CA core subsystem.
130118611Snjl * Things like Events, Global Lock, etc. are not used
131118611Snjl * by the compiler, so they are stubbed out here.
132118611Snjl */
133167802SjkimACPI_PHYSICAL_ADDRESS
134118611SnjlAeLocalGetRootPointer (
135167802Sjkim    void)
136118611Snjl{
137167802Sjkim    return 0;
138118611Snjl}
139118611Snjl
140197104Sjkimvoid
141197104SjkimAcpiNsExecModuleCodeList (
142197104Sjkim    void)
143197104Sjkim{
144197104Sjkim}
145197104Sjkim
146118611SnjlACPI_STATUS
147193529SjkimAcpiHwReadPort (
148193529Sjkim    ACPI_IO_ADDRESS         Address,
149193529Sjkim    UINT32                  *Value,
150193529Sjkim    UINT32                  Width)
151193529Sjkim{
152193529Sjkim    return (AE_OK);
153193529Sjkim}
154193529Sjkim
155193529SjkimACPI_STATUS
156193529SjkimAcpiHwWritePort (
157193529Sjkim    ACPI_IO_ADDRESS         Address,
158193529Sjkim    UINT32                  Value,
159193529Sjkim    UINT32                  Width)
160193529Sjkim{
161193529Sjkim    return (AE_OK);
162193529Sjkim}
163193529Sjkim
164193529SjkimACPI_STATUS
165167802SjkimAcpiDsMethodError (
166167802Sjkim    ACPI_STATUS             Status,
167167802Sjkim    ACPI_WALK_STATE         *WalkState)
168167802Sjkim{
169167802Sjkim    return (Status);
170167802Sjkim}
171167802Sjkim
172167802SjkimACPI_STATUS
173118611SnjlAcpiDsMethodDataGetValue (
174193529Sjkim    UINT8                   Type,
175118611Snjl    UINT32                  Index,
176118611Snjl    ACPI_WALK_STATE         *WalkState,
177118611Snjl    ACPI_OPERAND_OBJECT     **DestDesc)
178118611Snjl{
179118611Snjl    return (AE_OK);
180118611Snjl}
181118611Snjl
182118611SnjlACPI_STATUS
183118611SnjlAcpiDsMethodDataGetNode (
184193529Sjkim    UINT8                   Type,
185118611Snjl    UINT32                  Index,
186118611Snjl    ACPI_WALK_STATE         *WalkState,
187118611Snjl    ACPI_NAMESPACE_NODE     **Node)
188118611Snjl{
189118611Snjl    return (AE_OK);
190118611Snjl}
191118611Snjl
192118611SnjlACPI_STATUS
193118611SnjlAcpiDsStoreObjectToLocal (
194193529Sjkim    UINT8                   Type,
195118611Snjl    UINT32                  Index,
196118611Snjl    ACPI_OPERAND_OBJECT     *SrcDesc,
197118611Snjl    ACPI_WALK_STATE         *WalkState)
198118611Snjl{
199118611Snjl    return (AE_OK);
200118611Snjl}
201118611Snjl
202118611SnjlACPI_STATUS
203118611SnjlAcpiEvDeleteGpeBlock (
204118611Snjl    ACPI_GPE_BLOCK_INFO     *GpeBlock)
205118611Snjl{
206118611Snjl    return (AE_OK);
207118611Snjl}
208118611Snjl
209118611SnjlACPI_STATUS
210118611SnjlAcpiEvQueueNotifyRequest (
211118611Snjl    ACPI_NAMESPACE_NODE     *Node,
212118611Snjl    UINT32                  NotifyValue)
213118611Snjl{
214118611Snjl    return (AE_OK);
215118611Snjl}
216118611Snjl
217118611SnjlBOOLEAN
218118611SnjlAcpiEvIsNotifyObject (
219118611Snjl    ACPI_NAMESPACE_NODE     *Node)
220118611Snjl{
221118611Snjl    return (FALSE);
222118611Snjl}
223118611Snjl
224118611SnjlACPI_STATUS
225193529SjkimAcpiEvAcquireGlobalLock (
226193529Sjkim    UINT16                  Timeout)
227118611Snjl{
228118611Snjl    return (AE_OK);
229118611Snjl}
230118611Snjl
231118611SnjlACPI_STATUS
232193529SjkimAcpiEvReleaseGlobalLock (
233118611Snjl    void)
234118611Snjl{
235118611Snjl    return (AE_OK);
236118611Snjl}
237118611Snjl
238118611SnjlACPI_STATUS
239118611SnjlAcpiEvInitializeRegion (
240118611Snjl    ACPI_OPERAND_OBJECT     *RegionObj,
241118611Snjl    BOOLEAN                 AcpiNsLocked)
242118611Snjl{
243118611Snjl    return (AE_OK);
244118611Snjl}
245118611Snjl
246118611SnjlACPI_STATUS
247129684SnjlAcpiEvCheckForWakeOnlyGpe (
248129684Snjl    ACPI_GPE_EVENT_INFO     *GpeEventInfo)
249129684Snjl{
250129684Snjl    return (AE_OK);
251129684Snjl}
252129684Snjl
253129684SnjlACPI_STATUS
254118611SnjlAcpiExReadDataFromField (
255118611Snjl    ACPI_WALK_STATE         *WalkState,
256118611Snjl    ACPI_OPERAND_OBJECT     *ObjDesc,
257118611Snjl    ACPI_OPERAND_OBJECT     **RetBufferDesc)
258118611Snjl{
259118611Snjl    return (AE_SUPPORT);
260118611Snjl}
261118611Snjl
262118611SnjlACPI_STATUS
263118611SnjlAcpiExWriteDataToField (
264118611Snjl    ACPI_OPERAND_OBJECT     *SourceDesc,
265118611Snjl    ACPI_OPERAND_OBJECT     *ObjDesc,
266118611Snjl    ACPI_OPERAND_OBJECT     **ResultDesc)
267118611Snjl{
268118611Snjl    return (AE_SUPPORT);
269118611Snjl}
270118611Snjl
271118611SnjlACPI_STATUS
272118611SnjlAcpiExLoadTableOp (
273118611Snjl    ACPI_WALK_STATE         *WalkState,
274118611Snjl    ACPI_OPERAND_OBJECT     **ReturnDesc)
275118611Snjl{
276118611Snjl    return (AE_SUPPORT);
277118611Snjl}
278118611Snjl
279118611Snjl
280118611SnjlACPI_STATUS
281118611SnjlAcpiExUnloadTable (
282118611Snjl    ACPI_OPERAND_OBJECT     *DdbHandle)
283118611Snjl{
284118611Snjl    return (AE_SUPPORT);
285118611Snjl}
286118611Snjl
287118611SnjlACPI_STATUS
288118611SnjlAcpiExLoadOp (
289118611Snjl    ACPI_OPERAND_OBJECT     *ObjDesc,
290118611Snjl    ACPI_OPERAND_OBJECT     *Target,
291118611Snjl    ACPI_WALK_STATE         *WalkState)
292118611Snjl{
293118611Snjl    return (AE_SUPPORT);
294118611Snjl}
295118611Snjl
296118611SnjlACPI_STATUS
297118611SnjlAcpiTbFindTable (
298118611Snjl    char                    *Signature,
299118611Snjl    char                    *OemId,
300118611Snjl    char                    *OemTableId,
301193529Sjkim    UINT32                  *TableIndex)
302118611Snjl{
303118611Snjl    return (AE_SUPPORT);
304118611Snjl}
305118611Snjl
306