1 /******************************************************************************
3 * Name: acutils.h -- prototypes for the common (subsystem-wide) procedures
5 *****************************************************************************/
7 /******************************************************************************
11 * Some or all of this work - Copyright (c) 1999 - 2020, 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[];
197 extern const char *AcpiGbl_PtypDecode[];
201 * For the iASL compiler case, the output is redirected to stderr so that
202 * any of the various ACPI errors and warnings do not appear in the output
203 * files, for either the compiler or disassembler portions of the tool.
205 #ifdef ACPI_ASL_COMPILER
209 #define ACPI_MSG_REDIRECT_BEGIN \
210 FILE *OutputFile = AcpiGbl_OutputFile; \
211 AcpiOsRedirectOutput (stderr);
213 #define ACPI_MSG_REDIRECT_END \
214 AcpiOsRedirectOutput (OutputFile);
218 * non-iASL case - no redirection, nothing to do
220 #define ACPI_MSG_REDIRECT_BEGIN
221 #define ACPI_MSG_REDIRECT_END
225 * Common error message prefixes
227 #ifndef ACPI_MSG_ERROR
228 #define ACPI_MSG_ERROR "ACPI Error: "
230 #ifndef ACPI_MSG_WARNING
231 #define ACPI_MSG_WARNING "ACPI Warning: "
233 #ifndef ACPI_MSG_INFO
234 #define ACPI_MSG_INFO "ACPI: "
237 #ifndef ACPI_MSG_BIOS_ERROR
238 #define ACPI_MSG_BIOS_ERROR "Firmware Error (ACPI): "
240 #ifndef ACPI_MSG_BIOS_WARNING
241 #define ACPI_MSG_BIOS_WARNING "Firmware Warning (ACPI): "
245 * Common message suffix
247 #define ACPI_MSG_SUFFIX \
248 AcpiOsPrintf (" (%8.8X/%s-%u)\n", ACPI_CA_VERSION, ModuleName, LineNumber)
250 /* Flags to indicate implicit or explicit string-to-integer conversion */
252 #define ACPI_IMPLICIT_CONVERSION TRUE
253 #define ACPI_NO_IMPLICIT_CONVERSION FALSE
255 /* Types for Resource descriptor entries */
257 #define ACPI_INVALID_RESOURCE 0
258 #define ACPI_FIXED_LENGTH 1
259 #define ACPI_VARIABLE_LENGTH 2
260 #define ACPI_SMALL_VARIABLE_LENGTH 3
263 ACPI_STATUS (*ACPI_WALK_AML_CALLBACK) (
271 ACPI_STATUS (*ACPI_PKG_CALLBACK) (
273 ACPI_OPERAND_OBJECT *SourceObject,
274 ACPI_GENERIC_STATE *State,
277 typedef struct acpi_pkg_info
286 /* Object reference counts */
288 #define REF_INCREMENT (UINT16) 0
289 #define REF_DECREMENT (UINT16) 1
291 /* AcpiUtDumpBuffer */
293 #define DB_BYTE_DISPLAY 0x01
294 #define DB_WORD_DISPLAY 0x02
295 #define DB_DWORD_DISPLAY 0x04
296 #define DB_QWORD_DISPLAY 0x08
297 #define DB_DISPLAY_DATA_ONLY 0x10
301 * utascii - ASCII utilities
308 AcpiUtValidNameChar (
313 AcpiUtCheckAndRepairAscii (
320 * utnonansi - Non-ANSI C library functions
337 * utstrsuppt - string-to-integer conversion support functions
340 AcpiUtConvertOctalString (
342 UINT64 *ReturnValue);
345 AcpiUtConvertDecimalString (
347 UINT64 *ReturnValuePtr);
350 AcpiUtConvertHexString (
352 UINT64 *ReturnValuePtr);
355 AcpiUtRemoveWhitespace (
359 AcpiUtRemoveLeadingZeros (
363 AcpiUtDetectHexPrefix (
367 AcpiUtRemoveHexPrefix (
371 AcpiUtDetectOctalPrefix (
376 * utstrtoul64 - string-to-integer conversion functions
384 AcpiUtExplicitStrtoul64 (
388 AcpiUtImplicitStrtoul64 (
393 * utglobal - Global data structures and procedures
403 #if defined(ACPI_DEBUG_OUTPUT) || defined(ACPI_DEBUGGER)
406 AcpiUtGetNotifyName (
408 ACPI_OBJECT_TYPE Type);
413 ACPI_OBJECT_TYPE Type);
420 AcpiUtGetDescriptorName (
424 AcpiUtGetReferenceName (
425 ACPI_OPERAND_OBJECT *Object);
428 AcpiUtGetObjectTypeName (
429 ACPI_OPERAND_OBJECT *ObjDesc);
432 AcpiUtGetRegionName (
440 AcpiUtGetArgumentTypeName (
444 AcpiUtHexToAsciiChar (
449 AcpiUtAsciiToHexByte (
454 AcpiUtAsciiCharToHex (
458 AcpiUtValidObjectType (
459 ACPI_OBJECT_TYPE Type);
463 * utinit - miscellaneous initialization and shutdown
466 AcpiUtHardwareInitialize (
470 AcpiUtSubsystemShutdown (
475 * utcopy - Object construction and conversion interfaces
478 AcpiUtBuildSimpleObject(
479 ACPI_OPERAND_OBJECT *Obj,
480 ACPI_OBJECT *UserObj,
482 UINT32 *BufferSpaceUsed);
485 AcpiUtBuildPackageObject (
486 ACPI_OPERAND_OBJECT *Obj,
491 AcpiUtCopyIobjectToEobject (
492 ACPI_OPERAND_OBJECT *Obj,
493 ACPI_BUFFER *RetBuffer);
496 AcpiUtCopyEobjectToIobject (
498 ACPI_OPERAND_OBJECT **InternalObj);
501 AcpiUtCopyISimpleToIsimple (
502 ACPI_OPERAND_OBJECT *SourceObj,
503 ACPI_OPERAND_OBJECT *DestObj);
506 AcpiUtCopyIobjectToIobject (
507 ACPI_OPERAND_OBJECT *SourceDesc,
508 ACPI_OPERAND_OBJECT **DestDesc,
509 ACPI_WALK_STATE *WalkState);
513 * utcreate - Object creation
516 AcpiUtUpdateObjectReference (
517 ACPI_OPERAND_OBJECT *Object,
522 * utdebug - Debug interfaces
525 AcpiUtInitStackPtrTrace (
529 AcpiUtTrackStackPtr (
535 const char *FunctionName,
536 const char *ModuleName,
542 const char *FunctionName,
543 const char *ModuleName,
545 const void *Pointer);
550 const char *FunctionName,
551 const char *ModuleName,
558 const char *FunctionName,
559 const char *ModuleName,
566 const char *FunctionName,
567 const char *ModuleName,
573 const char *FunctionName,
574 const char *ModuleName,
581 const char *FunctionName,
582 const char *ModuleName,
589 const char *FunctionName,
590 const char *ModuleName,
597 const char *FunctionName,
598 const char *ModuleName,
603 AcpiUtDebugDumpBuffer (
616 #ifdef ACPI_APPLICATION
618 AcpiUtDumpBufferToFile (
637 AcpiUtReportWarning (
643 * utdelete - Object deletion and reference counts
647 ACPI_OPERAND_OBJECT *Object);
650 AcpiUtRemoveReference (
651 ACPI_OPERAND_OBJECT *Object);
654 AcpiUtDeleteInternalPackageObject (
655 ACPI_OPERAND_OBJECT *Object);
658 AcpiUtDeleteInternalSimpleObject (
659 ACPI_OPERAND_OBJECT *Object);
662 AcpiUtDeleteInternalObjectList (
663 ACPI_OPERAND_OBJECT **ObjList);
667 * uteval - object evaluation
670 AcpiUtEvaluateObject (
671 ACPI_NAMESPACE_NODE *PrefixNode,
673 UINT32 ExpectedReturnBtypes,
674 ACPI_OPERAND_OBJECT **ReturnDesc);
677 AcpiUtEvaluateNumericObject (
678 const char *ObjectName,
679 ACPI_NAMESPACE_NODE *DeviceNode,
684 ACPI_NAMESPACE_NODE *DeviceNode,
685 UINT32 *StatusFlags);
688 AcpiUtExecutePowerMethods (
689 ACPI_NAMESPACE_NODE *DeviceNode,
690 const char **MethodNames,
696 * utids - device ID support
700 ACPI_NAMESPACE_NODE *DeviceNode,
701 ACPI_PNP_DEVICE_ID **ReturnId);
705 ACPI_NAMESPACE_NODE *DeviceNode,
706 ACPI_PNP_DEVICE_ID **ReturnId);
710 ACPI_NAMESPACE_NODE *DeviceNode,
711 ACPI_PNP_DEVICE_ID_LIST **ReturnCidList);
715 ACPI_NAMESPACE_NODE *DeviceNode,
716 ACPI_PNP_DEVICE_ID **ReturnId);
720 * utlock - reader/writer locks
731 AcpiUtAcquireReadLock (
735 AcpiUtReleaseReadLock (
739 AcpiUtAcquireWriteLock (
743 AcpiUtReleaseWriteLock (
748 * utobject - internal object create/delete/cache routines
750 ACPI_OPERAND_OBJECT *
751 AcpiUtCreateInternalObjectDbg (
752 const char *ModuleName,
755 ACPI_OBJECT_TYPE Type);
758 AcpiUtAllocateObjectDescDbg (
759 const char *ModuleName,
763 #define AcpiUtCreateInternalObject(t) AcpiUtCreateInternalObjectDbg (_AcpiModuleName,__LINE__,_COMPONENT,t)
764 #define AcpiUtAllocateObjectDesc() AcpiUtAllocateObjectDescDbg (_AcpiModuleName,__LINE__,_COMPONENT)
767 AcpiUtDeleteObjectDesc (
768 ACPI_OPERAND_OBJECT *Object);
771 AcpiUtValidInternalObject (
774 ACPI_OPERAND_OBJECT *
775 AcpiUtCreatePackageObject (
778 ACPI_OPERAND_OBJECT *
779 AcpiUtCreateIntegerObject (
782 ACPI_OPERAND_OBJECT *
783 AcpiUtCreateBufferObject (
784 ACPI_SIZE BufferSize);
786 ACPI_OPERAND_OBJECT *
787 AcpiUtCreateStringObject (
788 ACPI_SIZE StringSize);
792 ACPI_OPERAND_OBJECT *Obj,
793 ACPI_SIZE *ObjLength);
797 * utosi - Support for the _OSI predefined control method
800 AcpiUtInitializeInterfaces (
804 AcpiUtInterfaceTerminate (
808 AcpiUtInstallInterface (
809 ACPI_STRING InterfaceName);
812 AcpiUtRemoveInterface (
813 ACPI_STRING InterfaceName);
816 AcpiUtUpdateInterfaces (
819 ACPI_INTERFACE_INFO *
821 ACPI_STRING InterfaceName);
824 AcpiUtOsiImplementation (
825 ACPI_WALK_STATE *WalkState);
829 * utpredef - support for predefined names
831 const ACPI_PREDEFINED_INFO *
832 AcpiUtGetNextPredefinedMethod (
833 const ACPI_PREDEFINED_INFO *ThisName);
835 const ACPI_PREDEFINED_INFO *
836 AcpiUtMatchPredefinedMethod (
840 AcpiUtGetExpectedReturnTypes (
842 UINT32 ExpectedBtypes);
844 #if (defined ACPI_ASL_COMPILER || defined ACPI_HELP_APP)
845 const ACPI_PREDEFINED_INFO *
846 AcpiUtMatchResourceName (
850 AcpiUtDisplayPredefinedMethod (
852 const ACPI_PREDEFINED_INFO *ThisName,
856 AcpiUtGetResourceBitWidth (
863 * utstate - Generic state creation/cache routines
866 AcpiUtPushGenericState (
867 ACPI_GENERIC_STATE **ListHead,
868 ACPI_GENERIC_STATE *State);
871 AcpiUtPopGenericState (
872 ACPI_GENERIC_STATE **ListHead);
876 AcpiUtCreateGenericState (
880 AcpiUtCreateThreadState (
884 AcpiUtCreateUpdateState (
885 ACPI_OPERAND_OBJECT *Object,
889 AcpiUtCreatePkgState (
890 void *InternalObject,
891 void *ExternalObject,
895 AcpiUtCreateUpdateStateAndPush (
896 ACPI_OPERAND_OBJECT *Object,
898 ACPI_GENERIC_STATE **StateList);
901 AcpiUtCreateControlState (
905 AcpiUtDeleteGenericState (
906 ACPI_GENERIC_STATE *State);
917 UINT64 *OutRemainder);
924 UINT32 *OutRemainder);
927 AcpiUtShortMultiply (
928 UINT64 InMultiplicand,
933 AcpiUtShortShiftLeft (
939 AcpiUtShortShiftRight (
948 const ACPI_EXCEPTION_INFO *
949 AcpiUtValidateException (
953 AcpiUtIsPciRootBridge (
956 #if (defined ACPI_ASL_COMPILER || defined ACPI_EXEC_APP || defined ACPI_NAMES_APP)
959 ACPI_TABLE_HEADER *Table);
963 AcpiUtWalkPackageTree (
964 ACPI_OPERAND_OBJECT *SourceObject,
966 ACPI_PKG_CALLBACK WalkCallback,
969 /* Values for Base above (16=Hex, 10=Decimal) */
971 #define ACPI_ANY_BASE 0
975 AcpiUtDwordByteSwap (
979 AcpiUtSetIntegerWidth (
982 #ifdef ACPI_DEBUG_OUTPUT
984 AcpiUtDisplayInitPathname (
986 ACPI_NAMESPACE_NODE *ObjHandle,
992 * utownerid - Support for Table/Method Owner IDs
995 AcpiUtAllocateOwnerId (
996 ACPI_OWNER_ID *OwnerId);
999 AcpiUtReleaseOwnerId (
1000 ACPI_OWNER_ID *OwnerId);
1007 AcpiUtWalkAmlResources (
1008 ACPI_WALK_STATE *WalkState,
1010 ACPI_SIZE AmlLength,
1011 ACPI_WALK_AML_CALLBACK UserFunction,
1015 AcpiUtValidateResource (
1016 ACPI_WALK_STATE *WalkState,
1018 UINT8 *ReturnIndex);
1021 AcpiUtGetDescriptorLength (
1025 AcpiUtGetResourceLength (
1029 AcpiUtGetResourceHeaderLength (
1033 AcpiUtGetResourceType (
1037 AcpiUtGetResourceEndTag (
1038 ACPI_OPERAND_OBJECT *ObjDesc,
1043 * utstring - String and character utilities
1050 #if defined ACPI_ASL_COMPILER || defined ACPI_EXEC_APP
1052 UtConvertBackslashes (
1060 #if defined (ACPI_DEBUGGER) || defined (ACPI_APPLICATION) || defined (ACPI_DEBUG_OUTPUT)
1071 ACPI_SIZE DestSize);
1084 ACPI_SIZE MaxTransferLength);
1089 * utmutex - mutex support
1092 AcpiUtMutexInitialize (
1096 AcpiUtMutexTerminate (
1100 AcpiUtAcquireMutex (
1101 ACPI_MUTEX_HANDLE MutexId);
1104 AcpiUtReleaseMutex (
1105 ACPI_MUTEX_HANDLE MutexId);
1109 * utalloc - memory allocation and object caching
1112 AcpiUtCreateCaches (
1116 AcpiUtDeleteCaches (
1120 AcpiUtValidateBuffer (
1121 ACPI_BUFFER *Buffer);
1124 AcpiUtInitializeBuffer (
1125 ACPI_BUFFER *Buffer,
1126 ACPI_SIZE RequiredLength);
1128 #ifdef ACPI_DBG_TRACK_ALLOCATIONS
1130 AcpiUtAllocateAndTrack (
1137 AcpiUtAllocateZeroedAndTrack (
1144 AcpiUtFreeAndTrack (
1151 AcpiUtDumpAllocationInfo (
1155 AcpiUtDumpAllocations (
1157 const char *Module);
1161 const char *ListName,
1163 ACPI_MEMORY_LIST **ReturnCache);
1165 #endif /* ACPI_DBG_TRACK_ALLOCATIONS */
1169 * utaddress - address range check
1172 AcpiUtAddAddressRange (
1173 ACPI_ADR_SPACE_TYPE SpaceId,
1174 ACPI_PHYSICAL_ADDRESS Address,
1176 ACPI_NAMESPACE_NODE *RegionNode);
1179 AcpiUtRemoveAddressRange (
1180 ACPI_ADR_SPACE_TYPE SpaceId,
1181 ACPI_NAMESPACE_NODE *RegionNode);
1184 AcpiUtCheckAddressRange (
1185 ACPI_ADR_SPACE_TYPE SpaceId,
1186 ACPI_PHYSICAL_ADDRESS Address,
1191 AcpiUtDeleteAddressLists (
1196 * utxferror - various error/warning output functions
1199 void ACPI_INTERNAL_VAR_XFACE
1200 AcpiUtPredefinedWarning (
1201 const char *ModuleName,
1209 void ACPI_INTERNAL_VAR_XFACE
1210 AcpiUtPredefinedInfo (
1211 const char *ModuleName,
1219 void ACPI_INTERNAL_VAR_XFACE
1220 AcpiUtPredefinedBiosError (
1221 const char *ModuleName,
1229 AcpiUtPrefixedNamespaceError (
1230 const char *ModuleName,
1232 ACPI_GENERIC_STATE *PrefixScope,
1233 const char *InternalName,
1234 ACPI_STATUS LookupStatus);
1238 const char *ModuleName,
1240 const char *Message,
1241 ACPI_NAMESPACE_NODE *Node,
1243 ACPI_STATUS LookupStatus);
1247 * Utility functions for ACPI names and IDs
1249 const AH_PREDEFINED_NAME *
1250 AcpiAhMatchPredefinedName (
1253 const AH_DEVICE_ID *
1254 AcpiAhMatchHardwareId (
1263 * utuuid -- UUID support functions
1265 #if (defined ACPI_ASL_COMPILER || defined ACPI_DISASSEMBLER || defined ACPI_EXEC_APP || defined ACPI_HELP_APP || defined KLD_MODULE)
1267 AcpiUtConvertStringToUuid (
1272 #endif /* _ACUTILS_H */