1 /*******************************************************************************
3 * Module Name: dmresrcl.c - "Large" Resource Descriptor disassembly
5 ******************************************************************************/
8 * Copyright (C) 2000 - 2016, 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 char *AcpiDmAddressNames[] =
66 static 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 ******************************************************************************/
448 AcpiOsPrintf (", %s",
449 AcpiGbl_TtpDecode [ACPI_EXTRACT_1BIT_FLAG (SpecificFlags, 4)]);
451 /* TRS is only used if TTP is TypeTranslation */
453 if (SpecificFlags & 0x10)
455 AcpiOsPrintf (", %s",
456 AcpiGbl_TrsDecode [ACPI_EXTRACT_1BIT_FLAG (SpecificFlags, 5)]);
461 /*******************************************************************************
463 * FUNCTION: AcpiDmMemoryFlags
465 * PARAMETERS: Flags - Flag byte to be decoded
466 * SpecificFlags - "Specific" flag byte to be decoded
470 * DESCRIPTION: Decode flags specific to Memory Address Space descriptors
472 ******************************************************************************/
480 AcpiOsPrintf ("%s, %s, %s, %s, %s, %s,",
481 AcpiGbl_ConsumeDecode [ACPI_GET_1BIT_FLAG (Flags)],
482 AcpiGbl_DecDecode [ACPI_EXTRACT_1BIT_FLAG (Flags, 1)],
483 AcpiGbl_MinDecode [ACPI_EXTRACT_1BIT_FLAG (Flags, 2)],
484 AcpiGbl_MaxDecode [ACPI_EXTRACT_1BIT_FLAG (Flags, 3)],
485 AcpiGbl_MemDecode [ACPI_EXTRACT_2BIT_FLAG (SpecificFlags, 1)],
486 AcpiGbl_RwDecode [ACPI_GET_1BIT_FLAG (SpecificFlags)]);
490 /*******************************************************************************
492 * FUNCTION: AcpiDmMemoryFlags2
494 * PARAMETERS: SpecificFlags - "Specific" flag byte to be decoded
498 * DESCRIPTION: Decode flags specific to Memory Address Space descriptors
500 ******************************************************************************/
507 AcpiOsPrintf (", %s, %s",
508 AcpiGbl_MtpDecode [ACPI_EXTRACT_2BIT_FLAG (SpecificFlags, 3)],
509 AcpiGbl_TtpDecode [ACPI_EXTRACT_1BIT_FLAG (SpecificFlags, 5)]);
513 /*******************************************************************************
515 * FUNCTION: AcpiDmResourceSource
517 * PARAMETERS: Resource - Raw AML descriptor
518 * MinimumLength - descriptor length without optional fields
523 * DESCRIPTION: Dump optional ResourceSource fields of an address descriptor
525 ******************************************************************************/
528 AcpiDmResourceSource (
529 AML_RESOURCE *Resource,
530 ACPI_SIZE MinimumTotalLength,
531 UINT32 ResourceLength)
533 UINT8 *AmlResourceSource;
537 TotalLength = ResourceLength + sizeof (AML_RESOURCE_LARGE_HEADER);
539 /* Check if the optional ResourceSource fields are present */
541 if (TotalLength <= MinimumTotalLength)
543 /* The two optional fields are not used */
545 AcpiOsPrintf (",, ");
549 /* Get a pointer to the ResourceSource */
551 AmlResourceSource = ACPI_ADD_PTR (UINT8, Resource, MinimumTotalLength);
554 * Always emit the ResourceSourceIndex (Byte)
556 * NOTE: Some ASL compilers always create a 0 byte (in the AML) for the
557 * Index even if the String does not exist. Although this is in violation
558 * of the ACPI specification, it is very important to emit ASL code that
559 * can be compiled back to the identical AML. There may be fields and/or
560 * indexes into the resource template buffer that are compiled to absolute
561 * offsets, and these will be broken if the AML length is changed.
563 AcpiOsPrintf ("0x%2.2X,", (UINT32) AmlResourceSource[0]);
565 /* Make sure that the ResourceSource string exists before dumping it */
567 if (TotalLength > (MinimumTotalLength + 1))
570 AcpiUtPrintString ((char *) &AmlResourceSource[1], ACPI_UINT16_MAX);
577 /*******************************************************************************
579 * FUNCTION: AcpiDmWordDescriptor
581 * PARAMETERS: Info - Extra resource info
582 * Resource - Pointer to the resource descriptor
583 * Length - Length of the descriptor in bytes
584 * Level - Current source code indentation level
588 * DESCRIPTION: Decode a Word Address Space descriptor
590 ******************************************************************************/
593 AcpiDmWordDescriptor (
594 ACPI_OP_WALK_INFO *Info,
595 AML_RESOURCE *Resource,
600 /* Dump resource name and flags */
602 AcpiDmAddressCommon (Resource, ACPI_RESOURCE_TYPE_ADDRESS16, Level);
604 /* Dump the 5 contiguous WORD values */
606 AcpiDmAddressFields (&Resource->Address16.Granularity, 16, Level);
608 /* The ResourceSource fields are optional */
610 AcpiDmIndent (Level + 1);
611 AcpiDmResourceSource (Resource, sizeof (AML_RESOURCE_ADDRESS16), Length);
613 /* Insert a descriptor name */
615 AcpiDmDescriptorName ();
617 /* Type-specific flags */
619 AcpiDmAddressFlags (Resource);
620 AcpiOsPrintf (")\n");
624 /*******************************************************************************
626 * FUNCTION: AcpiDmDwordDescriptor
628 * PARAMETERS: Info - Extra resource info
629 * Resource - Pointer to the resource descriptor
630 * Length - Length of the descriptor in bytes
631 * Level - Current source code indentation level
635 * DESCRIPTION: Decode a DWord Address Space descriptor
637 ******************************************************************************/
640 AcpiDmDwordDescriptor (
641 ACPI_OP_WALK_INFO *Info,
642 AML_RESOURCE *Resource,
647 /* Dump resource name and flags */
649 AcpiDmAddressCommon (Resource, ACPI_RESOURCE_TYPE_ADDRESS32, Level);
651 /* Dump the 5 contiguous DWORD values */
653 AcpiDmAddressFields (&Resource->Address32.Granularity, 32, Level);
655 /* The ResourceSource fields are optional */
657 AcpiDmIndent (Level + 1);
658 AcpiDmResourceSource (Resource, sizeof (AML_RESOURCE_ADDRESS32), Length);
660 /* Insert a descriptor name */
662 AcpiDmDescriptorName ();
664 /* Type-specific flags */
666 AcpiDmAddressFlags (Resource);
667 AcpiOsPrintf (")\n");
671 /*******************************************************************************
673 * FUNCTION: AcpiDmQwordDescriptor
675 * PARAMETERS: Info - Extra resource info
676 * Resource - Pointer to the resource descriptor
677 * Length - Length of the descriptor in bytes
678 * Level - Current source code indentation level
682 * DESCRIPTION: Decode a QWord Address Space descriptor
684 ******************************************************************************/
687 AcpiDmQwordDescriptor (
688 ACPI_OP_WALK_INFO *Info,
689 AML_RESOURCE *Resource,
694 /* Dump resource name and flags */
696 AcpiDmAddressCommon (Resource, ACPI_RESOURCE_TYPE_ADDRESS64, Level);
698 /* Dump the 5 contiguous QWORD values */
700 AcpiDmAddressFields (&Resource->Address64.Granularity, 64, Level);
702 /* The ResourceSource fields are optional */
704 AcpiDmIndent (Level + 1);
705 AcpiDmResourceSource (Resource, sizeof (AML_RESOURCE_ADDRESS64), Length);
707 /* Insert a descriptor name */
709 AcpiDmDescriptorName ();
711 /* Type-specific flags */
713 AcpiDmAddressFlags (Resource);
714 AcpiOsPrintf (")\n");
718 /*******************************************************************************
720 * FUNCTION: AcpiDmExtendedDescriptor
722 * PARAMETERS: Info - Extra resource info
723 * Resource - Pointer to the resource descriptor
724 * Length - Length of the descriptor in bytes
725 * Level - Current source code indentation level
729 * DESCRIPTION: Decode a Extended Address Space descriptor
731 ******************************************************************************/
734 AcpiDmExtendedDescriptor (
735 ACPI_OP_WALK_INFO *Info,
736 AML_RESOURCE *Resource,
741 /* Dump resource name and flags */
743 AcpiDmAddressCommon (
744 Resource, ACPI_RESOURCE_TYPE_EXTENDED_ADDRESS64, Level);
746 /* Dump the 5 contiguous QWORD values */
748 AcpiDmAddressFields (&Resource->ExtAddress64.Granularity, 64, Level);
750 /* Extra field for this descriptor only */
752 AcpiDmIndent (Level + 1);
753 AcpiDmDumpInteger64 (Resource->ExtAddress64.TypeSpecific,
754 "Type-Specific Attributes");
756 /* Insert a descriptor name */
758 AcpiDmIndent (Level + 1);
759 AcpiDmDescriptorName ();
761 /* Type-specific flags */
763 AcpiDmAddressFlags (Resource);
764 AcpiOsPrintf (")\n");
768 /*******************************************************************************
770 * FUNCTION: AcpiDmMemory24Descriptor
772 * PARAMETERS: Info - Extra resource info
773 * Resource - Pointer to the resource descriptor
774 * Length - Length of the descriptor in bytes
775 * Level - Current source code indentation level
779 * DESCRIPTION: Decode a Memory24 descriptor
781 ******************************************************************************/
784 AcpiDmMemory24Descriptor (
785 ACPI_OP_WALK_INFO *Info,
786 AML_RESOURCE *Resource,
791 /* Dump name and read/write flag */
793 AcpiDmIndent (Level);
794 AcpiOsPrintf ("Memory24 (%s,\n",
795 AcpiGbl_RwDecode [ACPI_GET_1BIT_FLAG (Resource->Memory24.Flags)]);
797 /* Dump the 4 contiguous WORD values */
799 AcpiDmMemoryFields (&Resource->Memory24.Minimum, 16, Level);
801 /* Insert a descriptor name */
803 AcpiDmIndent (Level + 1);
804 AcpiDmDescriptorName ();
805 AcpiOsPrintf (")\n");
809 /*******************************************************************************
811 * FUNCTION: AcpiDmMemory32Descriptor
813 * PARAMETERS: Info - Extra resource info
814 * Resource - Pointer to the resource descriptor
815 * Length - Length of the descriptor in bytes
816 * Level - Current source code indentation level
820 * DESCRIPTION: Decode a Memory32 descriptor
822 ******************************************************************************/
825 AcpiDmMemory32Descriptor (
826 ACPI_OP_WALK_INFO *Info,
827 AML_RESOURCE *Resource,
832 /* Dump name and read/write flag */
834 AcpiDmIndent (Level);
835 AcpiOsPrintf ("Memory32 (%s,\n",
836 AcpiGbl_RwDecode [ACPI_GET_1BIT_FLAG (Resource->Memory32.Flags)]);
838 /* Dump the 4 contiguous DWORD values */
840 AcpiDmMemoryFields (&Resource->Memory32.Minimum, 32, Level);
842 /* Insert a descriptor name */
844 AcpiDmIndent (Level + 1);
845 AcpiDmDescriptorName ();
846 AcpiOsPrintf (")\n");
850 /*******************************************************************************
852 * FUNCTION: AcpiDmFixedMemory32Descriptor
854 * PARAMETERS: Info - Extra resource info
855 * Resource - Pointer to the resource descriptor
856 * Length - Length of the descriptor in bytes
857 * Level - Current source code indentation level
861 * DESCRIPTION: Decode a Fixed Memory32 descriptor
863 ******************************************************************************/
866 AcpiDmFixedMemory32Descriptor (
867 ACPI_OP_WALK_INFO *Info,
868 AML_RESOURCE *Resource,
873 /* Dump name and read/write flag */
875 AcpiDmIndent (Level);
876 AcpiOsPrintf ("Memory32Fixed (%s,\n",
877 AcpiGbl_RwDecode [ACPI_GET_1BIT_FLAG (Resource->FixedMemory32.Flags)]);
879 AcpiDmIndent (Level + 1);
880 AcpiDmDumpInteger32 (Resource->FixedMemory32.Address,
883 AcpiDmIndent (Level + 1);
884 AcpiDmDumpInteger32 (Resource->FixedMemory32.AddressLength,
887 /* Insert a descriptor name */
889 AcpiDmIndent (Level + 1);
890 AcpiDmDescriptorName ();
891 AcpiOsPrintf (")\n");
895 /*******************************************************************************
897 * FUNCTION: AcpiDmGenericRegisterDescriptor
899 * PARAMETERS: Info - Extra resource info
900 * Resource - Pointer to the resource descriptor
901 * Length - Length of the descriptor in bytes
902 * Level - Current source code indentation level
906 * DESCRIPTION: Decode a Generic Register descriptor
908 ******************************************************************************/
911 AcpiDmGenericRegisterDescriptor (
912 ACPI_OP_WALK_INFO *Info,
913 AML_RESOURCE *Resource,
918 AcpiDmIndent (Level);
919 AcpiOsPrintf ("Register (");
920 AcpiDmAddressSpace (Resource->GenericReg.AddressSpaceId);
923 AcpiDmIndent (Level + 1);
924 AcpiDmDumpInteger8 (Resource->GenericReg.BitWidth, "Bit Width");
926 AcpiDmIndent (Level + 1);
927 AcpiDmDumpInteger8 (Resource->GenericReg.BitOffset, "Bit Offset");
929 AcpiDmIndent (Level + 1);
930 AcpiDmDumpInteger64 (Resource->GenericReg.Address, "Address");
932 /* Optional field for ACPI 3.0 */
934 AcpiDmIndent (Level + 1);
935 if (Resource->GenericReg.AccessSize)
937 AcpiOsPrintf ("0x%2.2X, // %s\n",
938 Resource->GenericReg.AccessSize, "Access Size");
939 AcpiDmIndent (Level + 1);
946 /* DescriptorName was added for ACPI 3.0+ */
948 AcpiDmDescriptorName ();
949 AcpiOsPrintf (")\n");
953 /*******************************************************************************
955 * FUNCTION: AcpiDmInterruptDescriptor
957 * PARAMETERS: Info - Extra resource info
958 * Resource - Pointer to the resource descriptor
959 * Length - Length of the descriptor in bytes
960 * Level - Current source code indentation level
964 * DESCRIPTION: Decode a extended Interrupt descriptor
966 ******************************************************************************/
969 AcpiDmInterruptDescriptor (
970 ACPI_OP_WALK_INFO *Info,
971 AML_RESOURCE *Resource,
978 AcpiDmIndent (Level);
979 AcpiOsPrintf ("Interrupt (%s, %s, %s, %s, ",
980 AcpiGbl_ConsumeDecode [ACPI_GET_1BIT_FLAG (Resource->ExtendedIrq.Flags)],
981 AcpiGbl_HeDecode [ACPI_EXTRACT_1BIT_FLAG (Resource->ExtendedIrq.Flags, 1)],
982 AcpiGbl_LlDecode [ACPI_EXTRACT_1BIT_FLAG (Resource->ExtendedIrq.Flags, 2)],
983 AcpiGbl_ShrDecode [ACPI_EXTRACT_2BIT_FLAG (Resource->ExtendedIrq.Flags, 3)]);
986 * The ResourceSource fields are optional and appear after the interrupt
987 * list. Must compute length based on length of the list. First xrupt
988 * is included in the struct (reason for -1 below)
990 AcpiDmResourceSource (Resource,
991 sizeof (AML_RESOURCE_EXTENDED_IRQ) +
992 ((UINT32) Resource->ExtendedIrq.InterruptCount - 1) * sizeof (UINT32),
993 Resource->ExtendedIrq.ResourceLength);
995 /* Insert a descriptor name */
997 AcpiDmDescriptorName ();
998 AcpiOsPrintf (")\n");
1000 /* Dump the interrupt list */
1002 AcpiDmIndent (Level);
1003 AcpiOsPrintf ("{\n");
1004 for (i = 0; i < Resource->ExtendedIrq.InterruptCount; i++)
1006 AcpiDmIndent (Level + 1);
1007 AcpiOsPrintf ("0x%8.8X,\n",
1008 (UINT32) Resource->ExtendedIrq.Interrupts[i]);
1011 AcpiDmIndent (Level);
1012 AcpiOsPrintf ("}\n");
1016 /*******************************************************************************
1018 * FUNCTION: AcpiDmVendorCommon
1020 * PARAMETERS: Name - Descriptor name suffix
1021 * ByteData - Pointer to the vendor byte data
1022 * Length - Length of the byte data
1023 * Level - Current source code indentation level
1027 * DESCRIPTION: Decode a Vendor descriptor, both Large and Small
1029 ******************************************************************************/
1032 AcpiDmVendorCommon (
1039 /* Dump macro name */
1041 AcpiDmIndent (Level);
1042 AcpiOsPrintf ("Vendor%s (", Name);
1044 /* Insert a descriptor name */
1046 AcpiDmDescriptorName ();
1047 AcpiOsPrintf (") // Length = 0x%.2X\n", Length);
1049 /* Dump the vendor bytes */
1051 AcpiDmIndent (Level);
1052 AcpiOsPrintf ("{\n");
1054 AcpiDmDisasmByteList (Level + 1, ByteData, Length);
1056 AcpiDmIndent (Level);
1057 AcpiOsPrintf ("}\n");
1061 /*******************************************************************************
1063 * FUNCTION: AcpiDmVendorLargeDescriptor
1065 * PARAMETERS: Info - Extra resource info
1066 * Resource - Pointer to the resource descriptor
1067 * Length - Length of the descriptor in bytes
1068 * Level - Current source code indentation level
1072 * DESCRIPTION: Decode a Vendor Large descriptor
1074 ******************************************************************************/
1077 AcpiDmVendorLargeDescriptor (
1078 ACPI_OP_WALK_INFO *Info,
1079 AML_RESOURCE *Resource,
1084 AcpiDmVendorCommon ("Long ",
1085 ACPI_ADD_PTR (UINT8, Resource, sizeof (AML_RESOURCE_LARGE_HEADER)),