aslstubs.c revision 193529
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> 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 140193529SjkimAcpiHwReadPort ( 141193529Sjkim ACPI_IO_ADDRESS Address, 142193529Sjkim UINT32 *Value, 143193529Sjkim UINT32 Width) 144193529Sjkim{ 145193529Sjkim return (AE_OK); 146193529Sjkim} 147193529Sjkim 148193529SjkimACPI_STATUS 149193529SjkimAcpiHwWritePort ( 150193529Sjkim ACPI_IO_ADDRESS Address, 151193529Sjkim UINT32 Value, 152193529Sjkim UINT32 Width) 153193529Sjkim{ 154193529Sjkim return (AE_OK); 155193529Sjkim} 156193529Sjkim 157193529SjkimACPI_STATUS 158167802SjkimAcpiDsMethodError ( 159167802Sjkim ACPI_STATUS Status, 160167802Sjkim ACPI_WALK_STATE *WalkState) 161167802Sjkim{ 162167802Sjkim return (Status); 163167802Sjkim} 164167802Sjkim 165167802SjkimACPI_STATUS 166118611SnjlAcpiDsMethodDataGetValue ( 167193529Sjkim UINT8 Type, 168118611Snjl UINT32 Index, 169118611Snjl ACPI_WALK_STATE *WalkState, 170118611Snjl ACPI_OPERAND_OBJECT **DestDesc) 171118611Snjl{ 172118611Snjl return (AE_OK); 173118611Snjl} 174118611Snjl 175118611SnjlACPI_STATUS 176118611SnjlAcpiDsMethodDataGetNode ( 177193529Sjkim UINT8 Type, 178118611Snjl UINT32 Index, 179118611Snjl ACPI_WALK_STATE *WalkState, 180118611Snjl ACPI_NAMESPACE_NODE **Node) 181118611Snjl{ 182118611Snjl return (AE_OK); 183118611Snjl} 184118611Snjl 185118611SnjlACPI_STATUS 186118611SnjlAcpiDsStoreObjectToLocal ( 187193529Sjkim UINT8 Type, 188118611Snjl UINT32 Index, 189118611Snjl ACPI_OPERAND_OBJECT *SrcDesc, 190118611Snjl ACPI_WALK_STATE *WalkState) 191118611Snjl{ 192118611Snjl return (AE_OK); 193118611Snjl} 194118611Snjl 195118611SnjlACPI_STATUS 196118611SnjlAcpiEvDeleteGpeBlock ( 197118611Snjl ACPI_GPE_BLOCK_INFO *GpeBlock) 198118611Snjl{ 199118611Snjl return (AE_OK); 200118611Snjl} 201118611Snjl 202118611SnjlACPI_STATUS 203118611SnjlAcpiEvQueueNotifyRequest ( 204118611Snjl ACPI_NAMESPACE_NODE *Node, 205118611Snjl UINT32 NotifyValue) 206118611Snjl{ 207118611Snjl return (AE_OK); 208118611Snjl} 209118611Snjl 210118611SnjlBOOLEAN 211118611SnjlAcpiEvIsNotifyObject ( 212118611Snjl ACPI_NAMESPACE_NODE *Node) 213118611Snjl{ 214118611Snjl return (FALSE); 215118611Snjl} 216118611Snjl 217118611SnjlACPI_STATUS 218193529SjkimAcpiEvAcquireGlobalLock ( 219193529Sjkim UINT16 Timeout) 220118611Snjl{ 221118611Snjl return (AE_OK); 222118611Snjl} 223118611Snjl 224118611SnjlACPI_STATUS 225193529SjkimAcpiEvReleaseGlobalLock ( 226118611Snjl void) 227118611Snjl{ 228118611Snjl return (AE_OK); 229118611Snjl} 230118611Snjl 231118611SnjlACPI_STATUS 232118611SnjlAcpiEvInitializeRegion ( 233118611Snjl ACPI_OPERAND_OBJECT *RegionObj, 234118611Snjl BOOLEAN AcpiNsLocked) 235118611Snjl{ 236118611Snjl return (AE_OK); 237118611Snjl} 238118611Snjl 239118611SnjlACPI_STATUS 240129684SnjlAcpiEvCheckForWakeOnlyGpe ( 241129684Snjl ACPI_GPE_EVENT_INFO *GpeEventInfo) 242129684Snjl{ 243129684Snjl return (AE_OK); 244129684Snjl} 245129684Snjl 246129684SnjlACPI_STATUS 247118611SnjlAcpiExReadDataFromField ( 248118611Snjl ACPI_WALK_STATE *WalkState, 249118611Snjl ACPI_OPERAND_OBJECT *ObjDesc, 250118611Snjl ACPI_OPERAND_OBJECT **RetBufferDesc) 251118611Snjl{ 252118611Snjl return (AE_SUPPORT); 253118611Snjl} 254118611Snjl 255118611SnjlACPI_STATUS 256118611SnjlAcpiExWriteDataToField ( 257118611Snjl ACPI_OPERAND_OBJECT *SourceDesc, 258118611Snjl ACPI_OPERAND_OBJECT *ObjDesc, 259118611Snjl ACPI_OPERAND_OBJECT **ResultDesc) 260118611Snjl{ 261118611Snjl return (AE_SUPPORT); 262118611Snjl} 263118611Snjl 264118611SnjlACPI_STATUS 265118611SnjlAcpiExLoadTableOp ( 266118611Snjl ACPI_WALK_STATE *WalkState, 267118611Snjl ACPI_OPERAND_OBJECT **ReturnDesc) 268118611Snjl{ 269118611Snjl return (AE_SUPPORT); 270118611Snjl} 271118611Snjl 272118611Snjl 273118611SnjlACPI_STATUS 274118611SnjlAcpiExUnloadTable ( 275118611Snjl ACPI_OPERAND_OBJECT *DdbHandle) 276118611Snjl{ 277118611Snjl return (AE_SUPPORT); 278118611Snjl} 279118611Snjl 280118611SnjlACPI_STATUS 281118611SnjlAcpiExLoadOp ( 282118611Snjl ACPI_OPERAND_OBJECT *ObjDesc, 283118611Snjl ACPI_OPERAND_OBJECT *Target, 284118611Snjl ACPI_WALK_STATE *WalkState) 285118611Snjl{ 286118611Snjl return (AE_SUPPORT); 287118611Snjl} 288118611Snjl 289118611SnjlACPI_STATUS 290118611SnjlAcpiTbFindTable ( 291118611Snjl char *Signature, 292118611Snjl char *OemId, 293118611Snjl char *OemTableId, 294193529Sjkim UINT32 *TableIndex) 295118611Snjl{ 296118611Snjl return (AE_SUPPORT); 297118611Snjl} 298118611Snjl 299