48#define _COMPONENT ACPI_RESOURCES
52#define INIT_RESOURCE_TYPE(i) i->ResourceOffset
53#define INIT_RESOURCE_LENGTH(i) i->AmlOffset
54#define INIT_TABLE_LENGTH(i) i->Value
56#define COMPARE_OPCODE(i) i->ResourceOffset
57#define COMPARE_TARGET(i) i->AmlOffset
58#define COMPARE_VALUE(i) i->Value
105 "Misaligned resource pointer (get): %p Type 0x%2.2X Length %u",
129 switch (
Info->Opcode)
186 (
Info->Value * (ItemCount - 1));
191 ItemCount = AmlResourceLength;
195 (
Info->Value * (ItemCount - 1));
204 ItemCount = ItemCount / 2;
233 ItemCount =
Aml->LargeHeader.ResourceLength +
252 ItemCount = (AmlResourceLength +
275 ItemCount =
Info->Value;
285 (
Resource->Length - ItemCount * 2));
373 Info->AmlOffset + (ItemCount * 4));
377 (((ItemCount - 1) *
sizeof (
UINT32)) +
Info->Value),
388 Resource->Length += (ItemCount - 1);
404 Resource->Length += (ItemCount - 1);
415 switch (
Info->ResourceOffset)
419 if (AmlResourceLength !=
Info->Value)
515 switch (
Info->Opcode)
573 (AmlLength + (
Info->Value * (ItemCount - 1)));
579 AmlLength = (
UINT16) (AmlLength + ItemCount);
588 AmlLength = (
UINT16) (AmlLength + ItemCount * 2);
600 AmlLength + (
Info->Value * ItemCount));
613 AmlLength = (
UINT16) (AmlLength + ItemCount);
627 AmlLength = (
UINT16) (AmlLength + ItemCount);
634 AmlLength = (
UINT16) (AmlLength + ItemCount);
650 ItemCount =
Info->Value;
676 (AmlLength - ItemCount));
684 (AmlLength - ItemCount));
736 if (ItemCount <= Info->
Value)
793 if (
Aml->ExtAddress64.RevisionID !=
799 if (
Resource->Data.StartDpf.PerformanceRobustness >= 3)
804 if (((
Aml->Irq.Flags & 0x09) == 0x00) ||
805 ((
Aml->Irq.Flags & 0x09) == 0x09))
813 "Invalid interrupt polarity/trigger in resource list, 0x%X",
818 Resource->Data.ExtendedIrq.InterruptCount = Temp8;
826 if (
Resource->Data.Dma.Transfer == 0x03)
829 "Invalid DMA.Transfer preference (3)"));
#define AE_AML_INVALID_RESOURCE_TYPE
#define AE_AML_BAD_RESOURCE_LENGTH
#define AE_AML_BAD_RESOURCE_VALUE
#define ACPI_SET8(ptr, val)
#define ACPI_MOVE_16_TO_16(d, s)
#define ACPI_ROUND_UP_TO_NATIVE_WORD(a)
#define ACPI_SET16(ptr, val)
#define ACPI_MODULE_NAME(Name)
#define ACPI_WARNING(plist)
#define return_ACPI_STATUS(s)
#define ACPI_FUNCTION_TRACE(a)
#define ACPI_ERROR(plist)
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
void AcpiRsSetResourceLength(ACPI_RSDESC_SIZE TotalLength, AML_RESOURCE *Aml)
#define ACPI_RSC_COMPARE_AML_LENGTH
@ ACPI_RSC_COUNT_GPIO_PIN
@ ACPI_RSC_COUNT_GPIO_RES
@ ACPI_RSC_MOVE_SERIAL_VEN
@ ACPI_RSC_COUNT_SERIAL_VEN
@ ACPI_RSC_COUNT_SERIAL_RES
@ ACPI_RSC_COUNT_GPIO_VEN
@ ACPI_RSC_MOVE_SERIAL_RES
#define ACPI_RSC_COMPARE_VALUE
UINT8 AcpiRsDecodeBitmask(UINT16 Mask, UINT8 *List)
ACPI_RSDESC_SIZE AcpiRsSetResourceSource(AML_RESOURCE *Aml, ACPI_RS_LENGTH MinimumLength, ACPI_RESOURCE_SOURCE *ResourceSource)
void AcpiRsSetResourceHeader(UINT8 DescriptorType, ACPI_RSDESC_SIZE TotalLength, AML_RESOURCE *Aml)
BOOLEAN AcpiRsGetAddressCommon(ACPI_RESOURCE *Resource, AML_RESOURCE *Aml)
UINT16 AcpiRsEncodeBitmask(UINT8 *List, UINT8 Count)
void AcpiRsSetAddressCommon(AML_RESOURCE *Aml, ACPI_RESOURCE *Resource)
ACPI_RS_LENGTH AcpiRsGetResourceSource(ACPI_RS_LENGTH ResourceLength, ACPI_RS_LENGTH MinimumLength, ACPI_RESOURCE_SOURCE *ResourceSource, AML_RESOURCE *Aml, char *StringPtr)
void AcpiRsMoveData(void *Destination, void *Source, UINT16 ItemCount, UINT8 MoveType)
#define ACPI_SET_BIT(target, bit)
#define ACPI_ADD_PTR(t, a, b)
#define ACPI_CAST_PTR(t, p)
UINT16 AcpiUtGetResourceLength(void *Aml)
#define AML_RESOURCE_EXTENDED_ADDRESS_REVISION
struct aml_resource_large_header AML_RESOURCE_LARGE_HEADER
_Acquires_exclusive_lock_ Resource _Acquires_shared_lock_ Resource _Inout_ PERESOURCE Resource
#define memcpy(s1, s2, n)
_In_ UINT _In_ UINT _In_ PNDIS_PACKET Source
_In_ PUNICODE_STRING _Inout_ PUNICODE_STRING Destination
ACPI_STATUS AcpiRsConvertResourceToAml(ACPI_RESOURCE *Resource, AML_RESOURCE *Aml, ACPI_RSCONVERT_INFO *Info)
#define INIT_RESOURCE_LENGTH(i)
#define COMPARE_TARGET(i)
#define COMPARE_OPCODE(i)
ACPI_STATUS AcpiRsConvertAmlToResource(ACPI_RESOURCE *Resource, AML_RESOURCE *Aml, ACPI_RSCONVERT_INFO *Info)
#define INIT_TABLE_LENGTH(i)
#define INIT_RESOURCE_TYPE(i)
_Must_inspect_result_ _In_ WDFCHILDLIST _In_ PWDF_CHILD_LIST_ITERATOR _Out_ WDFDEVICE _Inout_opt_ PWDF_CHILD_RETRIEVE_INFO Info
_Must_inspect_result_ _In_ WDFKEY _In_ PCUNICODE_STRING _Out_opt_ PUSHORT _Inout_opt_ PUNICODE_STRING Value