1 /******************************************************************************
3 * Module Name: uteval - Object evaluation
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 *****************************************************************************/
118 #include <contrib/dev/acpica/include/acpi.h>
119 #include <contrib/dev/acpica/include/accommon.h>
120 #include <contrib/dev/acpica/include/acnamesp.h>
121 #include <contrib/dev/acpica/include/acinterp.h>
124 #define _COMPONENT ACPI_UTILITIES
125 ACPI_MODULE_NAME ("uteval")
127 /* Local prototypes */
133 ACPI_SIZE MaxLength);
136 AcpiUtTranslateOneCid (
137 ACPI_OPERAND_OBJECT *ObjDesc,
138 ACPI_COMPATIBLE_ID *OneCid);
142 * Strings supported by the _OSI predefined (internal) method.
144 * March 2009: Removed "Linux" as this host no longer wants to respond true
145 * for this string. Basically, the only safe OS strings are windows-related
146 * and in many or most cases represent the only test path within the
147 * BIOS-provided ASL code.
149 * The second element of each entry is used to track the newest version of
150 * Windows that the BIOS has requested.
152 static const ACPI_INTERFACE_INFO AcpiInterfacesSupported[] =
154 /* Operating System Vendor Strings */
156 {"Windows 2000", ACPI_OSI_WIN_2000}, /* Windows 2000 */
157 {"Windows 2001", ACPI_OSI_WIN_XP}, /* Windows XP */
158 {"Windows 2001 SP1", ACPI_OSI_WIN_XP_SP1}, /* Windows XP SP1 */
159 {"Windows 2001.1", ACPI_OSI_WINSRV_2003}, /* Windows Server 2003 */
160 {"Windows 2001 SP2", ACPI_OSI_WIN_XP_SP2}, /* Windows XP SP2 */
161 {"Windows 2001.1 SP1", ACPI_OSI_WINSRV_2003_SP1}, /* Windows Server 2003 SP1 - Added 03/2006 */
162 {"Windows 2006", ACPI_OSI_WIN_VISTA}, /* Windows Vista - Added 03/2006 */
164 /* Feature Group Strings */
166 {"Extended Address Space Descriptor", 0}
169 * All "optional" feature group strings (features that are implemented
170 * by the host) should be implemented in the host version of
171 * AcpiOsValidateInterface and should not be added here.
176 /*******************************************************************************
178 * FUNCTION: AcpiUtOsiImplementation
180 * PARAMETERS: WalkState - Current walk state
184 * DESCRIPTION: Implementation of the _OSI predefined control method
186 ******************************************************************************/
189 AcpiUtOsiImplementation (
190 ACPI_WALK_STATE *WalkState)
193 ACPI_OPERAND_OBJECT *StringDesc;
194 ACPI_OPERAND_OBJECT *ReturnDesc;
199 ACPI_FUNCTION_TRACE (UtOsiImplementation);
202 /* Validate the string input argument */
204 StringDesc = WalkState->Arguments[0].Object;
205 if (!StringDesc || (StringDesc->Common.Type != ACPI_TYPE_STRING))
207 return_ACPI_STATUS (AE_TYPE);
210 /* Create a return object */
212 ReturnDesc = AcpiUtCreateInternalObject (ACPI_TYPE_INTEGER);
215 return_ACPI_STATUS (AE_NO_MEMORY);
218 /* Default return value is 0, NOT SUPPORTED */
222 /* Compare input string to static table of supported interfaces */
224 for (i = 0; i < ACPI_ARRAY_LENGTH (AcpiInterfacesSupported); i++)
226 if (!ACPI_STRCMP (StringDesc->String.Pointer,
227 AcpiInterfacesSupported[i].Name))
230 * The interface is supported.
231 * Update the OsiData if necessary. We keep track of the latest
232 * version of Windows that has been requested by the BIOS.
234 if (AcpiInterfacesSupported[i].Value > AcpiGbl_OsiData)
236 AcpiGbl_OsiData = AcpiInterfacesSupported[i].Value;
239 ReturnValue = ACPI_UINT32_MAX;
245 * Did not match the string in the static table, call the host OSL to
246 * check for a match with one of the optional strings (such as
247 * "Module Device", "3.0 Thermal Model", etc.)
249 Status = AcpiOsValidateInterface (StringDesc->String.Pointer);
250 if (ACPI_SUCCESS (Status))
252 /* The interface is supported */
254 ReturnValue = ACPI_UINT32_MAX;
259 ACPI_DEBUG_PRINT_RAW ((ACPI_DB_INFO,
260 "ACPI: BIOS _OSI(%s) is %ssupported\n",
261 StringDesc->String.Pointer, ReturnValue == 0 ? "not " : ""));
263 /* Complete the return value */
265 ReturnDesc->Integer.Value = ReturnValue;
266 WalkState->ReturnDesc = ReturnDesc;
267 return_ACPI_STATUS (AE_OK);
271 /*******************************************************************************
273 * FUNCTION: AcpiUtEvaluateObject
275 * PARAMETERS: PrefixNode - Starting node
276 * Path - Path to object from starting node
277 * ExpectedReturnTypes - Bitmap of allowed return types
278 * ReturnDesc - Where a return value is stored
282 * DESCRIPTION: Evaluates a namespace object and verifies the type of the
283 * return object. Common code that simplifies accessing objects
284 * that have required return objects of fixed types.
286 * NOTE: Internal function, no parameter validation
288 ******************************************************************************/
291 AcpiUtEvaluateObject (
292 ACPI_NAMESPACE_NODE *PrefixNode,
294 UINT32 ExpectedReturnBtypes,
295 ACPI_OPERAND_OBJECT **ReturnDesc)
297 ACPI_EVALUATE_INFO *Info;
302 ACPI_FUNCTION_TRACE (UtEvaluateObject);
305 /* Allocate the evaluation information block */
307 Info = ACPI_ALLOCATE_ZEROED (sizeof (ACPI_EVALUATE_INFO));
310 return_ACPI_STATUS (AE_NO_MEMORY);
313 Info->PrefixNode = PrefixNode;
314 Info->Pathname = Path;
316 /* Evaluate the object/method */
318 Status = AcpiNsEvaluate (Info);
319 if (ACPI_FAILURE (Status))
321 if (Status == AE_NOT_FOUND)
323 ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "[%4.4s.%s] was not found\n",
324 AcpiUtGetNodeName (PrefixNode), Path));
328 ACPI_ERROR_METHOD ("Method execution failed",
329 PrefixNode, Path, Status);
335 /* Did we get a return object? */
337 if (!Info->ReturnObject)
339 if (ExpectedReturnBtypes)
341 ACPI_ERROR_METHOD ("No object was returned from",
342 PrefixNode, Path, AE_NOT_EXIST);
344 Status = AE_NOT_EXIST;
350 /* Map the return object type to the bitmapped type */
352 switch ((Info->ReturnObject)->Common.Type)
354 case ACPI_TYPE_INTEGER:
355 ReturnBtype = ACPI_BTYPE_INTEGER;
358 case ACPI_TYPE_BUFFER:
359 ReturnBtype = ACPI_BTYPE_BUFFER;
362 case ACPI_TYPE_STRING:
363 ReturnBtype = ACPI_BTYPE_STRING;
366 case ACPI_TYPE_PACKAGE:
367 ReturnBtype = ACPI_BTYPE_PACKAGE;
375 if ((AcpiGbl_EnableInterpreterSlack) &&
376 (!ExpectedReturnBtypes))
379 * We received a return object, but one was not expected. This can
380 * happen frequently if the "implicit return" feature is enabled.
381 * Just delete the return object and return AE_OK.
383 AcpiUtRemoveReference (Info->ReturnObject);
387 /* Is the return object one of the expected types? */
389 if (!(ExpectedReturnBtypes & ReturnBtype))
391 ACPI_ERROR_METHOD ("Return object type is incorrect",
392 PrefixNode, Path, AE_TYPE);
394 ACPI_ERROR ((AE_INFO,
395 "Type returned from %s was incorrect: %s, expected Btypes: %X",
396 Path, AcpiUtGetObjectTypeName (Info->ReturnObject),
397 ExpectedReturnBtypes));
399 /* On error exit, we must delete the return object */
401 AcpiUtRemoveReference (Info->ReturnObject);
406 /* Object type is OK, return it */
408 *ReturnDesc = Info->ReturnObject;
412 return_ACPI_STATUS (Status);
416 /*******************************************************************************
418 * FUNCTION: AcpiUtEvaluateNumericObject
420 * PARAMETERS: ObjectName - Object name to be evaluated
421 * DeviceNode - Node for the device
422 * Address - Where the value is returned
426 * DESCRIPTION: Evaluates a numeric namespace object for a selected device
427 * and stores result in *Address.
429 * NOTE: Internal function, no parameter validation
431 ******************************************************************************/
434 AcpiUtEvaluateNumericObject (
436 ACPI_NAMESPACE_NODE *DeviceNode,
437 ACPI_INTEGER *Address)
439 ACPI_OPERAND_OBJECT *ObjDesc;
443 ACPI_FUNCTION_TRACE (UtEvaluateNumericObject);
446 Status = AcpiUtEvaluateObject (DeviceNode, ObjectName,
447 ACPI_BTYPE_INTEGER, &ObjDesc);
448 if (ACPI_FAILURE (Status))
450 return_ACPI_STATUS (Status);
453 /* Get the returned Integer */
455 *Address = ObjDesc->Integer.Value;
457 /* On exit, we must delete the return object */
459 AcpiUtRemoveReference (ObjDesc);
460 return_ACPI_STATUS (Status);
464 /*******************************************************************************
466 * FUNCTION: AcpiUtCopyIdString
468 * PARAMETERS: Destination - Where to copy the string
469 * Source - Source string
470 * MaxLength - Length of the destination buffer
474 * DESCRIPTION: Copies an ID string for the _HID, _CID, and _UID methods.
475 * Performs removal of a leading asterisk if present -- workaround
476 * for a known issue on a bunch of machines.
478 ******************************************************************************/
488 * Workaround for ID strings that have a leading asterisk. This construct
489 * is not allowed by the ACPI specification (ID strings must be
490 * alphanumeric), but enough existing machines have this embedded in their
491 * ID strings that the following code is useful.
498 /* Do the actual copy */
500 ACPI_STRNCPY (Destination, Source, MaxLength);
504 /*******************************************************************************
506 * FUNCTION: AcpiUtExecute_HID
508 * PARAMETERS: DeviceNode - Node for the device
509 * Hid - Where the HID is returned
513 * DESCRIPTION: Executes the _HID control method that returns the hardware
516 * NOTE: Internal function, no parameter validation
518 ******************************************************************************/
522 ACPI_NAMESPACE_NODE *DeviceNode,
525 ACPI_OPERAND_OBJECT *ObjDesc;
529 ACPI_FUNCTION_TRACE (UtExecute_HID);
532 Status = AcpiUtEvaluateObject (DeviceNode, METHOD_NAME__HID,
533 ACPI_BTYPE_INTEGER | ACPI_BTYPE_STRING, &ObjDesc);
534 if (ACPI_FAILURE (Status))
536 return_ACPI_STATUS (Status);
539 if (ObjDesc->Common.Type == ACPI_TYPE_INTEGER)
541 /* Convert the Numeric HID to string */
543 AcpiExEisaIdToString ((UINT32) ObjDesc->Integer.Value, Hid->Value);
547 /* Copy the String HID from the returned object */
549 AcpiUtCopyIdString (Hid->Value, ObjDesc->String.Pointer,
550 sizeof (Hid->Value));
553 /* On exit, we must delete the return object */
555 AcpiUtRemoveReference (ObjDesc);
556 return_ACPI_STATUS (Status);
560 /*******************************************************************************
562 * FUNCTION: AcpiUtTranslateOneCid
564 * PARAMETERS: ObjDesc - _CID object, must be integer or string
565 * OneCid - Where the CID string is returned
569 * DESCRIPTION: Return a numeric or string _CID value as a string.
572 * NOTE: Assumes a maximum _CID string length of
573 * ACPI_MAX_CID_LENGTH.
575 ******************************************************************************/
578 AcpiUtTranslateOneCid (
579 ACPI_OPERAND_OBJECT *ObjDesc,
580 ACPI_COMPATIBLE_ID *OneCid)
584 switch (ObjDesc->Common.Type)
586 case ACPI_TYPE_INTEGER:
588 /* Convert the Numeric CID to string */
590 AcpiExEisaIdToString ((UINT32) ObjDesc->Integer.Value, OneCid->Value);
593 case ACPI_TYPE_STRING:
595 if (ObjDesc->String.Length > ACPI_MAX_CID_LENGTH)
597 return (AE_AML_STRING_LIMIT);
600 /* Copy the String CID from the returned object */
602 AcpiUtCopyIdString (OneCid->Value, ObjDesc->String.Pointer,
603 ACPI_MAX_CID_LENGTH);
613 /*******************************************************************************
615 * FUNCTION: AcpiUtExecute_CID
617 * PARAMETERS: DeviceNode - Node for the device
618 * ReturnCidList - Where the CID list is returned
622 * DESCRIPTION: Executes the _CID control method that returns one or more
623 * compatible hardware IDs for the device.
625 * NOTE: Internal function, no parameter validation
627 ******************************************************************************/
631 ACPI_NAMESPACE_NODE *DeviceNode,
632 ACPI_COMPATIBLE_ID_LIST **ReturnCidList)
634 ACPI_OPERAND_OBJECT *ObjDesc;
638 ACPI_COMPATIBLE_ID_LIST *CidList;
642 ACPI_FUNCTION_TRACE (UtExecute_CID);
645 /* Evaluate the _CID method for this device */
647 Status = AcpiUtEvaluateObject (DeviceNode, METHOD_NAME__CID,
648 ACPI_BTYPE_INTEGER | ACPI_BTYPE_STRING | ACPI_BTYPE_PACKAGE,
650 if (ACPI_FAILURE (Status))
652 return_ACPI_STATUS (Status);
655 /* Get the number of _CIDs returned */
658 if (ObjDesc->Common.Type == ACPI_TYPE_PACKAGE)
660 Count = ObjDesc->Package.Count;
663 /* Allocate a worst-case buffer for the _CIDs */
665 Size = (((Count - 1) * sizeof (ACPI_COMPATIBLE_ID)) +
666 sizeof (ACPI_COMPATIBLE_ID_LIST));
668 CidList = ACPI_ALLOCATE_ZEROED ((ACPI_SIZE) Size);
671 return_ACPI_STATUS (AE_NO_MEMORY);
676 CidList->Count = Count;
677 CidList->Size = Size;
680 * A _CID can return either a single compatible ID or a package of
681 * compatible IDs. Each compatible ID can be one of the following:
682 * 1) Integer (32 bit compressed EISA ID) or
683 * 2) String (PCI ID format, e.g. "PCI\VEN_vvvv&DEV_dddd&SUBSYS_ssssssss")
686 /* The _CID object can be either a single CID or a package (list) of CIDs */
688 if (ObjDesc->Common.Type == ACPI_TYPE_PACKAGE)
690 /* Translate each package element */
692 for (i = 0; i < Count; i++)
694 Status = AcpiUtTranslateOneCid (ObjDesc->Package.Elements[i],
696 if (ACPI_FAILURE (Status))
704 /* Only one CID, translate to a string */
706 Status = AcpiUtTranslateOneCid (ObjDesc, CidList->Id);
709 /* Cleanup on error */
711 if (ACPI_FAILURE (Status))
717 *ReturnCidList = CidList;
720 /* On exit, we must delete the _CID return object */
722 AcpiUtRemoveReference (ObjDesc);
723 return_ACPI_STATUS (Status);
727 /*******************************************************************************
729 * FUNCTION: AcpiUtExecute_UID
731 * PARAMETERS: DeviceNode - Node for the device
732 * Uid - Where the UID is returned
736 * DESCRIPTION: Executes the _UID control method that returns the hardware
739 * NOTE: Internal function, no parameter validation
741 ******************************************************************************/
745 ACPI_NAMESPACE_NODE *DeviceNode,
748 ACPI_OPERAND_OBJECT *ObjDesc;
752 ACPI_FUNCTION_TRACE (UtExecute_UID);
755 Status = AcpiUtEvaluateObject (DeviceNode, METHOD_NAME__UID,
756 ACPI_BTYPE_INTEGER | ACPI_BTYPE_STRING, &ObjDesc);
757 if (ACPI_FAILURE (Status))
759 return_ACPI_STATUS (Status);
762 if (ObjDesc->Common.Type == ACPI_TYPE_INTEGER)
764 /* Convert the Numeric UID to string */
766 AcpiExUnsignedIntegerToString (ObjDesc->Integer.Value, Uid->Value);
770 /* Copy the String UID from the returned object */
772 AcpiUtCopyIdString (Uid->Value, ObjDesc->String.Pointer,
773 sizeof (Uid->Value));
776 /* On exit, we must delete the return object */
778 AcpiUtRemoveReference (ObjDesc);
779 return_ACPI_STATUS (Status);
783 /*******************************************************************************
785 * FUNCTION: AcpiUtExecute_STA
787 * PARAMETERS: DeviceNode - Node for the device
788 * Flags - Where the status flags are returned
792 * DESCRIPTION: Executes _STA for selected device and stores results in
795 * NOTE: Internal function, no parameter validation
797 ******************************************************************************/
801 ACPI_NAMESPACE_NODE *DeviceNode,
804 ACPI_OPERAND_OBJECT *ObjDesc;
808 ACPI_FUNCTION_TRACE (UtExecute_STA);
811 Status = AcpiUtEvaluateObject (DeviceNode, METHOD_NAME__STA,
812 ACPI_BTYPE_INTEGER, &ObjDesc);
813 if (ACPI_FAILURE (Status))
815 if (AE_NOT_FOUND == Status)
817 ACPI_DEBUG_PRINT ((ACPI_DB_EXEC,
818 "_STA on %4.4s was not found, assuming device is present\n",
819 AcpiUtGetNodeName (DeviceNode)));
821 *Flags = ACPI_UINT32_MAX;
825 return_ACPI_STATUS (Status);
828 /* Extract the status flags */
830 *Flags = (UINT32) ObjDesc->Integer.Value;
832 /* On exit, we must delete the return object */
834 AcpiUtRemoveReference (ObjDesc);
835 return_ACPI_STATUS (Status);
839 /*******************************************************************************
841 * FUNCTION: AcpiUtExecute_Sxds
843 * PARAMETERS: DeviceNode - Node for the device
844 * Flags - Where the status flags are returned
848 * DESCRIPTION: Executes _STA for selected device and stores results in
851 * NOTE: Internal function, no parameter validation
853 ******************************************************************************/
857 ACPI_NAMESPACE_NODE *DeviceNode,
860 ACPI_OPERAND_OBJECT *ObjDesc;
865 ACPI_FUNCTION_TRACE (UtExecute_Sxds);
868 for (i = 0; i < 4; i++)
871 Status = AcpiUtEvaluateObject (DeviceNode,
872 ACPI_CAST_PTR (char, AcpiGbl_HighestDstateNames[i]),
873 ACPI_BTYPE_INTEGER, &ObjDesc);
874 if (ACPI_FAILURE (Status))
876 if (Status != AE_NOT_FOUND)
878 ACPI_DEBUG_PRINT ((ACPI_DB_EXEC,
879 "%s on Device %4.4s, %s\n",
880 ACPI_CAST_PTR (char, AcpiGbl_HighestDstateNames[i]),
881 AcpiUtGetNodeName (DeviceNode),
882 AcpiFormatException (Status)));
884 return_ACPI_STATUS (Status);
889 /* Extract the Dstate value */
891 Highest[i] = (UINT8) ObjDesc->Integer.Value;
893 /* Delete the return object */
895 AcpiUtRemoveReference (ObjDesc);
899 return_ACPI_STATUS (AE_OK);