XenevaOS
Loading...
Searching...
No Matches
acutils.h
Go to the documentation of this file.
1/******************************************************************************
2 *
3 * Name: acutils.h -- prototypes for the common (subsystem-wide) procedures
4 *
5 *****************************************************************************/
6
7/******************************************************************************
8 *
9 * 1. Copyright Notice
10 *
11 * Some or all of this work - Copyright (c) 1999 - 2019, Intel Corp.
12 * All rights reserved.
13 *
14 * 2. License
15 *
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
19 * property rights.
20 *
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
27 *
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;
36 *
37 * The above copyright and patent license is granted only if the following
38 * conditions are met:
39 *
40 * 3. Conditions
41 *
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.
53 *
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
64 * make.
65 *
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
70 * distribution.
71 *
72 * 3.4. Intel retains all right, title, and interest in and to the Original
73 * Intel Code.
74 *
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.
79 *
80 * 4. Disclaimer and Export Compliance
81 *
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
88 * PARTICULAR PURPOSE.
89 *
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
97 * LIMITED REMEDY.
98 *
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.
113 *
114 *****************************************************************************
115 *
116 * Alternatively, you may choose to be licensed under the terms of the
117 * following license:
118 *
119 * Redistribution and use in source and binary forms, with or without
120 * modification, are permitted provided that the following conditions
121 * are met:
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.
133 *
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.
145 *
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.
149 *
150 *****************************************************************************/
151
152#ifndef _ACUTILS_H
153#define _ACUTILS_H
154
155
156extern const UINT8 AcpiGbl_ResourceAmlSizes[];
158
159/* Strings used by the disassembler and debugger resource dump routines */
160
161#if defined(ACPI_DEBUG_OUTPUT) || defined (ACPI_DISASSEMBLER) || defined (ACPI_DEBUGGER)
162
163extern const char *AcpiGbl_BmDecode[];
164extern const char *AcpiGbl_ConfigDecode[];
165extern const char *AcpiGbl_ConsumeDecode[];
166extern const char *AcpiGbl_DecDecode[];
167extern const char *AcpiGbl_HeDecode[];
168extern const char *AcpiGbl_IoDecode[];
169extern const char *AcpiGbl_LlDecode[];
170extern const char *AcpiGbl_MaxDecode[];
171extern const char *AcpiGbl_MemDecode[];
172extern const char *AcpiGbl_MinDecode[];
173extern const char *AcpiGbl_MtpDecode[];
174extern const char *AcpiGbl_RngDecode[];
175extern const char *AcpiGbl_RwDecode[];
176extern const char *AcpiGbl_ShrDecode[];
177extern const char *AcpiGbl_SizDecode[];
178extern const char *AcpiGbl_TrsDecode[];
179extern const char *AcpiGbl_TtpDecode[];
180extern const char *AcpiGbl_TypDecode[];
181extern const char *AcpiGbl_PpcDecode[];
182extern const char *AcpiGbl_IorDecode[];
183extern const char *AcpiGbl_DtsDecode[];
184extern const char *AcpiGbl_CtDecode[];
185extern const char *AcpiGbl_SbtDecode[];
186extern const char *AcpiGbl_AmDecode[];
187extern const char *AcpiGbl_SmDecode[];
188extern const char *AcpiGbl_WmDecode[];
189extern const char *AcpiGbl_CphDecode[];
190extern const char *AcpiGbl_CpoDecode[];
191extern const char *AcpiGbl_DpDecode[];
192extern const char *AcpiGbl_EdDecode[];
193extern const char *AcpiGbl_BpbDecode[];
194extern const char *AcpiGbl_SbDecode[];
195extern const char *AcpiGbl_FcDecode[];
196extern const char *AcpiGbl_PtDecode[];
197extern const char *AcpiGbl_PtypDecode[];
198#endif
199
200/*
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.
204 */
205#ifdef ACPI_ASL_COMPILER
206
207#include <stdio.h>
208
209#define ACPI_MSG_REDIRECT_BEGIN \
210 FILE *OutputFile = AcpiGbl_OutputFile; \
211 AcpiOsRedirectOutput (stderr);
212
213#define ACPI_MSG_REDIRECT_END \
214 AcpiOsRedirectOutput (OutputFile);
215
216#else
217/*
218 * non-iASL case - no redirection, nothing to do
219 */
220#define ACPI_MSG_REDIRECT_BEGIN
221#define ACPI_MSG_REDIRECT_END
222#endif
223
224/*
225 * Common error message prefixes
226 */
227#ifndef ACPI_MSG_ERROR
228#define ACPI_MSG_ERROR "ACPI Error: "
229#endif
230#ifndef ACPI_MSG_WARNING
231#define ACPI_MSG_WARNING "ACPI Warning: "
232#endif
233#ifndef ACPI_MSG_INFO
234#define ACPI_MSG_INFO "ACPI: "
235#endif
236
237#ifndef ACPI_MSG_BIOS_ERROR
238#define ACPI_MSG_BIOS_ERROR "Firmware Error (ACPI): "
239#endif
240#ifndef ACPI_MSG_BIOS_WARNING
241#define ACPI_MSG_BIOS_WARNING "Firmware Warning (ACPI): "
242#endif
243
244/*
245 * Common message suffix
246 */
247#define ACPI_MSG_SUFFIX \
248 AcpiOsPrintf (" (%8.8X/%s-%u)\n", ACPI_CA_VERSION, ModuleName, LineNumber)
249
250/* Flags to indicate implicit or explicit string-to-integer conversion */
251
252#define ACPI_IMPLICIT_CONVERSION TRUE
253#define ACPI_NO_IMPLICIT_CONVERSION FALSE
254
255/* Types for Resource descriptor entries */
256
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
261
262typedef
264 UINT8 *Aml,
266 UINT32 Offset,
267 UINT8 ResourceIndex,
268 void **Context);
269
270typedef
272 UINT8 ObjectType,
273 ACPI_OPERAND_OBJECT *SourceObject,
274 ACPI_GENERIC_STATE *State,
275 void *Context);
276
285
286/* Object reference counts */
287
288#define REF_INCREMENT (UINT16) 0
289#define REF_DECREMENT (UINT16) 1
290
291/* AcpiUtDumpBuffer */
292
293#define DB_BYTE_DISPLAY 1
294#define DB_WORD_DISPLAY 2
295#define DB_DWORD_DISPLAY 4
296#define DB_QWORD_DISPLAY 8
297
298
299/*
300 * utascii - ASCII utilities
301 */
304 char *Signature);
305
308 char Character,
309 UINT32 Position);
310
311void
313 UINT8 *Name,
314 char *RepairedName,
315 UINT32 Count);
316
317
318/*
319 * utnonansi - Non-ANSI C library functions
320 */
321void
323 char *SrcString);
324
325void
327 char *SrcString);
328
329int
331 char *String1,
332 char *String2);
333
334
335/*
336 * utstrsuppt - string-to-integer conversion support functions
337 */
340 char *String,
342
345 char *String,
346 UINT64 *ReturnValuePtr);
347
350 char *String,
351 UINT64 *ReturnValuePtr);
352
353char
355 char **String);
356
357char
359 char **String);
360
363 char **String);
364
365void
367 char **String);
368
371 char **String);
372
373
374/*
375 * utstrtoul64 - string-to-integer conversion functions
376 */
379 char *String,
380 UINT64 *RetInteger);
381
382UINT64
384 char *String);
385
386UINT64
388 char *String);
389
390
391/*
392 * utglobal - Global data structures and procedures
393 */
396 void);
397
398const char *
400 UINT32 MutexId);
401
402#if defined(ACPI_DEBUG_OUTPUT) || defined(ACPI_DEBUGGER)
403
404const char *
405AcpiUtGetNotifyName (
406 UINT32 NotifyValue,
408#endif
409
410const char *
413
414const char *
416 void *Object);
417
418const char *
420 void *Object);
421
422const char *
424 ACPI_OPERAND_OBJECT *Object);
425
426const char *
428 ACPI_OPERAND_OBJECT *ObjDesc);
429
430const char *
432 UINT8 SpaceId);
433
434const char *
436 UINT32 EventId);
437
438const char *
440 UINT32 ArgType);
441
442char
444 UINT64 Integer,
445 UINT32 Position);
446
449 char *TwoAsciiChars,
450 UINT8 *ReturnByte);
451
452UINT8
454 int HexChar);
455
459
460
461/*
462 * utinit - miscellaneous initialization and shutdown
463 */
466 void);
467
468void
470 void);
471
472
473/*
474 * utcopy - Object construction and conversion interfaces
475 */
479 ACPI_OBJECT *UserObj,
480 UINT8 *DataSpace,
481 UINT32 *BufferSpaceUsed);
482
486 UINT8 *Buffer,
487 UINT32 *SpaceUsed);
488
492 ACPI_BUFFER *RetBuffer);
493
496 ACPI_OBJECT *Obj,
497 ACPI_OPERAND_OBJECT **InternalObj);
498
501 ACPI_OPERAND_OBJECT *SourceObj,
502 ACPI_OPERAND_OBJECT *DestObj);
503
506 ACPI_OPERAND_OBJECT *SourceDesc,
507 ACPI_OPERAND_OBJECT **DestDesc,
508 ACPI_WALK_STATE *WalkState);
509
510
511/*
512 * utcreate - Object creation
513 */
516 ACPI_OPERAND_OBJECT *Object,
517 UINT16 Action);
518
519
520/*
521 * utdebug - Debug interfaces
522 */
523void
525 void);
526
527void
529 void);
530
531void
534 const char *FunctionName,
535 const char *ModuleName,
537
538void
541 const char *FunctionName,
542 const char *ModuleName,
544 const void *Pointer);
545
546void
549 const char *FunctionName,
550 const char *ModuleName,
552 UINT32 Integer);
553
554void
557 const char *FunctionName,
558 const char *ModuleName,
560 const char *String);
561
562void
565 const char *FunctionName,
566 const char *ModuleName,
568
569void
572 const char *FunctionName,
573 const char *ModuleName,
576
577void
580 const char *FunctionName,
581 const char *ModuleName,
583 UINT64 Value);
584
585void
588 const char *FunctionName,
589 const char *ModuleName,
591 UINT8 *Ptr);
592
593void
596 const char *FunctionName,
597 const char *ModuleName,
599 const char *String);
600
601void
603 UINT8 *Buffer,
604 UINT32 Count,
605 UINT32 Display,
607
608void
610 UINT8 *Buffer,
611 UINT32 Count,
612 UINT32 Display,
613 UINT32 Offset);
614
615#ifdef ACPI_APPLICATION
616void
617AcpiUtDumpBufferToFile (
618 ACPI_FILE File,
619 UINT8 *Buffer,
620 UINT32 Count,
621 UINT32 Display,
622 UINT32 BaseOffset);
623#endif
624
625void
627 char *ModuleName,
629
630void
632 char *ModuleName,
634
635void
637 char *ModuleName,
639
640
641/*
642 * utdelete - Object deletion and reference counts
643 */
644void
646 ACPI_OPERAND_OBJECT *Object);
647
648void
650 ACPI_OPERAND_OBJECT *Object);
651
652void
654 ACPI_OPERAND_OBJECT *Object);
655
656void
658 ACPI_OPERAND_OBJECT *Object);
659
660void
662 ACPI_OPERAND_OBJECT **ObjList);
663
664
665/*
666 * uteval - object evaluation
667 */
670 ACPI_NAMESPACE_NODE *PrefixNode,
671 const char *Path,
672 UINT32 ExpectedReturnBtypes,
673 ACPI_OPERAND_OBJECT **ReturnDesc);
674
677 const char *ObjectName,
678 ACPI_NAMESPACE_NODE *DeviceNode,
679 UINT64 *Value);
680
683 ACPI_NAMESPACE_NODE *DeviceNode,
684 UINT32 *StatusFlags);
685
688 ACPI_NAMESPACE_NODE *DeviceNode,
689 const char **MethodNames,
690 UINT8 MethodCount,
691 UINT8 *OutValues);
692
693
694/*
695 * utids - device ID support
696 */
699 ACPI_NAMESPACE_NODE *DeviceNode,
700 ACPI_PNP_DEVICE_ID **ReturnId);
701
704 ACPI_NAMESPACE_NODE *DeviceNode,
705 ACPI_PNP_DEVICE_ID **ReturnId);
706
709 ACPI_NAMESPACE_NODE *DeviceNode,
710 ACPI_PNP_DEVICE_ID_LIST **ReturnCidList);
711
714 ACPI_NAMESPACE_NODE *DeviceNode,
715 ACPI_PNP_DEVICE_ID **ReturnId);
716
717
718/*
719 * utlock - reader/writer locks
720 */
723 ACPI_RW_LOCK *Lock);
724
725void
727 ACPI_RW_LOCK *Lock);
728
731 ACPI_RW_LOCK *Lock);
732
735 ACPI_RW_LOCK *Lock);
736
739 ACPI_RW_LOCK *Lock);
740
741void
743 ACPI_RW_LOCK *Lock);
744
745
746/*
747 * utobject - internal object create/delete/cache routines
748 */
751 const char *ModuleName,
755
756void *
758 const char *ModuleName,
761
762#define AcpiUtCreateInternalObject(t) AcpiUtCreateInternalObjectDbg (_AcpiModuleName,__LINE__,_COMPONENT,t)
763#define AcpiUtAllocateObjectDesc() AcpiUtAllocateObjectDescDbg (_AcpiModuleName,__LINE__,_COMPONENT)
764
765void
767 ACPI_OPERAND_OBJECT *Object);
768
771 void *Object);
772
775 UINT32 Count);
776
779 UINT64 Value);
780
783 ACPI_SIZE BufferSize);
784
787 ACPI_SIZE StringSize);
788
792 ACPI_SIZE *ObjLength);
793
794
795/*
796 * utosi - Support for the _OSI predefined control method
797 */
800 void);
801
804 void);
805
808 ACPI_STRING InterfaceName);
809
812 ACPI_STRING InterfaceName);
813
816 UINT8 Action);
817
820 ACPI_STRING InterfaceName);
821
824 ACPI_WALK_STATE *WalkState);
825
826
827/*
828 * utpredef - support for predefined names
829 */
832 const ACPI_PREDEFINED_INFO *ThisName);
833
836 char *Name);
837
838void
840 char *Buffer,
841 UINT32 ExpectedBtypes);
842
843#if (defined ACPI_ASL_COMPILER || defined ACPI_HELP_APP)
845AcpiUtMatchResourceName (
846 char *Name);
847
848void
849AcpiUtDisplayPredefinedMethod (
850 char *Buffer,
851 const ACPI_PREDEFINED_INFO *ThisName,
852 BOOLEAN MultiLine);
853
854UINT32
855AcpiUtGetResourceBitWidth (
856 char *Buffer,
857 UINT16 Types);
858#endif
859
860
861/*
862 * utstate - Generic state creation/cache routines
863 */
864void
866 ACPI_GENERIC_STATE **ListHead,
867 ACPI_GENERIC_STATE *State);
868
871 ACPI_GENERIC_STATE **ListHead);
872
873
876 void);
877
880 void);
881
884 ACPI_OPERAND_OBJECT *Object,
885 UINT16 Action);
886
889 void *InternalObject,
890 void *ExternalObject,
891 UINT32 Index);
892
895 ACPI_OPERAND_OBJECT *Object,
896 UINT16 Action,
897 ACPI_GENERIC_STATE **StateList);
898
901 void);
902
903void
905 ACPI_GENERIC_STATE *State);
906
907
908/*
909 * utmath
910 */
913 UINT64 InDividend,
914 UINT64 InDivisor,
915 UINT64 *OutQuotient,
916 UINT64 *OutRemainder);
917
920 UINT64 InDividend,
921 UINT32 Divisor,
922 UINT64 *OutQuotient,
923 UINT32 *OutRemainder);
924
927 UINT64 InMultiplicand,
928 UINT32 Multiplier,
929 UINT64 *Outproduct);
930
933 UINT64 Operand,
934 UINT32 Count,
935 UINT64 *OutResult);
936
939 UINT64 Operand,
940 UINT32 Count,
941 UINT64 *OutResult);
942
943
944/*
945 * utmisc
946 */
950
953 char *Id);
954
955#if (defined ACPI_ASL_COMPILER || defined ACPI_EXEC_APP || defined ACPI_NAMES_APP)
957AcpiUtIsAmlTable (
958 ACPI_TABLE_HEADER *Table);
959#endif
960
963 ACPI_OPERAND_OBJECT *SourceObject,
964 void *TargetObject,
965 ACPI_PKG_CALLBACK WalkCallback,
966 void *Context);
967
968/* Values for Base above (16=Hex, 10=Decimal) */
969
970#define ACPI_ANY_BASE 0
971
972
973UINT32
975 UINT32 Value);
976
977void
979 UINT8 Revision);
980
981#ifdef ACPI_DEBUG_OUTPUT
982void
983AcpiUtDisplayInitPathname (
984 UINT8 Type,
985 ACPI_NAMESPACE_NODE *ObjHandle,
986 const char *Path);
987#endif
988
989
990/*
991 * utownerid - Support for Table/Method Owner IDs
992 */
995 ACPI_OWNER_ID *OwnerId);
996
997void
999 ACPI_OWNER_ID *OwnerId);
1000
1001
1002/*
1003 * utresrc
1004 */
1007 ACPI_WALK_STATE *WalkState,
1008 UINT8 *Aml,
1009 ACPI_SIZE AmlLength,
1011 void **Context);
1012
1015 ACPI_WALK_STATE *WalkState,
1016 void *Aml,
1017 UINT8 *ReturnIndex);
1018
1019UINT32
1021 void *Aml);
1022
1023UINT16
1025 void *Aml);
1026
1027UINT8
1029 void *Aml);
1030
1031UINT8
1033 void *Aml);
1034
1037 ACPI_OPERAND_OBJECT *ObjDesc,
1038 UINT8 **EndTag);
1039
1040
1041/*
1042 * utstring - String and character utilities
1043 */
1044void
1046 char *String,
1047 UINT16 MaxLength);
1048
1049#if defined ACPI_ASL_COMPILER || defined ACPI_EXEC_APP
1050void
1051UtConvertBackslashes (
1052 char *Pathname);
1053#endif
1054
1055void
1057 char *Name);
1058
1059#if defined (ACPI_DEBUGGER) || defined (ACPI_APPLICATION) || defined (ACPI_DEBUG_OUTPUT)
1060BOOLEAN
1061AcpiUtSafeStrcpy (
1062 char *Dest,
1063 ACPI_SIZE DestSize,
1064 char *Source);
1065
1066void
1067AcpiUtSafeStrncpy (
1068 char *Dest,
1069 char *Source,
1070 ACPI_SIZE DestSize);
1071
1072BOOLEAN
1073AcpiUtSafeStrcat (
1074 char *Dest,
1075 ACPI_SIZE DestSize,
1076 char *Source);
1077
1078BOOLEAN
1079AcpiUtSafeStrncat (
1080 char *Dest,
1081 ACPI_SIZE DestSize,
1082 char *Source,
1083 ACPI_SIZE MaxTransferLength);
1084#endif
1085
1086
1087/*
1088 * utmutex - mutex support
1089 */
1092 void);
1093
1094void
1096 void);
1097
1100 ACPI_MUTEX_HANDLE MutexId);
1101
1104 ACPI_MUTEX_HANDLE MutexId);
1105
1106
1107/*
1108 * utalloc - memory allocation and object caching
1109 */
1112 void);
1113
1116 void);
1117
1120 ACPI_BUFFER *Buffer);
1121
1124 ACPI_BUFFER *Buffer,
1125 ACPI_SIZE RequiredLength);
1126
1127#ifdef ACPI_DBG_TRACK_ALLOCATIONS
1128void *
1129AcpiUtAllocateAndTrack (
1130 ACPI_SIZE Size,
1131 UINT32 Component,
1132 const char *Module,
1133 UINT32 Line);
1134
1135void *
1136AcpiUtAllocateZeroedAndTrack (
1137 ACPI_SIZE Size,
1138 UINT32 Component,
1139 const char *Module,
1140 UINT32 Line);
1141
1142void
1143AcpiUtFreeAndTrack (
1144 void *Address,
1145 UINT32 Component,
1146 const char *Module,
1147 UINT32 Line);
1148
1149void
1150AcpiUtDumpAllocationInfo (
1151 void);
1152
1153void
1154AcpiUtDumpAllocations (
1155 UINT32 Component,
1156 const char *Module);
1157
1159AcpiUtCreateList (
1160 const char *ListName,
1161 UINT16 ObjectSize,
1162 ACPI_MEMORY_LIST **ReturnCache);
1163
1164#endif /* ACPI_DBG_TRACK_ALLOCATIONS */
1165
1166
1167/*
1168 * utaddress - address range check
1169 */
1173 ACPI_PHYSICAL_ADDRESS Address,
1174 UINT32 Length,
1175 ACPI_NAMESPACE_NODE *RegionNode);
1176
1177void
1180 ACPI_NAMESPACE_NODE *RegionNode);
1181
1182UINT32
1185 ACPI_PHYSICAL_ADDRESS Address,
1186 UINT32 Length,
1187 BOOLEAN Warn);
1188
1189void
1191 void);
1192
1193
1194/*
1195 * utxferror - various error/warning output functions
1196 */
1199 const char *ModuleName,
1201 char *Pathname,
1202 UINT8 NodeFlags,
1203 const char *Format,
1204 ...);
1205
1208 const char *ModuleName,
1210 char *Pathname,
1211 UINT8 NodeFlags,
1212 const char *Format,
1213 ...);
1214
1217 const char *ModuleName,
1219 char *Pathname,
1220 UINT8 NodeFlags,
1221 const char *Format,
1222 ...);
1223
1224void
1226 const char *ModuleName,
1228 ACPI_GENERIC_STATE *PrefixScope,
1229 const char *InternalName,
1230 ACPI_STATUS LookupStatus);
1231
1232void
1234 const char *ModuleName,
1236 const char *Message,
1237 ACPI_NAMESPACE_NODE *Node,
1238 const char *Path,
1239 ACPI_STATUS LookupStatus);
1240
1241
1242/*
1243 * Utility functions for ACPI names and IDs
1244 */
1245const AH_PREDEFINED_NAME *
1247 char *Nameseg);
1248
1249const AH_DEVICE_ID *
1251 char *Hid);
1252
1253const char *
1255 UINT8 *Data);
1256
1257
1258/*
1259 * utuuid -- UUID support functions
1260 */
1261#if (defined ACPI_ASL_COMPILER || defined ACPI_EXEC_APP || defined ACPI_HELP_APP)
1262void
1263AcpiUtConvertStringToUuid (
1264 char *InString,
1265 UINT8 *UuidBuffer);
1266#endif
1267
1268#endif /* _ACUTILS_H */
unsigned int UINT32
Definition ProcessorBind.h:102
uint32_t Size
Definition pe.h:1
uint32_t Signature
Definition pe.h:0
char ACPI_OBJECT_TYPE * Types
Definition acdebug.h:452
#define ACPI_FILE
Definition acenv.h:496
#define ACPI_INTERNAL_VAR_XFACE
Definition acenv.h:430
UINT32 void void ** ReturnValue
Definition acevents.h:323
UINT32 void * Context
Definition acevents.h:322
UINT32 ACPI_MUTEX_HANDLE
Definition aclocal.h:160
ACPI_PHYSICAL_ADDRESS ACPI_SIZE BOOLEAN Warn BOOLEAN Physical UINT32 ACPI_TABLE_HEADER *OutTableHeader ACPI_TABLE_HEADER **OutTable ACPI_HANDLE UINT32 ACPI_WALK_CALLBACK ACPI_WALK_CALLBACK void void **ReturnValue UINT32 ACPI_BUFFER *RetPathPtr ACPI_OBJECT_HANDLER void *Data ACPI_OBJECT_HANDLER void **Data ACPI_STRING ACPI_OBJECT_LIST ACPI_BUFFER *ReturnObjectBuffer ACPI_DEVICE_INFO **ReturnBuffer ACPI_HANDLE ACPI_HANDLE ACPI_HANDLE *OutHandle ACPI_HANDLE *OutHandle void *Context void *Context ACPI_EVENT_HANDLER Handler UINT32 UINT32 ACPI_GPE_HANDLER void *Context UINT32 ACPI_NOTIFY_HANDLER void *Context ACPI_ADR_SPACE_TYPE SpaceId
Definition acpixf.h:924
ACPI_BUFFER *RetBuffer ACPI_BUFFER *RetBuffer char ACPI_WALK_RESOURCE_CALLBACK void *Context ACPI_BUFFER *RetBuffer UINT16 ACPI_RESOURCE **ResourcePtr ACPI_GENERIC_ADDRESS *Reg UINT32 *ReturnValue UINT8 UINT8 *Slp_TypB ACPI_PHYSICAL_ADDRESS PhysicalAddress64 UINT32 UINT32 *TimeElapsed UINT32 LineNumber
Definition acpixf.h:1302
ACPI_PHYSICAL_ADDRESS ACPI_SIZE BOOLEAN Warn BOOLEAN Physical UINT32 ACPI_TABLE_HEADER *OutTableHeader ACPI_TABLE_HEADER **OutTable ACPI_HANDLE UINT32 ACPI_WALK_CALLBACK ACPI_WALK_CALLBACK void void **ReturnValue UINT32 ACPI_BUFFER *RetPathPtr ACPI_OBJECT_HANDLER void *Data ACPI_OBJECT_HANDLER void **Data ACPI_STRING Pathname
Definition acpixf.h:796
ACPI_BUFFER *RetBuffer ACPI_BUFFER *RetBuffer char ACPI_WALK_RESOURCE_CALLBACK void *Context ACPI_BUFFER *RetBuffer UINT16 ACPI_RESOURCE **ResourcePtr ACPI_GENERIC_ADDRESS *Reg UINT32 *ReturnValue UINT8 UINT8 *Slp_TypB ACPI_PHYSICAL_ADDRESS PhysicalAddress64 UINT32 UINT32 *TimeElapsed UINT32 ACPI_STATUS const char UINT32 ACPI_STATUS const char UINT32 const char const char * ModuleName
Definition acpixf.h:1362
ACPI_PHYSICAL_ADDRESS Address
Definition acpixf.h:637
ACPI_BUFFER *RetBuffer ACPI_BUFFER *RetBuffer char ACPI_WALK_RESOURCE_CALLBACK void *Context ACPI_BUFFER *RetBuffer UINT16 ACPI_RESOURCE **ResourcePtr ACPI_GENERIC_ADDRESS *Reg UINT32 *ReturnValue UINT8 UINT8 *Slp_TypB ACPI_PHYSICAL_ADDRESS PhysicalAddress64 UINT32 UINT32 *TimeElapsed UINT32 ACPI_STATUS const char * Format
Definition acpixf.h:1304
ACPI_BUFFER *RetBuffer ACPI_BUFFER *RetBuffer char * Name
Definition acpixf.h:1159
ACPI_BUFFER *RetBuffer ACPI_BUFFER *RetBuffer char ACPI_WALK_RESOURCE_CALLBACK UserFunction
Definition acpixf.h:1160
ACPI_PHYSICAL_ADDRESS ACPI_SIZE BOOLEAN Warn BOOLEAN Physical UINT32 ACPI_TABLE_HEADER *OutTableHeader ACPI_TABLE_HEADER **OutTable ACPI_HANDLE UINT32 ACPI_WALK_CALLBACK ACPI_WALK_CALLBACK void void **ReturnValue UINT32 ACPI_BUFFER *RetPathPtr ACPI_OBJECT_HANDLER void *Data ACPI_OBJECT_HANDLER void **Data ACPI_STRING ACPI_OBJECT_LIST ACPI_BUFFER *ReturnObjectBuffer ACPI_DEVICE_INFO **ReturnBuffer ACPI_HANDLE ACPI_HANDLE ACPI_HANDLE *OutHandle ACPI_HANDLE *OutHandle void *Context void *Context ACPI_EVENT_HANDLER Handler UINT32 UINT32 Type
Definition acpixf.h:894
ACPI_BUFFER *RetBuffer ACPI_BUFFER *RetBuffer char ACPI_WALK_RESOURCE_CALLBACK void *Context ACPI_BUFFER *RetBuffer UINT16 ACPI_RESOURCE **ResourcePtr ACPI_GENERIC_ADDRESS *Reg UINT32 *ReturnValue UINT8 UINT8 *Slp_TypB ACPI_PHYSICAL_ADDRESS PhysicalAddress64 UINT32 UINT32 *TimeElapsed UINT32 ACPI_STATUS const char UINT32 ACPI_STATUS const char UINT32 const char const char UINT32 ComponentId
Definition acpixf.h:1363
ACPI_BUFFER *RetBuffer ACPI_BUFFER *RetBuffer char ACPI_WALK_RESOURCE_CALLBACK void *Context ACPI_BUFFER *RetBuffer UINT16 ACPI_RESOURCE **ResourcePtr ACPI_GENERIC_ADDRESS *Reg UINT32 *ReturnValue UINT8 UINT8 *Slp_TypB ACPI_PHYSICAL_ADDRESS PhysicalAddress64 UINT32 UINT32 *TimeElapsed UINT32 ACPI_STATUS Status
Definition acpixf.h:1303
ACPI_PHYSICAL_ADDRESS ACPI_SIZE Length
Definition acpixf.h:638
ACPI_BUFFER *RetBuffer ACPI_BUFFER *RetBuffer char ACPI_WALK_RESOURCE_CALLBACK void *Context ACPI_BUFFER *RetBuffer UINT16 ACPI_RESOURCE **ResourcePtr ACPI_GENERIC_ADDRESS *Reg UINT32 *ReturnValue UINT8 UINT8 *Slp_TypB ACPI_PHYSICAL_ADDRESS PhysicalAddress64 UINT32 UINT32 *TimeElapsed UINT32 ACPI_STATUS const char UINT32 ACPI_STATUS const char UINT32 const char const char UINT32 const char BOOLEAN UINT8 * Aml
Definition acpixf.h:1384
ACPI_BUFFER *RetBuffer ACPI_BUFFER *RetBuffer char ACPI_WALK_RESOURCE_CALLBACK void *Context ACPI_BUFFER *RetBuffer UINT16 ACPI_RESOURCE **ResourcePtr ACPI_GENERIC_ADDRESS *Reg UINT32 *ReturnValue UINT8 UINT8 *Slp_TypB ACPI_PHYSICAL_ADDRESS PhysicalAddress64 UINT32 UINT32 *TimeElapsed UINT32 ACPI_STATUS const char UINT32 ACPI_STATUS const char UINT32 const char * FunctionName
Definition acpixf.h:1361
unsigned short UINT16
Definition actypes.h:237
unsigned char BOOLEAN
Definition actypes.h:235
UINT32 ACPI_OBJECT_TYPE
Definition actypes.h:784
UINT8 ACPI_ADR_SPACE_TYPE
Definition actypes.h:957
char * ACPI_STRING
Definition actypes.h:570
uint32_t ACPI_STATUS
Definition actypes.h:568
unsigned char UINT8
Definition actypes.h:236
COMPILER_DEPENDENT_UINT64 UINT64
Definition actypes.h:239
UINT8 ACPI_OWNER_ID
Definition actypes.h:594
const char * AcpiUtGetReferenceName(ACPI_OPERAND_OBJECT *Object)
Definition utdecode.c:533
const char * AcpiUtGetRegionName(UINT8 SpaceId)
Definition utdecode.c:232
void AcpiUtReleaseOwnerId(ACPI_OWNER_ID *OwnerId)
Definition utownerid.c:298
void AcpiUtStrlwr(char *SrcString)
Definition utnonansi.c:177
int AcpiUtStricmp(char *String1, char *String2)
Definition utnonansi.c:252
ACPI_STATUS AcpiUtCopyISimpleToIsimple(ACPI_OPERAND_OBJECT *SourceObj, ACPI_OPERAND_OBJECT *DestObj)
const char * AcpiAhMatchUuid(UINT8 *Data)
void ACPI_INTERNAL_VAR_XFACE AcpiUtPredefinedInfo(const char *ModuleName, UINT32 LineNumber, char *Pathname, UINT8 NodeFlags, const char *Format,...)
Definition uterror.c:236
ACPI_STATUS AcpiUtAllocateOwnerId(ACPI_OWNER_ID *OwnerId)
Definition utownerid.c:176
void AcpiUtReportWarning(char *ModuleName, UINT32 LineNumber)
ACPI_STATUS AcpiUtBuildPackageObject(ACPI_OPERAND_OBJECT *Obj, UINT8 *Buffer, UINT32 *SpaceUsed)
ACPI_STATUS AcpiUtUpdateInterfaces(UINT8 Action)
Definition utosi.c:481
char AcpiUtRemoveLeadingZeros(char **String)
Definition utstrsuppt.c:364
char AcpiUtRemoveWhitespace(char **String)
Definition utstrsuppt.c:393
ACPI_GENERIC_STATE * AcpiUtCreatePkgState(void *InternalObject, void *ExternalObject, UINT32 Index)
Definition utstate.c:363
ACPI_STATUS AcpiUtDeleteCaches(void)
Definition utalloc.c:326
ACPI_STATUS AcpiUtAddAddressRange(ACPI_ADR_SPACE_TYPE SpaceId, ACPI_PHYSICAL_ADDRESS Address, UINT32 Length, ACPI_NAMESPACE_NODE *RegionNode)
Definition utaddress.c:186
ACPI_STATUS AcpiUtConvertHexString(char *String, UINT64 *ReturnValuePtr)
Definition utstrsuppt.c:310
void AcpiUtTrace(UINT32 LineNumber, const char *FunctionName, const char *ModuleName, UINT32 ComponentId)
const char * AcpiUtGetTypeName(ACPI_OBJECT_TYPE Type)
Definition utdecode.c:357
UINT32 AcpiUtCheckAddressRange(ACPI_ADR_SPACE_TYPE SpaceId, ACPI_PHYSICAL_ADDRESS Address, UINT32 Length, BOOLEAN Warn)
Definition utaddress.c:319
void AcpiUtReleaseWriteLock(ACPI_RW_LOCK *Lock)
Definition utlock.c:305
ACPI_STATUS AcpiUtExecutePowerMethods(ACPI_NAMESPACE_NODE *DeviceNode, const char **MethodNames, UINT8 MethodCount, UINT8 *OutValues)
Definition uteval.c:440
void AcpiUtReportError(char *ModuleName, UINT32 LineNumber)
ACPI_STATUS(* ACPI_WALK_AML_CALLBACK)(UINT8 *Aml, UINT32 Length, UINT32 Offset, UINT8 ResourceIndex, void **Context)
Definition acutils.h:263
void AcpiUtSetIntegerWidth(UINT8 Revision)
Definition utmisc.c:289
ACPI_STATUS AcpiUtHardwareInitialize(void)
BOOLEAN AcpiUtDetectOctalPrefix(char **String)
Definition utstrsuppt.c:472
ACPI_STATUS AcpiUtWalkPackageTree(ACPI_OPERAND_OBJECT *SourceObject, void *TargetObject, ACPI_PKG_CALLBACK WalkCallback, void *Context)
Definition utmisc.c:372
ACPI_STATUS AcpiUtInitializeBuffer(ACPI_BUFFER *Buffer, ACPI_SIZE RequiredLength)
Definition utalloc.c:444
ACPI_INTERFACE_INFO * AcpiUtGetInterface(ACPI_STRING InterfaceName)
Definition utosi.c:530
const AH_PREDEFINED_NAME * AcpiAhMatchPredefinedName(char *Nameseg)
ACPI_STATUS AcpiUtInitializeInterfaces(void)
Definition utosi.c:255
ACPI_STATUS AcpiUtUpdateObjectReference(ACPI_OPERAND_OBJECT *Object, UINT16 Action)
Definition utdelete.c:647
ACPI_STATUS AcpiUtCreateRwLock(ACPI_RW_LOCK *Lock)
Definition utlock.c:174
const UINT8 AcpiGbl_ResourceAmlSizes[]
Definition utresrc.c:165
ACPI_STATUS AcpiUtCopyIobjectToEobject(ACPI_OPERAND_OBJECT *Obj, ACPI_BUFFER *RetBuffer)
Definition utcopy.c:522
void AcpiUtExit(UINT32 LineNumber, const char *FunctionName, const char *ModuleName, UINT32 ComponentId)
ACPI_GENERIC_STATE * AcpiUtCreateGenericState(void)
Definition utstate.c:238
ACPI_STATUS AcpiUtEvaluateObject(ACPI_NAMESPACE_NODE *PrefixNode, const char *Path, UINT32 ExpectedReturnBtypes, ACPI_OPERAND_OBJECT **ReturnDesc)
Definition uteval.c:181
ACPI_STATUS AcpiUtShortShiftRight(UINT64 Operand, UINT32 Count, UINT64 *OutResult)
Definition utmath.c:292
void AcpiUtSubsystemShutdown(void)
Definition utinit.c:413
const ACPI_EXCEPTION_INFO * AcpiUtValidateException(ACPI_STATUS Status)
Definition utexcep.c:219
ACPI_STATUS AcpiUtAcquireMutex(ACPI_MUTEX_HANDLE MutexId)
Definition utmutex.c:364
ACPI_STATUS AcpiUtShortMultiply(UINT64 InMultiplicand, UINT32 Multiplier, UINT64 *Outproduct)
Definition utmath.c:196
ACPI_GENERIC_STATE * AcpiUtCreateUpdateState(ACPI_OPERAND_OBJECT *Object, UINT16 Action)
Definition utstate.c:322
const AH_DEVICE_ID * AcpiAhMatchHardwareId(char *Hid)
ACPI_OPERAND_OBJECT * AcpiUtCreatePackageObject(UINT32 Count)
Definition utobject.c:282
BOOLEAN AcpiUtIsPciRootBridge(char *Id)
Definition utmisc.c:174
void AcpiUtPtrExit(UINT32 LineNumber, const char *FunctionName, const char *ModuleName, UINT32 ComponentId, UINT8 *Ptr)
ACPI_STATUS AcpiUtCreateCaches(void)
Definition utalloc.c:212
void AcpiUtRepairName(char *Name)
Definition utstring.c:291
const ACPI_PREDEFINED_INFO * AcpiUtMatchPredefinedMethod(char *Name)
Definition utpredef.c:222
ACPI_STATUS AcpiUtExecute_UID(ACPI_NAMESPACE_NODE *DeviceNode, ACPI_PNP_DEVICE_ID **ReturnId)
Definition utids.c:268
const char * AcpiUtGetArgumentTypeName(UINT32 ArgType)
ACPI_GENERIC_STATE * AcpiUtCreateControlState(void)
Definition utstate.c:408
void AcpiUtDeleteRwLock(ACPI_RW_LOCK *Lock)
Definition utlock.c:193
UINT16 AcpiUtGetResourceLength(void *Aml)
Definition utresrc.c:634
const char * AcpiUtGetNodeName(void *Object)
Definition utdecode.c:413
ACPI_STATUS AcpiUtShortShiftLeft(UINT64 Operand, UINT32 Count, UINT64 *OutResult)
Definition utmath.c:247
ACPI_STATUS AcpiUtMutexInitialize(void)
Definition utmutex.c:183
ACPI_STATUS AcpiUtRemoveInterface(ACPI_STRING InterfaceName)
Definition utosi.c:406
ACPI_STATUS AcpiUtReleaseMutex(ACPI_MUTEX_HANDLE MutexId)
Definition utmutex.c:456
void AcpiUtPrintString(char *String, UINT16 MaxLength)
Definition utstring.c:177
void AcpiUtValueExit(UINT32 LineNumber, const char *FunctionName, const char *ModuleName, UINT32 ComponentId, UINT64 Value)
ACPI_STATUS AcpiUtInstallInterface(ACPI_STRING InterfaceName)
Definition utosi.c:360
void AcpiUtDeleteInternalObjectList(ACPI_OPERAND_OBJECT **ObjList)
Definition utdelete.c:484
UINT64 AcpiUtExplicitStrtoul64(char *String)
Definition utstrtoul64.c:455
void AcpiUtTraceU32(UINT32 LineNumber, const char *FunctionName, const char *ModuleName, UINT32 ComponentId, UINT32 Integer)
void AcpiUtPrefixedNamespaceError(const char *ModuleName, UINT32 LineNumber, ACPI_GENERIC_STATE *PrefixScope, const char *InternalName, ACPI_STATUS LookupStatus)
Definition uterror.c:335
void ACPI_INTERNAL_VAR_XFACE AcpiUtPredefinedBiosError(const char *ModuleName, UINT32 LineNumber, char *Pathname, UINT8 NodeFlags, const char *Format,...)
Definition uterror.c:285
ACPI_STATUS AcpiUtAcquireWriteLock(ACPI_RW_LOCK *Lock)
Definition utlock.c:293
const char * AcpiUtGetMutexName(UINT32 MutexId)
Definition utdecode.c:586
void AcpiUtInitStackPtrTrace(void)
void AcpiUtDebugDumpBuffer(UINT8 *Buffer, UINT32 Count, UINT32 Display, UINT32 ComponentId)
Definition utbuffer.c:319
void AcpiUtRemoveReference(ACPI_OPERAND_OBJECT *Object)
Definition utdelete.c:892
void AcpiUtDeleteAddressLists(void)
Definition utaddress.c:400
ACPI_OPERAND_OBJECT * AcpiUtCreateIntegerObject(UINT64 Value)
Definition utobject.c:331
ACPI_STATUS AcpiUtExecute_CID(ACPI_NAMESPACE_NODE *DeviceNode, ACPI_PNP_DEVICE_ID_LIST **ReturnCidList)
Definition utids.c:361
ACPI_OPERAND_OBJECT * AcpiUtCreateInternalObjectDbg(const char *ModuleName, UINT32 LineNumber, UINT32 ComponentId, ACPI_OBJECT_TYPE Type)
Definition utobject.c:202
void AcpiUtStrupr(char *SrcString)
Definition utnonansi.c:213
UINT8 AcpiUtGetResourceHeaderLength(void *Aml)
Definition utresrc.c:679
void AcpiUtReportInfo(char *ModuleName, UINT32 LineNumber)
void AcpiUtDeleteObjectDesc(ACPI_OPERAND_OBJECT *Object)
Definition utobject.c:581
ACPI_STATUS AcpiUtAsciiToHexByte(char *TwoAsciiChars, UINT8 *ReturnByte)
Definition uthex.c:208
UINT32 AcpiUtGetDescriptorLength(void *Aml)
Definition utresrc.c:713
ACPI_STATUS AcpiUtExecute_HID(ACPI_NAMESPACE_NODE *DeviceNode, ACPI_PNP_DEVICE_ID **ReturnId)
Definition utids.c:180
ACPI_STATUS AcpiUtCopyEobjectToIobject(ACPI_OBJECT *Obj, ACPI_OPERAND_OBJECT **InternalObj)
Definition utcopy.c:778
ACPI_OPERAND_OBJECT * AcpiUtCreateStringObject(ACPI_SIZE StringSize)
Definition utobject.c:428
const UINT8 AcpiGbl_ResourceAmlSerialBusSizes[]
Definition utresrc.c:209
ACPI_STATUS AcpiUtExecute_STA(ACPI_NAMESPACE_NODE *DeviceNode, UINT32 *StatusFlags)
Definition uteval.c:377
BOOLEAN AcpiUtValidObjectType(ACPI_OBJECT_TYPE Type)
Definition utdecode.c:788
ACPI_STATUS AcpiUtExecute_CLS(ACPI_NAMESPACE_NODE *DeviceNode, ACPI_PNP_DEVICE_ID **ReturnId)
Definition utids.c:514
ACPI_STATUS AcpiUtValidateResource(ACPI_WALK_STATE *WalkState, void *Aml, UINT8 *ReturnIndex)
Definition utresrc.c:421
ACPI_STATUS AcpiUtBuildSimpleObject(ACPI_OPERAND_OBJECT *Obj, ACPI_OBJECT *UserObj, UINT8 *DataSpace, UINT32 *BufferSpaceUsed)
ACPI_THREAD_STATE * AcpiUtCreateThreadState(void)
Definition utstate.c:272
void AcpiUtTraceStr(UINT32 LineNumber, const char *FunctionName, const char *ModuleName, UINT32 ComponentId, const char *String)
ACPI_STATUS AcpiUtInterfaceTerminate(void)
Definition utosi.c:299
const char * AcpiUtGetObjectTypeName(ACPI_OPERAND_OBJECT *ObjDesc)
Definition utdecode.c:371
void AcpiUtAddReference(ACPI_OPERAND_OBJECT *Object)
Definition utdelete.c:854
ACPI_STATUS AcpiUtAcquireReadLock(ACPI_RW_LOCK *Lock)
Definition utlock.c:225
struct acpi_pkg_info ACPI_PKG_INFO
UINT8 AcpiUtAsciiCharToHex(int HexChar)
Definition uthex.c:243
void AcpiUtRemoveHexPrefix(char **String)
Definition utstrsuppt.c:447
ACPI_STATUS AcpiUtGetResourceEndTag(ACPI_OPERAND_OBJECT *ObjDesc, UINT8 **EndTag)
Definition utresrc.c:743
ACPI_STATUS AcpiUtEvaluateNumericObject(const char *ObjectName, ACPI_NAMESPACE_NODE *DeviceNode, UINT64 *Value)
Definition uteval.c:329
ACPI_STATUS AcpiUtConvertOctalString(char *String, UINT64 *ReturnValue)
Definition utstrsuppt.c:198
ACPI_STATUS AcpiUtCopyIobjectToIobject(ACPI_OPERAND_OBJECT *SourceDesc, ACPI_OPERAND_OBJECT **DestDesc, ACPI_WALK_STATE *WalkState)
Definition utcopy.c:1145
ACPI_STATUS AcpiUtGetObjectSize(ACPI_OPERAND_OBJECT *Obj, ACPI_SIZE *ObjLength)
Definition utobject.c:870
void AcpiUtTracePtr(UINT32 LineNumber, const char *FunctionName, const char *ModuleName, UINT32 ComponentId, const void *Pointer)
ACPI_STATUS AcpiUtInitGlobals(void)
Definition utinit.c:239
ACPI_GENERIC_STATE * AcpiUtPopGenericState(ACPI_GENERIC_STATE **ListHead)
Definition utstate.c:201
ACPI_STATUS AcpiUtDivide(UINT64 InDividend, UINT64 InDivisor, UINT64 *OutQuotient, UINT64 *OutRemainder)
Definition utmath.c:510
UINT32 AcpiUtDwordByteSwap(UINT32 Value)
Definition utmisc.c:244
void AcpiUtMethodError(const char *ModuleName, UINT32 LineNumber, const char *Message, ACPI_NAMESPACE_NODE *Node, const char *Path, ACPI_STATUS LookupStatus)
Definition uterror.c:477
void AcpiUtMutexTerminate(void)
Definition utmutex.c:258
ACPI_OPERAND_OBJECT * AcpiUtCreateBufferObject(ACPI_SIZE BufferSize)
Definition utobject.c:366
void AcpiUtTrackStackPtr(void)
BOOLEAN AcpiUtValidInternalObject(void *Object)
Definition utobject.c:484
const char * AcpiUtGetDescriptorName(void *Object)
Definition utdecode.c:489
void AcpiUtCheckAndRepairAscii(UINT8 *Name, char *RepairedName, UINT32 Count)
Definition utascii.c:248
void * AcpiUtAllocateObjectDescDbg(const char *ModuleName, UINT32 LineNumber, UINT32 ComponentId)
Definition utobject.c:537
UINT64 AcpiUtImplicitStrtoul64(char *String)
Definition utstrtoul64.c:367
void AcpiUtStrExit(UINT32 LineNumber, const char *FunctionName, const char *ModuleName, UINT32 ComponentId, const char *String)
ACPI_STATUS AcpiUtOsiImplementation(ACPI_WALK_STATE *WalkState)
Definition utosi.c:577
char AcpiUtHexToAsciiChar(UINT64 Integer, UINT32 Position)
Definition uthex.c:182
void AcpiUtDumpBuffer(UINT8 *Buffer, UINT32 Count, UINT32 Display, UINT32 Offset)
Definition utbuffer.c:179
ACPI_STATUS AcpiUtConvertDecimalString(char *String, UINT64 *ReturnValuePtr)
Definition utstrsuppt.c:254
ACPI_STATUS AcpiUtWalkAmlResources(ACPI_WALK_STATE *WalkState, UINT8 *Aml, ACPI_SIZE AmlLength, ACPI_WALK_AML_CALLBACK UserFunction, void **Context)
Definition utresrc.c:288
UINT8 AcpiUtGetResourceType(void *Aml)
Definition utresrc.c:594
BOOLEAN AcpiUtValidNameseg(char *Signature)
Definition utascii.c:171
void ACPI_INTERNAL_VAR_XFACE AcpiUtPredefinedWarning(const char *ModuleName, UINT32 LineNumber, char *Pathname, UINT8 NodeFlags, const char *Format,...)
Definition uterror.c:187
const ACPI_PREDEFINED_INFO * AcpiUtGetNextPredefinedMethod(const ACPI_PREDEFINED_INFO *ThisName)
Definition utpredef.c:190
void AcpiUtPushGenericState(ACPI_GENERIC_STATE **ListHead, ACPI_GENERIC_STATE *State)
Definition utstate.c:173
ACPI_STATUS AcpiUtShortDivide(UINT64 InDividend, UINT32 Divisor, UINT64 *OutQuotient, UINT32 *OutRemainder)
Definition utmath.c:445
ACPI_STATUS AcpiUtStrtoul64(char *String, UINT64 *RetInteger)
Definition utstrtoul64.c:229
ACPI_STATUS AcpiUtCreateUpdateStateAndPush(ACPI_OPERAND_OBJECT *Object, UINT16 Action, ACPI_GENERIC_STATE **StateList)
Definition utmisc.c:327
BOOLEAN AcpiUtDetectHexPrefix(char **String)
Definition utstrsuppt.c:419
const char * AcpiUtGetEventName(UINT32 EventId)
Definition utdecode.c:282
void AcpiUtDeleteGenericState(ACPI_GENERIC_STATE *State)
Definition utstate.c:448
void AcpiUtRemoveAddressRange(ACPI_ADR_SPACE_TYPE SpaceId, ACPI_NAMESPACE_NODE *RegionNode)
Definition utaddress.c:247
void AcpiUtStatusExit(UINT32 LineNumber, const char *FunctionName, const char *ModuleName, UINT32 ComponentId, ACPI_STATUS Status)
BOOLEAN AcpiUtValidNameChar(char Character, UINT32 Position)
Definition utascii.c:210
void AcpiUtGetExpectedReturnTypes(char *Buffer, UINT32 ExpectedBtypes)
Definition utpredef.c:266
ACPI_STATUS AcpiUtReleaseReadLock(ACPI_RW_LOCK *Lock)
Definition utlock.c:251
ACPI_STATUS AcpiUtValidateBuffer(ACPI_BUFFER *Buffer)
Definition utalloc.c:398
ACPI_STATUS(* ACPI_PKG_CALLBACK)(UINT8 ObjectType, ACPI_OPERAND_OBJECT *SourceObject, ACPI_GENERIC_STATE *State, void *Context)
Definition acutils.h:271
void AcpiUtDeleteInternalPackageObject(ACPI_OPERAND_OBJECT *Object)
void AcpiUtDeleteInternalSimpleObject(ACPI_OPERAND_OBJECT *Object)
Definition actypes.h:1149
Definition acexcep.h:184
Definition aclocal.h:1370
Definition actypes.h:1456
Definition aclocal.h:294
Definition acutils.h:278
UINT32 NumPackages
Definition acutils.h:282
UINT8 * FreeSpace
Definition acutils.h:279
ACPI_SIZE Length
Definition acutils.h:280
UINT32 ObjectSpace
Definition acutils.h:281
Definition actypes.h:1377
Definition actypes.h:1370
Definition aclocal.h:206
Definition actbl.h:215
Definition aclocal.h:870
Definition acstruct.h:182
Definition aclocal.h:1631
Definition aclocal.h:1621
Definition aclocal.h:929
Definition actypes.h:1066
Definition acobject.h:623
Definition aclocal.h:548