1 /*******************************************************************************
3 * Module Name: dmresrcl.c - "Large" Resource Descriptor disassembly
5 ******************************************************************************/
8 * Copyright (C) 2000 - 2014, 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))
312 AcpiOsPrintf ("/**** Invalid Resource Type: 0x%X ****/", ResourceType);
316 /* Prefix is either Word, DWord, QWord, or Extended */
318 AcpiDmAddressPrefix (Type);
320 /* Resource Types above 0xC0 are vendor-defined */
322 if (ResourceType > 2)
324 AcpiOsPrintf ("Space (0x%2.2X, ", ResourceType);
325 AcpiDmSpaceFlags (Flags);
326 AcpiOsPrintf (" 0x%2.2X,", SpecificFlags);
330 /* This is either a Memory, IO, or BusNumber descriptor (0,1,2) */
332 AcpiOsPrintf ("%s (", 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,", AcpiGbl_RngDecode [ACPI_GET_2BIT_FLAG (SpecificFlags)]);
351 /*******************************************************************************
353 * FUNCTION: AcpiDmAddressFlags
355 * PARAMETERS: Resource - Raw AML descriptor
359 * DESCRIPTION: Emit flags common to address descriptors
361 ******************************************************************************/
365 AML_RESOURCE *Resource)
368 if (Resource->Address.ResourceType == ACPI_IO_RANGE)
370 AcpiDmIoFlags2 (Resource->Address.SpecificFlags);
372 else if (Resource->Address.ResourceType == ACPI_MEMORY_RANGE)
374 AcpiDmMemoryFlags2 (Resource->Address.SpecificFlags);
379 /*******************************************************************************
381 * FUNCTION: AcpiDmSpaceFlags
383 * PARAMETERS: Flags - Flag byte to be decoded
387 * DESCRIPTION: Decode the flags specific to Space Address space descriptors
389 ******************************************************************************/
396 AcpiOsPrintf ("%s, %s, %s, %s,",
397 AcpiGbl_ConsumeDecode [ACPI_GET_1BIT_FLAG (Flags)],
398 AcpiGbl_DecDecode [ACPI_EXTRACT_1BIT_FLAG (Flags, 1)],
399 AcpiGbl_MinDecode [ACPI_EXTRACT_1BIT_FLAG (Flags, 2)],
400 AcpiGbl_MaxDecode [ACPI_EXTRACT_1BIT_FLAG (Flags, 3)]);
404 /*******************************************************************************
406 * FUNCTION: AcpiDmIoFlags
408 * PARAMETERS: Flags - Flag byte to be decoded
412 * DESCRIPTION: Decode the flags specific to IO Address space descriptors
414 ******************************************************************************/
420 AcpiOsPrintf ("%s, %s, %s, %s,",
421 AcpiGbl_ConsumeDecode [ACPI_GET_1BIT_FLAG (Flags)],
422 AcpiGbl_MinDecode [ACPI_EXTRACT_1BIT_FLAG (Flags, 2)],
423 AcpiGbl_MaxDecode [ACPI_EXTRACT_1BIT_FLAG (Flags, 3)],
424 AcpiGbl_DecDecode [ACPI_EXTRACT_1BIT_FLAG (Flags, 1)]);
428 /*******************************************************************************
430 * FUNCTION: AcpiDmIoFlags2
432 * PARAMETERS: SpecificFlags - "Specific" flag byte to be decoded
436 * DESCRIPTION: Decode the flags specific to IO Address space descriptors
438 ******************************************************************************/
445 AcpiOsPrintf (", %s",
446 AcpiGbl_TtpDecode [ACPI_EXTRACT_1BIT_FLAG (SpecificFlags, 4)]);
448 /* TRS is only used if TTP is TypeTranslation */
450 if (SpecificFlags & 0x10)
452 AcpiOsPrintf (", %s",
453 AcpiGbl_TrsDecode [ACPI_EXTRACT_1BIT_FLAG (SpecificFlags, 5)]);
458 /*******************************************************************************
460 * FUNCTION: AcpiDmMemoryFlags
462 * PARAMETERS: Flags - Flag byte to be decoded
463 * SpecificFlags - "Specific" flag byte to be decoded
467 * DESCRIPTION: Decode flags specific to Memory Address Space descriptors
469 ******************************************************************************/
477 AcpiOsPrintf ("%s, %s, %s, %s, %s, %s,",
478 AcpiGbl_ConsumeDecode [ACPI_GET_1BIT_FLAG (Flags)],
479 AcpiGbl_DecDecode [ACPI_EXTRACT_1BIT_FLAG (Flags, 1)],
480 AcpiGbl_MinDecode [ACPI_EXTRACT_1BIT_FLAG (Flags, 2)],
481 AcpiGbl_MaxDecode [ACPI_EXTRACT_1BIT_FLAG (Flags, 3)],
482 AcpiGbl_MemDecode [ACPI_EXTRACT_2BIT_FLAG (SpecificFlags, 1)],
483 AcpiGbl_RwDecode [ACPI_GET_1BIT_FLAG (SpecificFlags)]);
487 /*******************************************************************************
489 * FUNCTION: AcpiDmMemoryFlags2
491 * PARAMETERS: SpecificFlags - "Specific" flag byte to be decoded
495 * DESCRIPTION: Decode flags specific to Memory Address Space descriptors
497 ******************************************************************************/
504 AcpiOsPrintf (", %s, %s",
505 AcpiGbl_MtpDecode [ACPI_EXTRACT_2BIT_FLAG (SpecificFlags, 3)],
506 AcpiGbl_TtpDecode [ACPI_EXTRACT_1BIT_FLAG (SpecificFlags, 5)]);
510 /*******************************************************************************
512 * FUNCTION: AcpiDmResourceSource
514 * PARAMETERS: Resource - Raw AML descriptor
515 * MinimumLength - descriptor length without optional fields
520 * DESCRIPTION: Dump optional ResourceSource fields of an address descriptor
522 ******************************************************************************/
525 AcpiDmResourceSource (
526 AML_RESOURCE *Resource,
527 ACPI_SIZE MinimumTotalLength,
528 UINT32 ResourceLength)
530 UINT8 *AmlResourceSource;
534 TotalLength = ResourceLength + sizeof (AML_RESOURCE_LARGE_HEADER);
536 /* Check if the optional ResourceSource fields are present */
538 if (TotalLength <= MinimumTotalLength)
540 /* The two optional fields are not used */
542 AcpiOsPrintf (",, ");
546 /* Get a pointer to the ResourceSource */
548 AmlResourceSource = ACPI_ADD_PTR (UINT8, Resource, MinimumTotalLength);
551 * Always emit the ResourceSourceIndex (Byte)
553 * NOTE: Some ASL compilers always create a 0 byte (in the AML) for the
554 * Index even if the String does not exist. Although this is in violation
555 * of the ACPI specification, it is very important to emit ASL code that
556 * can be compiled back to the identical AML. There may be fields and/or
557 * indexes into the resource template buffer that are compiled to absolute
558 * offsets, and these will be broken if the AML length is changed.
560 AcpiOsPrintf ("0x%2.2X,", (UINT32) AmlResourceSource[0]);
562 /* Make sure that the ResourceSource string exists before dumping it */
564 if (TotalLength > (MinimumTotalLength + 1))
567 AcpiUtPrintString ((char *) &AmlResourceSource[1], ACPI_UINT16_MAX);
574 /*******************************************************************************
576 * FUNCTION: AcpiDmWordDescriptor
578 * PARAMETERS: Resource - Pointer to the resource descriptor
579 * Length - Length of the descriptor in bytes
580 * Level - Current source code indentation level
584 * DESCRIPTION: Decode a Word Address Space descriptor
586 ******************************************************************************/
589 AcpiDmWordDescriptor (
590 AML_RESOURCE *Resource,
595 /* Dump resource name and flags */
597 AcpiDmAddressCommon (Resource, ACPI_RESOURCE_TYPE_ADDRESS16, Level);
599 /* Dump the 5 contiguous WORD values */
601 AcpiDmAddressFields (&Resource->Address16.Granularity, 16, Level);
603 /* The ResourceSource fields are optional */
605 AcpiDmIndent (Level + 1);
606 AcpiDmResourceSource (Resource, sizeof (AML_RESOURCE_ADDRESS16), Length);
608 /* Insert a descriptor name */
610 AcpiDmDescriptorName ();
612 /* Type-specific flags */
614 AcpiDmAddressFlags (Resource);
615 AcpiOsPrintf (")\n");
619 /*******************************************************************************
621 * FUNCTION: AcpiDmDwordDescriptor
623 * PARAMETERS: Resource - Pointer to the resource descriptor
624 * Length - Length of the descriptor in bytes
625 * Level - Current source code indentation level
629 * DESCRIPTION: Decode a DWord Address Space descriptor
631 ******************************************************************************/
634 AcpiDmDwordDescriptor (
635 AML_RESOURCE *Resource,
640 /* Dump resource name and flags */
642 AcpiDmAddressCommon (Resource, ACPI_RESOURCE_TYPE_ADDRESS32, Level);
644 /* Dump the 5 contiguous DWORD values */
646 AcpiDmAddressFields (&Resource->Address32.Granularity, 32, Level);
648 /* The ResourceSource fields are optional */
650 AcpiDmIndent (Level + 1);
651 AcpiDmResourceSource (Resource, sizeof (AML_RESOURCE_ADDRESS32), Length);
653 /* Insert a descriptor name */
655 AcpiDmDescriptorName ();
657 /* Type-specific flags */
659 AcpiDmAddressFlags (Resource);
660 AcpiOsPrintf (")\n");
664 /*******************************************************************************
666 * FUNCTION: AcpiDmQwordDescriptor
668 * PARAMETERS: Resource - Pointer to the resource descriptor
669 * Length - Length of the descriptor in bytes
670 * Level - Current source code indentation level
674 * DESCRIPTION: Decode a QWord Address Space descriptor
676 ******************************************************************************/
679 AcpiDmQwordDescriptor (
680 AML_RESOURCE *Resource,
685 /* Dump resource name and flags */
687 AcpiDmAddressCommon (Resource, ACPI_RESOURCE_TYPE_ADDRESS64, Level);
689 /* Dump the 5 contiguous QWORD values */
691 AcpiDmAddressFields (&Resource->Address64.Granularity, 64, Level);
693 /* The ResourceSource fields are optional */
695 AcpiDmIndent (Level + 1);
696 AcpiDmResourceSource (Resource, sizeof (AML_RESOURCE_ADDRESS64), Length);
698 /* Insert a descriptor name */
700 AcpiDmDescriptorName ();
702 /* Type-specific flags */
704 AcpiDmAddressFlags (Resource);
705 AcpiOsPrintf (")\n");
709 /*******************************************************************************
711 * FUNCTION: AcpiDmExtendedDescriptor
713 * PARAMETERS: Resource - Pointer to the resource descriptor
714 * Length - Length of the descriptor in bytes
715 * Level - Current source code indentation level
719 * DESCRIPTION: Decode a Extended Address Space descriptor
721 ******************************************************************************/
724 AcpiDmExtendedDescriptor (
725 AML_RESOURCE *Resource,
730 /* Dump resource name and flags */
732 AcpiDmAddressCommon (Resource, ACPI_RESOURCE_TYPE_EXTENDED_ADDRESS64, Level);
734 /* Dump the 5 contiguous QWORD values */
736 AcpiDmAddressFields (&Resource->ExtAddress64.Granularity, 64, Level);
738 /* Extra field for this descriptor only */
740 AcpiDmIndent (Level + 1);
741 AcpiDmDumpInteger64 (Resource->ExtAddress64.TypeSpecific,
742 "Type-Specific Attributes");
744 /* Insert a descriptor name */
746 AcpiDmIndent (Level + 1);
747 AcpiDmDescriptorName ();
749 /* Type-specific flags */
751 AcpiDmAddressFlags (Resource);
752 AcpiOsPrintf (")\n");
756 /*******************************************************************************
758 * FUNCTION: AcpiDmMemory24Descriptor
760 * PARAMETERS: Resource - Pointer to the resource descriptor
761 * Length - Length of the descriptor in bytes
762 * Level - Current source code indentation level
766 * DESCRIPTION: Decode a Memory24 descriptor
768 ******************************************************************************/
771 AcpiDmMemory24Descriptor (
772 AML_RESOURCE *Resource,
777 /* Dump name and read/write flag */
779 AcpiDmIndent (Level);
780 AcpiOsPrintf ("Memory24 (%s,\n",
781 AcpiGbl_RwDecode [ACPI_GET_1BIT_FLAG (Resource->Memory24.Flags)]);
783 /* Dump the 4 contiguous WORD values */
785 AcpiDmMemoryFields (&Resource->Memory24.Minimum, 16, Level);
787 /* Insert a descriptor name */
789 AcpiDmIndent (Level + 1);
790 AcpiDmDescriptorName ();
791 AcpiOsPrintf (")\n");
795 /*******************************************************************************
797 * FUNCTION: AcpiDmMemory32Descriptor
799 * PARAMETERS: Resource - Pointer to the resource descriptor
800 * Length - Length of the descriptor in bytes
801 * Level - Current source code indentation level
805 * DESCRIPTION: Decode a Memory32 descriptor
807 ******************************************************************************/
810 AcpiDmMemory32Descriptor (
811 AML_RESOURCE *Resource,
816 /* Dump name and read/write flag */
818 AcpiDmIndent (Level);
819 AcpiOsPrintf ("Memory32 (%s,\n",
820 AcpiGbl_RwDecode [ACPI_GET_1BIT_FLAG (Resource->Memory32.Flags)]);
822 /* Dump the 4 contiguous DWORD values */
824 AcpiDmMemoryFields (&Resource->Memory32.Minimum, 32, Level);
826 /* Insert a descriptor name */
828 AcpiDmIndent (Level + 1);
829 AcpiDmDescriptorName ();
830 AcpiOsPrintf (")\n");
834 /*******************************************************************************
836 * FUNCTION: AcpiDmFixedMemory32Descriptor
838 * PARAMETERS: Resource - Pointer to the resource descriptor
839 * Length - Length of the descriptor in bytes
840 * Level - Current source code indentation level
844 * DESCRIPTION: Decode a Fixed Memory32 descriptor
846 ******************************************************************************/
849 AcpiDmFixedMemory32Descriptor (
850 AML_RESOURCE *Resource,
855 /* Dump name and read/write flag */
857 AcpiDmIndent (Level);
858 AcpiOsPrintf ("Memory32Fixed (%s,\n",
859 AcpiGbl_RwDecode [ACPI_GET_1BIT_FLAG (Resource->FixedMemory32.Flags)]);
861 AcpiDmIndent (Level + 1);
862 AcpiDmDumpInteger32 (Resource->FixedMemory32.Address, "Address Base");
864 AcpiDmIndent (Level + 1);
865 AcpiDmDumpInteger32 (Resource->FixedMemory32.AddressLength, "Address Length");
867 /* Insert a descriptor name */
869 AcpiDmIndent (Level + 1);
870 AcpiDmDescriptorName ();
871 AcpiOsPrintf (")\n");
875 /*******************************************************************************
877 * FUNCTION: AcpiDmGenericRegisterDescriptor
879 * PARAMETERS: Resource - Pointer to the resource descriptor
880 * Length - Length of the descriptor in bytes
881 * Level - Current source code indentation level
885 * DESCRIPTION: Decode a Generic Register descriptor
887 ******************************************************************************/
890 AcpiDmGenericRegisterDescriptor (
891 AML_RESOURCE *Resource,
896 AcpiDmIndent (Level);
897 AcpiOsPrintf ("Register (");
898 AcpiDmAddressSpace (Resource->GenericReg.AddressSpaceId);
901 AcpiDmIndent (Level + 1);
902 AcpiDmDumpInteger8 (Resource->GenericReg.BitWidth, "Bit Width");
904 AcpiDmIndent (Level + 1);
905 AcpiDmDumpInteger8 (Resource->GenericReg.BitOffset, "Bit Offset");
907 AcpiDmIndent (Level + 1);
908 AcpiDmDumpInteger64 (Resource->GenericReg.Address, "Address");
910 /* Optional field for ACPI 3.0 */
912 AcpiDmIndent (Level + 1);
913 if (Resource->GenericReg.AccessSize)
915 AcpiOsPrintf ("0x%2.2X, // %s\n",
916 Resource->GenericReg.AccessSize, "Access Size");
917 AcpiDmIndent (Level + 1);
924 /* DescriptorName was added for ACPI 3.0+ */
926 AcpiDmDescriptorName ();
927 AcpiOsPrintf (")\n");
931 /*******************************************************************************
933 * FUNCTION: AcpiDmInterruptDescriptor
935 * PARAMETERS: Resource - Pointer to the resource descriptor
936 * Length - Length of the descriptor in bytes
937 * Level - Current source code indentation level
941 * DESCRIPTION: Decode a extended Interrupt descriptor
943 ******************************************************************************/
946 AcpiDmInterruptDescriptor (
947 AML_RESOURCE *Resource,
954 AcpiDmIndent (Level);
955 AcpiOsPrintf ("Interrupt (%s, %s, %s, %s, ",
956 AcpiGbl_ConsumeDecode [ACPI_GET_1BIT_FLAG (Resource->ExtendedIrq.Flags)],
957 AcpiGbl_HeDecode [ACPI_EXTRACT_1BIT_FLAG (Resource->ExtendedIrq.Flags, 1)],
958 AcpiGbl_LlDecode [ACPI_EXTRACT_1BIT_FLAG (Resource->ExtendedIrq.Flags, 2)],
959 AcpiGbl_ShrDecode [ACPI_EXTRACT_2BIT_FLAG (Resource->ExtendedIrq.Flags, 3)]);
962 * The ResourceSource fields are optional and appear after the interrupt
963 * list. Must compute length based on length of the list. First xrupt
964 * is included in the struct (reason for -1 below)
966 AcpiDmResourceSource (Resource,
967 sizeof (AML_RESOURCE_EXTENDED_IRQ) +
968 ((UINT32) Resource->ExtendedIrq.InterruptCount - 1) * sizeof (UINT32),
969 Resource->ExtendedIrq.ResourceLength);
971 /* Insert a descriptor name */
973 AcpiDmDescriptorName ();
974 AcpiOsPrintf (")\n");
976 /* Dump the interrupt list */
978 AcpiDmIndent (Level);
979 AcpiOsPrintf ("{\n");
980 for (i = 0; i < Resource->ExtendedIrq.InterruptCount; i++)
982 AcpiDmIndent (Level + 1);
983 AcpiOsPrintf ("0x%8.8X,\n",
984 (UINT32) Resource->ExtendedIrq.Interrupts[i]);
987 AcpiDmIndent (Level);
988 AcpiOsPrintf ("}\n");
992 /*******************************************************************************
994 * FUNCTION: AcpiDmVendorCommon
996 * PARAMETERS: Name - Descriptor name suffix
997 * ByteData - Pointer to the vendor byte data
998 * Length - Length of the byte data
999 * Level - Current source code indentation level
1003 * DESCRIPTION: Decode a Vendor descriptor, both Large and Small
1005 ******************************************************************************/
1008 AcpiDmVendorCommon (
1015 /* Dump macro name */
1017 AcpiDmIndent (Level);
1018 AcpiOsPrintf ("Vendor%s (", Name);
1020 /* Insert a descriptor name */
1022 AcpiDmDescriptorName ();
1023 AcpiOsPrintf (") // Length = 0x%.2X\n", Length);
1025 /* Dump the vendor bytes */
1027 AcpiDmIndent (Level);
1028 AcpiOsPrintf ("{\n");
1030 AcpiDmDisasmByteList (Level + 1, ByteData, Length);
1032 AcpiDmIndent (Level);
1033 AcpiOsPrintf ("}\n");
1037 /*******************************************************************************
1039 * FUNCTION: AcpiDmVendorLargeDescriptor
1041 * PARAMETERS: Resource - Pointer to the resource descriptor
1042 * Length - Length of the descriptor in bytes
1043 * Level - Current source code indentation level
1047 * DESCRIPTION: Decode a Vendor Large descriptor
1049 ******************************************************************************/
1052 AcpiDmVendorLargeDescriptor (
1053 AML_RESOURCE *Resource,
1058 AcpiDmVendorCommon ("Long ",
1059 ACPI_ADD_PTR (UINT8, Resource, sizeof (AML_RESOURCE_LARGE_HEADER)),