1 /******************************************************************************
3 * Module Name: dmtable - Support for ACPI tables that contain no AML code
5 *****************************************************************************/
7 /******************************************************************************
11 * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
12 * All rights reserved.
16 * 2.1. This is your license from Intel Corp. under its intellectual property
17 * rights. You may have additional license terms from the party that provided
18 * you this software, covering your right to use that party's intellectual
21 * 2.2. Intel grants, free of charge, to any person ("Licensee") obtaining a
22 * copy of the source code appearing in this file ("Covered Code") an
23 * irrevocable, perpetual, worldwide license under Intel's copyrights in the
24 * base code distributed originally by Intel ("Original Intel Code") to copy,
25 * make derivatives, distribute, use and display any portion of the Covered
26 * Code in any form, with the right to sublicense such rights; and
28 * 2.3. Intel grants Licensee a non-exclusive and non-transferable patent
29 * license (with the right to sublicense), under only those claims of Intel
30 * patents that are infringed by the Original Intel Code, to make, use, sell,
31 * offer to sell, and import the Covered Code and derivative works thereof
32 * solely to the minimum extent necessary to exercise the above copyright
33 * license, and in no event shall the patent license extend to any additions
34 * to or modifications of the Original Intel Code. No other license or right
35 * is granted directly or by implication, estoppel or otherwise;
37 * The above copyright and patent license is granted only if the following
42 * 3.1. Redistribution of Source with Rights to Further Distribute Source.
43 * Redistribution of source code of any substantial portion of the Covered
44 * Code or modification with rights to further distribute source must include
45 * the above Copyright Notice, the above License, this list of Conditions,
46 * and the following Disclaimer and Export Compliance provision. In addition,
47 * Licensee must cause all Covered Code to which Licensee contributes to
48 * contain a file documenting the changes Licensee made to create that Covered
49 * Code and the date of any change. Licensee must include in that file the
50 * documentation of any changes made by any predecessor Licensee. Licensee
51 * must include a prominent statement that the modification is derived,
52 * directly or indirectly, from Original Intel Code.
54 * 3.2. Redistribution of Source with no Rights to Further Distribute Source.
55 * Redistribution of source code of any substantial portion of the Covered
56 * Code or modification without rights to further distribute source must
57 * include the following Disclaimer and Export Compliance provision in the
58 * documentation and/or other materials provided with distribution. In
59 * addition, Licensee may not authorize further sublicense of source of any
60 * portion of the Covered Code, and must include terms to the effect that the
61 * license from Licensee to its licensee is limited to the intellectual
62 * property embodied in the software Licensee provides to its licensee, and
63 * not to intellectual property embodied in modifications its licensee may
66 * 3.3. Redistribution of Executable. Redistribution in executable form of any
67 * substantial portion of the Covered Code or modification must reproduce the
68 * above Copyright Notice, and the following Disclaimer and Export Compliance
69 * provision in the documentation and/or other materials provided with the
72 * 3.4. Intel retains all right, title, and interest in and to the Original
75 * 3.5. Neither the name Intel nor any other trademark owned or controlled by
76 * Intel shall be used in advertising or otherwise to promote the sale, use or
77 * other dealings in products derived from or relating to the Covered Code
78 * without prior written authorization from Intel.
80 * 4. Disclaimer and Export Compliance
82 * 4.1. INTEL MAKES NO WARRANTY OF ANY KIND REGARDING ANY SOFTWARE PROVIDED
83 * HERE. ANY SOFTWARE ORIGINATING FROM INTEL OR DERIVED FROM INTEL SOFTWARE
84 * IS PROVIDED "AS IS," AND INTEL WILL NOT PROVIDE ANY SUPPORT, ASSISTANCE,
85 * INSTALLATION, TRAINING OR OTHER SERVICES. INTEL WILL NOT PROVIDE ANY
86 * UPDATES, ENHANCEMENTS OR EXTENSIONS. INTEL SPECIFICALLY DISCLAIMS ANY
87 * IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT AND FITNESS FOR A
90 * 4.2. IN NO EVENT SHALL INTEL HAVE ANY LIABILITY TO LICENSEE, ITS LICENSEES
91 * OR ANY OTHER THIRD PARTY, FOR ANY LOST PROFITS, LOST DATA, LOSS OF USE OR
92 * COSTS OF PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, OR FOR ANY INDIRECT,
93 * SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THIS AGREEMENT, UNDER ANY
94 * CAUSE OF ACTION OR THEORY OF LIABILITY, AND IRRESPECTIVE OF WHETHER INTEL
95 * HAS ADVANCE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES. THESE LIMITATIONS
96 * SHALL APPLY NOTWITHSTANDING THE FAILURE OF THE ESSENTIAL PURPOSE OF ANY
99 * 4.3. Licensee shall not export, either directly or indirectly, any of this
100 * software or system incorporating such software without first obtaining any
101 * required license or other approval from the U. S. Department of Commerce or
102 * any other agency or department of the United States Government. In the
103 * event Licensee exports any such software from the United States or
104 * re-exports any such software from a foreign destination, Licensee shall
105 * ensure that the distribution and export/re-export of the software is in
106 * compliance with all laws, regulations, orders, or other restrictions of the
107 * U.S. Export Administration Regulations. Licensee agrees that neither it nor
108 * any of its subsidiaries will export/re-export any technical data, process,
109 * software, or service, directly or indirectly, to any country for which the
110 * United States government or any agency thereof requires an export license,
111 * other governmental approval, or letter of assurance, without first obtaining
112 * such license, approval or letter.
114 *****************************************************************************/
117 #include "accommon.h"
118 #include "acdisasm.h"
119 #include "actables.h"
121 /* This module used for application-level code only */
123 #define _COMPONENT ACPI_CA_DISASSEMBLER
124 ACPI_MODULE_NAME ("dmtable")
126 /* Local Prototypes */
128 static ACPI_DMTABLE_DATA *
138 AcpiTbGenerateChecksum (
139 ACPI_TABLE_HEADER *Table);
142 /* These tables map a subtable type to a description string */
144 static const char *AcpiDmAsfSubnames[] =
148 "ASF Remote Control",
149 "ASF RMCP Boot Options",
151 "Unknown SubTable Type" /* Reserved */
154 static const char *AcpiDmDmarSubnames[] =
156 "Hardware Unit Definition",
157 "Reserved Memory Region",
158 "Root Port ATS Capability",
159 "Unknown SubTable Type" /* Reserved */
162 static const char *AcpiDmHestSubnames[] =
164 "XPF Machine Check Exception",
165 "XPF Corrected Machine Check",
167 "XPF Non-Maskable Interrupt",
168 "IPF Corrected Machine Check",
169 "IPF Corrected Platform Error",
170 "PCI Express Root Port AER",
171 "PCI Express AER (AER Endpoint)",
172 "PCI Express/PCI-X Bridge AER",
173 "Generic Hardware Error Source",
174 "Unknown SubTable Type" /* Reserved */
177 static const char *AcpiDmHestNotifySubnames[] =
180 "External Interrupt",
184 "Unknown Notify Type" /* Reserved */
187 static const char *AcpiDmMadtSubnames[] =
189 "Processor Local APIC", /* ACPI_MADT_TYPE_LOCAL_APIC */
190 "I/O APIC", /* ACPI_MADT_TYPE_IO_APIC */
191 "Interrupt Source Override", /* ACPI_MADT_TYPE_INTERRUPT_OVERRIDE */
192 "NMI Source", /* ACPI_MADT_TYPE_NMI_SOURCE */
193 "Local APIC NMI", /* ACPI_MADT_TYPE_LOCAL_APIC_NMI */
194 "Local APIC Address Override", /* ACPI_MADT_TYPE_LOCAL_APIC_OVERRIDE */
195 "I/O SAPIC", /* ACPI_MADT_TYPE_IO_SAPIC */
196 "Local SAPIC", /* ACPI_MADT_TYPE_LOCAL_SAPIC */
197 "Platform Interrupt Sources", /* ACPI_MADT_TYPE_INTERRUPT_SOURCE */
198 "Processor Local x2APIC", /* ACPI_MADT_TYPE_LOCAL_X2APIC */
199 "Local x2APIC NMI", /* ACPI_MADT_TYPE_LOCAL_X2APIC_NMI */
200 "Unknown SubTable Type" /* Reserved */
203 static const char *AcpiDmSratSubnames[] =
205 "Processor Local APIC/SAPIC Affinity",
207 "Processor Local x2APIC Affinity",
208 "Unknown SubTable Type" /* Reserved */
212 #define ACPI_FADT_PM_RESERVED 8
214 static const char *AcpiDmFadtProfiles[] =
223 "Performance Server",
224 "Unknown Profile Type"
228 /*******************************************************************************
230 * ACPI Table Data, indexed by signature.
232 * Simple tables have only a TableInfo structure, complex tables have a handler.
233 * This table must be NULL terminated. RSDP and FACS are special-cased
236 ******************************************************************************/
238 static ACPI_DMTABLE_DATA AcpiDmTableData[] =
240 {ACPI_SIG_ASF, NULL, AcpiDmDumpAsf, "Alert Standard Format table"},
241 {ACPI_SIG_BOOT, AcpiDmTableInfoBoot, NULL, "Simple Boot Flag Table"},
242 {ACPI_SIG_BERT, AcpiDmTableInfoBert, NULL, "Boot Error Record Table"},
243 {ACPI_SIG_CPEP, NULL, AcpiDmDumpCpep, "Corrected Platform Error Polling table"},
244 {ACPI_SIG_DBGP, AcpiDmTableInfoDbgp, NULL, "Debug Port table"},
245 {ACPI_SIG_DMAR, NULL, AcpiDmDumpDmar, "DMA Remapping table"},
246 {ACPI_SIG_ECDT, AcpiDmTableInfoEcdt, NULL, "Embedded Controller Boot Resources Table"},
247 {ACPI_SIG_EINJ, NULL, AcpiDmDumpEinj, "Error Injection table"},
248 {ACPI_SIG_ERST, NULL, AcpiDmDumpErst, "Error Record Serialization Table"},
249 {ACPI_SIG_FADT, NULL, AcpiDmDumpFadt, "Fixed ACPI Description Table"},
250 {ACPI_SIG_HEST, NULL, AcpiDmDumpHest, "Hardware Error Source Table"},
251 {ACPI_SIG_HPET, AcpiDmTableInfoHpet, NULL, "High Precision Event Timer table"},
252 {ACPI_SIG_MADT, NULL, AcpiDmDumpMadt, "Multiple APIC Description Table"},
253 {ACPI_SIG_MCFG, NULL, AcpiDmDumpMcfg, "Memory Mapped Configuration table"},
254 {ACPI_SIG_RSDT, NULL, AcpiDmDumpRsdt, "Root System Description Table"},
255 {ACPI_SIG_SBST, AcpiDmTableInfoSbst, NULL, "Smart Battery Specification Table"},
256 {ACPI_SIG_SLIC, AcpiDmTableInfoSlic, NULL, "Software Licensing Description Table"},
257 {ACPI_SIG_SLIT, NULL, AcpiDmDumpSlit, "System Locality Information Table"},
258 {ACPI_SIG_SPCR, AcpiDmTableInfoSpcr, NULL, "Serial Port Console Redirection table"},
259 {ACPI_SIG_SPMI, AcpiDmTableInfoSpmi, NULL, "Server Platform Management Interface table"},
260 {ACPI_SIG_SRAT, NULL, AcpiDmDumpSrat, "System Resource Affinity Table"},
261 {ACPI_SIG_TCPA, AcpiDmTableInfoTcpa, NULL, "Trusted Computing Platform Alliance table"},
262 {ACPI_SIG_WDRT, AcpiDmTableInfoWdrt, NULL, "Watchdog Resource Table"},
263 {ACPI_SIG_XSDT, NULL, AcpiDmDumpXsdt, "Extended System Description Table"},
264 {NULL, NULL, NULL, NULL}
268 /*******************************************************************************
270 * FUNCTION: AcpiTbGenerateChecksum
272 * PARAMETERS: Table - Pointer to a valid ACPI table (with a
273 * standard ACPI header)
275 * RETURN: 8 bit checksum of buffer
277 * DESCRIPTION: Computes an 8 bit checksum of the table.
279 ******************************************************************************/
282 AcpiTbGenerateChecksum (
283 ACPI_TABLE_HEADER *Table)
288 /* Sum the entire table as-is */
290 Checksum = AcpiTbChecksum ((UINT8 *) Table, Table->Length);
292 /* Subtract off the existing checksum value in the table */
294 Checksum = (UINT8) (Checksum - Table->Checksum);
296 /* Compute the final checksum */
298 Checksum = (UINT8) (0 - Checksum);
303 /*******************************************************************************
305 * FUNCTION: AcpiDmGetTableData
307 * PARAMETERS: Signature - ACPI signature (4 chars) to match
309 * RETURN: Pointer to a valid ACPI_DMTABLE_DATA. Null if no match found.
311 * DESCRIPTION: Find a match in the global table of supported ACPI tables
313 ******************************************************************************/
315 static ACPI_DMTABLE_DATA *
319 ACPI_DMTABLE_DATA *TableData;
322 for (TableData = AcpiDmTableData; TableData->Signature; TableData++)
324 if (ACPI_COMPARE_NAME (Signature, TableData->Signature))
334 /*******************************************************************************
336 * FUNCTION: AcpiDmDumpDataTable
338 * PARAMETERS: Table - An ACPI table
342 * DESCRIPTION: Format the contents of an ACPI data table (any table other
343 * than an SSDT or DSDT that does not contain executable AML code)
345 ******************************************************************************/
348 AcpiDmDumpDataTable (
349 ACPI_TABLE_HEADER *Table)
352 ACPI_DMTABLE_DATA *TableData;
356 /* Ignore tables that contain AML */
358 if (AcpiUtIsAmlTable (Table))
364 * Handle tables that don't use the common ACPI table header structure.
365 * Currently, these are the FACS and RSDP.
367 if (ACPI_COMPARE_NAME (Table->Signature, ACPI_SIG_FACS))
369 Length = Table->Length;
370 AcpiDmDumpTable (Length, 0, Table, 0, AcpiDmTableInfoFacs);
372 else if (ACPI_COMPARE_NAME (Table->Signature, ACPI_SIG_RSDP))
374 Length = AcpiDmDumpRsdp (Table);
379 * All other tables must use the common ACPI table header, dump it now
381 Length = Table->Length;
382 Status = AcpiDmDumpTable (Length, 0, Table, 0, AcpiDmTableInfoHeader);
383 if (ACPI_FAILURE (Status))
389 /* Match signature and dispatch appropriately */
391 TableData = AcpiDmGetTableData (Table->Signature);
394 if (!ACPI_STRNCMP (Table->Signature, "OEM", 3))
396 AcpiOsPrintf ("\n**** OEM-defined ACPI table [%4.4s], unknown contents\n\n",
401 AcpiOsPrintf ("\n**** Unknown ACPI table type [%4.4s]\n\n",
405 else if (TableData->TableHandler)
407 /* Complex table, has a handler */
409 TableData->TableHandler (Table);
411 else if (TableData->TableInfo)
413 /* Simple table, just walk the info table */
415 AcpiDmDumpTable (Length, 0, Table, 0, TableData->TableInfo);
419 /* Always dump the raw table data */
421 AcpiOsPrintf ("\nRaw Table Data\n\n");
422 AcpiUtDumpBuffer2 (ACPI_CAST_PTR (UINT8, Table), Length, DB_BYTE_DISPLAY);
426 /*******************************************************************************
428 * FUNCTION: AcpiDmLineHeader
430 * PARAMETERS: Offset - Current byte offset, from table start
431 * ByteLength - Length of the field in bytes, 0 for flags
432 * Name - Name of this field
433 * Value - Optional value, displayed on left of ':'
437 * DESCRIPTION: Utility routines for formatting output lines. Displays the
438 * current table offset in hex and decimal, the field length,
439 * and the field name.
441 ******************************************************************************/
452 AcpiOsPrintf ("[%3.3Xh %4.4d% 3d] %28s : ",
453 Offset, Offset, ByteLength, Name);
457 AcpiOsPrintf ("%43s : ",
472 AcpiOsPrintf ("[%3.3Xh %4.4d% 3d] %24s % 3d : ",
473 Offset, Offset, ByteLength, Name, Value);
477 AcpiOsPrintf ("[%3.3Xh %4.4d ] %24s % 3d : ",
478 Offset, Offset, Name, Value);
483 /*******************************************************************************
485 * FUNCTION: AcpiDmDumpTable
487 * PARAMETERS: TableLength - Length of the entire ACPI table
488 * TableOffset - Starting offset within the table for this
489 * sub-descriptor (0 if main table)
490 * Table - The ACPI table
491 * SubtableLength - Length of this sub-descriptor
492 * Info - Info table for this ACPI table
496 * DESCRIPTION: Display ACPI table contents by walking the Info table.
498 ******************************************************************************/
505 UINT32 SubtableLength,
506 ACPI_DMTABLE_INFO *Info)
509 UINT32 CurrentOffset;
513 ACPI_DMTABLE_DATA *TableData;
514 BOOLEAN LastOutputBlankLine = FALSE;
519 AcpiOsPrintf ("Display not implemented\n");
520 return (AE_NOT_IMPLEMENTED);
523 /* Walk entire Info table; Null name terminates */
525 for (; Info->Name; Info++)
528 * Target points to the field within the ACPI Table. CurrentOffset is
529 * the offset of the field from the start of the main table.
531 Target = ACPI_ADD_PTR (UINT8, Table, Info->Offset);
532 CurrentOffset = TableOffset + Info->Offset;
534 /* Check for beyond EOT or beyond subtable end */
536 if ((CurrentOffset >= TableLength) ||
537 (SubtableLength && (Info->Offset >= SubtableLength)))
539 AcpiOsPrintf ("**** ACPI table terminates in the middle of a data structure!\n");
540 return (AE_BAD_DATA);
543 /* Generate the byte length for this field */
545 switch (Info->Opcode)
548 case ACPI_DMT_CHKSUM:
549 case ACPI_DMT_SPACEID:
553 case ACPI_DMT_HESTNTYP:
554 case ACPI_DMT_FADTPM:
557 case ACPI_DMT_UINT16:
562 case ACPI_DMT_UINT24:
565 case ACPI_DMT_UINT32:
573 case ACPI_DMT_UINT56:
576 case ACPI_DMT_UINT64:
580 case ACPI_DMT_STRING:
581 ByteLength = ACPI_STRLEN (ACPI_CAST_PTR (char, Target)) + 1;
584 if (!LastOutputBlankLine)
587 LastOutputBlankLine = TRUE;
589 ByteLength = sizeof (ACPI_GENERIC_ADDRESS);
591 case ACPI_DMT_HESTNTFY:
592 if (!LastOutputBlankLine)
595 LastOutputBlankLine = TRUE;
597 ByteLength = sizeof (ACPI_HEST_NOTIFY);
604 if (CurrentOffset + ByteLength > TableLength)
606 AcpiOsPrintf ("**** ACPI table terminates in the middle of a data structure!\n");
607 return (AE_BAD_DATA);
610 /* Start a new line and decode the opcode */
612 AcpiDmLineHeader (CurrentOffset, ByteLength, Info->Name);
614 switch (Info->Opcode)
616 /* Single-bit Flag fields. Note: Opcode is the bit position */
627 AcpiOsPrintf ("%1.1X\n", (*Target >> Info->Opcode) & 0x01);
630 /* 2-bit Flag fields */
632 case ACPI_DMT_FLAGS0:
634 AcpiOsPrintf ("%1.1X\n", *Target & 0x03);
637 case ACPI_DMT_FLAGS2:
639 AcpiOsPrintf ("%1.1X\n", (*Target >> 2) & 0x03);
642 /* Standard Data Types */
646 AcpiOsPrintf ("%2.2X\n", *Target);
649 case ACPI_DMT_UINT16:
651 AcpiOsPrintf ("%4.4X\n", ACPI_GET16 (Target));
654 case ACPI_DMT_UINT24:
656 AcpiOsPrintf ("%2.2X%2.2X%2.2X\n",
657 *Target, *(Target + 1), *(Target + 2));
660 case ACPI_DMT_UINT32:
662 AcpiOsPrintf ("%8.8X\n", ACPI_GET32 (Target));
665 case ACPI_DMT_UINT56:
667 for (Temp8 = 0; Temp8 < 7; Temp8++)
669 AcpiOsPrintf ("%2.2X", Target[Temp8]);
674 case ACPI_DMT_UINT64:
676 AcpiOsPrintf ("%8.8X%8.8X\n",
677 ACPI_FORMAT_UINT64 (ACPI_GET64 (Target)));
680 case ACPI_DMT_STRING:
682 AcpiOsPrintf ("%s\n", ACPI_CAST_PTR (char, Target));
685 /* Fixed length ASCII name fields */
689 AcpiDmCheckAscii (Target, 4);
690 AcpiOsPrintf ("\"%4.4s\" ", Target);
691 TableData = AcpiDmGetTableData (ACPI_CAST_PTR (char, Target));
694 AcpiOsPrintf ("/* %s */", TableData->Name);
701 AcpiDmCheckAscii (Target, 4);
702 AcpiOsPrintf ("\"%4.4s\"\n", Target);
707 AcpiDmCheckAscii (Target, 6);
708 AcpiOsPrintf ("\"%6.6s\"\n", Target);
713 AcpiDmCheckAscii (Target, 8);
714 AcpiOsPrintf ("\"%8.8s\"\n", Target);
717 /* Special Data Types */
719 case ACPI_DMT_CHKSUM:
721 /* Checksum, display and validate */
723 AcpiOsPrintf ("%2.2X", *Target);
724 Temp8 = AcpiTbGenerateChecksum (Table);
725 if (Temp8 != ACPI_CAST_PTR (ACPI_TABLE_HEADER, Table)->Checksum)
728 " /* Incorrect checksum, should be %2.2X */", Temp8);
733 case ACPI_DMT_SPACEID:
735 /* Address Space ID */
737 AcpiOsPrintf ("%2.2X (%s)\n", *Target, AcpiUtGetRegionName (*Target));
742 /* Generic Address Structure */
744 AcpiOsPrintf ("<Generic Address Structure>\n");
745 AcpiDmDumpTable (ACPI_CAST_PTR (ACPI_TABLE_HEADER, Table)->Length,
746 CurrentOffset, Target, sizeof (ACPI_GENERIC_ADDRESS), AcpiDmTableInfoGas);
748 LastOutputBlankLine = TRUE;
753 /* ASF subtable types */
755 Temp16 = (UINT16) ((*Target) & 0x7F); /* Top bit can be zero or one */
756 if (Temp16 > ACPI_ASF_TYPE_RESERVED)
758 Temp16 = ACPI_ASF_TYPE_RESERVED;
761 AcpiOsPrintf ("%2.2X <%s>\n", *Target, AcpiDmAsfSubnames[Temp16]);
766 /* DMAR subtable types */
768 Temp16 = ACPI_GET16 (Target);
769 if (Temp16 > ACPI_DMAR_TYPE_RESERVED)
771 Temp16 = ACPI_DMAR_TYPE_RESERVED;
774 AcpiOsPrintf ("%4.4X <%s>\n", ACPI_GET16 (Target), AcpiDmDmarSubnames[Temp16]);
779 /* HEST subtable types */
781 Temp16 = ACPI_GET16 (Target);
782 if (Temp16 > ACPI_HEST_TYPE_RESERVED)
784 Temp16 = ACPI_HEST_TYPE_RESERVED;
787 AcpiOsPrintf ("%4.4X (%s)\n", ACPI_GET16 (Target), AcpiDmHestSubnames[Temp16]);
790 case ACPI_DMT_HESTNTFY:
792 AcpiOsPrintf ("<Hardware Error Notification Structure>\n");
793 AcpiDmDumpTable (ACPI_CAST_PTR (ACPI_TABLE_HEADER, Table)->Length,
794 CurrentOffset, Target, sizeof (ACPI_HEST_NOTIFY), AcpiDmTableInfoHestNotify);
796 LastOutputBlankLine = TRUE;
799 case ACPI_DMT_HESTNTYP:
801 /* HEST Notify types */
804 if (Temp8 > ACPI_HEST_NOTIFY_RESERVED)
806 Temp8 = ACPI_HEST_NOTIFY_RESERVED;
809 AcpiOsPrintf ("%2.2X (%s)\n", *Target, AcpiDmHestNotifySubnames[Temp8]);
815 /* MADT subtable types */
818 if (Temp8 > ACPI_MADT_TYPE_RESERVED)
820 Temp8 = ACPI_MADT_TYPE_RESERVED;
823 AcpiOsPrintf ("%2.2X <%s>\n", *Target, AcpiDmMadtSubnames[Temp8]);
828 /* SRAT subtable types */
831 if (Temp8 > ACPI_SRAT_TYPE_RESERVED)
833 Temp8 = ACPI_SRAT_TYPE_RESERVED;
836 AcpiOsPrintf ("%2.2X <%s>\n", *Target, AcpiDmSratSubnames[Temp8]);
839 case ACPI_DMT_FADTPM:
841 /* FADT Preferred PM Profile names */
844 if (Temp8 > ACPI_FADT_PM_RESERVED)
846 Temp8 = ACPI_FADT_PM_RESERVED;
849 AcpiOsPrintf ("%2.2X (%s)\n", *Target, AcpiDmFadtProfiles[Temp8]);
856 ACPI_ERROR ((AE_INFO,
857 "**** Invalid table opcode [%X] ****\n", Info->Opcode));
862 if (TableOffset && !SubtableLength)
864 /* If this table is not the main table, subtable must have valid length */
866 AcpiOsPrintf ("Invalid zero length subtable\n");
867 return (AE_BAD_DATA);
874 /*******************************************************************************
876 * FUNCTION: AcpiDmCheckAscii
878 * PARAMETERS: Name - Ascii string
879 * Count - Number of characters to check
883 * DESCRIPTION: Ensure that the requested number of characters are printable
884 * Ascii characters. Sets non-printable and null chars to <space>.
886 ******************************************************************************/
896 for (i = 0; i < Count; i++)
898 if (!Name[i] || !isprint (Name[i]))