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 #define _COMPONENT ACPI_CA_DEBUGGER
50 ACPI_MODULE_NAME ("dbresrcl")
53 /* Common names for address and memory descriptors */
55 static const char *AcpiDmAddressNames[] =
64 static const char *AcpiDmMemoryNames[] =
73 /* Local prototypes */
97 AcpiDmResourceSource (
98 AML_RESOURCE *Resource,
99 ACPI_SIZE MinimumLength,
103 AcpiDmAddressFields (
109 AcpiDmAddressPrefix (
113 AcpiDmAddressCommon (
114 AML_RESOURCE *Resource,
120 AML_RESOURCE *Resource);
123 /*******************************************************************************
125 * FUNCTION: AcpiDmMemoryFields
127 * PARAMETERS: Source - Pointer to the contiguous data fields
128 * Type - 16 or 32 (bit)
129 * Level - Current source code indentation level
133 * DESCRIPTION: Decode fields common to Memory24 and Memory32 descriptors
135 ******************************************************************************/
146 for (i = 0; i < 4; i++)
148 AcpiDmIndent (Level + 1);
154 AcpiDmDumpInteger16 (ACPI_CAST_PTR (UINT16, Source)[i],
155 AcpiDmMemoryNames[i]);
160 AcpiDmDumpInteger32 (ACPI_CAST_PTR (UINT32, Source)[i],
161 AcpiDmMemoryNames[i]);
172 /*******************************************************************************
174 * FUNCTION: AcpiDmAddressFields
176 * PARAMETERS: Source - Pointer to the contiguous data fields
177 * Type - 16, 32, or 64 (bit)
178 * Level - Current source code indentation level
182 * DESCRIPTION: Decode fields common to address descriptors
184 ******************************************************************************/
187 AcpiDmAddressFields (
197 for (i = 0; i < 5; i++)
199 AcpiDmIndent (Level + 1);
205 AcpiDmDumpInteger16 (ACPI_CAST_PTR (UINT16, Source)[i],
206 AcpiDmAddressNames[i]);
211 AcpiDmDumpInteger32 (ACPI_CAST_PTR (UINT32, Source)[i],
212 AcpiDmAddressNames[i]);
217 AcpiDmDumpInteger64 (ACPI_CAST_PTR (UINT64, Source)[i],
218 AcpiDmAddressNames[i]);
229 /*******************************************************************************
231 * FUNCTION: AcpiDmAddressPrefix
233 * PARAMETERS: Type - Descriptor type
237 * DESCRIPTION: Emit name prefix representing the address descriptor type
239 ******************************************************************************/
242 AcpiDmAddressPrefix (
248 case ACPI_RESOURCE_TYPE_ADDRESS16:
250 AcpiOsPrintf ("Word");
253 case ACPI_RESOURCE_TYPE_ADDRESS32:
255 AcpiOsPrintf ("DWord");
258 case ACPI_RESOURCE_TYPE_ADDRESS64:
260 AcpiOsPrintf ("QWord");
263 case ACPI_RESOURCE_TYPE_EXTENDED_ADDRESS64:
265 AcpiOsPrintf ("Extended");
275 /*******************************************************************************
277 * FUNCTION: AcpiDmAddressCommon
279 * PARAMETERS: Resource - Raw AML descriptor
280 * Type - Descriptor type
281 * Level - Current source code indentation level
285 * DESCRIPTION: Emit common name and flag fields common to address descriptors
287 ******************************************************************************/
290 AcpiDmAddressCommon (
291 AML_RESOURCE *Resource,
300 ResourceType = Resource->Address.ResourceType;
301 SpecificFlags = Resource->Address.SpecificFlags;
302 Flags = Resource->Address.Flags;
304 AcpiDmIndent (Level);
306 /* Validate ResourceType */
308 if ((ResourceType > 2) && (ResourceType < 0xC0))
311 "/**** Invalid Resource Type: 0x%X ****/", ResourceType);
315 /* Prefix is either Word, DWord, QWord, or Extended */
317 AcpiDmAddressPrefix (Type);
319 /* Resource Types above 0xC0 are vendor-defined */
321 if (ResourceType > 2)
323 AcpiOsPrintf ("Space (0x%2.2X, ", ResourceType);
324 AcpiDmSpaceFlags (Flags);
325 AcpiOsPrintf (" 0x%2.2X,", SpecificFlags);
329 /* This is either a Memory, IO, or BusNumber descriptor (0,1,2) */
331 AcpiOsPrintf ("%s (",
332 AcpiGbl_WordDecode [ACPI_GET_2BIT_FLAG (ResourceType)]);
334 /* Decode the general and type-specific flags */
336 if (ResourceType == ACPI_MEMORY_RANGE)
338 AcpiDmMemoryFlags (Flags, SpecificFlags);
340 else /* IO range or BusNumberRange */
342 AcpiDmIoFlags (Flags);
343 if (ResourceType == ACPI_IO_RANGE)
345 AcpiOsPrintf (" %s,",
346 AcpiGbl_RngDecode [ACPI_GET_2BIT_FLAG (SpecificFlags)]);
352 /*******************************************************************************
354 * FUNCTION: AcpiDmAddressFlags
356 * PARAMETERS: Resource - Raw AML descriptor
360 * DESCRIPTION: Emit flags common to address descriptors
362 ******************************************************************************/
366 AML_RESOURCE *Resource)
369 if (Resource->Address.ResourceType == ACPI_IO_RANGE)
371 AcpiDmIoFlags2 (Resource->Address.SpecificFlags);
373 else if (Resource->Address.ResourceType == ACPI_MEMORY_RANGE)
375 AcpiDmMemoryFlags2 (Resource->Address.SpecificFlags);
380 /*******************************************************************************
382 * FUNCTION: AcpiDmSpaceFlags
384 * PARAMETERS: Flags - Flag byte to be decoded
388 * DESCRIPTION: Decode the flags specific to Space Address space descriptors
390 ******************************************************************************/
397 AcpiOsPrintf ("%s, %s, %s, %s,",
398 AcpiGbl_ConsumeDecode [ACPI_GET_1BIT_FLAG (Flags)],
399 AcpiGbl_DecDecode [ACPI_EXTRACT_1BIT_FLAG (Flags, 1)],
400 AcpiGbl_MinDecode [ACPI_EXTRACT_1BIT_FLAG (Flags, 2)],
401 AcpiGbl_MaxDecode [ACPI_EXTRACT_1BIT_FLAG (Flags, 3)]);
405 /*******************************************************************************
407 * FUNCTION: AcpiDmIoFlags
409 * PARAMETERS: Flags - Flag byte to be decoded
413 * DESCRIPTION: Decode the flags specific to IO Address space descriptors
415 ******************************************************************************/
421 AcpiOsPrintf ("%s, %s, %s, %s,",
422 AcpiGbl_ConsumeDecode [ACPI_GET_1BIT_FLAG (Flags)],
423 AcpiGbl_MinDecode [ACPI_EXTRACT_1BIT_FLAG (Flags, 2)],
424 AcpiGbl_MaxDecode [ACPI_EXTRACT_1BIT_FLAG (Flags, 3)],
425 AcpiGbl_DecDecode [ACPI_EXTRACT_1BIT_FLAG (Flags, 1)]);
429 /*******************************************************************************
431 * FUNCTION: AcpiDmIoFlags2
433 * PARAMETERS: SpecificFlags - "Specific" flag byte to be decoded
437 * DESCRIPTION: Decode the flags specific to IO Address space descriptors
439 ******************************************************************************/
446 AcpiOsPrintf (", %s",
447 AcpiGbl_TtpDecode [ACPI_EXTRACT_1BIT_FLAG (SpecificFlags, 4)]);
449 /* TRS is only used if TTP is TypeTranslation */
451 if (SpecificFlags & 0x10)
453 AcpiOsPrintf (", %s",
454 AcpiGbl_TrsDecode [ACPI_EXTRACT_1BIT_FLAG (SpecificFlags, 5)]);
459 /*******************************************************************************
461 * FUNCTION: AcpiDmMemoryFlags
463 * PARAMETERS: Flags - Flag byte to be decoded
464 * SpecificFlags - "Specific" flag byte to be decoded
468 * DESCRIPTION: Decode flags specific to Memory Address Space descriptors
470 ******************************************************************************/
478 AcpiOsPrintf ("%s, %s, %s, %s, %s, %s,",
479 AcpiGbl_ConsumeDecode [ACPI_GET_1BIT_FLAG (Flags)],
480 AcpiGbl_DecDecode [ACPI_EXTRACT_1BIT_FLAG (Flags, 1)],
481 AcpiGbl_MinDecode [ACPI_EXTRACT_1BIT_FLAG (Flags, 2)],
482 AcpiGbl_MaxDecode [ACPI_EXTRACT_1BIT_FLAG (Flags, 3)],
483 AcpiGbl_MemDecode [ACPI_EXTRACT_2BIT_FLAG (SpecificFlags, 1)],
484 AcpiGbl_RwDecode [ACPI_GET_1BIT_FLAG (SpecificFlags)]);
488 /*******************************************************************************
490 * FUNCTION: AcpiDmMemoryFlags2
492 * PARAMETERS: SpecificFlags - "Specific" flag byte to be decoded
496 * DESCRIPTION: Decode flags specific to Memory Address Space descriptors
498 ******************************************************************************/
505 AcpiOsPrintf (", %s, %s",
506 AcpiGbl_MtpDecode [ACPI_EXTRACT_2BIT_FLAG (SpecificFlags, 3)],
507 AcpiGbl_TtpDecode [ACPI_EXTRACT_1BIT_FLAG (SpecificFlags, 5)]);
511 /*******************************************************************************
513 * FUNCTION: AcpiDmResourceSource
515 * PARAMETERS: Resource - Raw AML descriptor
516 * MinimumLength - descriptor length without optional fields
521 * DESCRIPTION: Dump optional ResourceSource fields of an address descriptor
523 ******************************************************************************/
526 AcpiDmResourceSource (
527 AML_RESOURCE *Resource,
528 ACPI_SIZE MinimumTotalLength,
529 UINT32 ResourceLength)
531 UINT8 *AmlResourceSource;
535 TotalLength = ResourceLength + sizeof (AML_RESOURCE_LARGE_HEADER);
537 /* Check if the optional ResourceSource fields are present */
539 if (TotalLength <= MinimumTotalLength)
541 /* The two optional fields are not used */
543 AcpiOsPrintf (",, ");
547 /* Get a pointer to the ResourceSource */
549 AmlResourceSource = ACPI_ADD_PTR (UINT8, Resource, MinimumTotalLength);
552 * Always emit the ResourceSourceIndex (Byte)
554 * NOTE: Some ASL compilers always create a 0 byte (in the AML) for the
555 * Index even if the String does not exist. Although this is in violation
556 * of the ACPI specification, it is very important to emit ASL code that
557 * can be compiled back to the identical AML. There may be fields and/or
558 * indexes into the resource template buffer that are compiled to absolute
559 * offsets, and these will be broken if the AML length is changed.
561 AcpiOsPrintf ("0x%2.2X,", (UINT32) AmlResourceSource[0]);
563 /* Make sure that the ResourceSource string exists before dumping it */
565 if (TotalLength > (MinimumTotalLength + 1))
568 AcpiUtPrintString ((char *) &AmlResourceSource[1], ACPI_UINT16_MAX);
575 /*******************************************************************************
577 * FUNCTION: AcpiDmWordDescriptor
579 * PARAMETERS: Info - Extra resource info
580 * Resource - Pointer to the resource descriptor
581 * Length - Length of the descriptor in bytes
582 * Level - Current source code indentation level
586 * DESCRIPTION: Decode a Word Address Space descriptor
588 ******************************************************************************/
591 AcpiDmWordDescriptor (
592 ACPI_OP_WALK_INFO *Info,
593 AML_RESOURCE *Resource,
598 /* Dump resource name and flags */
600 AcpiDmAddressCommon (Resource, ACPI_RESOURCE_TYPE_ADDRESS16, Level);
602 /* Dump the 5 contiguous WORD values */
604 AcpiDmAddressFields (&Resource->Address16.Granularity, 16, Level);
606 /* The ResourceSource fields are optional */
608 AcpiDmIndent (Level + 1);
609 AcpiDmResourceSource (Resource, sizeof (AML_RESOURCE_ADDRESS16), Length);
611 /* Insert a descriptor name */
613 AcpiDmDescriptorName ();
615 /* Type-specific flags */
617 AcpiDmAddressFlags (Resource);
618 AcpiOsPrintf (")\n");
622 /*******************************************************************************
624 * FUNCTION: AcpiDmDwordDescriptor
626 * PARAMETERS: Info - Extra resource info
627 * Resource - Pointer to the resource descriptor
628 * Length - Length of the descriptor in bytes
629 * Level - Current source code indentation level
633 * DESCRIPTION: Decode a DWord Address Space descriptor
635 ******************************************************************************/
638 AcpiDmDwordDescriptor (
639 ACPI_OP_WALK_INFO *Info,
640 AML_RESOURCE *Resource,
645 /* Dump resource name and flags */
647 AcpiDmAddressCommon (Resource, ACPI_RESOURCE_TYPE_ADDRESS32, Level);
649 /* Dump the 5 contiguous DWORD values */
651 AcpiDmAddressFields (&Resource->Address32.Granularity, 32, Level);
653 /* The ResourceSource fields are optional */
655 AcpiDmIndent (Level + 1);
656 AcpiDmResourceSource (Resource, sizeof (AML_RESOURCE_ADDRESS32), Length);
658 /* Insert a descriptor name */
660 AcpiDmDescriptorName ();
662 /* Type-specific flags */
664 AcpiDmAddressFlags (Resource);
665 AcpiOsPrintf (")\n");
669 /*******************************************************************************
671 * FUNCTION: AcpiDmQwordDescriptor
673 * PARAMETERS: Info - Extra resource info
674 * Resource - Pointer to the resource descriptor
675 * Length - Length of the descriptor in bytes
676 * Level - Current source code indentation level
680 * DESCRIPTION: Decode a QWord Address Space descriptor
682 ******************************************************************************/
685 AcpiDmQwordDescriptor (
686 ACPI_OP_WALK_INFO *Info,
687 AML_RESOURCE *Resource,
692 /* Dump resource name and flags */
694 AcpiDmAddressCommon (Resource, ACPI_RESOURCE_TYPE_ADDRESS64, Level);
696 /* Dump the 5 contiguous QWORD values */
698 AcpiDmAddressFields (&Resource->Address64.Granularity, 64, Level);
700 /* The ResourceSource fields are optional */
702 AcpiDmIndent (Level + 1);
703 AcpiDmResourceSource (Resource, sizeof (AML_RESOURCE_ADDRESS64), Length);
705 /* Insert a descriptor name */
707 AcpiDmDescriptorName ();
709 /* Type-specific flags */
711 AcpiDmAddressFlags (Resource);
712 AcpiOsPrintf (")\n");
716 /*******************************************************************************
718 * FUNCTION: AcpiDmExtendedDescriptor
720 * PARAMETERS: Info - Extra resource info
721 * Resource - Pointer to the resource descriptor
722 * Length - Length of the descriptor in bytes
723 * Level - Current source code indentation level
727 * DESCRIPTION: Decode a Extended Address Space descriptor
729 ******************************************************************************/
732 AcpiDmExtendedDescriptor (
733 ACPI_OP_WALK_INFO *Info,
734 AML_RESOURCE *Resource,
739 /* Dump resource name and flags */
741 AcpiDmAddressCommon (
742 Resource, ACPI_RESOURCE_TYPE_EXTENDED_ADDRESS64, Level);
744 /* Dump the 5 contiguous QWORD values */
746 AcpiDmAddressFields (&Resource->ExtAddress64.Granularity, 64, Level);
748 /* Extra field for this descriptor only */
750 AcpiDmIndent (Level + 1);
751 AcpiDmDumpInteger64 (Resource->ExtAddress64.TypeSpecific,
752 "Type-Specific Attributes");
754 /* Insert a descriptor name */
756 AcpiDmIndent (Level + 1);
757 AcpiDmDescriptorName ();
759 /* Type-specific flags */
761 AcpiDmAddressFlags (Resource);
762 AcpiOsPrintf (")\n");
766 /*******************************************************************************
768 * FUNCTION: AcpiDmMemory24Descriptor
770 * PARAMETERS: Info - Extra resource info
771 * Resource - Pointer to the resource descriptor
772 * Length - Length of the descriptor in bytes
773 * Level - Current source code indentation level
777 * DESCRIPTION: Decode a Memory24 descriptor
779 ******************************************************************************/
782 AcpiDmMemory24Descriptor (
783 ACPI_OP_WALK_INFO *Info,
784 AML_RESOURCE *Resource,
789 /* Dump name and read/write flag */
791 AcpiDmIndent (Level);
792 AcpiOsPrintf ("Memory24 (%s,\n",
793 AcpiGbl_RwDecode [ACPI_GET_1BIT_FLAG (Resource->Memory24.Flags)]);
795 /* Dump the 4 contiguous WORD values */
797 AcpiDmMemoryFields (&Resource->Memory24.Minimum, 16, Level);
799 /* Insert a descriptor name */
801 AcpiDmIndent (Level + 1);
802 AcpiDmDescriptorName ();
803 AcpiOsPrintf (")\n");
807 /*******************************************************************************
809 * FUNCTION: AcpiDmMemory32Descriptor
811 * PARAMETERS: Info - Extra resource info
812 * Resource - Pointer to the resource descriptor
813 * Length - Length of the descriptor in bytes
814 * Level - Current source code indentation level
818 * DESCRIPTION: Decode a Memory32 descriptor
820 ******************************************************************************/
823 AcpiDmMemory32Descriptor (
824 ACPI_OP_WALK_INFO *Info,
825 AML_RESOURCE *Resource,
830 /* Dump name and read/write flag */
832 AcpiDmIndent (Level);
833 AcpiOsPrintf ("Memory32 (%s,\n",
834 AcpiGbl_RwDecode [ACPI_GET_1BIT_FLAG (Resource->Memory32.Flags)]);
836 /* Dump the 4 contiguous DWORD values */
838 AcpiDmMemoryFields (&Resource->Memory32.Minimum, 32, Level);
840 /* Insert a descriptor name */
842 AcpiDmIndent (Level + 1);
843 AcpiDmDescriptorName ();
844 AcpiOsPrintf (")\n");
848 /*******************************************************************************
850 * FUNCTION: AcpiDmFixedMemory32Descriptor
852 * PARAMETERS: Info - Extra resource info
853 * Resource - Pointer to the resource descriptor
854 * Length - Length of the descriptor in bytes
855 * Level - Current source code indentation level
859 * DESCRIPTION: Decode a Fixed Memory32 descriptor
861 ******************************************************************************/
864 AcpiDmFixedMemory32Descriptor (
865 ACPI_OP_WALK_INFO *Info,
866 AML_RESOURCE *Resource,
871 /* Dump name and read/write flag */
873 AcpiDmIndent (Level);
874 AcpiOsPrintf ("Memory32Fixed (%s,\n",
875 AcpiGbl_RwDecode [ACPI_GET_1BIT_FLAG (Resource->FixedMemory32.Flags)]);
877 AcpiDmIndent (Level + 1);
878 AcpiDmDumpInteger32 (Resource->FixedMemory32.Address,
881 AcpiDmIndent (Level + 1);
882 AcpiDmDumpInteger32 (Resource->FixedMemory32.AddressLength,
885 /* Insert a descriptor name */
887 AcpiDmIndent (Level + 1);
888 AcpiDmDescriptorName ();
889 AcpiOsPrintf (")\n");
893 /*******************************************************************************
895 * FUNCTION: AcpiDmGenericRegisterDescriptor
897 * PARAMETERS: Info - Extra resource info
898 * Resource - Pointer to the resource descriptor
899 * Length - Length of the descriptor in bytes
900 * Level - Current source code indentation level
904 * DESCRIPTION: Decode a Generic Register descriptor
906 ******************************************************************************/
909 AcpiDmGenericRegisterDescriptor (
910 ACPI_OP_WALK_INFO *Info,
911 AML_RESOURCE *Resource,
916 AcpiDmIndent (Level);
917 AcpiOsPrintf ("Register (");
918 AcpiDmAddressSpace (Resource->GenericReg.AddressSpaceId);
921 AcpiDmIndent (Level + 1);
922 AcpiDmDumpInteger8 (Resource->GenericReg.BitWidth, "Bit Width");
924 AcpiDmIndent (Level + 1);
925 AcpiDmDumpInteger8 (Resource->GenericReg.BitOffset, "Bit Offset");
927 AcpiDmIndent (Level + 1);
928 AcpiDmDumpInteger64 (Resource->GenericReg.Address, "Address");
930 /* Optional field for ACPI 3.0 */
932 AcpiDmIndent (Level + 1);
933 if (Resource->GenericReg.AccessSize)
935 AcpiOsPrintf ("0x%2.2X, // %s\n",
936 Resource->GenericReg.AccessSize, "Access Size");
937 AcpiDmIndent (Level + 1);
944 /* DescriptorName was added for ACPI 3.0+ */
946 AcpiDmDescriptorName ();
947 AcpiOsPrintf (")\n");
951 /*******************************************************************************
953 * FUNCTION: AcpiDmInterruptDescriptor
955 * PARAMETERS: Info - Extra resource info
956 * Resource - Pointer to the resource descriptor
957 * Length - Length of the descriptor in bytes
958 * Level - Current source code indentation level
962 * DESCRIPTION: Decode a extended Interrupt descriptor
964 ******************************************************************************/
967 AcpiDmInterruptDescriptor (
968 ACPI_OP_WALK_INFO *Info,
969 AML_RESOURCE *Resource,
976 AcpiDmIndent (Level);
977 AcpiOsPrintf ("Interrupt (%s, %s, %s, %s, ",
978 AcpiGbl_ConsumeDecode [ACPI_GET_1BIT_FLAG (Resource->ExtendedIrq.Flags)],
979 AcpiGbl_HeDecode [ACPI_EXTRACT_1BIT_FLAG (Resource->ExtendedIrq.Flags, 1)],
980 AcpiGbl_LlDecode [ACPI_EXTRACT_1BIT_FLAG (Resource->ExtendedIrq.Flags, 2)],
981 AcpiGbl_ShrDecode [ACPI_EXTRACT_2BIT_FLAG (Resource->ExtendedIrq.Flags, 3)]);
984 * The ResourceSource fields are optional and appear after the interrupt
985 * list. Must compute length based on length of the list. First xrupt
986 * is included in the struct (reason for -1 below)
988 AcpiDmResourceSource (Resource,
989 sizeof (AML_RESOURCE_EXTENDED_IRQ) +
990 ((UINT32) Resource->ExtendedIrq.InterruptCount - 1) * sizeof (UINT32),
991 Resource->ExtendedIrq.ResourceLength);
993 /* Insert a descriptor name */
995 AcpiDmDescriptorName ();
996 AcpiOsPrintf (")\n");
998 /* Dump the interrupt list */
1000 AcpiDmIndent (Level);
1001 AcpiOsPrintf ("{\n");
1002 for (i = 0; i < Resource->ExtendedIrq.InterruptCount; i++)
1004 AcpiDmIndent (Level + 1);
1005 AcpiOsPrintf ("0x%8.8X,\n",
1006 (UINT32) Resource->ExtendedIrq.Interrupts[i]);
1009 AcpiDmIndent (Level);
1010 AcpiOsPrintf ("}\n");
1014 /*******************************************************************************
1016 * FUNCTION: AcpiDmVendorCommon
1018 * PARAMETERS: Name - Descriptor name suffix
1019 * ByteData - Pointer to the vendor byte data
1020 * Length - Length of the byte data
1021 * Level - Current source code indentation level
1025 * DESCRIPTION: Decode a Vendor descriptor, both Large and Small
1027 ******************************************************************************/
1030 AcpiDmVendorCommon (
1037 /* Dump macro name */
1039 AcpiDmIndent (Level);
1040 AcpiOsPrintf ("Vendor%s (", Name);
1042 /* Insert a descriptor name */
1044 AcpiDmDescriptorName ();
1045 AcpiOsPrintf (") // Length = 0x%.2X\n", Length);
1047 /* Dump the vendor bytes */
1049 AcpiDmIndent (Level);
1050 AcpiOsPrintf ("{\n");
1052 AcpiDmDisasmByteList (Level + 1, ByteData, Length);
1054 AcpiDmIndent (Level);
1055 AcpiOsPrintf ("}\n");
1059 /*******************************************************************************
1061 * FUNCTION: AcpiDmVendorLargeDescriptor
1063 * PARAMETERS: Info - Extra resource info
1064 * Resource - Pointer to the resource descriptor
1065 * Length - Length of the descriptor in bytes
1066 * Level - Current source code indentation level
1070 * DESCRIPTION: Decode a Vendor Large descriptor
1072 ******************************************************************************/
1075 AcpiDmVendorLargeDescriptor (
1076 ACPI_OP_WALK_INFO *Info,
1077 AML_RESOURCE *Resource,
1082 AcpiDmVendorCommon ("Long ",
1083 ACPI_ADD_PTR (UINT8, Resource, sizeof (AML_RESOURCE_LARGE_HEADER)),