1 /******************************************************************************
3 * Module Name: anstubs - Stub routines for the AcpiNames utility
5 *****************************************************************************/
8 * Copyright (C) 2000 - 2013, Intel Corp.
11 * Redistribution and use in source and binary forms, with or without
12 * modification, are permitted provided that the following conditions
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.
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.
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.
44 #include "acpinames.h"
50 #define _COMPONENT ACPI_TOOLS
51 ACPI_MODULE_NAME ("anstubs")
54 /******************************************************************************
56 * DESCRIPTION: Stubs used to facilitate linkage of the NsDump utility.
58 *****************************************************************************/
64 AcpiUtSubsystemShutdown (
71 ACPI_NAMESPACE_NODE
*DeviceNode
,
74 return (AE_NOT_IMPLEMENTED
);
79 ACPI_NAMESPACE_NODE
*DeviceNode
,
80 ACPI_PNP_DEVICE_ID
**ReturnId
)
82 return (AE_NOT_IMPLEMENTED
);
87 ACPI_NAMESPACE_NODE
*DeviceNode
,
88 ACPI_PNP_DEVICE_ID_LIST
**ReturnCidList
)
90 return (AE_NOT_IMPLEMENTED
);
95 ACPI_NAMESPACE_NODE
*DeviceNode
,
96 ACPI_PNP_DEVICE_ID
**ReturnId
)
98 return (AE_NOT_IMPLEMENTED
);
103 ACPI_NAMESPACE_NODE
*DeviceNode
,
104 ACPI_PNP_DEVICE_ID
**ReturnId
)
106 return (AE_NOT_IMPLEMENTED
);
110 AcpiUtExecutePowerMethods (
111 ACPI_NAMESPACE_NODE
*DeviceNode
,
112 const char **MethodNames
,
116 return (AE_NOT_IMPLEMENTED
);
120 AcpiUtEvaluateNumericObject (
122 ACPI_NAMESPACE_NODE
*DeviceNode
,
125 return (AE_NOT_IMPLEMENTED
);
129 AcpiUtCopyIobjectToEobject (
130 ACPI_OPERAND_OBJECT
*Obj
,
131 ACPI_BUFFER
*RetBuffer
)
133 return (AE_NOT_IMPLEMENTED
);
137 AcpiUtCopyEobjectToIobject (
139 ACPI_OPERAND_OBJECT
**InternalObj
)
141 return (AE_NOT_IMPLEMENTED
);
145 AcpiUtCopyIobjectToIobject (
146 ACPI_OPERAND_OBJECT
*SourceDesc
,
147 ACPI_OPERAND_OBJECT
**DestDesc
,
148 ACPI_WALK_STATE
*WalkState
)
150 return (AE_NOT_IMPLEMENTED
);
154 /* Hardware manager */
167 AcpiEvInstallXruptHandlers (
174 AcpiEvInitializeEvents (
181 AcpiEvInstallRegionHandlers (
188 AcpiEvInitializeOpRegions (
195 AcpiEvInitializeRegion (
196 ACPI_OPERAND_OBJECT
*RegionObj
,
197 BOOLEAN AcpiNsLocked
)
202 #if (!ACPI_REDUCED_HARDWARE)
204 AcpiEvDeleteGpeBlock (
205 ACPI_GPE_BLOCK_INFO
*GpeBlock
)
216 #endif /* !ACPI_REDUCED_HARDWARE */
219 /* AML Interpreter */
223 ACPI_OPERAND_OBJECT
*ObjDesc
)
228 AcpiExReleaseAllMutexes (
229 ACPI_THREAD_STATE
*Thread
)
234 AcpiExReadDataFromField (
235 ACPI_WALK_STATE
*WalkState
,
236 ACPI_OPERAND_OBJECT
*ObjDesc
,
237 ACPI_OPERAND_OBJECT
**RetBufferDesc
)
239 return (AE_NOT_IMPLEMENTED
);
243 AcpiExWriteDataToField (
244 ACPI_OPERAND_OBJECT
*SourceDesc
,
245 ACPI_OPERAND_OBJECT
*ObjDesc
,
246 ACPI_OPERAND_OBJECT
**ResultDesc
)
248 return (AE_NOT_IMPLEMENTED
);
252 AcpiExPrepFieldValue (
253 ACPI_CREATE_FIELD_INFO
*Info
)
259 AcpiExAcquireMutexObject (
261 ACPI_OPERAND_OBJECT
*ObjDesc
,
262 ACPI_THREAD_ID ThreadId
)
268 AcpiExReleaseMutexObject (
269 ACPI_OPERAND_OBJECT
*ObjDesc
)
275 AcpiExStoreObjectToNode (
276 ACPI_OPERAND_OBJECT
*SourceDesc
,
277 ACPI_NAMESPACE_NODE
*Node
,
278 ACPI_WALK_STATE
*WalkState
,
279 UINT8 ImplicitConversion
)
281 return (AE_NOT_IMPLEMENTED
);
285 /* Namespace manager */
289 ACPI_EVALUATE_INFO
*Info
)
291 return (AE_NOT_IMPLEMENTED
);
295 AcpiNsExecModuleCodeList (
304 AcpiDsInitializeObjects (
306 ACPI_NAMESPACE_NODE
*StartNode
)
312 AcpiDsCallControlMethod (
313 ACPI_THREAD_STATE
*Thread
,
314 ACPI_WALK_STATE
*WalkState
,
315 ACPI_PARSE_OBJECT
*Op
)
317 return (AE_NOT_IMPLEMENTED
);
321 AcpiDsRestartControlMethod (
322 ACPI_WALK_STATE
*WalkState
,
323 ACPI_OPERAND_OBJECT
*ReturnDesc
)
325 return (AE_NOT_IMPLEMENTED
);
329 AcpiDsTerminateControlMethod (
330 ACPI_OPERAND_OBJECT
*MethodDesc
,
331 ACPI_WALK_STATE
*WalkState
)
338 ACPI_WALK_STATE
*WalkState
)
340 return (AE_NOT_IMPLEMENTED
);
344 AcpiDsBeginMethodExecution (
345 ACPI_NAMESPACE_NODE
*MethodNode
,
346 ACPI_OPERAND_OBJECT
*ObjDesc
,
347 ACPI_WALK_STATE
*WalkState
)
349 return (AE_NOT_IMPLEMENTED
);
353 AcpiDsGetPredicateValue (
354 ACPI_WALK_STATE
*WalkState
,
355 ACPI_OPERAND_OBJECT
*ResultObj
)
357 return (AE_NOT_IMPLEMENTED
);
361 AcpiDsGetBufferFieldArguments (
362 ACPI_OPERAND_OBJECT
*ObjDesc
)
368 AcpiDsGetBankFieldArguments (
369 ACPI_OPERAND_OBJECT
*ObjDesc
)
375 AcpiDsGetRegionArguments (
376 ACPI_OPERAND_OBJECT
*RgnDesc
)
382 AcpiDsGetBufferArguments (
383 ACPI_OPERAND_OBJECT
*ObjDesc
)
389 AcpiDsGetPackageArguments (
390 ACPI_OPERAND_OBJECT
*ObjDesc
)
397 ACPI_WALK_STATE
*WalkState
,
398 ACPI_PARSE_OBJECT
**OutOp
)
400 return (AE_NOT_IMPLEMENTED
);
405 ACPI_WALK_STATE
*State
)
407 return (AE_NOT_IMPLEMENTED
);
414 AcpiDbDisplayArgumentObject (
415 ACPI_OPERAND_OBJECT
*ObjDesc
,
416 ACPI_WALK_STATE
*WalkState
)
444 ACPI_EXECUTE_TYPE Type
,
445 ACPI_OSD_EXEC_CALLBACK Function
,