aslstubs.c revision 281075
1/****************************************************************************** 2 * 3 * Module Name: aslstubs - Stubs used to link to Aml interpreter 4 * 5 *****************************************************************************/ 6 7/* 8 * Copyright (C) 2000 - 2015, Intel Corp. 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without 12 * modification, are permitted provided that the following conditions 13 * are met: 14 * 1. Redistributions of source code must retain the above copyright 15 * notice, this list of conditions, and the following disclaimer, 16 * without modification. 17 * 2. Redistributions in binary form must reproduce at minimum a disclaimer 18 * substantially similar to the "NO WARRANTY" disclaimer below 19 * ("Disclaimer") and any redistribution must be conditioned upon 20 * including a substantially similar Disclaimer requirement for further 21 * binary redistribution. 22 * 3. Neither the names of the above-listed copyright holders nor the names 23 * of any contributors may be used to endorse or promote products derived 24 * from this software without specific prior written permission. 25 * 26 * Alternatively, this software may be distributed under the terms of the 27 * GNU General Public License ("GPL") version 2 as published by the Free 28 * Software Foundation. 29 * 30 * NO WARRANTY 31 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 32 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 33 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR 34 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 35 * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 36 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 37 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 38 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 39 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 40 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 41 * POSSIBILITY OF SUCH DAMAGES. 42 */ 43 44#include <contrib/dev/acpica/compiler/aslcompiler.h> 45#include <contrib/dev/acpica/include/acdispat.h> 46#include <contrib/dev/acpica/include/actables.h> 47#include <contrib/dev/acpica/include/acevents.h> 48#include <contrib/dev/acpica/include/acinterp.h> 49#include <contrib/dev/acpica/include/acnamesp.h> 50 51#define _COMPONENT ACPI_COMPILER 52 ACPI_MODULE_NAME ("aslstubs") 53 54 55/* 56 * Stubs to simplify linkage to the ACPICA core subsystem. 57 * Things like Events, Global Lock, etc. are not used 58 * by the compiler, so they are stubbed out here. 59 */ 60void 61AcpiNsExecModuleCodeList ( 62 void) 63{ 64} 65 66ACPI_STATUS 67AcpiHwReadPort ( 68 ACPI_IO_ADDRESS Address, 69 UINT32 *Value, 70 UINT32 Width) 71{ 72 return (AE_OK); 73} 74 75ACPI_STATUS 76AcpiHwWritePort ( 77 ACPI_IO_ADDRESS Address, 78 UINT32 Value, 79 UINT32 Width) 80{ 81 return (AE_OK); 82} 83 84ACPI_STATUS 85AcpiDsMethodError ( 86 ACPI_STATUS Status, 87 ACPI_WALK_STATE *WalkState) 88{ 89 return (Status); 90} 91 92ACPI_STATUS 93AcpiDsMethodDataGetValue ( 94 UINT8 Type, 95 UINT32 Index, 96 ACPI_WALK_STATE *WalkState, 97 ACPI_OPERAND_OBJECT **DestDesc) 98{ 99 return (AE_OK); 100} 101 102ACPI_STATUS 103AcpiDsMethodDataGetNode ( 104 UINT8 Type, 105 UINT32 Index, 106 ACPI_WALK_STATE *WalkState, 107 ACPI_NAMESPACE_NODE **Node) 108{ 109 return (AE_OK); 110} 111 112ACPI_STATUS 113AcpiDsStoreObjectToLocal ( 114 UINT8 Type, 115 UINT32 Index, 116 ACPI_OPERAND_OBJECT *SrcDesc, 117 ACPI_WALK_STATE *WalkState) 118{ 119 return (AE_OK); 120} 121 122ACPI_STATUS 123AcpiEvQueueNotifyRequest ( 124 ACPI_NAMESPACE_NODE *Node, 125 UINT32 NotifyValue) 126{ 127 return (AE_OK); 128} 129 130BOOLEAN 131AcpiEvIsNotifyObject ( 132 ACPI_NAMESPACE_NODE *Node) 133{ 134 return (FALSE); 135} 136 137#if (!ACPI_REDUCED_HARDWARE) 138ACPI_STATUS 139AcpiEvDeleteGpeBlock ( 140 ACPI_GPE_BLOCK_INFO *GpeBlock) 141{ 142 return (AE_OK); 143} 144 145ACPI_STATUS 146AcpiEvAcquireGlobalLock ( 147 UINT16 Timeout) 148{ 149 return (AE_OK); 150} 151 152ACPI_STATUS 153AcpiEvReleaseGlobalLock ( 154 void) 155{ 156 return (AE_OK); 157} 158#endif /* !ACPI_REDUCED_HARDWARE */ 159 160ACPI_STATUS 161AcpiEvInitializeRegion ( 162 ACPI_OPERAND_OBJECT *RegionObj, 163 BOOLEAN AcpiNsLocked) 164{ 165 return (AE_OK); 166} 167 168void 169AcpiExDoDebugObject ( 170 ACPI_OPERAND_OBJECT *SourceDesc, 171 UINT32 Level, 172 UINT32 Index) 173{ 174 return; 175} 176 177ACPI_STATUS 178AcpiExReadDataFromField ( 179 ACPI_WALK_STATE *WalkState, 180 ACPI_OPERAND_OBJECT *ObjDesc, 181 ACPI_OPERAND_OBJECT **RetBufferDesc) 182{ 183 return (AE_SUPPORT); 184} 185 186ACPI_STATUS 187AcpiExWriteDataToField ( 188 ACPI_OPERAND_OBJECT *SourceDesc, 189 ACPI_OPERAND_OBJECT *ObjDesc, 190 ACPI_OPERAND_OBJECT **ResultDesc) 191{ 192 return (AE_SUPPORT); 193} 194 195ACPI_STATUS 196AcpiExLoadTableOp ( 197 ACPI_WALK_STATE *WalkState, 198 ACPI_OPERAND_OBJECT **ReturnDesc) 199{ 200 return (AE_SUPPORT); 201} 202 203ACPI_STATUS 204AcpiExUnloadTable ( 205 ACPI_OPERAND_OBJECT *DdbHandle) 206{ 207 return (AE_SUPPORT); 208} 209 210ACPI_STATUS 211AcpiExLoadOp ( 212 ACPI_OPERAND_OBJECT *ObjDesc, 213 ACPI_OPERAND_OBJECT *Target, 214 ACPI_WALK_STATE *WalkState) 215{ 216 return (AE_SUPPORT); 217} 218 219ACPI_STATUS 220AcpiTbFindTable ( 221 char *Signature, 222 char *OemId, 223 char *OemTableId, 224 UINT32 *TableIndex) 225{ 226 return (AE_SUPPORT); 227} 228