Path: blob/main/sys/contrib/dev/acpica/components/utilities/utosi.c
48400 views
/******************************************************************************1*2* Module Name: utosi - Support for the _OSI predefined control method3*4*****************************************************************************/56/******************************************************************************7*8* 1. Copyright Notice9*10* Some or all of this work - Copyright (c) 1999 - 2025, Intel Corp.11* All rights reserved.12*13* 2. License14*15* 2.1. This is your license from Intel Corp. under its intellectual property16* rights. You may have additional license terms from the party that provided17* you this software, covering your right to use that party's intellectual18* property rights.19*20* 2.2. Intel grants, free of charge, to any person ("Licensee") obtaining a21* copy of the source code appearing in this file ("Covered Code") an22* irrevocable, perpetual, worldwide license under Intel's copyrights in the23* base code distributed originally by Intel ("Original Intel Code") to copy,24* make derivatives, distribute, use and display any portion of the Covered25* Code in any form, with the right to sublicense such rights; and26*27* 2.3. Intel grants Licensee a non-exclusive and non-transferable patent28* license (with the right to sublicense), under only those claims of Intel29* patents that are infringed by the Original Intel Code, to make, use, sell,30* offer to sell, and import the Covered Code and derivative works thereof31* solely to the minimum extent necessary to exercise the above copyright32* license, and in no event shall the patent license extend to any additions33* to or modifications of the Original Intel Code. No other license or right34* is granted directly or by implication, estoppel or otherwise;35*36* The above copyright and patent license is granted only if the following37* conditions are met:38*39* 3. Conditions40*41* 3.1. Redistribution of Source with Rights to Further Distribute Source.42* Redistribution of source code of any substantial portion of the Covered43* Code or modification with rights to further distribute source must include44* the above Copyright Notice, the above License, this list of Conditions,45* and the following Disclaimer and Export Compliance provision. In addition,46* Licensee must cause all Covered Code to which Licensee contributes to47* contain a file documenting the changes Licensee made to create that Covered48* Code and the date of any change. Licensee must include in that file the49* documentation of any changes made by any predecessor Licensee. Licensee50* must include a prominent statement that the modification is derived,51* directly or indirectly, from Original Intel Code.52*53* 3.2. Redistribution of Source with no Rights to Further Distribute Source.54* Redistribution of source code of any substantial portion of the Covered55* Code or modification without rights to further distribute source must56* include the following Disclaimer and Export Compliance provision in the57* documentation and/or other materials provided with distribution. In58* addition, Licensee may not authorize further sublicense of source of any59* portion of the Covered Code, and must include terms to the effect that the60* license from Licensee to its licensee is limited to the intellectual61* property embodied in the software Licensee provides to its licensee, and62* not to intellectual property embodied in modifications its licensee may63* make.64*65* 3.3. Redistribution of Executable. Redistribution in executable form of any66* substantial portion of the Covered Code or modification must reproduce the67* above Copyright Notice, and the following Disclaimer and Export Compliance68* provision in the documentation and/or other materials provided with the69* distribution.70*71* 3.4. Intel retains all right, title, and interest in and to the Original72* Intel Code.73*74* 3.5. Neither the name Intel nor any other trademark owned or controlled by75* Intel shall be used in advertising or otherwise to promote the sale, use or76* other dealings in products derived from or relating to the Covered Code77* without prior written authorization from Intel.78*79* 4. Disclaimer and Export Compliance80*81* 4.1. INTEL MAKES NO WARRANTY OF ANY KIND REGARDING ANY SOFTWARE PROVIDED82* HERE. ANY SOFTWARE ORIGINATING FROM INTEL OR DERIVED FROM INTEL SOFTWARE83* IS PROVIDED "AS IS," AND INTEL WILL NOT PROVIDE ANY SUPPORT, ASSISTANCE,84* INSTALLATION, TRAINING OR OTHER SERVICES. INTEL WILL NOT PROVIDE ANY85* UPDATES, ENHANCEMENTS OR EXTENSIONS. INTEL SPECIFICALLY DISCLAIMS ANY86* IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT AND FITNESS FOR A87* PARTICULAR PURPOSE.88*89* 4.2. IN NO EVENT SHALL INTEL HAVE ANY LIABILITY TO LICENSEE, ITS LICENSEES90* OR ANY OTHER THIRD PARTY, FOR ANY LOST PROFITS, LOST DATA, LOSS OF USE OR91* COSTS OF PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, OR FOR ANY INDIRECT,92* SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THIS AGREEMENT, UNDER ANY93* CAUSE OF ACTION OR THEORY OF LIABILITY, AND IRRESPECTIVE OF WHETHER INTEL94* HAS ADVANCE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES. THESE LIMITATIONS95* SHALL APPLY NOTWITHSTANDING THE FAILURE OF THE ESSENTIAL PURPOSE OF ANY96* LIMITED REMEDY.97*98* 4.3. Licensee shall not export, either directly or indirectly, any of this99* software or system incorporating such software without first obtaining any100* required license or other approval from the U. S. Department of Commerce or101* any other agency or department of the United States Government. In the102* event Licensee exports any such software from the United States or103* re-exports any such software from a foreign destination, Licensee shall104* ensure that the distribution and export/re-export of the software is in105* compliance with all laws, regulations, orders, or other restrictions of the106* U.S. Export Administration Regulations. Licensee agrees that neither it nor107* any of its subsidiaries will export/re-export any technical data, process,108* software, or service, directly or indirectly, to any country for which the109* United States government or any agency thereof requires an export license,110* other governmental approval, or letter of assurance, without first obtaining111* such license, approval or letter.112*113*****************************************************************************114*115* Alternatively, you may choose to be licensed under the terms of the116* following license:117*118* Redistribution and use in source and binary forms, with or without119* modification, are permitted provided that the following conditions120* are met:121* 1. Redistributions of source code must retain the above copyright122* notice, this list of conditions, and the following disclaimer,123* without modification.124* 2. Redistributions in binary form must reproduce at minimum a disclaimer125* substantially similar to the "NO WARRANTY" disclaimer below126* ("Disclaimer") and any redistribution must be conditioned upon127* including a substantially similar Disclaimer requirement for further128* binary redistribution.129* 3. Neither the names of the above-listed copyright holders nor the names130* of any contributors may be used to endorse or promote products derived131* from this software without specific prior written permission.132*133* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS134* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT135* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR136* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT137* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,138* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT139* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,140* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY141* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT142* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE143* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.144*145* Alternatively, you may choose to be licensed under the terms of the146* GNU General Public License ("GPL") version 2 as published by the Free147* Software Foundation.148*149*****************************************************************************/150151#include <contrib/dev/acpica/include/acpi.h>152#include <contrib/dev/acpica/include/accommon.h>153154155#define _COMPONENT ACPI_UTILITIES156ACPI_MODULE_NAME ("utosi")157158159/******************************************************************************160*161* ACPICA policy for new _OSI strings:162*163* It is the stated policy of ACPICA that new _OSI strings will be integrated164* into this module as soon as possible after they are defined. It is strongly165* recommended that all ACPICA hosts mirror this policy and integrate any166* changes to this module as soon as possible. There are several historical167* reasons behind this policy:168*169* 1) New BIOSs tend to test only the case where the host responds TRUE to170* the latest version of Windows, which would respond to the latest/newest171* _OSI string. Not responding TRUE to the latest version of Windows will172* risk executing untested code paths throughout the DSDT and SSDTs.173*174* 2) If a new _OSI string is recognized only after a significant delay, this175* has the potential to cause problems on existing working machines because176* of the possibility that a new and different path through the ASL code177* will be executed.178*179* 3) New _OSI strings are tending to come out about once per year. A delay180* in recognizing a new string for a significant amount of time risks the181* release of another string which only compounds the initial problem.182*183*****************************************************************************/184185186/*187* Strings supported by the _OSI predefined control method (which is188* implemented internally within this module.)189*190* March 2009: Removed "Linux" as this host no longer wants to respond true191* for this string. Basically, the only safe OS strings are windows-related192* and in many or most cases represent the only test path within the193* BIOS-provided ASL code.194*195* The last element of each entry is used to track the newest version of196* Windows that the BIOS has requested.197*/198static ACPI_INTERFACE_INFO AcpiDefaultSupportedInterfaces[] =199{200/* Operating System Vendor Strings */201202{"Windows 2000", NULL, 0, ACPI_OSI_WIN_2000}, /* Windows 2000 */203{"Windows 2001", NULL, 0, ACPI_OSI_WIN_XP}, /* Windows XP */204{"Windows 2001 SP1", NULL, 0, ACPI_OSI_WIN_XP_SP1}, /* Windows XP SP1 */205{"Windows 2001.1", NULL, 0, ACPI_OSI_WINSRV_2003}, /* Windows Server 2003 */206{"Windows 2001 SP2", NULL, 0, ACPI_OSI_WIN_XP_SP2}, /* Windows XP SP2 */207{"Windows 2001.1 SP1", NULL, 0, ACPI_OSI_WINSRV_2003_SP1}, /* Windows Server 2003 SP1 - Added 03/2006 */208{"Windows 2006", NULL, 0, ACPI_OSI_WIN_VISTA}, /* Windows Vista - Added 03/2006 */209{"Windows 2006.1", NULL, 0, ACPI_OSI_WINSRV_2008}, /* Windows Server 2008 - Added 09/2009 */210{"Windows 2006 SP1", NULL, 0, ACPI_OSI_WIN_VISTA_SP1}, /* Windows Vista SP1 - Added 09/2009 */211{"Windows 2006 SP2", NULL, 0, ACPI_OSI_WIN_VISTA_SP2}, /* Windows Vista SP2 - Added 09/2010 */212{"Windows 2009", NULL, 0, ACPI_OSI_WIN_7}, /* Windows 7 and Server 2008 R2 - Added 09/2009 */213{"Windows 2012", NULL, 0, ACPI_OSI_WIN_8}, /* Windows 8 and Server 2012 - Added 08/2012 */214{"Windows 2013", NULL, 0, ACPI_OSI_WIN_8_1}, /* Windows 8.1 and Server 2012 R2 - Added 01/2014 */215{"Windows 2015", NULL, 0, ACPI_OSI_WIN_10}, /* Windows 10 - Added 03/2015 */216{"Windows 2016", NULL, 0, ACPI_OSI_WIN_10_RS1}, /* Windows 10 version 1607 - Added 12/2017 */217{"Windows 2017", NULL, 0, ACPI_OSI_WIN_10_RS2}, /* Windows 10 version 1703 - Added 12/2017 */218{"Windows 2017.2", NULL, 0, ACPI_OSI_WIN_10_RS3}, /* Windows 10 version 1709 - Added 02/2018 */219{"Windows 2018", NULL, 0, ACPI_OSI_WIN_10_RS4}, /* Windows 10 version 1803 - Added 11/2018 */220{"Windows 2018.2", NULL, 0, ACPI_OSI_WIN_10_RS5}, /* Windows 10 version 1809 - Added 11/2018 */221{"Windows 2019", NULL, 0, ACPI_OSI_WIN_10_19H1}, /* Windows 10 version 1903 - Added 08/2019 */222{"Windows 2020", NULL, 0, ACPI_OSI_WIN_10_20H1}, /* Windows 10 version 2004 - Added 08/2021 */223{"Windows 2021", NULL, 0, ACPI_OSI_WIN_11}, /* Windows 11 - Added 01/2022 */224{"Windows 2022", NULL, 0, ACPI_OSI_WIN_11_22H2}, /* Windows 11 version 22H2 - Added 04/2024 */225226/* Feature Group Strings */227228{"Extended Address Space Descriptor", NULL, ACPI_OSI_FEATURE, 0},229230/*231* All "optional" feature group strings (features that are implemented232* by the host) should be dynamically modified to VALID by the host via233* AcpiInstallInterface or AcpiUpdateInterfaces. Such optional feature234* group strings are set as INVALID by default here.235*/236237{"Module Device", NULL, ACPI_OSI_OPTIONAL_FEATURE, 0},238{"Processor Device", NULL, ACPI_OSI_OPTIONAL_FEATURE, 0},239{"3.0 Thermal Model", NULL, ACPI_OSI_OPTIONAL_FEATURE, 0},240{"3.0 _SCP Extensions", NULL, ACPI_OSI_OPTIONAL_FEATURE, 0},241{"Processor Aggregator Device", NULL, ACPI_OSI_OPTIONAL_FEATURE, 0}242};243244245/*******************************************************************************246*247* FUNCTION: AcpiUtInitializeInterfaces248*249* PARAMETERS: None250*251* RETURN: Status252*253* DESCRIPTION: Initialize the global _OSI supported interfaces list254*255******************************************************************************/256257ACPI_STATUS258AcpiUtInitializeInterfaces (259void)260{261ACPI_STATUS Status;262UINT32 i;263264265Status = AcpiOsAcquireMutex (AcpiGbl_OsiMutex, ACPI_WAIT_FOREVER);266if (ACPI_FAILURE (Status))267{268return (Status);269}270271AcpiGbl_SupportedInterfaces = AcpiDefaultSupportedInterfaces;272273/* Link the static list of supported interfaces */274275for (i = 0;276i < (ACPI_ARRAY_LENGTH (AcpiDefaultSupportedInterfaces) - 1);277i++)278{279AcpiDefaultSupportedInterfaces[i].Next =280&AcpiDefaultSupportedInterfaces[(ACPI_SIZE) i + 1];281}282283AcpiOsReleaseMutex (AcpiGbl_OsiMutex);284return (AE_OK);285}286287288/*******************************************************************************289*290* FUNCTION: AcpiUtInterfaceTerminate291*292* PARAMETERS: None293*294* RETURN: Status295*296* DESCRIPTION: Delete all interfaces in the global list. Sets297* AcpiGbl_SupportedInterfaces to NULL.298*299******************************************************************************/300301ACPI_STATUS302AcpiUtInterfaceTerminate (303void)304{305ACPI_STATUS Status;306ACPI_INTERFACE_INFO *NextInterface;307308309Status = AcpiOsAcquireMutex (AcpiGbl_OsiMutex, ACPI_WAIT_FOREVER);310if (ACPI_FAILURE (Status))311{312return (Status);313}314315NextInterface = AcpiGbl_SupportedInterfaces;316while (NextInterface)317{318AcpiGbl_SupportedInterfaces = NextInterface->Next;319320if (NextInterface->Flags & ACPI_OSI_DYNAMIC)321{322/* Only interfaces added at runtime can be freed */323324ACPI_FREE (NextInterface->Name);325ACPI_FREE (NextInterface);326}327else328{329/* Interface is in static list. Reset it to invalid or valid. */330331if (NextInterface->Flags & ACPI_OSI_DEFAULT_INVALID)332{333NextInterface->Flags |= ACPI_OSI_INVALID;334}335else336{337NextInterface->Flags &= ~ACPI_OSI_INVALID;338}339}340341NextInterface = AcpiGbl_SupportedInterfaces;342}343344AcpiOsReleaseMutex (AcpiGbl_OsiMutex);345return (AE_OK);346}347348349/*******************************************************************************350*351* FUNCTION: AcpiUtInstallInterface352*353* PARAMETERS: InterfaceName - The interface to install354*355* RETURN: Status356*357* DESCRIPTION: Install the interface into the global interface list.358* Caller MUST hold AcpiGbl_OsiMutex359*360******************************************************************************/361362ACPI_STATUS363AcpiUtInstallInterface (364ACPI_STRING InterfaceName)365{366ACPI_INTERFACE_INFO *InterfaceInfo;367368369/* Allocate info block and space for the name string */370371InterfaceInfo = ACPI_ALLOCATE_ZEROED (sizeof (ACPI_INTERFACE_INFO));372if (!InterfaceInfo)373{374return (AE_NO_MEMORY);375}376377InterfaceInfo->Name = ACPI_ALLOCATE_ZEROED (strlen (InterfaceName) + 1);378if (!InterfaceInfo->Name)379{380ACPI_FREE (InterfaceInfo);381return (AE_NO_MEMORY);382}383384/* Initialize new info and insert at the head of the global list */385386strcpy (InterfaceInfo->Name, InterfaceName);387InterfaceInfo->Flags = ACPI_OSI_DYNAMIC;388InterfaceInfo->Next = AcpiGbl_SupportedInterfaces;389390AcpiGbl_SupportedInterfaces = InterfaceInfo;391return (AE_OK);392}393394395/*******************************************************************************396*397* FUNCTION: AcpiUtRemoveInterface398*399* PARAMETERS: InterfaceName - The interface to remove400*401* RETURN: Status402*403* DESCRIPTION: Remove the interface from the global interface list.404* Caller MUST hold AcpiGbl_OsiMutex405*406******************************************************************************/407408ACPI_STATUS409AcpiUtRemoveInterface (410ACPI_STRING InterfaceName)411{412ACPI_INTERFACE_INFO *PreviousInterface;413ACPI_INTERFACE_INFO *NextInterface;414415416PreviousInterface = NextInterface = AcpiGbl_SupportedInterfaces;417while (NextInterface)418{419if (!strcmp (InterfaceName, NextInterface->Name))420{421/*422* Found: name is in either the static list423* or was added at runtime424*/425if (NextInterface->Flags & ACPI_OSI_DYNAMIC)426{427/* Interface was added dynamically, remove and free it */428429if (PreviousInterface == NextInterface)430{431AcpiGbl_SupportedInterfaces = NextInterface->Next;432}433else434{435PreviousInterface->Next = NextInterface->Next;436}437438ACPI_FREE (NextInterface->Name);439ACPI_FREE (NextInterface);440}441else442{443/*444* Interface is in static list. If marked invalid, then445* it does not actually exist. Else, mark it invalid.446*/447if (NextInterface->Flags & ACPI_OSI_INVALID)448{449return (AE_NOT_EXIST);450}451452NextInterface->Flags |= ACPI_OSI_INVALID;453}454455return (AE_OK);456}457458PreviousInterface = NextInterface;459NextInterface = NextInterface->Next;460}461462/* Interface was not found */463464return (AE_NOT_EXIST);465}466467468/*******************************************************************************469*470* FUNCTION: AcpiUtUpdateInterfaces471*472* PARAMETERS: Action - Actions to be performed during the473* update474*475* RETURN: Status476*477* DESCRIPTION: Update _OSI interface strings, disabling or enabling OS vendor478* strings or/and feature group strings.479* Caller MUST hold AcpiGbl_OsiMutex480*481******************************************************************************/482483ACPI_STATUS484AcpiUtUpdateInterfaces (485UINT8 Action)486{487ACPI_INTERFACE_INFO *NextInterface;488489490NextInterface = AcpiGbl_SupportedInterfaces;491while (NextInterface)492{493if (((NextInterface->Flags & ACPI_OSI_FEATURE) &&494(Action & ACPI_FEATURE_STRINGS)) ||495(!(NextInterface->Flags & ACPI_OSI_FEATURE) &&496(Action & ACPI_VENDOR_STRINGS)))497{498if (Action & ACPI_DISABLE_INTERFACES)499{500/* Mark the interfaces as invalid */501502NextInterface->Flags |= ACPI_OSI_INVALID;503}504else505{506/* Mark the interfaces as valid */507508NextInterface->Flags &= ~ACPI_OSI_INVALID;509}510}511512NextInterface = NextInterface->Next;513}514515return (AE_OK);516}517518519/*******************************************************************************520*521* FUNCTION: AcpiUtGetInterface522*523* PARAMETERS: InterfaceName - The interface to find524*525* RETURN: ACPI_INTERFACE_INFO if found. NULL if not found.526*527* DESCRIPTION: Search for the specified interface name in the global list.528* Caller MUST hold AcpiGbl_OsiMutex529*530******************************************************************************/531532ACPI_INTERFACE_INFO *533AcpiUtGetInterface (534ACPI_STRING InterfaceName)535{536ACPI_INTERFACE_INFO *NextInterface;537538539NextInterface = AcpiGbl_SupportedInterfaces;540while (NextInterface)541{542if (!strcmp (InterfaceName, NextInterface->Name))543{544return (NextInterface);545}546547NextInterface = NextInterface->Next;548}549550return (NULL);551}552553554/*******************************************************************************555*556* FUNCTION: AcpiUtOsiImplementation557*558* PARAMETERS: WalkState - Current walk state559*560* RETURN: Status561* Integer: TRUE (0) if input string is matched562* FALSE (-1) if string is not matched563*564* DESCRIPTION: Implementation of the _OSI predefined control method. When565* an invocation of _OSI is encountered in the system AML,566* control is transferred to this function.567*568* (August 2016)569* Note: _OSI is now defined to return "Ones" to indicate a match, for570* compatibility with other ACPI implementations. On a 32-bit DSDT, Ones571* is 0xFFFFFFFF. On a 64-bit DSDT, Ones is 0xFFFFFFFFFFFFFFFF572* (ACPI_UINT64_MAX).573*574* This function always returns ACPI_UINT64_MAX for TRUE, and later code575* will truncate this to 32 bits if necessary.576*577******************************************************************************/578579ACPI_STATUS580AcpiUtOsiImplementation (581ACPI_WALK_STATE *WalkState)582{583ACPI_OPERAND_OBJECT *StringDesc;584ACPI_OPERAND_OBJECT *ReturnDesc;585ACPI_INTERFACE_INFO *InterfaceInfo;586ACPI_INTERFACE_HANDLER InterfaceHandler;587ACPI_STATUS Status;588UINT64 ReturnValue;589590591ACPI_FUNCTION_TRACE (UtOsiImplementation);592593594/* Validate the string input argument (from the AML caller) */595596StringDesc = WalkState->Arguments[0].Object;597if (!StringDesc ||598(StringDesc->Common.Type != ACPI_TYPE_STRING))599{600return_ACPI_STATUS (AE_TYPE);601}602603/* Create a return object */604605ReturnDesc = AcpiUtCreateInternalObject (ACPI_TYPE_INTEGER);606if (!ReturnDesc)607{608return_ACPI_STATUS (AE_NO_MEMORY);609}610611/* Default return value is 0, NOT SUPPORTED */612613ReturnValue = 0;614Status = AcpiOsAcquireMutex (AcpiGbl_OsiMutex, ACPI_WAIT_FOREVER);615if (ACPI_FAILURE (Status))616{617AcpiUtRemoveReference (ReturnDesc);618return_ACPI_STATUS (Status);619}620621/* Lookup the interface in the global _OSI list */622623InterfaceInfo = AcpiUtGetInterface (StringDesc->String.Pointer);624if (InterfaceInfo &&625!(InterfaceInfo->Flags & ACPI_OSI_INVALID))626{627/*628* The interface is supported.629* Update the OsiData if necessary. We keep track of the latest630* version of Windows that has been requested by the BIOS.631*/632if (InterfaceInfo->Value > AcpiGbl_OsiData)633{634AcpiGbl_OsiData = InterfaceInfo->Value;635}636637ReturnValue = ACPI_UINT64_MAX;638}639640AcpiOsReleaseMutex (AcpiGbl_OsiMutex);641642/*643* Invoke an optional _OSI interface handler. The host OS may wish644* to do some interface-specific handling. For example, warn about645* certain interfaces or override the true/false support value.646*/647InterfaceHandler = AcpiGbl_InterfaceHandler;648if (InterfaceHandler)649{650if (InterfaceHandler (651StringDesc->String.Pointer, (UINT32) ReturnValue))652{653ReturnValue = ACPI_UINT64_MAX;654}655}656657ACPI_DEBUG_PRINT_RAW ((ACPI_DB_INFO,658"ACPI: BIOS _OSI(\"%s\") is %ssupported\n",659StringDesc->String.Pointer, ReturnValue == 0 ? "not " : ""));660661/* Complete the return object */662663ReturnDesc->Integer.Value = ReturnValue;664WalkState->ReturnDesc = ReturnDesc;665return_ACPI_STATUS (AE_OK);666}667668669