rsutils.c revision 77424
167754Smsmith/******************************************************************************* 267754Smsmith * 367754Smsmith * Module Name: rsutils - Utilities for the resource manager 477424Smsmith * $Revision: 19 $ 567754Smsmith * 667754Smsmith ******************************************************************************/ 767754Smsmith 867754Smsmith/****************************************************************************** 967754Smsmith * 1067754Smsmith * 1. Copyright Notice 1167754Smsmith * 1271867Smsmith * Some or all of this work - Copyright (c) 1999, 2000, 2001, Intel Corp. 1370243Smsmith * All rights reserved. 1467754Smsmith * 1567754Smsmith * 2. License 1667754Smsmith * 1767754Smsmith * 2.1. This is your license from Intel Corp. under its intellectual property 1867754Smsmith * rights. You may have additional license terms from the party that provided 1967754Smsmith * you this software, covering your right to use that party's intellectual 2067754Smsmith * property rights. 2167754Smsmith * 2267754Smsmith * 2.2. Intel grants, free of charge, to any person ("Licensee") obtaining a 2367754Smsmith * copy of the source code appearing in this file ("Covered Code") an 2467754Smsmith * irrevocable, perpetual, worldwide license under Intel's copyrights in the 2567754Smsmith * base code distributed originally by Intel ("Original Intel Code") to copy, 2667754Smsmith * make derivatives, distribute, use and display any portion of the Covered 2767754Smsmith * Code in any form, with the right to sublicense such rights; and 2867754Smsmith * 2967754Smsmith * 2.3. Intel grants Licensee a non-exclusive and non-transferable patent 3067754Smsmith * license (with the right to sublicense), under only those claims of Intel 3167754Smsmith * patents that are infringed by the Original Intel Code, to make, use, sell, 3267754Smsmith * offer to sell, and import the Covered Code and derivative works thereof 3367754Smsmith * solely to the minimum extent necessary to exercise the above copyright 3467754Smsmith * license, and in no event shall the patent license extend to any additions 3567754Smsmith * to or modifications of the Original Intel Code. No other license or right 3667754Smsmith * is granted directly or by implication, estoppel or otherwise; 3767754Smsmith * 3867754Smsmith * The above copyright and patent license is granted only if the following 3967754Smsmith * conditions are met: 4067754Smsmith * 4167754Smsmith * 3. Conditions 4267754Smsmith * 4367754Smsmith * 3.1. Redistribution of Source with Rights to Further Distribute Source. 4467754Smsmith * Redistribution of source code of any substantial portion of the Covered 4567754Smsmith * Code or modification with rights to further distribute source must include 4667754Smsmith * the above Copyright Notice, the above License, this list of Conditions, 4767754Smsmith * and the following Disclaimer and Export Compliance provision. In addition, 4867754Smsmith * Licensee must cause all Covered Code to which Licensee contributes to 4967754Smsmith * contain a file documenting the changes Licensee made to create that Covered 5067754Smsmith * Code and the date of any change. Licensee must include in that file the 5167754Smsmith * documentation of any changes made by any predecessor Licensee. Licensee 5267754Smsmith * must include a prominent statement that the modification is derived, 5367754Smsmith * directly or indirectly, from Original Intel Code. 5467754Smsmith * 5567754Smsmith * 3.2. Redistribution of Source with no Rights to Further Distribute Source. 5667754Smsmith * Redistribution of source code of any substantial portion of the Covered 5767754Smsmith * Code or modification without rights to further distribute source must 5867754Smsmith * include the following Disclaimer and Export Compliance provision in the 5967754Smsmith * documentation and/or other materials provided with distribution. In 6067754Smsmith * addition, Licensee may not authorize further sublicense of source of any 6167754Smsmith * portion of the Covered Code, and must include terms to the effect that the 6267754Smsmith * license from Licensee to its licensee is limited to the intellectual 6367754Smsmith * property embodied in the software Licensee provides to its licensee, and 6467754Smsmith * not to intellectual property embodied in modifications its licensee may 6567754Smsmith * make. 6667754Smsmith * 6767754Smsmith * 3.3. Redistribution of Executable. Redistribution in executable form of any 6867754Smsmith * substantial portion of the Covered Code or modification must reproduce the 6967754Smsmith * above Copyright Notice, and the following Disclaimer and Export Compliance 7067754Smsmith * provision in the documentation and/or other materials provided with the 7167754Smsmith * distribution. 7267754Smsmith * 7367754Smsmith * 3.4. Intel retains all right, title, and interest in and to the Original 7467754Smsmith * Intel Code. 7567754Smsmith * 7667754Smsmith * 3.5. Neither the name Intel nor any other trademark owned or controlled by 7767754Smsmith * Intel shall be used in advertising or otherwise to promote the sale, use or 7867754Smsmith * other dealings in products derived from or relating to the Covered Code 7967754Smsmith * without prior written authorization from Intel. 8067754Smsmith * 8167754Smsmith * 4. Disclaimer and Export Compliance 8267754Smsmith * 8367754Smsmith * 4.1. INTEL MAKES NO WARRANTY OF ANY KIND REGARDING ANY SOFTWARE PROVIDED 8467754Smsmith * HERE. ANY SOFTWARE ORIGINATING FROM INTEL OR DERIVED FROM INTEL SOFTWARE 8567754Smsmith * IS PROVIDED "AS IS," AND INTEL WILL NOT PROVIDE ANY SUPPORT, ASSISTANCE, 8667754Smsmith * INSTALLATION, TRAINING OR OTHER SERVICES. INTEL WILL NOT PROVIDE ANY 8767754Smsmith * UPDATES, ENHANCEMENTS OR EXTENSIONS. INTEL SPECIFICALLY DISCLAIMS ANY 8867754Smsmith * IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT AND FITNESS FOR A 8967754Smsmith * PARTICULAR PURPOSE. 9067754Smsmith * 9167754Smsmith * 4.2. IN NO EVENT SHALL INTEL HAVE ANY LIABILITY TO LICENSEE, ITS LICENSEES 9267754Smsmith * OR ANY OTHER THIRD PARTY, FOR ANY LOST PROFITS, LOST DATA, LOSS OF USE OR 9367754Smsmith * COSTS OF PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, OR FOR ANY INDIRECT, 9467754Smsmith * SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THIS AGREEMENT, UNDER ANY 9567754Smsmith * CAUSE OF ACTION OR THEORY OF LIABILITY, AND IRRESPECTIVE OF WHETHER INTEL 9667754Smsmith * HAS ADVANCE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES. THESE LIMITATIONS 9767754Smsmith * SHALL APPLY NOTWITHSTANDING THE FAILURE OF THE ESSENTIAL PURPOSE OF ANY 9867754Smsmith * LIMITED REMEDY. 9967754Smsmith * 10067754Smsmith * 4.3. Licensee shall not export, either directly or indirectly, any of this 10167754Smsmith * software or system incorporating such software without first obtaining any 10267754Smsmith * required license or other approval from the U. S. Department of Commerce or 10367754Smsmith * any other agency or department of the United States Government. In the 10467754Smsmith * event Licensee exports any such software from the United States or 10567754Smsmith * re-exports any such software from a foreign destination, Licensee shall 10667754Smsmith * ensure that the distribution and export/re-export of the software is in 10767754Smsmith * compliance with all laws, regulations, orders, or other restrictions of the 10867754Smsmith * U.S. Export Administration Regulations. Licensee agrees that neither it nor 10967754Smsmith * any of its subsidiaries will export/re-export any technical data, process, 11067754Smsmith * software, or service, directly or indirectly, to any country for which the 11167754Smsmith * United States government or any agency thereof requires an export license, 11267754Smsmith * other governmental approval, or letter of assurance, without first obtaining 11367754Smsmith * such license, approval or letter. 11467754Smsmith * 11567754Smsmith *****************************************************************************/ 11667754Smsmith 11767754Smsmith 11867754Smsmith#define __RSUTILS_C__ 11967754Smsmith 12067754Smsmith#include "acpi.h" 12167754Smsmith#include "acnamesp.h" 12267754Smsmith#include "acresrc.h" 12367754Smsmith 12467754Smsmith 12577424Smsmith#define _COMPONENT ACPI_RESOURCES 12667754Smsmith MODULE_NAME ("rsutils") 12767754Smsmith 12867754Smsmith 12967754Smsmith/******************************************************************************* 13067754Smsmith * 13167754Smsmith * FUNCTION: AcpiRsGetPrtMethodData 13267754Smsmith * 13367754Smsmith * PARAMETERS: Handle - a handle to the containing object 13467754Smsmith * RetBuffer - a pointer to a buffer structure for the 13567754Smsmith * results 13667754Smsmith * 13777424Smsmith * RETURN: Status 13867754Smsmith * 13967754Smsmith * DESCRIPTION: This function is called to get the _PRT value of an object 14067754Smsmith * contained in an object specified by the handle passed in 14167754Smsmith * 14267754Smsmith * If the function fails an appropriate status will be returned 14367754Smsmith * and the contents of the callers buffer is undefined. 14467754Smsmith * 14567754Smsmith ******************************************************************************/ 14667754Smsmith 14767754SmsmithACPI_STATUS 14867754SmsmithAcpiRsGetPrtMethodData ( 14967754Smsmith ACPI_HANDLE Handle, 15067754Smsmith ACPI_BUFFER *RetBuffer) 15167754Smsmith{ 15267754Smsmith ACPI_OPERAND_OBJECT *RetObj; 15367754Smsmith ACPI_STATUS Status; 15467754Smsmith UINT32 BufferSpaceNeeded; 15567754Smsmith 15667754Smsmith 15767754Smsmith FUNCTION_TRACE ("RsGetPrtMethodData"); 15867754Smsmith 15967754Smsmith 16067754Smsmith /* already validated params, so we won't repeat here */ 16167754Smsmith 16267754Smsmith BufferSpaceNeeded = RetBuffer->Length; 16367754Smsmith 16467754Smsmith /* 16567754Smsmith * Execute the method, no parameters 16667754Smsmith */ 16767754Smsmith Status = AcpiNsEvaluateRelative (Handle, "_PRT", NULL, &RetObj); 16867754Smsmith if (ACPI_FAILURE (Status)) 16967754Smsmith { 17067754Smsmith return_ACPI_STATUS (Status); 17167754Smsmith } 17267754Smsmith 17367754Smsmith if (!RetObj) 17467754Smsmith { 17567754Smsmith /* Return object is required */ 17667754Smsmith 17777424Smsmith DEBUG_PRINTP (ACPI_ERROR, ("No object was returned from _PRT\n")); 17867754Smsmith return_ACPI_STATUS (AE_TYPE); 17967754Smsmith } 18067754Smsmith 18167754Smsmith 18267754Smsmith /* 18367754Smsmith * The return object will be a package, so check the 18467754Smsmith * parameters. If the return object is not a package, 18567754Smsmith * then the underlying AML code is corrupt or improperly 18667754Smsmith * written. 18767754Smsmith */ 18867754Smsmith if (ACPI_TYPE_PACKAGE != RetObj->Common.Type) 18967754Smsmith { 19067754Smsmith Status = AE_AML_OPERAND_TYPE; 19167754Smsmith goto Cleanup; 19267754Smsmith } 19367754Smsmith 19467754Smsmith /* 19567754Smsmith * Make the call to create a resource linked list from the 19667754Smsmith * byte stream buffer that comes back from the _CRS method 19767754Smsmith * execution. 19867754Smsmith */ 19977424Smsmith Status = AcpiRsCreatePciRoutingTable (RetObj, RetBuffer->Pointer, 20077424Smsmith &BufferSpaceNeeded); 20167754Smsmith 20267754Smsmith /* 20367754Smsmith * Tell the user how much of the buffer we have used or is needed 20467754Smsmith * and return the final status. 20567754Smsmith */ 20667754Smsmith RetBuffer->Length = BufferSpaceNeeded; 20767754Smsmith 20867754Smsmith 20967754Smsmith /* On exit, we must delete the object returned by evaluateObject */ 21067754Smsmith 21167754SmsmithCleanup: 21267754Smsmith 21377424Smsmith AcpiUtRemoveReference (RetObj); 21467754Smsmith return_ACPI_STATUS (Status); 21567754Smsmith} 21667754Smsmith 21767754Smsmith 21867754Smsmith/******************************************************************************* 21967754Smsmith * 22067754Smsmith * FUNCTION: AcpiRsGetCrsMethodData 22167754Smsmith * 22267754Smsmith * PARAMETERS: Handle - a handle to the containing object 22367754Smsmith * RetBuffer - a pointer to a buffer structure for the 22467754Smsmith * results 22567754Smsmith * 22677424Smsmith * RETURN: Status 22767754Smsmith * 22867754Smsmith * DESCRIPTION: This function is called to get the _CRS value of an object 22967754Smsmith * contained in an object specified by the handle passed in 23067754Smsmith * 23167754Smsmith * If the function fails an appropriate status will be returned 23267754Smsmith * and the contents of the callers buffer is undefined. 23367754Smsmith * 23467754Smsmith ******************************************************************************/ 23567754Smsmith 23667754SmsmithACPI_STATUS 23767754SmsmithAcpiRsGetCrsMethodData ( 23867754Smsmith ACPI_HANDLE Handle, 23967754Smsmith ACPI_BUFFER *RetBuffer) 24067754Smsmith{ 24167754Smsmith ACPI_OPERAND_OBJECT *RetObj; 24267754Smsmith ACPI_STATUS Status; 24367754Smsmith UINT32 BufferSpaceNeeded = RetBuffer->Length; 24467754Smsmith 24567754Smsmith 24667754Smsmith FUNCTION_TRACE ("RsGetCrsMethodData"); 24767754Smsmith 24867754Smsmith 24967754Smsmith /* already validated params, so we won't repeat here */ 25067754Smsmith 25167754Smsmith /* 25267754Smsmith * Execute the method, no parameters 25367754Smsmith */ 25467754Smsmith Status = AcpiNsEvaluateRelative (Handle, "_CRS", NULL, &RetObj); 25567754Smsmith if (ACPI_FAILURE (Status)) 25667754Smsmith { 25767754Smsmith return_ACPI_STATUS (Status); 25867754Smsmith } 25967754Smsmith 26067754Smsmith if (!RetObj) 26167754Smsmith { 26267754Smsmith /* Return object is required */ 26367754Smsmith 26477424Smsmith DEBUG_PRINTP (ACPI_ERROR, ("No object was returned from _CRS\n")); 26567754Smsmith return_ACPI_STATUS (AE_TYPE); 26667754Smsmith } 26767754Smsmith 26867754Smsmith /* 26967754Smsmith * The return object will be a buffer, but check the 27067754Smsmith * parameters. If the return object is not a buffer, 27167754Smsmith * then the underlying AML code is corrupt or improperly 27267754Smsmith * written. 27367754Smsmith */ 27467754Smsmith if (ACPI_TYPE_BUFFER != RetObj->Common.Type) 27567754Smsmith { 27667754Smsmith Status = AE_AML_OPERAND_TYPE; 27767754Smsmith goto Cleanup; 27867754Smsmith } 27967754Smsmith 28067754Smsmith /* 28167754Smsmith * Make the call to create a resource linked list from the 28267754Smsmith * byte stream buffer that comes back from the _CRS method 28367754Smsmith * execution. 28467754Smsmith */ 28577424Smsmith Status = AcpiRsCreateResourceList (RetObj, RetBuffer->Pointer, 28677424Smsmith &BufferSpaceNeeded); 28767754Smsmith 28867754Smsmith 28967754Smsmith /* 29067754Smsmith * Tell the user how much of the buffer we have used or is needed 29167754Smsmith * and return the final status. 29267754Smsmith */ 29367754Smsmith RetBuffer->Length = BufferSpaceNeeded; 29467754Smsmith 29567754Smsmith 29667754Smsmith /* On exit, we must delete the object returned by evaluateObject */ 29767754Smsmith 29867754SmsmithCleanup: 29967754Smsmith 30077424Smsmith AcpiUtRemoveReference (RetObj); 30167754Smsmith return_ACPI_STATUS (Status); 30267754Smsmith} 30367754Smsmith 30467754Smsmith 30567754Smsmith/******************************************************************************* 30667754Smsmith * 30767754Smsmith * FUNCTION: AcpiRsGetPrsMethodData 30867754Smsmith * 30967754Smsmith * PARAMETERS: Handle - a handle to the containing object 31067754Smsmith * RetBuffer - a pointer to a buffer structure for the 31167754Smsmith * results 31267754Smsmith * 31377424Smsmith * RETURN: Status 31467754Smsmith * 31567754Smsmith * DESCRIPTION: This function is called to get the _PRS value of an object 31667754Smsmith * contained in an object specified by the handle passed in 31767754Smsmith * 31867754Smsmith * If the function fails an appropriate status will be returned 31967754Smsmith * and the contents of the callers buffer is undefined. 32067754Smsmith * 32167754Smsmith ******************************************************************************/ 32267754Smsmith 32367754SmsmithACPI_STATUS 32467754SmsmithAcpiRsGetPrsMethodData ( 32567754Smsmith ACPI_HANDLE Handle, 32667754Smsmith ACPI_BUFFER *RetBuffer) 32767754Smsmith{ 32867754Smsmith ACPI_OPERAND_OBJECT *RetObj; 32967754Smsmith ACPI_STATUS Status; 33067754Smsmith UINT32 BufferSpaceNeeded = RetBuffer->Length; 33167754Smsmith 33267754Smsmith 33367754Smsmith FUNCTION_TRACE ("RsGetPrsMethodData"); 33467754Smsmith 33567754Smsmith 33667754Smsmith /* already validated params, so we won't repeat here */ 33767754Smsmith 33867754Smsmith /* 33967754Smsmith * Execute the method, no parameters 34067754Smsmith */ 34167754Smsmith Status = AcpiNsEvaluateRelative (Handle, "_PRS", NULL, &RetObj); 34267754Smsmith if (ACPI_FAILURE (Status)) 34367754Smsmith { 34467754Smsmith return_ACPI_STATUS (Status); 34567754Smsmith } 34667754Smsmith 34767754Smsmith if (!RetObj) 34867754Smsmith { 34967754Smsmith /* Return object is required */ 35067754Smsmith 35177424Smsmith DEBUG_PRINTP (ACPI_ERROR, ("No object was returned from _PRS\n")); 35267754Smsmith return_ACPI_STATUS (AE_TYPE); 35367754Smsmith } 35467754Smsmith 35567754Smsmith /* 35667754Smsmith * The return object will be a buffer, but check the 35767754Smsmith * parameters. If the return object is not a buffer, 35867754Smsmith * then the underlying AML code is corrupt or improperly 35967754Smsmith * written.. 36067754Smsmith */ 36167754Smsmith if (ACPI_TYPE_BUFFER != RetObj->Common.Type) 36267754Smsmith { 36367754Smsmith Status = AE_AML_OPERAND_TYPE; 36467754Smsmith goto Cleanup; 36567754Smsmith } 36667754Smsmith 36767754Smsmith /* 36867754Smsmith * Make the call to create a resource linked list from the 36967754Smsmith * byte stream buffer that comes back from the _CRS method 37067754Smsmith * execution. 37167754Smsmith */ 37277424Smsmith Status = AcpiRsCreateResourceList (RetObj, RetBuffer->Pointer, 37377424Smsmith &BufferSpaceNeeded); 37467754Smsmith 37567754Smsmith /* 37667754Smsmith * Tell the user how much of the buffer we have used or is needed 37767754Smsmith * and return the final status. 37867754Smsmith */ 37967754Smsmith RetBuffer->Length = BufferSpaceNeeded; 38067754Smsmith 38167754Smsmith 38267754Smsmith /* On exit, we must delete the object returned by evaluateObject */ 38367754Smsmith 38467754SmsmithCleanup: 38567754Smsmith 38677424Smsmith AcpiUtRemoveReference (RetObj); 38767754Smsmith return_ACPI_STATUS (Status); 38867754Smsmith} 38967754Smsmith 39067754Smsmith 39167754Smsmith/******************************************************************************* 39267754Smsmith * 39367754Smsmith * FUNCTION: AcpiRsSetSrsMethodData 39467754Smsmith * 39567754Smsmith * PARAMETERS: Handle - a handle to the containing object 39667754Smsmith * InBuffer - a pointer to a buffer structure of the 39767754Smsmith * parameter 39867754Smsmith * 39977424Smsmith * RETURN: Status 40067754Smsmith * 40167754Smsmith * DESCRIPTION: This function is called to set the _SRS of an object contained 40267754Smsmith * in an object specified by the handle passed in 40367754Smsmith * 40467754Smsmith * If the function fails an appropriate status will be returned 40567754Smsmith * and the contents of the callers buffer is undefined. 40667754Smsmith * 40767754Smsmith ******************************************************************************/ 40867754Smsmith 40967754SmsmithACPI_STATUS 41067754SmsmithAcpiRsSetSrsMethodData ( 41167754Smsmith ACPI_HANDLE Handle, 41267754Smsmith ACPI_BUFFER *InBuffer) 41367754Smsmith{ 41467754Smsmith ACPI_OPERAND_OBJECT *Params[2]; 41567754Smsmith ACPI_OPERAND_OBJECT ParamObj; 41667754Smsmith ACPI_STATUS Status; 41767754Smsmith UINT8 *ByteStream = NULL; 41867754Smsmith UINT32 BufferSizeNeeded = 0; 41967754Smsmith 42067754Smsmith 42167754Smsmith FUNCTION_TRACE ("RsSetSrsMethodData"); 42267754Smsmith 42367754Smsmith 42467754Smsmith /* already validated params, so we won't repeat here */ 42567754Smsmith 42667754Smsmith /* 42767754Smsmith * The InBuffer parameter will point to a linked list of 42877424Smsmith * resource parameters. It needs to be formatted into a 42977424Smsmith * byte stream to be sent in as an input parameter. 43067754Smsmith */ 43167754Smsmith BufferSizeNeeded = 0; 43267754Smsmith 43367754Smsmith /* 43467754Smsmith * First call is to get the buffer size needed 43567754Smsmith */ 43677424Smsmith Status = AcpiRsCreateByteStream (InBuffer->Pointer, ByteStream, 43777424Smsmith &BufferSizeNeeded); 43867754Smsmith /* 43967754Smsmith * We expect a return of AE_BUFFER_OVERFLOW 44077424Smsmith * if not, exit with the error 44167754Smsmith */ 44267754Smsmith if (AE_BUFFER_OVERFLOW != Status) 44367754Smsmith { 44467754Smsmith return_ACPI_STATUS (Status); 44567754Smsmith } 44667754Smsmith 44767754Smsmith /* 44867754Smsmith * Allocate the buffer needed 44967754Smsmith */ 45077424Smsmith ByteStream = AcpiUtCallocate(BufferSizeNeeded); 45167754Smsmith if (NULL == ByteStream) 45267754Smsmith { 45367754Smsmith return_ACPI_STATUS (AE_NO_MEMORY); 45467754Smsmith } 45567754Smsmith 45667754Smsmith /* 45767754Smsmith * Now call to convert the linked list into a byte stream 45867754Smsmith */ 45977424Smsmith Status = AcpiRsCreateByteStream (InBuffer->Pointer, ByteStream, 46077424Smsmith &BufferSizeNeeded); 46167754Smsmith if (ACPI_FAILURE (Status)) 46267754Smsmith { 46367754Smsmith goto Cleanup; 46467754Smsmith } 46567754Smsmith 46667754Smsmith /* 46777424Smsmith * Init the param object 46867754Smsmith */ 46977424Smsmith AcpiUtInitStaticObject (&ParamObj); 47067754Smsmith 47167754Smsmith /* 47277424Smsmith * Method requires one parameter. Set it up 47367754Smsmith */ 47467754Smsmith Params [0] = &ParamObj; 47567754Smsmith Params [1] = NULL; 47667754Smsmith 47767754Smsmith /* 47867754Smsmith * Set up the parameter object 47967754Smsmith */ 48067754Smsmith ParamObj.Common.Type = ACPI_TYPE_BUFFER; 48167754Smsmith ParamObj.Buffer.Length = BufferSizeNeeded; 48267754Smsmith ParamObj.Buffer.Pointer = ByteStream; 48367754Smsmith 48467754Smsmith /* 48577424Smsmith * Execute the method, no return value 48667754Smsmith */ 48767754Smsmith Status = AcpiNsEvaluateRelative (Handle, "_SRS", Params, NULL); 48867754Smsmith 48967754Smsmith /* 49077424Smsmith * Clean up and return the status from AcpiNsEvaluateRelative 49167754Smsmith */ 49267754SmsmithCleanup: 49367754Smsmith 49477424Smsmith AcpiUtFree (ByteStream); 49567754Smsmith return_ACPI_STATUS (Status); 49667754Smsmith} 49767754Smsmith 498