1 /*******************************************************************************
3 * Module Name: dmresrcl.c - "Large" Resource Descriptor disassembly
5 ******************************************************************************/
8 * Copyright (C) 2000 - 2017, Intel Corp.
11 * Redistribution and use in source and binary forms, with or without
12 * modification, are permitted provided that the following conditions
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.
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.
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 MERCHANTIBILITY 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.
49 #ifdef ACPI_DISASSEMBLER
51 #define _COMPONENT ACPI_CA_DEBUGGER
52 ACPI_MODULE_NAME ("dbresrcl")
55 /* Common names for address and memory descriptors */
57 static const char *AcpiDmAddressNames[] =
66 static const char *AcpiDmMemoryNames[] =
75 /* Local prototypes */
99 AcpiDmResourceSource (
100 AML_RESOURCE *Resource,
101 ACPI_SIZE MinimumLength,
105 AcpiDmAddressFields (
111 AcpiDmAddressPrefix (
115 AcpiDmAddressCommon (
116 AML_RESOURCE *Resource,
122 AML_RESOURCE *Resource);
125 /*******************************************************************************
127 * FUNCTION: AcpiDmMemoryFields
129 * PARAMETERS: Source - Pointer to the contiguous data fields
130 * Type - 16 or 32 (bit)
131 * Level - Current source code indentation level
135 * DESCRIPTION: Decode fields common to Memory24 and Memory32 descriptors
137 ******************************************************************************/
148 for (i = 0; i < 4; i++)
150 AcpiDmIndent (Level + 1);
156 AcpiDmDumpInteger16 (ACPI_CAST_PTR (UINT16, Source)[i],
157 AcpiDmMemoryNames[i]);
162 AcpiDmDumpInteger32 (ACPI_CAST_PTR (UINT32, Source)[i],
163 AcpiDmMemoryNames[i]);
174 /*******************************************************************************
176 * FUNCTION: AcpiDmAddressFields
178 * PARAMETERS: Source - Pointer to the contiguous data fields
179 * Type - 16, 32, or 64 (bit)
180 * Level - Current source code indentation level
184 * DESCRIPTION: Decode fields common to address descriptors
186 ******************************************************************************/
189 AcpiDmAddressFields (
199 for (i = 0; i < 5; i++)
201 AcpiDmIndent (Level + 1);
207 AcpiDmDumpInteger16 (ACPI_CAST_PTR (UINT16, Source)[i],
208 AcpiDmAddressNames[i]);
213 AcpiDmDumpInteger32 (ACPI_CAST_PTR (UINT32, Source)[i],
214 AcpiDmAddressNames[i]);
219 AcpiDmDumpInteger64 (ACPI_CAST_PTR (UINT64, Source)[i],
220 AcpiDmAddressNames[i]);
231 /*******************************************************************************
233 * FUNCTION: AcpiDmAddressPrefix
235 * PARAMETERS: Type - Descriptor type
239 * DESCRIPTION: Emit name prefix representing the address descriptor type
241 ******************************************************************************/
244 AcpiDmAddressPrefix (
250 case ACPI_RESOURCE_TYPE_ADDRESS16:
252 AcpiOsPrintf ("Word");
255 case ACPI_RESOURCE_TYPE_ADDRESS32:
257 AcpiOsPrintf ("DWord");
260 case ACPI_RESOURCE_TYPE_ADDRESS64:
262 AcpiOsPrintf ("QWord");
265 case ACPI_RESOURCE_TYPE_EXTENDED_ADDRESS64:
267 AcpiOsPrintf ("Extended");
277 /*******************************************************************************
279 * FUNCTION: AcpiDmAddressCommon
281 * PARAMETERS: Resource - Raw AML descriptor
282 * Type - Descriptor type
283 * Level - Current source code indentation level
287 * DESCRIPTION: Emit common name and flag fields common to address descriptors
289 ******************************************************************************/
292 AcpiDmAddressCommon (
293 AML_RESOURCE *Resource,
302 ResourceType = Resource->Address.ResourceType;
303 SpecificFlags = Resource->Address.SpecificFlags;
304 Flags = Resource->Address.Flags;
306 AcpiDmIndent (Level);
308 /* Validate ResourceType */
310 if ((ResourceType > 2) && (ResourceType < 0xC0))
313 "/**** Invalid Resource Type: 0x%X ****/", ResourceType);
317 /* Prefix is either Word, DWord, QWord, or Extended */
319 AcpiDmAddressPrefix (Type);
321 /* Resource Types above 0xC0 are vendor-defined */
323 if (ResourceType > 2)
325 AcpiOsPrintf ("Space (0x%2.2X, ", ResourceType);
326 AcpiDmSpaceFlags (Flags);
327 AcpiOsPrintf (" 0x%2.2X,", SpecificFlags);
331 /* This is either a Memory, IO, or BusNumber descriptor (0,1,2) */
333 AcpiOsPrintf ("%s (",
334 AcpiGbl_WordDecode [ACPI_GET_2BIT_FLAG (ResourceType)]);
336 /* Decode the general and type-specific flags */
338 if (ResourceType == ACPI_MEMORY_RANGE)
340 AcpiDmMemoryFlags (Flags, SpecificFlags);
342 else /* IO range or BusNumberRange */
344 AcpiDmIoFlags (Flags);
345 if (ResourceType == ACPI_IO_RANGE)
347 AcpiOsPrintf (" %s,",
348 AcpiGbl_RngDecode [ACPI_GET_2BIT_FLAG (SpecificFlags)]);
354 /*******************************************************************************
356 * FUNCTION: AcpiDmAddressFlags
358 * PARAMETERS: Resource - Raw AML descriptor
362 * DESCRIPTION: Emit flags common to address descriptors
364 ******************************************************************************/
368 AML_RESOURCE *Resource)
371 if (Resource->Address.ResourceType == ACPI_IO_RANGE)
373 AcpiDmIoFlags2 (Resource->Address.SpecificFlags);
375 else if (Resource->Address.ResourceType == ACPI_MEMORY_RANGE)
377 AcpiDmMemoryFlags2 (Resource->Address.SpecificFlags);
382 /*******************************************************************************
384 * FUNCTION: AcpiDmSpaceFlags
386 * PARAMETERS: Flags - Flag byte to be decoded
390 * DESCRIPTION: Decode the flags specific to Space Address space descriptors
392 ******************************************************************************/
399 AcpiOsPrintf ("%s, %s, %s, %s,",
400 AcpiGbl_ConsumeDecode [ACPI_GET_1BIT_FLAG (Flags)],
401 AcpiGbl_DecDecode [ACPI_EXTRACT_1BIT_FLAG (Flags, 1)],
402 AcpiGbl_MinDecode [ACPI_EXTRACT_1BIT_FLAG (Flags, 2)],
403 AcpiGbl_MaxDecode [ACPI_EXTRACT_1BIT_FLAG (Flags, 3)]);
407 /*******************************************************************************
409 * FUNCTION: AcpiDmIoFlags
411 * PARAMETERS: Flags - Flag byte to be decoded
415 * DESCRIPTION: Decode the flags specific to IO Address space descriptors
417 ******************************************************************************/
423 AcpiOsPrintf ("%s, %s, %s, %s,",
424 AcpiGbl_ConsumeDecode [ACPI_GET_1BIT_FLAG (Flags)],
425 AcpiGbl_MinDecode [ACPI_EXTRACT_1BIT_FLAG (Flags, 2)],
426 AcpiGbl_MaxDecode [ACPI_EXTRACT_1BIT_FLAG (Flags, 3)],
427 AcpiGbl_DecDecode [ACPI_EXTRACT_1BIT_FLAG (Flags, 1)]);
431 /*******************************************************************************
433 * FUNCTION: AcpiDmIoFlags2
435 * PARAMETERS: SpecificFlags - "Specific" flag byte to be decoded
439 * DESCRIPTION: Decode the flags specific to IO Address space descriptors
441 ******************************************************************************/
450 AcpiOsPrintf (", %s",
451 AcpiGbl_TtpDecode [ACPI_EXTRACT_1BIT_FLAG (SpecificFlags, 4)]);
454 * TRS is only used if TTP is TypeTranslation. However, the disassembler
455 * always emits exactly what is in the AML.
457 AcpiOsPrintf (", %s",
458 AcpiGbl_TrsDecode [ACPI_EXTRACT_1BIT_FLAG (SpecificFlags, 5)]);
462 /*******************************************************************************
464 * FUNCTION: AcpiDmMemoryFlags
466 * PARAMETERS: Flags - Flag byte to be decoded
467 * SpecificFlags - "Specific" flag byte to be decoded
471 * DESCRIPTION: Decode flags specific to Memory Address Space descriptors
473 ******************************************************************************/
481 AcpiOsPrintf ("%s, %s, %s, %s, %s, %s,",
482 AcpiGbl_ConsumeDecode [ACPI_GET_1BIT_FLAG (Flags)],
483 AcpiGbl_DecDecode [ACPI_EXTRACT_1BIT_FLAG (Flags, 1)],
484 AcpiGbl_MinDecode [ACPI_EXTRACT_1BIT_FLAG (Flags, 2)],
485 AcpiGbl_MaxDecode [ACPI_EXTRACT_1BIT_FLAG (Flags, 3)],
486 AcpiGbl_MemDecode [ACPI_EXTRACT_2BIT_FLAG (SpecificFlags, 1)],
487 AcpiGbl_RwDecode [ACPI_GET_1BIT_FLAG (SpecificFlags)]);
491 /*******************************************************************************
493 * FUNCTION: AcpiDmMemoryFlags2
495 * PARAMETERS: SpecificFlags - "Specific" flag byte to be decoded
499 * DESCRIPTION: Decode flags specific to Memory Address Space descriptors
501 ******************************************************************************/
508 AcpiOsPrintf (", %s, %s",
509 AcpiGbl_MtpDecode [ACPI_EXTRACT_2BIT_FLAG (SpecificFlags, 3)],
510 AcpiGbl_TtpDecode [ACPI_EXTRACT_1BIT_FLAG (SpecificFlags, 5)]);
514 /*******************************************************************************
516 * FUNCTION: AcpiDmResourceSource
518 * PARAMETERS: Resource - Raw AML descriptor
519 * MinimumLength - descriptor length without optional fields
524 * DESCRIPTION: Dump optional ResourceSource fields of an address descriptor
526 ******************************************************************************/
529 AcpiDmResourceSource (
530 AML_RESOURCE *Resource,
531 ACPI_SIZE MinimumTotalLength,
532 UINT32 ResourceLength)
534 UINT8 *AmlResourceSource;
538 TotalLength = ResourceLength + sizeof (AML_RESOURCE_LARGE_HEADER);
540 /* Check if the optional ResourceSource fields are present */
542 if (TotalLength <= MinimumTotalLength)
544 /* The two optional fields are not used */
546 AcpiOsPrintf (",, ");
550 /* Get a pointer to the ResourceSource */
552 AmlResourceSource = ACPI_ADD_PTR (UINT8, Resource, MinimumTotalLength);
555 * Always emit the ResourceSourceIndex (Byte)
557 * NOTE: Some ASL compilers always create a 0 byte (in the AML) for the
558 * Index even if the String does not exist. Although this is in violation
559 * of the ACPI specification, it is very important to emit ASL code that
560 * can be compiled back to the identical AML. There may be fields and/or
561 * indexes into the resource template buffer that are compiled to absolute
562 * offsets, and these will be broken if the AML length is changed.
564 AcpiOsPrintf ("0x%2.2X,", (UINT32) AmlResourceSource[0]);
566 /* Make sure that the ResourceSource string exists before dumping it */
568 if (TotalLength > (MinimumTotalLength + 1))
571 AcpiUtPrintString ((char *) &AmlResourceSource[1], ACPI_UINT16_MAX);
578 /*******************************************************************************
580 * FUNCTION: AcpiDmWordDescriptor
582 * PARAMETERS: Info - Extra resource info
583 * Resource - Pointer to the resource descriptor
584 * Length - Length of the descriptor in bytes
585 * Level - Current source code indentation level
589 * DESCRIPTION: Decode a Word Address Space descriptor
591 ******************************************************************************/
594 AcpiDmWordDescriptor (
595 ACPI_OP_WALK_INFO *Info,
596 AML_RESOURCE *Resource,
601 /* Dump resource name and flags */
603 AcpiDmAddressCommon (Resource, ACPI_RESOURCE_TYPE_ADDRESS16, Level);
605 /* Dump the 5 contiguous WORD values */
607 AcpiDmAddressFields (&Resource->Address16.Granularity, 16, Level);
609 /* The ResourceSource fields are optional */
611 AcpiDmIndent (Level + 1);
612 AcpiDmResourceSource (Resource, sizeof (AML_RESOURCE_ADDRESS16), Length);
614 /* Insert a descriptor name */
616 AcpiDmDescriptorName ();
618 /* Type-specific flags */
620 AcpiDmAddressFlags (Resource);
621 AcpiOsPrintf (")\n");
625 /*******************************************************************************
627 * FUNCTION: AcpiDmDwordDescriptor
629 * PARAMETERS: Info - Extra resource info
630 * Resource - Pointer to the resource descriptor
631 * Length - Length of the descriptor in bytes
632 * Level - Current source code indentation level
636 * DESCRIPTION: Decode a DWord Address Space descriptor
638 ******************************************************************************/
641 AcpiDmDwordDescriptor (
642 ACPI_OP_WALK_INFO *Info,
643 AML_RESOURCE *Resource,
648 /* Dump resource name and flags */
650 AcpiDmAddressCommon (Resource, ACPI_RESOURCE_TYPE_ADDRESS32, Level);
652 /* Dump the 5 contiguous DWORD values */
654 AcpiDmAddressFields (&Resource->Address32.Granularity, 32, Level);
656 /* The ResourceSource fields are optional */
658 AcpiDmIndent (Level + 1);
659 AcpiDmResourceSource (Resource, sizeof (AML_RESOURCE_ADDRESS32), Length);
661 /* Insert a descriptor name */
663 AcpiDmDescriptorName ();
665 /* Type-specific flags */
667 AcpiDmAddressFlags (Resource);
668 AcpiOsPrintf (")\n");
672 /*******************************************************************************
674 * FUNCTION: AcpiDmQwordDescriptor
676 * PARAMETERS: Info - Extra resource info
677 * Resource - Pointer to the resource descriptor
678 * Length - Length of the descriptor in bytes
679 * Level - Current source code indentation level
683 * DESCRIPTION: Decode a QWord Address Space descriptor
685 ******************************************************************************/
688 AcpiDmQwordDescriptor (
689 ACPI_OP_WALK_INFO *Info,
690 AML_RESOURCE *Resource,
695 /* Dump resource name and flags */
697 AcpiDmAddressCommon (Resource, ACPI_RESOURCE_TYPE_ADDRESS64, Level);
699 /* Dump the 5 contiguous QWORD values */
701 AcpiDmAddressFields (&Resource->Address64.Granularity, 64, Level);
703 /* The ResourceSource fields are optional */
705 AcpiDmIndent (Level + 1);
706 AcpiDmResourceSource (Resource, sizeof (AML_RESOURCE_ADDRESS64), Length);
708 /* Insert a descriptor name */
710 AcpiDmDescriptorName ();
712 /* Type-specific flags */
714 AcpiDmAddressFlags (Resource);
715 AcpiOsPrintf (")\n");
719 /*******************************************************************************
721 * FUNCTION: AcpiDmExtendedDescriptor
723 * PARAMETERS: Info - Extra resource info
724 * Resource - Pointer to the resource descriptor
725 * Length - Length of the descriptor in bytes
726 * Level - Current source code indentation level
730 * DESCRIPTION: Decode a Extended Address Space descriptor
732 ******************************************************************************/
735 AcpiDmExtendedDescriptor (
736 ACPI_OP_WALK_INFO *Info,
737 AML_RESOURCE *Resource,
742 /* Dump resource name and flags */
744 AcpiDmAddressCommon (
745 Resource, ACPI_RESOURCE_TYPE_EXTENDED_ADDRESS64, Level);
747 /* Dump the 5 contiguous QWORD values */
749 AcpiDmAddressFields (&Resource->ExtAddress64.Granularity, 64, Level);
751 /* Extra field for this descriptor only */
753 AcpiDmIndent (Level + 1);
754 AcpiDmDumpInteger64 (Resource->ExtAddress64.TypeSpecific,
755 "Type-Specific Attributes");
757 /* Insert a descriptor name */
759 AcpiDmIndent (Level + 1);
760 AcpiDmDescriptorName ();
762 /* Type-specific flags */
764 AcpiDmAddressFlags (Resource);
765 AcpiOsPrintf (")\n");
769 /*******************************************************************************
771 * FUNCTION: AcpiDmMemory24Descriptor
773 * PARAMETERS: Info - Extra resource info
774 * Resource - Pointer to the resource descriptor
775 * Length - Length of the descriptor in bytes
776 * Level - Current source code indentation level
780 * DESCRIPTION: Decode a Memory24 descriptor
782 ******************************************************************************/
785 AcpiDmMemory24Descriptor (
786 ACPI_OP_WALK_INFO *Info,
787 AML_RESOURCE *Resource,
792 /* Dump name and read/write flag */
794 AcpiDmIndent (Level);
795 AcpiOsPrintf ("Memory24 (%s,\n",
796 AcpiGbl_RwDecode [ACPI_GET_1BIT_FLAG (Resource->Memory24.Flags)]);
798 /* Dump the 4 contiguous WORD values */
800 AcpiDmMemoryFields (&Resource->Memory24.Minimum, 16, Level);
802 /* Insert a descriptor name */
804 AcpiDmIndent (Level + 1);
805 AcpiDmDescriptorName ();
806 AcpiOsPrintf (")\n");
810 /*******************************************************************************
812 * FUNCTION: AcpiDmMemory32Descriptor
814 * PARAMETERS: Info - Extra resource info
815 * Resource - Pointer to the resource descriptor
816 * Length - Length of the descriptor in bytes
817 * Level - Current source code indentation level
821 * DESCRIPTION: Decode a Memory32 descriptor
823 ******************************************************************************/
826 AcpiDmMemory32Descriptor (
827 ACPI_OP_WALK_INFO *Info,
828 AML_RESOURCE *Resource,
833 /* Dump name and read/write flag */
835 AcpiDmIndent (Level);
836 AcpiOsPrintf ("Memory32 (%s,\n",
837 AcpiGbl_RwDecode [ACPI_GET_1BIT_FLAG (Resource->Memory32.Flags)]);
839 /* Dump the 4 contiguous DWORD values */
841 AcpiDmMemoryFields (&Resource->Memory32.Minimum, 32, Level);
843 /* Insert a descriptor name */
845 AcpiDmIndent (Level + 1);
846 AcpiDmDescriptorName ();
847 AcpiOsPrintf (")\n");
851 /*******************************************************************************
853 * FUNCTION: AcpiDmFixedMemory32Descriptor
855 * PARAMETERS: Info - Extra resource info
856 * Resource - Pointer to the resource descriptor
857 * Length - Length of the descriptor in bytes
858 * Level - Current source code indentation level
862 * DESCRIPTION: Decode a Fixed Memory32 descriptor
864 ******************************************************************************/
867 AcpiDmFixedMemory32Descriptor (
868 ACPI_OP_WALK_INFO *Info,
869 AML_RESOURCE *Resource,
874 /* Dump name and read/write flag */
876 AcpiDmIndent (Level);
877 AcpiOsPrintf ("Memory32Fixed (%s,\n",
878 AcpiGbl_RwDecode [ACPI_GET_1BIT_FLAG (Resource->FixedMemory32.Flags)]);
880 AcpiDmIndent (Level + 1);
881 AcpiDmDumpInteger32 (Resource->FixedMemory32.Address,
884 AcpiDmIndent (Level + 1);
885 AcpiDmDumpInteger32 (Resource->FixedMemory32.AddressLength,
888 /* Insert a descriptor name */
890 AcpiDmIndent (Level + 1);
891 AcpiDmDescriptorName ();
892 AcpiOsPrintf (")\n");
896 /*******************************************************************************
898 * FUNCTION: AcpiDmGenericRegisterDescriptor
900 * PARAMETERS: Info - Extra resource info
901 * Resource - Pointer to the resource descriptor
902 * Length - Length of the descriptor in bytes
903 * Level - Current source code indentation level
907 * DESCRIPTION: Decode a Generic Register descriptor
909 ******************************************************************************/
912 AcpiDmGenericRegisterDescriptor (
913 ACPI_OP_WALK_INFO *Info,
914 AML_RESOURCE *Resource,
919 AcpiDmIndent (Level);
920 AcpiOsPrintf ("Register (");
921 AcpiDmAddressSpace (Resource->GenericReg.AddressSpaceId);
924 AcpiDmIndent (Level + 1);
925 AcpiDmDumpInteger8 (Resource->GenericReg.BitWidth, "Bit Width");
927 AcpiDmIndent (Level + 1);
928 AcpiDmDumpInteger8 (Resource->GenericReg.BitOffset, "Bit Offset");
930 AcpiDmIndent (Level + 1);
931 AcpiDmDumpInteger64 (Resource->GenericReg.Address, "Address");
933 /* Optional field for ACPI 3.0 */
935 AcpiDmIndent (Level + 1);
936 if (Resource->GenericReg.AccessSize)
938 AcpiOsPrintf ("0x%2.2X, // %s\n",
939 Resource->GenericReg.AccessSize, "Access Size");
940 AcpiDmIndent (Level + 1);
947 /* DescriptorName was added for ACPI 3.0+ */
949 AcpiDmDescriptorName ();
950 AcpiOsPrintf (")\n");
954 /*******************************************************************************
956 * FUNCTION: AcpiDmInterruptDescriptor
958 * PARAMETERS: Info - Extra resource info
959 * Resource - Pointer to the resource descriptor
960 * Length - Length of the descriptor in bytes
961 * Level - Current source code indentation level
965 * DESCRIPTION: Decode a extended Interrupt descriptor
967 ******************************************************************************/
970 AcpiDmInterruptDescriptor (
971 ACPI_OP_WALK_INFO *Info,
972 AML_RESOURCE *Resource,
979 AcpiDmIndent (Level);
980 AcpiOsPrintf ("Interrupt (%s, %s, %s, %s, ",
981 AcpiGbl_ConsumeDecode [ACPI_GET_1BIT_FLAG (Resource->ExtendedIrq.Flags)],
982 AcpiGbl_HeDecode [ACPI_EXTRACT_1BIT_FLAG (Resource->ExtendedIrq.Flags, 1)],
983 AcpiGbl_LlDecode [ACPI_EXTRACT_1BIT_FLAG (Resource->ExtendedIrq.Flags, 2)],
984 AcpiGbl_ShrDecode [ACPI_EXTRACT_2BIT_FLAG (Resource->ExtendedIrq.Flags, 3)]);
987 * The ResourceSource fields are optional and appear after the interrupt
988 * list. Must compute length based on length of the list. First xrupt
989 * is included in the struct (reason for -1 below)
991 AcpiDmResourceSource (Resource,
992 sizeof (AML_RESOURCE_EXTENDED_IRQ) +
993 ((UINT32) Resource->ExtendedIrq.InterruptCount - 1) * sizeof (UINT32),
994 Resource->ExtendedIrq.ResourceLength);
996 /* Insert a descriptor name */
998 AcpiDmDescriptorName ();
999 AcpiOsPrintf (")\n");
1001 /* Dump the interrupt list */
1003 AcpiDmIndent (Level);
1004 AcpiOsPrintf ("{\n");
1005 for (i = 0; i < Resource->ExtendedIrq.InterruptCount; i++)
1007 AcpiDmIndent (Level + 1);
1008 AcpiOsPrintf ("0x%8.8X,\n",
1009 (UINT32) Resource->ExtendedIrq.Interrupts[i]);
1012 AcpiDmIndent (Level);
1013 AcpiOsPrintf ("}\n");
1017 /*******************************************************************************
1019 * FUNCTION: AcpiDmVendorCommon
1021 * PARAMETERS: Name - Descriptor name suffix
1022 * ByteData - Pointer to the vendor byte data
1023 * Length - Length of the byte data
1024 * Level - Current source code indentation level
1028 * DESCRIPTION: Decode a Vendor descriptor, both Large and Small
1030 ******************************************************************************/
1033 AcpiDmVendorCommon (
1040 /* Dump macro name */
1042 AcpiDmIndent (Level);
1043 AcpiOsPrintf ("Vendor%s (", Name);
1045 /* Insert a descriptor name */
1047 AcpiDmDescriptorName ();
1048 AcpiOsPrintf (") // Length = 0x%.2X\n", Length);
1050 /* Dump the vendor bytes */
1052 AcpiDmIndent (Level);
1053 AcpiOsPrintf ("{\n");
1055 AcpiDmDisasmByteList (Level + 1, ByteData, Length);
1057 AcpiDmIndent (Level);
1058 AcpiOsPrintf ("}\n");
1062 /*******************************************************************************
1064 * FUNCTION: AcpiDmVendorLargeDescriptor
1066 * PARAMETERS: Info - Extra resource info
1067 * Resource - Pointer to the resource descriptor
1068 * Length - Length of the descriptor in bytes
1069 * Level - Current source code indentation level
1073 * DESCRIPTION: Decode a Vendor Large descriptor
1075 ******************************************************************************/
1078 AcpiDmVendorLargeDescriptor (
1079 ACPI_OP_WALK_INFO *Info,
1080 AML_RESOURCE *Resource,
1085 AcpiDmVendorCommon ("Long ",
1086 ACPI_ADD_PTR (UINT8, Resource, sizeof (AML_RESOURCE_LARGE_HEADER)),