aslstubs.c revision 118611
1118611Snjl 2118611Snjl/****************************************************************************** 3118611Snjl * 4118611Snjl * Module Name: aslstubs - Stubs used to link to Aml interpreter 5118611Snjl * $Revision: 11 $ 6118611Snjl * 7118611Snjl *****************************************************************************/ 8118611Snjl 9118611Snjl/****************************************************************************** 10118611Snjl * 11118611Snjl * 1. Copyright Notice 12118611Snjl * 13118611Snjl * Some or all of this work - Copyright (c) 1999 - 2003, 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> 119118611Snjl#include "aslcompiler.h" 120118611Snjl#include "acdispat.h" 121118611Snjl#include "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 */ 132118611SnjlACPI_STATUS 133118611SnjlAeLocalGetRootPointer ( 134118611Snjl UINT32 Flags, 135118611Snjl ACPI_PHYSICAL_ADDRESS *RsdpPhysicalAddress) 136118611Snjl{ 137118611Snjl return AE_ERROR; 138118611Snjl} 139118611Snjl 140118611SnjlACPI_STATUS 141118611SnjlAcpiDsMethodDataGetValue ( 142118611Snjl UINT16 Opcode, 143118611Snjl UINT32 Index, 144118611Snjl ACPI_WALK_STATE *WalkState, 145118611Snjl ACPI_OPERAND_OBJECT **DestDesc) 146118611Snjl{ 147118611Snjl return (AE_OK); 148118611Snjl} 149118611Snjl 150118611SnjlACPI_STATUS 151118611SnjlAcpiDsMethodDataGetNode ( 152118611Snjl UINT16 Opcode, 153118611Snjl UINT32 Index, 154118611Snjl ACPI_WALK_STATE *WalkState, 155118611Snjl ACPI_NAMESPACE_NODE **Node) 156118611Snjl{ 157118611Snjl return (AE_OK); 158118611Snjl} 159118611Snjl 160118611SnjlACPI_STATUS 161118611SnjlAcpiDsStoreObjectToLocal ( 162118611Snjl UINT16 Opcode, 163118611Snjl UINT32 Index, 164118611Snjl ACPI_OPERAND_OBJECT *SrcDesc, 165118611Snjl ACPI_WALK_STATE *WalkState) 166118611Snjl{ 167118611Snjl return (AE_OK); 168118611Snjl} 169118611Snjl 170118611SnjlACPI_STATUS 171118611SnjlAcpiEvDeleteGpeBlock ( 172118611Snjl ACPI_GPE_BLOCK_INFO *GpeBlock) 173118611Snjl{ 174118611Snjl return (AE_OK); 175118611Snjl} 176118611Snjl 177118611SnjlACPI_STATUS 178118611SnjlAcpiEvQueueNotifyRequest ( 179118611Snjl ACPI_NAMESPACE_NODE *Node, 180118611Snjl UINT32 NotifyValue) 181118611Snjl{ 182118611Snjl return (AE_OK); 183118611Snjl} 184118611Snjl 185118611SnjlBOOLEAN 186118611SnjlAcpiEvIsNotifyObject ( 187118611Snjl ACPI_NAMESPACE_NODE *Node) 188118611Snjl{ 189118611Snjl return (FALSE); 190118611Snjl} 191118611Snjl 192118611SnjlACPI_STATUS 193118611SnjlAcpiEvAcquireGlobalLock( 194118611Snjl UINT32 Timeout) 195118611Snjl{ 196118611Snjl return (AE_OK); 197118611Snjl} 198118611Snjl 199118611SnjlACPI_STATUS 200118611SnjlAcpiEvReleaseGlobalLock( 201118611Snjl void) 202118611Snjl{ 203118611Snjl return (AE_OK); 204118611Snjl} 205118611Snjl 206118611SnjlACPI_STATUS 207118611SnjlAcpiEvInitializeRegion ( 208118611Snjl ACPI_OPERAND_OBJECT *RegionObj, 209118611Snjl BOOLEAN AcpiNsLocked) 210118611Snjl{ 211118611Snjl return (AE_OK); 212118611Snjl} 213118611Snjl 214118611SnjlACPI_STATUS 215118611SnjlAcpiExReadDataFromField ( 216118611Snjl ACPI_WALK_STATE *WalkState, 217118611Snjl ACPI_OPERAND_OBJECT *ObjDesc, 218118611Snjl ACPI_OPERAND_OBJECT **RetBufferDesc) 219118611Snjl{ 220118611Snjl return (AE_SUPPORT); 221118611Snjl} 222118611Snjl 223118611SnjlACPI_STATUS 224118611SnjlAcpiExWriteDataToField ( 225118611Snjl ACPI_OPERAND_OBJECT *SourceDesc, 226118611Snjl ACPI_OPERAND_OBJECT *ObjDesc, 227118611Snjl ACPI_OPERAND_OBJECT **ResultDesc) 228118611Snjl{ 229118611Snjl return (AE_SUPPORT); 230118611Snjl} 231118611Snjl 232118611SnjlACPI_STATUS 233118611SnjlAcpiExLoadTableOp ( 234118611Snjl ACPI_WALK_STATE *WalkState, 235118611Snjl ACPI_OPERAND_OBJECT **ReturnDesc) 236118611Snjl{ 237118611Snjl return (AE_SUPPORT); 238118611Snjl} 239118611Snjl 240118611Snjl 241118611SnjlACPI_STATUS 242118611SnjlAcpiExUnloadTable ( 243118611Snjl ACPI_OPERAND_OBJECT *DdbHandle) 244118611Snjl{ 245118611Snjl return (AE_SUPPORT); 246118611Snjl} 247118611Snjl 248118611SnjlACPI_STATUS 249118611SnjlAcpiExLoadOp ( 250118611Snjl ACPI_OPERAND_OBJECT *ObjDesc, 251118611Snjl ACPI_OPERAND_OBJECT *Target, 252118611Snjl ACPI_WALK_STATE *WalkState) 253118611Snjl{ 254118611Snjl return (AE_SUPPORT); 255118611Snjl} 256118611Snjl 257118611SnjlACPI_STATUS 258118611SnjlAcpiTbFindTable ( 259118611Snjl char *Signature, 260118611Snjl char *OemId, 261118611Snjl char *OemTableId, 262118611Snjl ACPI_TABLE_HEADER **TablePtr) 263118611Snjl{ 264118611Snjl return (AE_SUPPORT); 265118611Snjl} 266118611Snjl 267