1 /******************************************************************************
3 * Name: acutils.h -- prototypes for the common (subsystem-wide) procedures
5 *****************************************************************************/
7 /******************************************************************************
11 * Some or all of this work - Copyright (c) 1999 - 2017, Intel Corp.
12 * All rights reserved.
16 * 2.1. This is your license from Intel Corp. under its intellectual property
17 * rights. You may have additional license terms from the party that provided
18 * you this software, covering your right to use that party's intellectual
21 * 2.2. Intel grants, free of charge, to any person ("Licensee") obtaining a
22 * copy of the source code appearing in this file ("Covered Code") an
23 * irrevocable, perpetual, worldwide license under Intel's copyrights in the
24 * base code distributed originally by Intel ("Original Intel Code") to copy,
25 * make derivatives, distribute, use and display any portion of the Covered
26 * Code in any form, with the right to sublicense such rights; and
28 * 2.3. Intel grants Licensee a non-exclusive and non-transferable patent
29 * license (with the right to sublicense), under only those claims of Intel
30 * patents that are infringed by the Original Intel Code, to make, use, sell,
31 * offer to sell, and import the Covered Code and derivative works thereof
32 * solely to the minimum extent necessary to exercise the above copyright
33 * license, and in no event shall the patent license extend to any additions
34 * to or modifications of the Original Intel Code. No other license or right
35 * is granted directly or by implication, estoppel or otherwise;
37 * The above copyright and patent license is granted only if the following
42 * 3.1. Redistribution of Source with Rights to Further Distribute Source.
43 * Redistribution of source code of any substantial portion of the Covered
44 * Code or modification with rights to further distribute source must include
45 * the above Copyright Notice, the above License, this list of Conditions,
46 * and the following Disclaimer and Export Compliance provision. In addition,
47 * Licensee must cause all Covered Code to which Licensee contributes to
48 * contain a file documenting the changes Licensee made to create that Covered
49 * Code and the date of any change. Licensee must include in that file the
50 * documentation of any changes made by any predecessor Licensee. Licensee
51 * must include a prominent statement that the modification is derived,
52 * directly or indirectly, from Original Intel Code.
54 * 3.2. Redistribution of Source with no Rights to Further Distribute Source.
55 * Redistribution of source code of any substantial portion of the Covered
56 * Code or modification without rights to further distribute source must
57 * include the following Disclaimer and Export Compliance provision in the
58 * documentation and/or other materials provided with distribution. In
59 * addition, Licensee may not authorize further sublicense of source of any
60 * portion of the Covered Code, and must include terms to the effect that the
61 * license from Licensee to its licensee is limited to the intellectual
62 * property embodied in the software Licensee provides to its licensee, and
63 * not to intellectual property embodied in modifications its licensee may
66 * 3.3. Redistribution of Executable. Redistribution in executable form of any
67 * substantial portion of the Covered Code or modification must reproduce the
68 * above Copyright Notice, and the following Disclaimer and Export Compliance
69 * provision in the documentation and/or other materials provided with the
72 * 3.4. Intel retains all right, title, and interest in and to the Original
75 * 3.5. Neither the name Intel nor any other trademark owned or controlled by
76 * Intel shall be used in advertising or otherwise to promote the sale, use or
77 * other dealings in products derived from or relating to the Covered Code
78 * without prior written authorization from Intel.
80 * 4. Disclaimer and Export Compliance
82 * 4.1. INTEL MAKES NO WARRANTY OF ANY KIND REGARDING ANY SOFTWARE PROVIDED
83 * HERE. ANY SOFTWARE ORIGINATING FROM INTEL OR DERIVED FROM INTEL SOFTWARE
84 * IS PROVIDED "AS IS," AND INTEL WILL NOT PROVIDE ANY SUPPORT, ASSISTANCE,
85 * INSTALLATION, TRAINING OR OTHER SERVICES. INTEL WILL NOT PROVIDE ANY
86 * UPDATES, ENHANCEMENTS OR EXTENSIONS. INTEL SPECIFICALLY DISCLAIMS ANY
87 * IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT AND FITNESS FOR A
90 * 4.2. IN NO EVENT SHALL INTEL HAVE ANY LIABILITY TO LICENSEE, ITS LICENSEES
91 * OR ANY OTHER THIRD PARTY, FOR ANY LOST PROFITS, LOST DATA, LOSS OF USE OR
92 * COSTS OF PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, OR FOR ANY INDIRECT,
93 * SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THIS AGREEMENT, UNDER ANY
94 * CAUSE OF ACTION OR THEORY OF LIABILITY, AND IRRESPECTIVE OF WHETHER INTEL
95 * HAS ADVANCE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES. THESE LIMITATIONS
96 * SHALL APPLY NOTWITHSTANDING THE FAILURE OF THE ESSENTIAL PURPOSE OF ANY
99 * 4.3. Licensee shall not export, either directly or indirectly, any of this
100 * software or system incorporating such software without first obtaining any
101 * required license or other approval from the U. S. Department of Commerce or
102 * any other agency or department of the United States Government. In the
103 * event Licensee exports any such software from the United States or
104 * re-exports any such software from a foreign destination, Licensee shall
105 * ensure that the distribution and export/re-export of the software is in
106 * compliance with all laws, regulations, orders, or other restrictions of the
107 * U.S. Export Administration Regulations. Licensee agrees that neither it nor
108 * any of its subsidiaries will export/re-export any technical data, process,
109 * software, or service, directly or indirectly, to any country for which the
110 * United States government or any agency thereof requires an export license,
111 * other governmental approval, or letter of assurance, without first obtaining
112 * such license, approval or letter.
114 *****************************************************************************
116 * Alternatively, you may choose to be licensed under the terms of the
119 * Redistribution and use in source and binary forms, with or without
120 * modification, are permitted provided that the following conditions
122 * 1. Redistributions of source code must retain the above copyright
123 * notice, this list of conditions, and the following disclaimer,
124 * without modification.
125 * 2. Redistributions in binary form must reproduce at minimum a disclaimer
126 * substantially similar to the "NO WARRANTY" disclaimer below
127 * ("Disclaimer") and any redistribution must be conditioned upon
128 * including a substantially similar Disclaimer requirement for further
129 * binary redistribution.
130 * 3. Neither the names of the above-listed copyright holders nor the names
131 * of any contributors may be used to endorse or promote products derived
132 * from this software without specific prior written permission.
134 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
135 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
136 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
137 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
138 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
139 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
140 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
141 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
142 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
143 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
144 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
146 * Alternatively, you may choose to be licensed under the terms of the
147 * GNU General Public License ("GPL") version 2 as published by the Free
148 * Software Foundation.
150 *****************************************************************************/
156 extern const UINT8 AcpiGbl_ResourceAmlSizes[];
157 extern const UINT8 AcpiGbl_ResourceAmlSerialBusSizes[];
159 /* Strings used by the disassembler and debugger resource dump routines */
161 #if defined(ACPI_DEBUG_OUTPUT) || defined (ACPI_DISASSEMBLER) || defined (ACPI_DEBUGGER)
163 extern const char *AcpiGbl_BmDecode[];
164 extern const char *AcpiGbl_ConfigDecode[];
165 extern const char *AcpiGbl_ConsumeDecode[];
166 extern const char *AcpiGbl_DecDecode[];
167 extern const char *AcpiGbl_HeDecode[];
168 extern const char *AcpiGbl_IoDecode[];
169 extern const char *AcpiGbl_LlDecode[];
170 extern const char *AcpiGbl_MaxDecode[];
171 extern const char *AcpiGbl_MemDecode[];
172 extern const char *AcpiGbl_MinDecode[];
173 extern const char *AcpiGbl_MtpDecode[];
174 extern const char *AcpiGbl_RngDecode[];
175 extern const char *AcpiGbl_RwDecode[];
176 extern const char *AcpiGbl_ShrDecode[];
177 extern const char *AcpiGbl_SizDecode[];
178 extern const char *AcpiGbl_TrsDecode[];
179 extern const char *AcpiGbl_TtpDecode[];
180 extern const char *AcpiGbl_TypDecode[];
181 extern const char *AcpiGbl_PpcDecode[];
182 extern const char *AcpiGbl_IorDecode[];
183 extern const char *AcpiGbl_DtsDecode[];
184 extern const char *AcpiGbl_CtDecode[];
185 extern const char *AcpiGbl_SbtDecode[];
186 extern const char *AcpiGbl_AmDecode[];
187 extern const char *AcpiGbl_SmDecode[];
188 extern const char *AcpiGbl_WmDecode[];
189 extern const char *AcpiGbl_CphDecode[];
190 extern const char *AcpiGbl_CpoDecode[];
191 extern const char *AcpiGbl_DpDecode[];
192 extern const char *AcpiGbl_EdDecode[];
193 extern const char *AcpiGbl_BpbDecode[];
194 extern const char *AcpiGbl_SbDecode[];
195 extern const char *AcpiGbl_FcDecode[];
196 extern const char *AcpiGbl_PtDecode[];
200 * For the iASL compiler case, the output is redirected to stderr so that
201 * any of the various ACPI errors and warnings do not appear in the output
202 * files, for either the compiler or disassembler portions of the tool.
204 #ifdef ACPI_ASL_COMPILER
208 #define ACPI_MSG_REDIRECT_BEGIN \
209 FILE *OutputFile = AcpiGbl_OutputFile; \
210 AcpiOsRedirectOutput (stderr);
212 #define ACPI_MSG_REDIRECT_END \
213 AcpiOsRedirectOutput (OutputFile);
217 * non-iASL case - no redirection, nothing to do
219 #define ACPI_MSG_REDIRECT_BEGIN
220 #define ACPI_MSG_REDIRECT_END
224 * Common error message prefixes
226 #ifndef ACPI_MSG_ERROR
227 #define ACPI_MSG_ERROR "ACPI Error: "
229 #ifndef ACPI_MSG_EXCEPTION
230 #define ACPI_MSG_EXCEPTION "ACPI Exception: "
232 #ifndef ACPI_MSG_WARNING
233 #define ACPI_MSG_WARNING "ACPI Warning: "
235 #ifndef ACPI_MSG_INFO
236 #define ACPI_MSG_INFO "ACPI: "
239 #ifndef ACPI_MSG_BIOS_ERROR
240 #define ACPI_MSG_BIOS_ERROR "ACPI BIOS Error (bug): "
242 #ifndef ACPI_MSG_BIOS_WARNING
243 #define ACPI_MSG_BIOS_WARNING "ACPI BIOS Warning (bug): "
247 * Common message suffix
249 #define ACPI_MSG_SUFFIX \
250 AcpiOsPrintf (" (%8.8X/%s-%u)\n", ACPI_CA_VERSION, ModuleName, LineNumber)
253 /* Types for Resource descriptor entries */
255 #define ACPI_INVALID_RESOURCE 0
256 #define ACPI_FIXED_LENGTH 1
257 #define ACPI_VARIABLE_LENGTH 2
258 #define ACPI_SMALL_VARIABLE_LENGTH 3
261 ACPI_STATUS (*ACPI_WALK_AML_CALLBACK) (
269 ACPI_STATUS (*ACPI_PKG_CALLBACK) (
271 ACPI_OPERAND_OBJECT *SourceObject,
272 ACPI_GENERIC_STATE *State,
275 typedef struct acpi_pkg_info
284 /* Object reference counts */
286 #define REF_INCREMENT (UINT16) 0
287 #define REF_DECREMENT (UINT16) 1
289 /* AcpiUtDumpBuffer */
291 #define DB_BYTE_DISPLAY 1
292 #define DB_WORD_DISPLAY 2
293 #define DB_DWORD_DISPLAY 4
294 #define DB_QWORD_DISPLAY 8
298 * utascii - ASCII utilities
305 AcpiUtValidNameChar (
310 AcpiUtCheckAndRepairAscii (
317 * utnonansi - Non-ANSI C library functions
339 * Values for Flags above
340 * Note: LIMIT values correspond to AcpiGbl_IntegerByteWidth values (4/8)
342 #define ACPI_STRTOUL_32BIT 0x04 /* 4 bytes */
343 #define ACPI_STRTOUL_64BIT 0x08 /* 8 bytes */
344 #define ACPI_STRTOUL_BASE16 0x10 /* Default: Base10/16 */
348 * utglobal - Global data structures and procedures
354 #if defined(ACPI_DEBUG_OUTPUT) || defined(ACPI_DEBUGGER)
361 AcpiUtGetNotifyName (
363 ACPI_OBJECT_TYPE Type);
368 ACPI_OBJECT_TYPE Type);
375 AcpiUtGetDescriptorName (
379 AcpiUtGetReferenceName (
380 ACPI_OPERAND_OBJECT *Object);
383 AcpiUtGetObjectTypeName (
384 ACPI_OPERAND_OBJECT *ObjDesc);
387 AcpiUtGetRegionName (
395 AcpiUtGetArgumentTypeName (
399 AcpiUtHexToAsciiChar (
404 AcpiUtAsciiToHexByte (
409 AcpiUtAsciiCharToHex (
413 AcpiUtValidObjectType (
414 ACPI_OBJECT_TYPE Type);
418 * utinit - miscellaneous initialization and shutdown
421 AcpiUtHardwareInitialize (
425 AcpiUtSubsystemShutdown (
430 * utcopy - Object construction and conversion interfaces
433 AcpiUtBuildSimpleObject(
434 ACPI_OPERAND_OBJECT *Obj,
435 ACPI_OBJECT *UserObj,
437 UINT32 *BufferSpaceUsed);
440 AcpiUtBuildPackageObject (
441 ACPI_OPERAND_OBJECT *Obj,
446 AcpiUtCopyIobjectToEobject (
447 ACPI_OPERAND_OBJECT *Obj,
448 ACPI_BUFFER *RetBuffer);
451 AcpiUtCopyEobjectToIobject (
453 ACPI_OPERAND_OBJECT **InternalObj);
456 AcpiUtCopyISimpleToIsimple (
457 ACPI_OPERAND_OBJECT *SourceObj,
458 ACPI_OPERAND_OBJECT *DestObj);
461 AcpiUtCopyIobjectToIobject (
462 ACPI_OPERAND_OBJECT *SourceDesc,
463 ACPI_OPERAND_OBJECT **DestDesc,
464 ACPI_WALK_STATE *WalkState);
468 * utcreate - Object creation
471 AcpiUtUpdateObjectReference (
472 ACPI_OPERAND_OBJECT *Object,
477 * utdebug - Debug interfaces
480 AcpiUtInitStackPtrTrace (
484 AcpiUtTrackStackPtr (
490 const char *FunctionName,
491 const char *ModuleName,
497 const char *FunctionName,
498 const char *ModuleName,
500 const void *Pointer);
505 const char *FunctionName,
506 const char *ModuleName,
513 const char *FunctionName,
514 const char *ModuleName,
521 const char *FunctionName,
522 const char *ModuleName,
528 const char *FunctionName,
529 const char *ModuleName,
536 const char *FunctionName,
537 const char *ModuleName,
544 const char *FunctionName,
545 const char *ModuleName,
552 const char *FunctionName,
553 const char *ModuleName,
558 AcpiUtDebugDumpBuffer (
571 #ifdef ACPI_APPLICATION
573 AcpiUtDumpBufferToFile (
592 AcpiUtReportWarning (
598 * utdelete - Object deletion and reference counts
602 ACPI_OPERAND_OBJECT *Object);
605 AcpiUtRemoveReference (
606 ACPI_OPERAND_OBJECT *Object);
609 AcpiUtDeleteInternalPackageObject (
610 ACPI_OPERAND_OBJECT *Object);
613 AcpiUtDeleteInternalSimpleObject (
614 ACPI_OPERAND_OBJECT *Object);
617 AcpiUtDeleteInternalObjectList (
618 ACPI_OPERAND_OBJECT **ObjList);
622 * uteval - object evaluation
625 AcpiUtEvaluateObject (
626 ACPI_NAMESPACE_NODE *PrefixNode,
628 UINT32 ExpectedReturnBtypes,
629 ACPI_OPERAND_OBJECT **ReturnDesc);
632 AcpiUtEvaluateNumericObject (
633 const char *ObjectName,
634 ACPI_NAMESPACE_NODE *DeviceNode,
639 ACPI_NAMESPACE_NODE *DeviceNode,
640 UINT32 *StatusFlags);
643 AcpiUtExecutePowerMethods (
644 ACPI_NAMESPACE_NODE *DeviceNode,
645 const char **MethodNames,
651 * utids - device ID support
655 ACPI_NAMESPACE_NODE *DeviceNode,
656 ACPI_PNP_DEVICE_ID **ReturnId);
660 ACPI_NAMESPACE_NODE *DeviceNode,
661 ACPI_PNP_DEVICE_ID **ReturnId);
665 ACPI_NAMESPACE_NODE *DeviceNode,
666 ACPI_PNP_DEVICE_ID_LIST **ReturnCidList);
670 ACPI_NAMESPACE_NODE *DeviceNode,
671 ACPI_PNP_DEVICE_ID **ReturnId);
675 * utlock - reader/writer locks
686 AcpiUtAcquireReadLock (
690 AcpiUtReleaseReadLock (
694 AcpiUtAcquireWriteLock (
698 AcpiUtReleaseWriteLock (
703 * utobject - internal object create/delete/cache routines
705 ACPI_OPERAND_OBJECT *
706 AcpiUtCreateInternalObjectDbg (
707 const char *ModuleName,
710 ACPI_OBJECT_TYPE Type);
713 AcpiUtAllocateObjectDescDbg (
714 const char *ModuleName,
718 #define AcpiUtCreateInternalObject(t) AcpiUtCreateInternalObjectDbg (_AcpiModuleName,__LINE__,_COMPONENT,t)
719 #define AcpiUtAllocateObjectDesc() AcpiUtAllocateObjectDescDbg (_AcpiModuleName,__LINE__,_COMPONENT)
722 AcpiUtDeleteObjectDesc (
723 ACPI_OPERAND_OBJECT *Object);
726 AcpiUtValidInternalObject (
729 ACPI_OPERAND_OBJECT *
730 AcpiUtCreatePackageObject (
733 ACPI_OPERAND_OBJECT *
734 AcpiUtCreateIntegerObject (
737 ACPI_OPERAND_OBJECT *
738 AcpiUtCreateBufferObject (
739 ACPI_SIZE BufferSize);
741 ACPI_OPERAND_OBJECT *
742 AcpiUtCreateStringObject (
743 ACPI_SIZE StringSize);
747 ACPI_OPERAND_OBJECT *Obj,
748 ACPI_SIZE *ObjLength);
752 * utosi - Support for the _OSI predefined control method
755 AcpiUtInitializeInterfaces (
759 AcpiUtInterfaceTerminate (
763 AcpiUtInstallInterface (
764 ACPI_STRING InterfaceName);
767 AcpiUtRemoveInterface (
768 ACPI_STRING InterfaceName);
771 AcpiUtUpdateInterfaces (
774 ACPI_INTERFACE_INFO *
776 ACPI_STRING InterfaceName);
779 AcpiUtOsiImplementation (
780 ACPI_WALK_STATE *WalkState);
784 * utpredef - support for predefined names
786 const ACPI_PREDEFINED_INFO *
787 AcpiUtGetNextPredefinedMethod (
788 const ACPI_PREDEFINED_INFO *ThisName);
790 const ACPI_PREDEFINED_INFO *
791 AcpiUtMatchPredefinedMethod (
795 AcpiUtGetExpectedReturnTypes (
797 UINT32 ExpectedBtypes);
799 #if (defined ACPI_ASL_COMPILER || defined ACPI_HELP_APP)
800 const ACPI_PREDEFINED_INFO *
801 AcpiUtMatchResourceName (
805 AcpiUtDisplayPredefinedMethod (
807 const ACPI_PREDEFINED_INFO *ThisName,
811 AcpiUtGetResourceBitWidth (
818 * utstate - Generic state creation/cache routines
821 AcpiUtPushGenericState (
822 ACPI_GENERIC_STATE **ListHead,
823 ACPI_GENERIC_STATE *State);
826 AcpiUtPopGenericState (
827 ACPI_GENERIC_STATE **ListHead);
831 AcpiUtCreateGenericState (
835 AcpiUtCreateThreadState (
839 AcpiUtCreateUpdateState (
840 ACPI_OPERAND_OBJECT *Object,
844 AcpiUtCreatePkgState (
845 void *InternalObject,
846 void *ExternalObject,
850 AcpiUtCreateUpdateStateAndPush (
851 ACPI_OPERAND_OBJECT *Object,
853 ACPI_GENERIC_STATE **StateList);
856 AcpiUtCreateControlState (
860 AcpiUtDeleteGenericState (
861 ACPI_GENERIC_STATE *State);
872 UINT64 *OutRemainder);
879 UINT32 *OutRemainder);
885 const ACPI_EXCEPTION_INFO *
886 AcpiUtValidateException (
890 AcpiUtIsPciRootBridge (
893 #if (defined ACPI_ASL_COMPILER || defined ACPI_EXEC_APP || defined ACPI_NAMES_APP)
896 ACPI_TABLE_HEADER *Table);
900 AcpiUtWalkPackageTree (
901 ACPI_OPERAND_OBJECT *SourceObject,
903 ACPI_PKG_CALLBACK WalkCallback,
906 /* Values for Base above (16=Hex, 10=Decimal) */
908 #define ACPI_ANY_BASE 0
912 AcpiUtDwordByteSwap (
916 AcpiUtSetIntegerWidth (
919 #ifdef ACPI_DEBUG_OUTPUT
921 AcpiUtDisplayInitPathname (
923 ACPI_NAMESPACE_NODE *ObjHandle,
929 * utownerid - Support for Table/Method Owner IDs
932 AcpiUtAllocateOwnerId (
933 ACPI_OWNER_ID *OwnerId);
936 AcpiUtReleaseOwnerId (
937 ACPI_OWNER_ID *OwnerId);
944 AcpiUtWalkAmlResources (
945 ACPI_WALK_STATE *WalkState,
948 ACPI_WALK_AML_CALLBACK UserFunction,
952 AcpiUtValidateResource (
953 ACPI_WALK_STATE *WalkState,
958 AcpiUtGetDescriptorLength (
962 AcpiUtGetResourceLength (
966 AcpiUtGetResourceHeaderLength (
970 AcpiUtGetResourceType (
974 AcpiUtGetResourceEndTag (
975 ACPI_OPERAND_OBJECT *ObjDesc,
980 * utstring - String and character utilities
987 #if defined ACPI_ASL_COMPILER || defined ACPI_EXEC_APP
989 UtConvertBackslashes (
997 #if defined (ACPI_DEBUGGER) || defined (ACPI_APPLICATION)
1015 ACPI_SIZE MaxTransferLength);
1020 * utmutex - mutex support
1023 AcpiUtMutexInitialize (
1027 AcpiUtMutexTerminate (
1031 AcpiUtAcquireMutex (
1032 ACPI_MUTEX_HANDLE MutexId);
1035 AcpiUtReleaseMutex (
1036 ACPI_MUTEX_HANDLE MutexId);
1040 * utalloc - memory allocation and object caching
1043 AcpiUtCreateCaches (
1047 AcpiUtDeleteCaches (
1051 AcpiUtValidateBuffer (
1052 ACPI_BUFFER *Buffer);
1055 AcpiUtInitializeBuffer (
1056 ACPI_BUFFER *Buffer,
1057 ACPI_SIZE RequiredLength);
1059 #ifdef ACPI_DBG_TRACK_ALLOCATIONS
1061 AcpiUtAllocateAndTrack (
1068 AcpiUtAllocateZeroedAndTrack (
1075 AcpiUtFreeAndTrack (
1082 AcpiUtDumpAllocationInfo (
1086 AcpiUtDumpAllocations (
1088 const char *Module);
1092 const char *ListName,
1094 ACPI_MEMORY_LIST **ReturnCache);
1096 #endif /* ACPI_DBG_TRACK_ALLOCATIONS */
1100 * utaddress - address range check
1103 AcpiUtAddAddressRange (
1104 ACPI_ADR_SPACE_TYPE SpaceId,
1105 ACPI_PHYSICAL_ADDRESS Address,
1107 ACPI_NAMESPACE_NODE *RegionNode);
1110 AcpiUtRemoveAddressRange (
1111 ACPI_ADR_SPACE_TYPE SpaceId,
1112 ACPI_NAMESPACE_NODE *RegionNode);
1115 AcpiUtCheckAddressRange (
1116 ACPI_ADR_SPACE_TYPE SpaceId,
1117 ACPI_PHYSICAL_ADDRESS Address,
1122 AcpiUtDeleteAddressLists (
1127 * utxferror - various error/warning output functions
1129 void ACPI_INTERNAL_VAR_XFACE
1130 AcpiUtPredefinedWarning (
1131 const char *ModuleName,
1138 void ACPI_INTERNAL_VAR_XFACE
1139 AcpiUtPredefinedInfo (
1140 const char *ModuleName,
1147 void ACPI_INTERNAL_VAR_XFACE
1148 AcpiUtPredefinedBiosError (
1149 const char *ModuleName,
1157 AcpiUtNamespaceError (
1158 const char *ModuleName,
1160 const char *InternalName,
1161 ACPI_STATUS LookupStatus);
1165 const char *ModuleName,
1167 const char *Message,
1168 ACPI_NAMESPACE_NODE *Node,
1170 ACPI_STATUS LookupStatus);
1174 * Utility functions for ACPI names and IDs
1176 const AH_PREDEFINED_NAME *
1177 AcpiAhMatchPredefinedName (
1180 const AH_DEVICE_ID *
1181 AcpiAhMatchHardwareId (
1190 * utuuid -- UUID support functions
1192 #if (defined ACPI_ASL_COMPILER || defined ACPI_DISASSEMBLER || defined ACPI_EXEC_APP || defined ACPI_HELP_APP)
1194 AcpiUtConvertStringToUuid (
1199 #endif /* _ACUTILS_H */