ReactOS 0.4.15-dev-7907-g95bf896
exresop.c
Go to the documentation of this file.
1/******************************************************************************
2 *
3 * Module Name: exresop - AML Interpreter operand/object resolution
4 *
5 *****************************************************************************/
6
7/*
8 * Copyright (C) 2000 - 2022, Intel Corp.
9 * All rights reserved.
10 *
11 * Redistribution and use in source and binary forms, with or without
12 * modification, are permitted provided that the following conditions
13 * are met:
14 * 1. Redistributions of source code must retain the above copyright
15 * notice, this list of conditions, and the following disclaimer,
16 * without modification.
17 * 2. Redistributions in binary form must reproduce at minimum a disclaimer
18 * substantially similar to the "NO WARRANTY" disclaimer below
19 * ("Disclaimer") and any redistribution must be conditioned upon
20 * including a substantially similar Disclaimer requirement for further
21 * binary redistribution.
22 * 3. Neither the names of the above-listed copyright holders nor the names
23 * of any contributors may be used to endorse or promote products derived
24 * from this software without specific prior written permission.
25 *
26 * Alternatively, this software may be distributed under the terms of the
27 * GNU General Public License ("GPL") version 2 as published by the Free
28 * Software Foundation.
29 *
30 * NO WARRANTY
31 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
32 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
33 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
34 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
35 * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
36 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
37 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
38 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
39 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
40 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
41 * POSSIBILITY OF SUCH DAMAGES.
42 */
43
44#include "acpi.h"
45#include "accommon.h"
46#include "amlcode.h"
47#include "acparser.h"
48#include "acinterp.h"
49#include "acnamesp.h"
50
51
52#define _COMPONENT ACPI_EXECUTER
53 ACPI_MODULE_NAME ("exresop")
54
55/* Local prototypes */
56
57static ACPI_STATUS
59 ACPI_OBJECT_TYPE TypeNeeded,
60 ACPI_OBJECT_TYPE ThisType,
61 void *Object);
62
63
64/*******************************************************************************
65 *
66 * FUNCTION: AcpiExCheckObjectType
67 *
68 * PARAMETERS: TypeNeeded Object type needed
69 * ThisType Actual object type
70 * Object Object pointer
71 *
72 * RETURN: Status
73 *
74 * DESCRIPTION: Check required type against actual type
75 *
76 ******************************************************************************/
77
78static ACPI_STATUS
80 ACPI_OBJECT_TYPE TypeNeeded,
81 ACPI_OBJECT_TYPE ThisType,
82 void *Object)
83{
85
86
87 if (TypeNeeded == ACPI_TYPE_ANY)
88 {
89 /* All types OK, so we don't perform any typechecks */
90
91 return (AE_OK);
92 }
93
94 if (TypeNeeded == ACPI_TYPE_LOCAL_REFERENCE)
95 {
96 /*
97 * Allow the AML "Constant" opcodes (Zero, One, etc.) to be reference
98 * objects and thus allow them to be targets. (As per the ACPI
99 * specification, a store to a constant is a noop.)
100 */
101 if ((ThisType == ACPI_TYPE_INTEGER) &&
102 (((ACPI_OPERAND_OBJECT *) Object)->Common.Flags &
104 {
105 return (AE_OK);
106 }
107 }
108
109 if (TypeNeeded != ThisType)
110 {
112 "Needed type [%s], found [%s] %p",
113 AcpiUtGetTypeName (TypeNeeded),
114 AcpiUtGetTypeName (ThisType), Object));
115
116 return (AE_AML_OPERAND_TYPE);
117 }
118
119 return (AE_OK);
120}
121
122
123/*******************************************************************************
124 *
125 * FUNCTION: AcpiExResolveOperands
126 *
127 * PARAMETERS: Opcode - Opcode being interpreted
128 * StackPtr - Pointer to the operand stack to be
129 * resolved
130 * WalkState - Current state
131 *
132 * RETURN: Status
133 *
134 * DESCRIPTION: Convert multiple input operands to the types required by the
135 * target operator.
136 *
137 * Each 5-bit group in ArgTypes represents one required
138 * operand and indicates the required Type. The corresponding operand
139 * will be converted to the required type if possible, otherwise we
140 * abort with an exception.
141 *
142 ******************************************************************************/
143
147 ACPI_OPERAND_OBJECT **StackPtr,
148 ACPI_WALK_STATE *WalkState)
149{
150 ACPI_OPERAND_OBJECT *ObjDesc;
153 UINT32 ArgTypes;
154 const ACPI_OPCODE_INFO *OpInfo;
155 UINT32 ThisArgType;
156 ACPI_OBJECT_TYPE TypeNeeded;
157 UINT16 TargetOp = 0;
158
159
160 ACPI_FUNCTION_TRACE_U32 (ExResolveOperands, Opcode);
161
162
163 OpInfo = AcpiPsGetOpcodeInfo (Opcode);
164 if (OpInfo->Class == AML_CLASS_UNKNOWN)
165 {
167 }
168
169 ArgTypes = OpInfo->RuntimeArgs;
170 if (ArgTypes == ARGI_INVALID_OPCODE)
171 {
172 ACPI_ERROR ((AE_INFO, "Unknown AML opcode 0x%X",
173 Opcode));
174
176 }
177
179 "Opcode %X [%s] RequiredOperandTypes=%8.8X\n",
180 Opcode, OpInfo->Name, ArgTypes));
181
182 /*
183 * Normal exit is with (ArgTypes == 0) at end of argument list.
184 * Function will return an exception from within the loop upon
185 * finding an entry which is not (or cannot be converted
186 * to) the required type; if stack underflows; or upon
187 * finding a NULL stack entry (which should not happen).
188 */
189 while (GET_CURRENT_ARG_TYPE (ArgTypes))
190 {
191 if (!StackPtr || !*StackPtr)
192 {
193 ACPI_ERROR ((AE_INFO, "Null stack entry at %p",
194 StackPtr));
195
197 }
198
199 /* Extract useful items */
200
201 ObjDesc = *StackPtr;
202
203 /* Decode the descriptor type */
204
205 switch (ACPI_GET_DESCRIPTOR_TYPE (ObjDesc))
206 {
208
209 /* Namespace Node */
210
211 ObjectType = ((ACPI_NAMESPACE_NODE *) ObjDesc)->Type;
212
213 /*
214 * Resolve an alias object. The construction of these objects
215 * guarantees that there is only one level of alias indirection;
216 * thus, the attached object is always the aliased namespace node
217 */
219 {
220 ObjDesc = AcpiNsGetAttachedObject (
221 (ACPI_NAMESPACE_NODE *) ObjDesc);
222 *StackPtr = ObjDesc;
223 ObjectType = ((ACPI_NAMESPACE_NODE *) ObjDesc)->Type;
224 }
225 break;
226
228
229 /* ACPI internal object */
230
231 ObjectType = ObjDesc->Common.Type;
232
233 /* Check for bad ACPI_OBJECT_TYPE */
234
236 {
238 "Bad operand object type [0x%X]", ObjectType));
239
241 }
242
244 {
245 /* Validate the Reference */
246
247 switch (ObjDesc->Reference.Class)
248 {
250
251 TargetOp = AML_DEBUG_OP;
252
254
259 case ACPI_REFCLASS_TABLE: /* DdbHandle from LOAD_OP or LOAD_TABLE_OP */
260 case ACPI_REFCLASS_NAME: /* Reference to a named object */
261
263 "Operand is a Reference, Class [%s] %2.2X\n",
264 AcpiUtGetReferenceName (ObjDesc),
265 ObjDesc->Reference.Class));
266 break;
267
268 default:
269
271 "Unknown Reference Class 0x%2.2X in %p",
272 ObjDesc->Reference.Class, ObjDesc));
273
275 }
276 }
277 break;
278
279 default:
280
281 /* Invalid descriptor */
282
283 ACPI_ERROR ((AE_INFO, "Invalid descriptor %p [%s]",
284 ObjDesc, AcpiUtGetDescriptorName (ObjDesc)));
285
287 }
288
289 /* Get one argument type, point to the next */
290
291 ThisArgType = GET_CURRENT_ARG_TYPE (ArgTypes);
292 INCREMENT_ARG_LIST (ArgTypes);
293
294 /*
295 * Handle cases where the object does not need to be
296 * resolved to a value
297 */
298 switch (ThisArgType)
299 {
300 case ARGI_REF_OR_STRING: /* Can be a String or Reference */
301
302 if ((ACPI_GET_DESCRIPTOR_TYPE (ObjDesc) ==
304 (ObjDesc->Common.Type == ACPI_TYPE_STRING))
305 {
306 /*
307 * String found - the string references a named object and
308 * must be resolved to a node
309 */
310 goto NextOperand;
311 }
312
313 /*
314 * Else not a string - fall through to the normal Reference
315 * case below
316 */
318
319 case ARGI_REFERENCE: /* References: */
320 case ARGI_INTEGER_REF:
321 case ARGI_OBJECT_REF:
322 case ARGI_DEVICE_REF:
323 case ARGI_TARGETREF: /* Allows implicit conversion rules before store */
324 case ARGI_FIXED_TARGET: /* No implicit conversion before store to target */
325 case ARGI_SIMPLE_TARGET: /* Name, Local, or Arg - no implicit conversion */
327
328 /*
329 * Need an operand of type ACPI_TYPE_LOCAL_REFERENCE
330 * A Namespace Node is OK as-is
331 */
333 {
334 goto NextOperand;
335 }
336
339 if (ACPI_FAILURE (Status))
340 {
342 }
343 goto NextOperand;
344
345 case ARGI_DATAREFOBJ: /* Store operator only */
346 /*
347 * We don't want to resolve IndexOp reference objects during
348 * a store because this would be an implicit DeRefOf operation.
349 * Instead, we just want to store the reference object.
350 * -- All others must be resolved below.
351 */
352 if ((Opcode == AML_STORE_OP) &&
353 ((*StackPtr)->Common.Type == ACPI_TYPE_LOCAL_REFERENCE) &&
354 ((*StackPtr)->Reference.Class == ACPI_REFCLASS_INDEX))
355 {
356 goto NextOperand;
357 }
358 break;
359
360 default:
361
362 /* All cases covered above */
363
364 break;
365 }
366
367 /*
368 * Resolve this object to a value
369 */
370 Status = AcpiExResolveToValue (StackPtr, WalkState);
371 if (ACPI_FAILURE (Status))
372 {
374 }
375
376 /* Get the resolved object */
377
378 ObjDesc = *StackPtr;
379
380 /*
381 * Check the resulting object (value) type
382 */
383 switch (ThisArgType)
384 {
385 /*
386 * For the simple cases, only one type of resolved object
387 * is allowed
388 */
389 case ARGI_MUTEX:
390
391 /* Need an operand of type ACPI_TYPE_MUTEX */
392
393 TypeNeeded = ACPI_TYPE_MUTEX;
394 break;
395
396 case ARGI_EVENT:
397
398 /* Need an operand of type ACPI_TYPE_EVENT */
399
400 TypeNeeded = ACPI_TYPE_EVENT;
401 break;
402
403 case ARGI_PACKAGE: /* Package */
404
405 /* Need an operand of type ACPI_TYPE_PACKAGE */
406
407 TypeNeeded = ACPI_TYPE_PACKAGE;
408 break;
409
410 case ARGI_ANYTYPE:
411
412 /* Any operand type will do */
413
414 TypeNeeded = ACPI_TYPE_ANY;
415 break;
416
417 case ARGI_DDBHANDLE:
418
419 /* Need an operand of type ACPI_TYPE_DDB_HANDLE */
420
421 TypeNeeded = ACPI_TYPE_LOCAL_REFERENCE;
422 break;
423
424
425 /*
426 * The more complex cases allow multiple resolved object types
427 */
428 case ARGI_INTEGER:
429
430 /*
431 * Need an operand of type ACPI_TYPE_INTEGER, but we can
432 * implicitly convert from a STRING or BUFFER.
433 *
434 * Known as "Implicit Source Operand Conversion"
435 */
436 Status = AcpiExConvertToInteger (ObjDesc, StackPtr,
438 if (ACPI_FAILURE (Status))
439 {
440 if (Status == AE_TYPE)
441 {
443 "Needed [Integer/String/Buffer], found [%s] %p",
444 AcpiUtGetObjectTypeName (ObjDesc), ObjDesc));
445
447 }
448
450 }
451
452 if (ObjDesc != *StackPtr)
453 {
454 AcpiUtRemoveReference (ObjDesc);
455 }
456 goto NextOperand;
457
458 case ARGI_BUFFER:
459 /*
460 * Need an operand of type ACPI_TYPE_BUFFER,
461 * But we can implicitly convert from a STRING or INTEGER
462 * Aka - "Implicit Source Operand Conversion"
463 */
464 Status = AcpiExConvertToBuffer (ObjDesc, StackPtr);
465 if (ACPI_FAILURE (Status))
466 {
467 if (Status == AE_TYPE)
468 {
470 "Needed [Integer/String/Buffer], found [%s] %p",
471 AcpiUtGetObjectTypeName (ObjDesc), ObjDesc));
472
474 }
475
477 }
478
479 if (ObjDesc != *StackPtr)
480 {
481 AcpiUtRemoveReference (ObjDesc);
482 }
483 goto NextOperand;
484
485 case ARGI_STRING:
486 /*
487 * Need an operand of type ACPI_TYPE_STRING,
488 * But we can implicitly convert from a BUFFER or INTEGER
489 * Aka - "Implicit Source Operand Conversion"
490 */
492 ObjDesc, StackPtr, ACPI_IMPLICIT_CONVERT_HEX);
493 if (ACPI_FAILURE (Status))
494 {
495 if (Status == AE_TYPE)
496 {
498 "Needed [Integer/String/Buffer], found [%s] %p",
499 AcpiUtGetObjectTypeName (ObjDesc), ObjDesc));
500
502 }
503
505 }
506
507 if (ObjDesc != *StackPtr)
508 {
509 AcpiUtRemoveReference (ObjDesc);
510 }
511 goto NextOperand;
512
513 case ARGI_COMPUTEDATA:
514
515 /* Need an operand of type INTEGER, STRING or BUFFER */
516
517 switch (ObjDesc->Common.Type)
518 {
520 case ACPI_TYPE_STRING:
521 case ACPI_TYPE_BUFFER:
522
523 /* Valid operand */
524 break;
525
526 default:
528 "Needed [Integer/String/Buffer], found [%s] %p",
529 AcpiUtGetObjectTypeName (ObjDesc), ObjDesc));
530
532 }
533 goto NextOperand;
534
536
537 /* Need an operand of type STRING or BUFFER */
538
539 switch (ObjDesc->Common.Type)
540 {
541 case ACPI_TYPE_STRING:
542 case ACPI_TYPE_BUFFER:
543
544 /* Valid operand */
545 break;
546
548
549 /* Highest priority conversion is to type Buffer */
550
551 Status = AcpiExConvertToBuffer (ObjDesc, StackPtr);
552 if (ACPI_FAILURE (Status))
553 {
555 }
556
557 if (ObjDesc != *StackPtr)
558 {
559 AcpiUtRemoveReference (ObjDesc);
560 }
561 break;
562
563 default:
565 "Needed [Integer/String/Buffer], found [%s] %p",
566 AcpiUtGetObjectTypeName (ObjDesc), ObjDesc));
567
569 }
570 goto NextOperand;
571
572 case ARGI_DATAOBJECT:
573 /*
574 * ARGI_DATAOBJECT is only used by the SizeOf operator.
575 * Need a buffer, string, package, or RefOf reference.
576 *
577 * The only reference allowed here is a direct reference to
578 * a namespace node.
579 */
580 switch (ObjDesc->Common.Type)
581 {
583 case ACPI_TYPE_STRING:
584 case ACPI_TYPE_BUFFER:
586
587 /* Valid operand */
588 break;
589
590 default:
591
593 "Needed [Buffer/String/Package/Reference], found [%s] %p",
594 AcpiUtGetObjectTypeName (ObjDesc), ObjDesc));
595
597 }
598 goto NextOperand;
599
600 case ARGI_COMPLEXOBJ:
601
602 /* Need a buffer or package or (ACPI 2.0) String */
603
604 switch (ObjDesc->Common.Type)
605 {
607 case ACPI_TYPE_STRING:
608 case ACPI_TYPE_BUFFER:
609
610 /* Valid operand */
611 break;
612
613 default:
614
616 "Needed [Buffer/String/Package], found [%s] %p",
617 AcpiUtGetObjectTypeName (ObjDesc), ObjDesc));
618
620 }
621 goto NextOperand;
622
623 case ARGI_REGION_OR_BUFFER: /* Used by Load() only */
624
625 /*
626 * Need an operand of type REGION or a BUFFER
627 * (which could be a resolved region field)
628 */
629 switch (ObjDesc->Common.Type)
630 {
631 case ACPI_TYPE_BUFFER:
632 case ACPI_TYPE_REGION:
633
634 /* Valid operand */
635 break;
636
637 default:
638
640 "Needed [Region/Buffer], found [%s] %p",
641 AcpiUtGetObjectTypeName (ObjDesc), ObjDesc));
642
644 }
645 goto NextOperand;
646
647 case ARGI_DATAREFOBJ:
648
649 /* Used by the Store() operator only */
650
651 switch (ObjDesc->Common.Type)
652 {
655 case ACPI_TYPE_STRING:
656 case ACPI_TYPE_BUFFER:
663
664 /* Valid operand */
665 break;
666
667 default:
668
669 if (AcpiGbl_EnableInterpreterSlack)
670 {
671 /*
672 * Enable original behavior of Store(), allowing any
673 * and all objects as the source operand. The ACPI
674 * spec does not allow this, however.
675 */
676 break;
677 }
678
679 if (TargetOp == AML_DEBUG_OP)
680 {
681 /* Allow store of any object to the Debug object */
682
683 break;
684 }
685
687 "Needed Integer/Buffer/String/Package/Ref/Ddb]"
688 ", found [%s] %p",
689 AcpiUtGetObjectTypeName (ObjDesc), ObjDesc));
690
692 }
693 goto NextOperand;
694
695 default:
696
697 /* Unknown type */
698
700 "Internal - Unknown ARGI (required operand) type 0x%X",
701 ThisArgType));
702
704 }
705
706 /*
707 * Make sure that the original object was resolved to the
708 * required object type (Simple cases only).
709 */
711 TypeNeeded, (*StackPtr)->Common.Type, *StackPtr);
712 if (ACPI_FAILURE (Status))
713 {
715 }
716
717NextOperand:
718 /*
719 * If more operands needed, decrement StackPtr to point
720 * to next operand on stack
721 */
722 if (GET_CURRENT_ARG_TYPE (ArgTypes))
723 {
724 StackPtr--;
725 }
726 }
727
728 ACPI_DUMP_OPERANDS (WalkState->Operands,
730
732}
unsigned short UINT16
unsigned char UINT8
unsigned int UINT32
#define ACPI_FAILURE(a)
Definition: acexcep.h:95
#define AE_AML_INTERNAL
Definition: acexcep.h:194
#define AE_BAD_PARAMETER
Definition: acexcep.h:151
#define AE_AML_BAD_OPCODE
Definition: acexcep.h:180
#define AE_AML_OPERAND_TYPE
Definition: acexcep.h:182
#define AE_TYPE
Definition: acexcep.h:116
#define AE_OK
Definition: acexcep.h:97
#define ACPI_IMPLICIT_CONVERT_HEX
Definition: acinterp.h:126
#define ACPI_GET_DESCRIPTOR_TYPE(d)
Definition: acmacros.h:414
#define GET_CURRENT_ARG_TYPE(List)
Definition: acmacros.h:450
#define INCREMENT_ARG_LIST(List)
Definition: acmacros.h:451
ACPI_OPERAND_OBJECT * AcpiNsGetAttachedObject(ACPI_NAMESPACE_NODE *Node)
Definition: nsobject.c:308
#define ACPI_DESC_TYPE_OPERAND
Definition: acobject.h:576
#define ACPI_DESC_TYPE_NAMED
Definition: acobject.h:577
@ ACPI_REFCLASS_TABLE
Definition: acobject.h:463
@ ACPI_REFCLASS_NAME
Definition: acobject.h:464
@ ACPI_REFCLASS_ARG
Definition: acobject.h:460
@ ACPI_REFCLASS_INDEX
Definition: acobject.h:462
@ ACPI_REFCLASS_LOCAL
Definition: acobject.h:459
@ ACPI_REFCLASS_REFOF
Definition: acobject.h:461
@ ACPI_REFCLASS_DEBUG
Definition: acobject.h:465
#define AOPOBJ_AML_CONSTANT
Definition: acobject.h:94
#define ACPI_DEBUG_PRINT(pl)
Definition: acoutput.h:475
#define ACPI_MODULE_NAME(Name)
Definition: acoutput.h:216
#define ACPI_FUNCTION_ENTRY()
Definition: acoutput.h:484
#define ACPI_FUNCTION_TRACE_U32(a, b)
Definition: acoutput.h:482
#define ACPI_DB_EXEC
Definition: acoutput.h:165
#define ACPI_DUMP_OPERANDS(a, b, c)
Definition: acoutput.h:486
#define return_ACPI_STATUS(s)
Definition: acoutput.h:496
#define ACPI_ERROR(plist)
Definition: acoutput.h:240
#define AE_INFO
Definition: acoutput.h:230
const char * AcpiPsGetOpcodeName(UINT16 Opcode)
Definition: psopinfo.c:169
const ACPI_OPCODE_INFO * AcpiPsGetOpcodeInfo(UINT16 Opcode)
Definition: psopinfo.c:72
#define ACPI_TYPE_LOCAL_REFERENCE
Definition: actypes.h:719
#define ACPI_TYPE_BUFFER_FIELD
Definition: actypes.h:701
#define ACPI_TYPE_STRING
Definition: actypes.h:689
#define ACPI_TYPE_LOCAL_BANK_FIELD
Definition: actypes.h:717
#define ACPI_TYPE_EVENT
Definition: actypes.h:694
UINT32 ACPI_OBJECT_TYPE
Definition: actypes.h:685
#define ACPI_TYPE_MUTEX
Definition: actypes.h:696
#define ACPI_TYPE_LOCAL_ALIAS
Definition: actypes.h:720
#define ACPI_TYPE_BUFFER
Definition: actypes.h:690
#define ACPI_TYPE_REGION
Definition: actypes.h:697
#define ACPI_TYPE_INTEGER
Definition: actypes.h:688
#define ACPI_TYPE_LOCAL_REGION_FIELD
Definition: actypes.h:716
#define ACPI_TYPE_ANY
Definition: actypes.h:687
UINT32 ACPI_STATUS
Definition: actypes.h:460
#define ACPI_TYPE_DDB_HANDLE
Definition: actypes.h:702
#define ACPI_TYPE_PACKAGE
Definition: actypes.h:691
#define ACPI_TYPE_LOCAL_INDEX_FIELD
Definition: actypes.h:718
#define ACPI_FALLTHROUGH
Definition: actypes.h:1466
const char * AcpiUtGetReferenceName(ACPI_OPERAND_OBJECT *Object)
Definition: utdecode.c:426
const char * AcpiUtGetTypeName(ACPI_OBJECT_TYPE Type)
Definition: utdecode.c:250
void AcpiUtRemoveReference(ACPI_OPERAND_OBJECT *Object)
Definition: utdelete.c:790
BOOLEAN AcpiUtValidObjectType(ACPI_OBJECT_TYPE Type)
Definition: utdecode.c:681
const char * AcpiUtGetObjectTypeName(ACPI_OPERAND_OBJECT *ObjDesc)
Definition: utdecode.c:264
#define ACPI_IMPLICIT_CONVERSION
Definition: acutils.h:145
const char * AcpiUtGetDescriptorName(void *Object)
Definition: utdecode.c:382
#define ARGI_BUFFER
Definition: amlcode.h:270
#define ARGI_BUFFER_OR_STRING
Definition: amlcode.h:271
#define ARGI_COMPUTEDATA
Definition: amlcode.h:272
#define ARGI_COMPLEXOBJ
Definition: amlcode.h:288
#define ARGI_STRING
Definition: amlcode.h:269
#define ARGI_DDBHANDLE
Definition: amlcode.h:264
#define ARGI_OBJECT_REF
Definition: amlcode.h:277
#define ARGI_DEVICE_REF
Definition: amlcode.h:278
#define ARGI_INVALID_OPCODE
Definition: amlcode.h:295
#define AML_STORE_OP
Definition: amlcode.h:88
#define ARGI_REFERENCE
Definition: amlcode.h:279
#define ARGI_DATAREFOBJ
Definition: amlcode.h:291
#define ARGI_INTEGER_REF
Definition: amlcode.h:276
#define ARGI_MUTEX
Definition: amlcode.h:263
#define AML_DEBUG_OP
Definition: amlcode.h:177
#define ARGI_ANYTYPE
Definition: amlcode.h:260
#define ARGI_REF_OR_STRING
Definition: amlcode.h:289
#define ARGI_FIXED_TARGET
Definition: amlcode.h:281
#define ARGI_EVENT
Definition: amlcode.h:262
#define ARGI_REGION_OR_BUFFER
Definition: amlcode.h:290
#define ARGI_INTEGER
Definition: amlcode.h:268
#define ARGI_TARGETREF
Definition: amlcode.h:280
#define AML_CLASS_UNKNOWN
Definition: amlcode.h:410
#define ARGI_DATAOBJECT
Definition: amlcode.h:287
#define ARGI_PACKAGE
Definition: amlcode.h:261
#define ARGI_STORE_TARGET
Definition: amlcode.h:283
#define ARGI_SIMPLE_TARGET
Definition: amlcode.h:282
ACPI_STATUS AcpiExConvertToBuffer(ACPI_OPERAND_OBJECT *ObjDesc, ACPI_OPERAND_OBJECT **ResultDesc)
Definition: exconvrt.c:224
ACPI_STATUS AcpiExConvertToInteger(ACPI_OPERAND_OBJECT *ObjDesc, ACPI_OPERAND_OBJECT **ResultDesc, UINT32 ImplicitConversion)
Definition: exconvrt.c:79
ACPI_STATUS AcpiExConvertToString(ACPI_OPERAND_OBJECT *ObjDesc, ACPI_OPERAND_OBJECT **ResultDesc, UINT32 Type)
Definition: exconvrt.c:440
ACPI_STATUS AcpiExResolveToValue(ACPI_OPERAND_OBJECT **StackPtr, ACPI_WALK_STATE *WalkState)
Definition: exresolv.c:79
static ACPI_STATUS AcpiExCheckObjectType(ACPI_OBJECT_TYPE TypeNeeded, ACPI_OBJECT_TYPE ThisType, void *Object)
Definition: exresop.c:79
ACPI_STATUS AcpiExResolveOperands(UINT16 Opcode, ACPI_OPERAND_OBJECT **StackPtr, ACPI_WALK_STATE *WalkState)
Definition: exresop.c:145
Status
Definition: gdiplustypes.h:25
_In_ PVOID _In_ ULONG Opcode
Definition: hubbusif.h:331
ObjectType
Definition: metafile.c:81
ACPI_OBJECT_COMMON_HEADER UINT8 Class
Definition: acobject.h:443
UINT32 RuntimeArgs
Definition: aclocal.h:872
union acpi_operand_object * Operands[ACPI_OBJ_NUM_OPERANDS+1]
Definition: acstruct.h:105
UINT8 NumOperands
Definition: acstruct.h:80
ACPI_OBJECT_REFERENCE Reference
Definition: acobject.h:540
ACPI_OBJECT_COMMON Common
Definition: acobject.h:519
_Must_inspect_result_ _In_ WDFCOLLECTION _In_ WDFOBJECT Object