1 /*******************************************************************************
3 * Module Name: dmbuffer - AML disassembler, buffer and string support
5 ******************************************************************************/
8 * Copyright (C) 2000 - 2015, 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.
53 #ifdef ACPI_DISASSEMBLER
55 #define _COMPONENT ACPI_CA_DEBUGGER
56 ACPI_MODULE_NAME ("dmbuffer")
58 /* Local prototypes */
62 ACPI_PARSE_OBJECT *Op);
66 ACPI_PARSE_OBJECT *Op);
69 AcpiDmGetHardwareIdType (
70 ACPI_PARSE_OBJECT *Op);
79 #define ACPI_BUFFER_BYTES_PER_LINE 8
82 /* Strings for ToPld */
84 static char *DmPanelList[] =
96 static char *DmVerticalPositionList[] =
104 static char *DmHorizontalPositionList[] =
112 static char *DmShapeList[] =
118 "HORIZONTALRECTANGLE",
120 "HORIZONTALTRAPEZOID",
127 /*******************************************************************************
129 * FUNCTION: AcpiDmDisasmByteList
131 * PARAMETERS: Level - Current source code indentation level
132 * ByteData - Pointer to the byte list
133 * ByteCount - Length of the byte list
137 * DESCRIPTION: Dump an AML "ByteList" in Hex format. 8 bytes per line, prefixed
138 * with the hex buffer offset.
140 ******************************************************************************/
143 AcpiDmDisasmByteList (
159 for (i = 0; i < ByteCount; i += ACPI_BUFFER_BYTES_PER_LINE)
161 /* Line indent and offset prefix for each new line */
163 AcpiDmIndent (Level);
164 if (ByteCount > ACPI_BUFFER_BYTES_PER_LINE)
166 AcpiOsPrintf ("/* %04X */ ", i);
169 /* Dump the actual hex values */
171 for (j = 0; j < ACPI_BUFFER_BYTES_PER_LINE; j++)
173 CurrentIndex = i + j;
174 if (CurrentIndex >= ByteCount)
176 /* Dump fill spaces */
182 AcpiOsPrintf (" 0x%2.2X", ByteData[CurrentIndex]);
184 /* Add comma if there are more bytes to display */
186 if (CurrentIndex < (ByteCount - 1))
196 /* Dump the ASCII equivalents within a comment */
198 AcpiOsPrintf (" /* ");
199 for (j = 0; j < ACPI_BUFFER_BYTES_PER_LINE; j++)
201 CurrentIndex = i + j;
202 if (CurrentIndex >= ByteCount)
207 BufChar = ByteData[CurrentIndex];
208 if (isprint (BufChar))
210 AcpiOsPrintf ("%c", BufChar);
218 /* Finished with this line */
220 AcpiOsPrintf (" */\n");
225 /*******************************************************************************
227 * FUNCTION: AcpiDmByteList
229 * PARAMETERS: Info - Parse tree walk info
234 * DESCRIPTION: Dump a buffer byte list, handling the various types of buffers.
235 * Buffer type must be already set in the Op DisasmOpcode.
237 ******************************************************************************/
241 ACPI_OP_WALK_INFO *Info,
242 ACPI_PARSE_OBJECT *Op)
248 ByteData = Op->Named.Data;
249 ByteCount = (UINT32) Op->Common.Value.Integer;
252 * The byte list belongs to a buffer, and can be produced by either
253 * a ResourceTemplate, Unicode, quoted string, or a plain byte list.
255 switch (Op->Common.Parent->Common.DisasmOpcode)
257 case ACPI_DASM_RESOURCE:
259 AcpiDmResourceTemplate (Info, Op->Common.Parent, ByteData, ByteCount);
262 case ACPI_DASM_STRING:
264 AcpiDmIndent (Info->Level);
265 AcpiUtPrintString ((char *) ByteData, ACPI_UINT16_MAX);
274 case ACPI_DASM_UNICODE:
279 case ACPI_DASM_PLD_METHOD:
281 AcpiDmDisasmByteList (Info->Level, ByteData, ByteCount);
283 AcpiDmPldBuffer (Info->Level, ByteData, ByteCount);
286 case ACPI_DASM_BUFFER:
289 * Not a resource, string, or unicode string.
290 * Just dump the buffer
292 AcpiDmDisasmByteList (Info->Level, ByteData, ByteCount);
298 /*******************************************************************************
300 * FUNCTION: AcpiDmIsUuidBuffer
302 * PARAMETERS: Op - Buffer Object to be examined
304 * RETURN: TRUE if buffer contains a UUID
306 * DESCRIPTION: Determine if a buffer Op contains a UUID
308 * To help determine whether the buffer is a UUID versus a raw data buffer,
309 * there a are a couple bytes we can look at:
311 * xxxxxxxx-xxxx-Mxxx-Nxxx-xxxxxxxxxxxx
313 * The variant covered by the UUID specification is indicated by the two most
314 * significant bits of N being 1 0 (i.e., the hexadecimal N will always be
317 * The variant covered by the UUID specification has five versions. For this
318 * variant, the four bits of M indicates the UUID version (i.e., the
319 * hexadecimal M will be either 1, 2, 3, 4, or 5).
321 ******************************************************************************/
325 ACPI_PARSE_OBJECT *Op)
329 ACPI_PARSE_OBJECT *SizeOp;
330 ACPI_PARSE_OBJECT *NextOp;
333 /* Buffer size is the buffer argument */
335 SizeOp = Op->Common.Value.Arg;
337 /* Next, the initializer byte list to examine */
339 NextOp = SizeOp->Common.Next;
345 /* Extract the byte list info */
347 ByteData = NextOp->Named.Data;
348 ByteCount = (UINT32) NextOp->Common.Value.Integer;
350 /* Byte count must be exactly 16 */
352 if (ByteCount != UUID_BUFFER_LENGTH)
357 /* Check for valid "M" and "N" values (see function header above) */
359 if (((ByteData[7] & 0xF0) == 0x00) || /* M={1,2,3,4,5} */
360 ((ByteData[7] & 0xF0) > 0x50) ||
361 ((ByteData[8] & 0xF0) < 0x80) || /* N={8,9,A,B} */
362 ((ByteData[8] & 0xF0) > 0xB0))
367 /* Ignore the Size argument in the disassembly of this buffer op */
369 SizeOp->Common.DisasmFlags |= ACPI_PARSEOP_IGNORE;
374 /*******************************************************************************
376 * FUNCTION: AcpiDmUuid
378 * PARAMETERS: Op - Byte List op containing a UUID
382 * DESCRIPTION: Dump a buffer containing a UUID as a standard ASCII string.
385 * In its canonical form, the UUID is represented by a string containing 32
386 * lowercase hexadecimal digits, displayed in 5 groups separated by hyphens.
387 * The complete form is 8-4-4-4-12 for a total of 36 characters (32
388 * alphanumeric characters representing hex digits and 4 hyphens). In bytes,
389 * 4-2-2-2-6. Example:
391 * ToUUID ("107ededd-d381-4fd7-8da9-08e9a6c79644")
393 ******************************************************************************/
397 ACPI_PARSE_OBJECT *Op)
400 const char *Description;
403 Data = ACPI_CAST_PTR (UINT8, Op->Named.Data);
405 /* Emit the 36-byte UUID string in the proper format/order */
408 "\"%2.2x%2.2x%2.2x%2.2x-"
412 "%2.2x%2.2x%2.2x%2.2x%2.2x%2.2x\")",
413 Data[3], Data[2], Data[1], Data[0],
417 Data[10], Data[11], Data[12], Data[13], Data[14], Data[15]);
419 /* Dump the UUID description string if available */
421 Description = AcpiAhMatchUuid (Data);
424 AcpiOsPrintf (" /* %s */", Description);
429 /*******************************************************************************
431 * FUNCTION: AcpiDmIsUnicodeBuffer
433 * PARAMETERS: Op - Buffer Object to be examined
435 * RETURN: TRUE if buffer contains a UNICODE string
437 * DESCRIPTION: Determine if a buffer Op contains a Unicode string
439 ******************************************************************************/
442 AcpiDmIsUnicodeBuffer (
443 ACPI_PARSE_OBJECT *Op)
448 ACPI_PARSE_OBJECT *SizeOp;
449 ACPI_PARSE_OBJECT *NextOp;
453 /* Buffer size is the buffer argument */
455 SizeOp = Op->Common.Value.Arg;
457 /* Next, the initializer byte list to examine */
459 NextOp = SizeOp->Common.Next;
465 /* Extract the byte list info */
467 ByteData = NextOp->Named.Data;
468 ByteCount = (UINT32) NextOp->Common.Value.Integer;
469 WordCount = ACPI_DIV_2 (ByteCount);
472 * Unicode string must have an even number of bytes and last
478 ((UINT16 *) (void *) ByteData)[WordCount - 1] != 0)
483 /* For each word, 1st byte must be ascii (1-0x7F), 2nd byte must be zero */
485 for (i = 0; i < (ByteCount - 2); i += 2)
487 if ((ByteData[i] == 0) ||
488 (ByteData[i] > 0x7F) ||
489 (ByteData[(ACPI_SIZE) i + 1] != 0))
495 /* Ignore the Size argument in the disassembly of this buffer op */
497 SizeOp->Common.DisasmFlags |= ACPI_PARSEOP_IGNORE;
502 /*******************************************************************************
504 * FUNCTION: AcpiDmIsStringBuffer
506 * PARAMETERS: Op - Buffer Object to be examined
508 * RETURN: TRUE if buffer contains a ASCII string, FALSE otherwise
510 * DESCRIPTION: Determine if a buffer Op contains a ASCII string
512 ******************************************************************************/
515 AcpiDmIsStringBuffer (
516 ACPI_PARSE_OBJECT *Op)
520 ACPI_PARSE_OBJECT *SizeOp;
521 ACPI_PARSE_OBJECT *NextOp;
525 /* Buffer size is the buffer argument */
527 SizeOp = Op->Common.Value.Arg;
529 /* Next, the initializer byte list to examine */
531 NextOp = SizeOp->Common.Next;
537 /* Extract the byte list info */
539 ByteData = NextOp->Named.Data;
540 ByteCount = (UINT32) NextOp->Common.Value.Integer;
542 /* Last byte must be the null terminator */
546 (ByteData[ByteCount-1] != 0))
551 for (i = 0; i < (ByteCount - 1); i++)
553 /* TBD: allow some escapes (non-ascii chars).
554 * they will be handled in the string output routine
557 if (!isprint (ByteData[i]))
567 /*******************************************************************************
569 * FUNCTION: AcpiDmIsPldBuffer
571 * PARAMETERS: Op - Buffer Object to be examined
573 * RETURN: TRUE if buffer contains a ASCII string, FALSE otherwise
575 * DESCRIPTION: Determine if a buffer Op contains a _PLD structure
577 ******************************************************************************/
581 ACPI_PARSE_OBJECT *Op)
583 ACPI_NAMESPACE_NODE *Node;
584 ACPI_PARSE_OBJECT *SizeOp;
585 ACPI_PARSE_OBJECT *ParentOp;
588 /* Buffer size is the buffer argument */
590 SizeOp = Op->Common.Value.Arg;
592 ParentOp = Op->Common.Parent;
598 /* Check for form: Name(_PLD, Buffer() {}). Not legal, however */
600 if (ParentOp->Common.AmlOpcode == AML_NAME_OP)
602 Node = ParentOp->Common.Node;
604 if (ACPI_COMPARE_NAME (Node->Name.Ascii, METHOD_NAME__PLD))
606 /* Ignore the Size argument in the disassembly of this buffer op */
608 SizeOp->Common.DisasmFlags |= ACPI_PARSEOP_IGNORE;
615 /* Check for proper form: Name(_PLD, Package() {Buffer() {}}) */
617 if (ParentOp->Common.AmlOpcode == AML_PACKAGE_OP)
619 ParentOp = ParentOp->Common.Parent;
625 if (ParentOp->Common.AmlOpcode == AML_NAME_OP)
627 Node = ParentOp->Common.Node;
629 if (ACPI_COMPARE_NAME (Node->Name.Ascii, METHOD_NAME__PLD))
631 /* Ignore the Size argument in the disassembly of this buffer op */
633 SizeOp->Common.DisasmFlags |= ACPI_PARSEOP_IGNORE;
643 /*******************************************************************************
645 * FUNCTION: AcpiDmFindNameByIndex
647 * PARAMETERS: Index - Index of array to check
648 * List - Array to reference
650 * RETURN: String from List or empty string
652 * DESCRIPTION: Finds and returns the char string located at the given index
655 ******************************************************************************/
658 AcpiDmFindNameByIndex (
679 /* TBD: Add error msg */
684 return (List[Index]);
688 /*******************************************************************************
690 * FUNCTION: AcpiDmPldBuffer
692 * PARAMETERS: Level - Current source code indentation level
693 * ByteData - Pointer to the byte list
694 * ByteCount - Length of the byte list
698 * DESCRIPTION: Dump and format the contents of a _PLD buffer object
700 ******************************************************************************/
702 #define ACPI_PLD_OUTPUT08 "%*.s%-18s = 0x%X,\n", ACPI_MUL_4 (Level), " "
703 #define ACPI_PLD_OUTPUT08P "%*.s%-18s = 0x%X)\n", ACPI_MUL_4 (Level), " "
704 #define ACPI_PLD_OUTPUT16 "%*.s%-18s = 0x%X,\n", ACPI_MUL_4 (Level), " "
705 #define ACPI_PLD_OUTPUT16P "%*.s%-18s = 0x%X)\n", ACPI_MUL_4 (Level), " "
706 #define ACPI_PLD_OUTPUT24 "%*.s%-18s = 0x%X,\n", ACPI_MUL_4 (Level), " "
707 #define ACPI_PLD_OUTPUTSTR "%*.s%-18s = \"%s\",\n", ACPI_MUL_4 (Level), " "
715 ACPI_PLD_INFO *PldInfo;
719 /* Check for valid byte count */
721 if (ByteCount < ACPI_PLD_REV1_BUFFER_SIZE)
726 /* Convert _PLD buffer to local _PLD struct */
728 Status = AcpiDecodePldBuffer (ByteData, ByteCount, &PldInfo);
729 if (ACPI_FAILURE (Status))
736 /* First 32-bit dword */
738 AcpiOsPrintf (ACPI_PLD_OUTPUT08, "PLD_Revision", PldInfo->Revision);
739 AcpiOsPrintf (ACPI_PLD_OUTPUT08, "PLD_IgnoreColor", PldInfo->IgnoreColor);
740 AcpiOsPrintf (ACPI_PLD_OUTPUT08, "PLD_Red", PldInfo->Red);
741 AcpiOsPrintf (ACPI_PLD_OUTPUT08, "PLD_Green", PldInfo->Green);
742 AcpiOsPrintf (ACPI_PLD_OUTPUT08, "PLD_Blue", PldInfo->Blue);
744 /* Second 32-bit dword */
746 AcpiOsPrintf (ACPI_PLD_OUTPUT16, "PLD_Width", PldInfo->Width);
747 AcpiOsPrintf (ACPI_PLD_OUTPUT16, "PLD_Height", PldInfo->Height);
749 /* Third 32-bit dword */
751 AcpiOsPrintf (ACPI_PLD_OUTPUT08, "PLD_UserVisible", PldInfo->UserVisible);
752 AcpiOsPrintf (ACPI_PLD_OUTPUT08, "PLD_Dock", PldInfo->Dock);
753 AcpiOsPrintf (ACPI_PLD_OUTPUT08, "PLD_Lid", PldInfo->Lid);
754 AcpiOsPrintf (ACPI_PLD_OUTPUTSTR, "PLD_Panel",
755 AcpiDmFindNameByIndex(PldInfo->Panel, DmPanelList));
756 AcpiOsPrintf (ACPI_PLD_OUTPUTSTR, "PLD_VerticalPosition",
757 AcpiDmFindNameByIndex(PldInfo->VerticalPosition, DmVerticalPositionList));
758 AcpiOsPrintf (ACPI_PLD_OUTPUTSTR, "PLD_HorizontalPosition",
759 AcpiDmFindNameByIndex(PldInfo->HorizontalPosition, DmHorizontalPositionList));
760 AcpiOsPrintf (ACPI_PLD_OUTPUTSTR, "PLD_Shape",
761 AcpiDmFindNameByIndex(PldInfo->Shape, DmShapeList));
762 AcpiOsPrintf (ACPI_PLD_OUTPUT08, "PLD_GroupOrientation", PldInfo->GroupOrientation);
763 AcpiOsPrintf (ACPI_PLD_OUTPUT08, "PLD_GroupToken", PldInfo->GroupToken);
764 AcpiOsPrintf (ACPI_PLD_OUTPUT08, "PLD_GroupPosition", PldInfo->GroupPosition);
765 AcpiOsPrintf (ACPI_PLD_OUTPUT08, "PLD_Bay", PldInfo->Bay);
767 /* Fourth 32-bit dword */
769 AcpiOsPrintf (ACPI_PLD_OUTPUT08, "PLD_Ejectable", PldInfo->Ejectable);
770 AcpiOsPrintf (ACPI_PLD_OUTPUT08, "PLD_EjectRequired", PldInfo->OspmEjectRequired);
771 AcpiOsPrintf (ACPI_PLD_OUTPUT08, "PLD_CabinetNumber", PldInfo->CabinetNumber);
772 AcpiOsPrintf (ACPI_PLD_OUTPUT08, "PLD_CardCageNumber", PldInfo->CardCageNumber);
773 AcpiOsPrintf (ACPI_PLD_OUTPUT08, "PLD_Reference", PldInfo->Reference);
774 AcpiOsPrintf (ACPI_PLD_OUTPUT08, "PLD_Rotation", PldInfo->Rotation);
776 if (ByteCount < ACPI_PLD_REV1_BUFFER_SIZE)
778 AcpiOsPrintf (ACPI_PLD_OUTPUT08P, "PLD_Order", PldInfo->Order);
782 AcpiOsPrintf (ACPI_PLD_OUTPUT08, "PLD_Order", PldInfo->Order);
785 /* Fifth 32-bit dword */
787 if (ByteCount >= ACPI_PLD_REV1_BUFFER_SIZE)
789 AcpiOsPrintf (ACPI_PLD_OUTPUT16, "PLD_VerticalOffset", PldInfo->VerticalOffset);
790 AcpiOsPrintf (ACPI_PLD_OUTPUT16P, "PLD_HorizontalOffset", PldInfo->HorizontalOffset);
797 /*******************************************************************************
799 * FUNCTION: AcpiDmUnicode
801 * PARAMETERS: Op - Byte List op containing Unicode string
805 * DESCRIPTION: Dump Unicode string as a standard ASCII string. (Remove
806 * the extra zero bytes).
808 ******************************************************************************/
812 ACPI_PARSE_OBJECT *Op)
820 /* Extract the buffer info as a WORD buffer */
822 WordData = ACPI_CAST_PTR (UINT16, Op->Named.Data);
823 WordCount = ACPI_DIV_2 (((UINT32) Op->Common.Value.Integer));
825 /* Write every other byte as an ASCII character */
828 for (i = 0; i < (WordCount - 1); i++)
830 OutputValue = (int) WordData[i];
832 /* Handle values that must be escaped */
834 if ((OutputValue == '\"') ||
835 (OutputValue == '\\'))
837 AcpiOsPrintf ("\\%c", OutputValue);
839 else if (!isprint (OutputValue))
841 AcpiOsPrintf ("\\x%2.2X", OutputValue);
845 AcpiOsPrintf ("%c", OutputValue);
849 AcpiOsPrintf ("\")");
853 /*******************************************************************************
855 * FUNCTION: AcpiDmGetHardwareIdType
857 * PARAMETERS: Op - Op to be examined
861 * DESCRIPTION: Determine the type of the argument to a _HID or _CID
862 * 1) Strings are allowed
863 * 2) If Integer, determine if it is a valid EISAID
865 ******************************************************************************/
868 AcpiDmGetHardwareIdType (
869 ACPI_PARSE_OBJECT *Op)
876 switch (Op->Common.AmlOpcode)
880 /* Mark this string as an _HID/_CID string */
882 Op->Common.DisasmOpcode = ACPI_DASM_HID_STRING;
888 /* Determine if a Word/Dword is a valid encoded EISAID */
890 /* Swap from little-endian to big-endian to simplify conversion */
892 BigEndianId = AcpiUtDwordByteSwap ((UINT32) Op->Common.Value.Integer);
894 /* Create the 3 leading ASCII letters */
896 Prefix[0] = ((BigEndianId >> 26) & 0x1F) + 0x40;
897 Prefix[1] = ((BigEndianId >> 21) & 0x1F) + 0x40;
898 Prefix[2] = ((BigEndianId >> 16) & 0x1F) + 0x40;
900 /* Verify that all 3 are ascii and alpha */
902 for (i = 0; i < 3; i++)
904 if (!ACPI_IS_ASCII (Prefix[i]) ||
905 !isalpha (Prefix[i]))
911 /* Mark this node as convertable to an EISA ID string */
913 Op->Common.DisasmOpcode = ACPI_DASM_EISAID;
922 /*******************************************************************************
924 * FUNCTION: AcpiDmCheckForHardwareId
926 * PARAMETERS: Op - Op to be examined
930 * DESCRIPTION: Determine if a Name() Op is a _HID/_CID.
932 ******************************************************************************/
935 AcpiDmCheckForHardwareId (
936 ACPI_PARSE_OBJECT *Op)
939 ACPI_PARSE_OBJECT *NextOp;
942 /* Get the NameSegment */
944 Name = AcpiPsGetName (Op);
950 NextOp = AcpiPsGetDepthNext (NULL, Op);
956 /* Check for _HID - has one argument */
958 if (ACPI_COMPARE_NAME (&Name, METHOD_NAME__HID))
960 AcpiDmGetHardwareIdType (NextOp);
964 /* Exit if not _CID */
966 if (!ACPI_COMPARE_NAME (&Name, METHOD_NAME__CID))
971 /* _CID can contain a single argument or a package */
973 if (NextOp->Common.AmlOpcode != AML_PACKAGE_OP)
975 AcpiDmGetHardwareIdType (NextOp);
979 /* _CID with Package: get the package length, check all elements */
981 NextOp = AcpiPsGetDepthNext (NULL, NextOp);
987 /* Don't need to use the length, just walk the peer list */
989 NextOp = NextOp->Common.Next;
992 AcpiDmGetHardwareIdType (NextOp);
993 NextOp = NextOp->Common.Next;
998 /*******************************************************************************
1000 * FUNCTION: AcpiDmDecompressEisaId
1002 * PARAMETERS: EncodedId - Raw encoded EISA ID.
1006 * DESCRIPTION: Convert an encoded EISAID back to the original ASCII String
1007 * and emit the correct ASL statement. If the ID is known, emit
1008 * a description of the ID as a comment.
1010 ******************************************************************************/
1013 AcpiDmDecompressEisaId (
1016 char IdBuffer[ACPI_EISAID_STRING_SIZE];
1017 const AH_DEVICE_ID *Info;
1020 /* Convert EISAID to a string an emit the statement */
1022 AcpiExEisaIdToString (IdBuffer, EncodedId);
1023 AcpiOsPrintf ("EisaId (\"%s\")", IdBuffer);
1025 /* If we know about the ID, emit the description */
1027 Info = AcpiAhMatchHardwareId (IdBuffer);
1030 AcpiOsPrintf (" /* %s */", Info->Description);