aslstubs.c revision 167802
1118611Snjl
2118611Snjl/******************************************************************************
3118611Snjl *
4118611Snjl * Module Name: aslstubs - Stubs used to link to Aml interpreter
5167802Sjkim *              $Revision: 1.20 $
6118611Snjl *
7118611Snjl *****************************************************************************/
8118611Snjl
9118611Snjl/******************************************************************************
10118611Snjl *
11118611Snjl * 1. Copyright Notice
12118611Snjl *
13167802Sjkim * Some or all of this work - Copyright (c) 1999 - 2007, Intel Corp.
14118611Snjl * All rights reserved.
15118611Snjl *
16118611Snjl * 2. License
17118611Snjl *
18118611Snjl * 2.1. This is your license from Intel Corp. under its intellectual property
19118611Snjl * rights.  You may have additional license terms from the party that provided
20118611Snjl * you this software, covering your right to use that party's intellectual
21118611Snjl * property rights.
22118611Snjl *
23118611Snjl * 2.2. Intel grants, free of charge, to any person ("Licensee") obtaining a
24118611Snjl * copy of the source code appearing in this file ("Covered Code") an
25118611Snjl * irrevocable, perpetual, worldwide license under Intel's copyrights in the
26118611Snjl * base code distributed originally by Intel ("Original Intel Code") to copy,
27118611Snjl * make derivatives, distribute, use and display any portion of the Covered
28118611Snjl * Code in any form, with the right to sublicense such rights; and
29118611Snjl *
30118611Snjl * 2.3. Intel grants Licensee a non-exclusive and non-transferable patent
31118611Snjl * license (with the right to sublicense), under only those claims of Intel
32118611Snjl * patents that are infringed by the Original Intel Code, to make, use, sell,
33118611Snjl * offer to sell, and import the Covered Code and derivative works thereof
34118611Snjl * solely to the minimum extent necessary to exercise the above copyright
35118611Snjl * license, and in no event shall the patent license extend to any additions
36118611Snjl * to or modifications of the Original Intel Code.  No other license or right
37118611Snjl * is granted directly or by implication, estoppel or otherwise;
38118611Snjl *
39118611Snjl * The above copyright and patent license is granted only if the following
40118611Snjl * conditions are met:
41118611Snjl *
42118611Snjl * 3. Conditions
43118611Snjl *
44118611Snjl * 3.1. Redistribution of Source with Rights to Further Distribute Source.
45118611Snjl * Redistribution of source code of any substantial portion of the Covered
46118611Snjl * Code or modification with rights to further distribute source must include
47118611Snjl * the above Copyright Notice, the above License, this list of Conditions,
48118611Snjl * and the following Disclaimer and Export Compliance provision.  In addition,
49118611Snjl * Licensee must cause all Covered Code to which Licensee contributes to
50118611Snjl * contain a file documenting the changes Licensee made to create that Covered
51118611Snjl * Code and the date of any change.  Licensee must include in that file the
52118611Snjl * documentation of any changes made by any predecessor Licensee.  Licensee
53118611Snjl * must include a prominent statement that the modification is derived,
54118611Snjl * directly or indirectly, from Original Intel Code.
55118611Snjl *
56118611Snjl * 3.2. Redistribution of Source with no Rights to Further Distribute Source.
57118611Snjl * Redistribution of source code of any substantial portion of the Covered
58118611Snjl * Code or modification without rights to further distribute source must
59118611Snjl * include the following Disclaimer and Export Compliance provision in the
60118611Snjl * documentation and/or other materials provided with distribution.  In
61118611Snjl * addition, Licensee may not authorize further sublicense of source of any
62118611Snjl * portion of the Covered Code, and must include terms to the effect that the
63118611Snjl * license from Licensee to its licensee is limited to the intellectual
64118611Snjl * property embodied in the software Licensee provides to its licensee, and
65118611Snjl * not to intellectual property embodied in modifications its licensee may
66118611Snjl * make.
67118611Snjl *
68118611Snjl * 3.3. Redistribution of Executable. Redistribution in executable form of any
69118611Snjl * substantial portion of the Covered Code or modification must reproduce the
70118611Snjl * above Copyright Notice, and the following Disclaimer and Export Compliance
71118611Snjl * provision in the documentation and/or other materials provided with the
72118611Snjl * distribution.
73118611Snjl *
74118611Snjl * 3.4. Intel retains all right, title, and interest in and to the Original
75118611Snjl * Intel Code.
76118611Snjl *
77118611Snjl * 3.5. Neither the name Intel nor any other trademark owned or controlled by
78118611Snjl * Intel shall be used in advertising or otherwise to promote the sale, use or
79118611Snjl * other dealings in products derived from or relating to the Covered Code
80118611Snjl * without prior written authorization from Intel.
81118611Snjl *
82118611Snjl * 4. Disclaimer and Export Compliance
83118611Snjl *
84118611Snjl * 4.1. INTEL MAKES NO WARRANTY OF ANY KIND REGARDING ANY SOFTWARE PROVIDED
85118611Snjl * HERE.  ANY SOFTWARE ORIGINATING FROM INTEL OR DERIVED FROM INTEL SOFTWARE
86118611Snjl * IS PROVIDED "AS IS," AND INTEL WILL NOT PROVIDE ANY SUPPORT,  ASSISTANCE,
87118611Snjl * INSTALLATION, TRAINING OR OTHER SERVICES.  INTEL WILL NOT PROVIDE ANY
88118611Snjl * UPDATES, ENHANCEMENTS OR EXTENSIONS.  INTEL SPECIFICALLY DISCLAIMS ANY
89118611Snjl * IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT AND FITNESS FOR A
90118611Snjl * PARTICULAR PURPOSE.
91118611Snjl *
92118611Snjl * 4.2. IN NO EVENT SHALL INTEL HAVE ANY LIABILITY TO LICENSEE, ITS LICENSEES
93118611Snjl * OR ANY OTHER THIRD PARTY, FOR ANY LOST PROFITS, LOST DATA, LOSS OF USE OR
94118611Snjl * COSTS OF PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, OR FOR ANY INDIRECT,
95118611Snjl * SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THIS AGREEMENT, UNDER ANY
96118611Snjl * CAUSE OF ACTION OR THEORY OF LIABILITY, AND IRRESPECTIVE OF WHETHER INTEL
97118611Snjl * HAS ADVANCE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES.  THESE LIMITATIONS
98118611Snjl * SHALL APPLY NOTWITHSTANDING THE FAILURE OF THE ESSENTIAL PURPOSE OF ANY
99118611Snjl * LIMITED REMEDY.
100118611Snjl *
101118611Snjl * 4.3. Licensee shall not export, either directly or indirectly, any of this
102118611Snjl * software or system incorporating such software without first obtaining any
103118611Snjl * required license or other approval from the U. S. Department of Commerce or
104118611Snjl * any other agency or department of the United States Government.  In the
105118611Snjl * event Licensee exports any such software from the United States or
106118611Snjl * re-exports any such software from a foreign destination, Licensee shall
107118611Snjl * ensure that the distribution and export/re-export of the software is in
108118611Snjl * compliance with all laws, regulations, orders, or other restrictions of the
109118611Snjl * U.S. Export Administration Regulations. Licensee agrees that neither it nor
110118611Snjl * any of its subsidiaries will export/re-export any technical data, process,
111118611Snjl * software, or service, directly or indirectly, to any country for which the
112118611Snjl * United States government or any agency thereof requires an export license,
113118611Snjl * other governmental approval, or letter of assurance, without first obtaining
114118611Snjl * such license, approval or letter.
115118611Snjl *
116118611Snjl *****************************************************************************/
117118611Snjl
118118611Snjl#include <stdio.h>
119151937Sjkim#include <contrib/dev/acpica/compiler/aslcompiler.h>
120151937Sjkim#include <contrib/dev/acpica/acdispat.h>
121151937Sjkim#include <contrib/dev/acpica/actables.h>
122118611Snjl
123118611Snjl#define _COMPONENT          ACPI_COMPILER
124118611Snjl        ACPI_MODULE_NAME    ("aslstubs")
125118611Snjl
126118611Snjl
127118611Snjl/*
128118611Snjl * Stubs to simplify linkage to the ACPI CA core subsystem.
129118611Snjl * Things like Events, Global Lock, etc. are not used
130118611Snjl * by the compiler, so they are stubbed out here.
131118611Snjl */
132167802SjkimACPI_PHYSICAL_ADDRESS
133118611SnjlAeLocalGetRootPointer (
134167802Sjkim    void)
135118611Snjl{
136167802Sjkim    return 0;
137118611Snjl}
138118611Snjl
139118611SnjlACPI_STATUS
140167802SjkimAcpiDsMethodError (
141167802Sjkim    ACPI_STATUS             Status,
142167802Sjkim    ACPI_WALK_STATE         *WalkState)
143167802Sjkim{
144167802Sjkim    return (Status);
145167802Sjkim}
146167802Sjkim
147167802SjkimACPI_STATUS
148118611SnjlAcpiDsMethodDataGetValue (
149118611Snjl    UINT16                  Opcode,
150118611Snjl    UINT32                  Index,
151118611Snjl    ACPI_WALK_STATE         *WalkState,
152118611Snjl    ACPI_OPERAND_OBJECT     **DestDesc)
153118611Snjl{
154118611Snjl    return (AE_OK);
155118611Snjl}
156118611Snjl
157118611SnjlACPI_STATUS
158118611SnjlAcpiDsMethodDataGetNode (
159118611Snjl    UINT16                  Opcode,
160118611Snjl    UINT32                  Index,
161118611Snjl    ACPI_WALK_STATE         *WalkState,
162118611Snjl    ACPI_NAMESPACE_NODE     **Node)
163118611Snjl{
164118611Snjl    return (AE_OK);
165118611Snjl}
166118611Snjl
167118611SnjlACPI_STATUS
168118611SnjlAcpiDsStoreObjectToLocal (
169118611Snjl    UINT16                  Opcode,
170118611Snjl    UINT32                  Index,
171118611Snjl    ACPI_OPERAND_OBJECT     *SrcDesc,
172118611Snjl    ACPI_WALK_STATE         *WalkState)
173118611Snjl{
174118611Snjl    return (AE_OK);
175118611Snjl}
176118611Snjl
177118611SnjlACPI_STATUS
178118611SnjlAcpiEvDeleteGpeBlock (
179118611Snjl    ACPI_GPE_BLOCK_INFO     *GpeBlock)
180118611Snjl{
181118611Snjl    return (AE_OK);
182118611Snjl}
183118611Snjl
184118611SnjlACPI_STATUS
185118611SnjlAcpiEvQueueNotifyRequest (
186118611Snjl    ACPI_NAMESPACE_NODE     *Node,
187118611Snjl    UINT32                  NotifyValue)
188118611Snjl{
189118611Snjl    return (AE_OK);
190118611Snjl}
191118611Snjl
192118611SnjlBOOLEAN
193118611SnjlAcpiEvIsNotifyObject (
194118611Snjl    ACPI_NAMESPACE_NODE     *Node)
195118611Snjl{
196118611Snjl    return (FALSE);
197118611Snjl}
198118611Snjl
199118611SnjlACPI_STATUS
200118611SnjlAcpiEvAcquireGlobalLock(
201118611Snjl    UINT32                  Timeout)
202118611Snjl{
203118611Snjl    return (AE_OK);
204118611Snjl}
205118611Snjl
206118611SnjlACPI_STATUS
207118611SnjlAcpiEvReleaseGlobalLock(
208118611Snjl    void)
209118611Snjl{
210118611Snjl    return (AE_OK);
211118611Snjl}
212118611Snjl
213118611SnjlACPI_STATUS
214118611SnjlAcpiEvInitializeRegion (
215118611Snjl    ACPI_OPERAND_OBJECT     *RegionObj,
216118611Snjl    BOOLEAN                 AcpiNsLocked)
217118611Snjl{
218118611Snjl    return (AE_OK);
219118611Snjl}
220118611Snjl
221118611SnjlACPI_STATUS
222129684SnjlAcpiEvCheckForWakeOnlyGpe (
223129684Snjl    ACPI_GPE_EVENT_INFO     *GpeEventInfo)
224129684Snjl{
225129684Snjl    return (AE_OK);
226129684Snjl}
227129684Snjl
228129684SnjlACPI_STATUS
229118611SnjlAcpiExReadDataFromField (
230118611Snjl    ACPI_WALK_STATE         *WalkState,
231118611Snjl    ACPI_OPERAND_OBJECT     *ObjDesc,
232118611Snjl    ACPI_OPERAND_OBJECT     **RetBufferDesc)
233118611Snjl{
234118611Snjl    return (AE_SUPPORT);
235118611Snjl}
236118611Snjl
237118611SnjlACPI_STATUS
238118611SnjlAcpiExWriteDataToField (
239118611Snjl    ACPI_OPERAND_OBJECT     *SourceDesc,
240118611Snjl    ACPI_OPERAND_OBJECT     *ObjDesc,
241118611Snjl    ACPI_OPERAND_OBJECT     **ResultDesc)
242118611Snjl{
243118611Snjl    return (AE_SUPPORT);
244118611Snjl}
245118611Snjl
246118611SnjlACPI_STATUS
247118611SnjlAcpiExLoadTableOp (
248118611Snjl    ACPI_WALK_STATE         *WalkState,
249118611Snjl    ACPI_OPERAND_OBJECT     **ReturnDesc)
250118611Snjl{
251118611Snjl    return (AE_SUPPORT);
252118611Snjl}
253118611Snjl
254118611Snjl
255118611SnjlACPI_STATUS
256118611SnjlAcpiExUnloadTable (
257118611Snjl    ACPI_OPERAND_OBJECT     *DdbHandle)
258118611Snjl{
259118611Snjl    return (AE_SUPPORT);
260118611Snjl}
261118611Snjl
262118611SnjlACPI_STATUS
263118611SnjlAcpiExLoadOp (
264118611Snjl    ACPI_OPERAND_OBJECT     *ObjDesc,
265118611Snjl    ACPI_OPERAND_OBJECT     *Target,
266118611Snjl    ACPI_WALK_STATE         *WalkState)
267118611Snjl{
268118611Snjl    return (AE_SUPPORT);
269118611Snjl}
270118611Snjl
271118611SnjlACPI_STATUS
272118611SnjlAcpiTbFindTable (
273118611Snjl    char                    *Signature,
274118611Snjl    char                    *OemId,
275118611Snjl    char                    *OemTableId,
276167802Sjkim    ACPI_NATIVE_UINT        *TableIndex)
277118611Snjl{
278118611Snjl    return (AE_SUPPORT);
279118611Snjl}
280118611Snjl
281