mirror of
https://github.com/acpica/acpica/
synced 2025-02-25 18:04:08 +03:00
Removed tabs
date 2000.06.12.16.58.00; author rmoore1; state Exp;
This commit is contained in:
parent
83f8d010d2
commit
c8f072159b
@ -317,7 +317,7 @@ PsWalkParsedAml (
|
||||
ACPI_GENERIC_OP *StartOp,
|
||||
ACPI_GENERIC_OP *EndOp,
|
||||
ACPI_OBJECT_INTERNAL *MthDesc,
|
||||
NAME_TABLE_ENTRY *StartScope,
|
||||
NAME_TABLE_ENTRY *StartScope,
|
||||
ACPI_OBJECT_INTERNAL **Params,
|
||||
ACPI_OBJECT_INTERNAL **CallerReturnDesc,
|
||||
ACPI_OWNER_ID OwnerId,
|
||||
|
@ -7,103 +7,121 @@
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
|
||||
/******************************************************************************
|
||||
*
|
||||
* 1. Copyright Notice
|
||||
*
|
||||
* Some or all of this work - Copyright (c) 1999, Intel Corp. All rights
|
||||
* Some or all of this work - Copyright (c) 1999, Intel Corp. All rights
|
||||
* reserved.
|
||||
*
|
||||
* 2. License
|
||||
*
|
||||
* 2.1. Intel grants, free of charge, to any person ("Licensee") obtaining a
|
||||
* copy of the source code appearing in this file ("Covered Code") a license
|
||||
* under Intel's copyrights in the base code distributed originally by Intel
|
||||
* ("Original Intel Code") to copy, make derivatives, distribute, use and
|
||||
* display any portion of the Covered Code in any form; and
|
||||
*
|
||||
* 2.2. Intel grants Licensee a non-exclusive and non-transferable patent
|
||||
* license (without the right to sublicense), under only those claims of Intel
|
||||
* patents that are infringed by the Original Intel Code, to make, use, sell,
|
||||
* offer to sell, and import the Covered Code and derivative works thereof
|
||||
* solely to the minimum extent necessary to exercise the above copyright
|
||||
* license, and in no event shall the patent license extend to any additions to
|
||||
* or modifications of the Original Intel Code. No other license or right is
|
||||
* granted directly or by implication, estoppel or otherwise;
|
||||
* 2.1. This is your license from Intel Corp. under its intellectual property
|
||||
* rights. You may have additional license terms from the party that provided
|
||||
* you this software, covering your right to use that party's intellectual
|
||||
* property rights.
|
||||
*
|
||||
* the above copyright and patent license is granted only if the following
|
||||
* 2.2. Intel grants, free of charge, to any person ("Licensee") obtaining a
|
||||
* copy of the source code appearing in this file ("Covered Code") an
|
||||
* irrevocable, perpetual, worldwide license under Intel's copyrights in the
|
||||
* base code distributed originally by Intel ("Original Intel Code") to copy,
|
||||
* make derivatives, distribute, use and display any portion of the Covered
|
||||
* Code in any form, with the right to sublicense such rights; and
|
||||
*
|
||||
* 2.3. Intel grants Licensee a non-exclusive and non-transferable patent
|
||||
* license (with the right to sublicense), under only those claims of Intel
|
||||
* patents that are infringed by the Original Intel Code, to make, use, sell,
|
||||
* offer to sell, and import the Covered Code and derivative works thereof
|
||||
* solely to the minimum extent necessary to exercise the above copyright
|
||||
* license, and in no event shall the patent license extend to any additions
|
||||
* to or modifications of the Original Intel Code. No other license or right
|
||||
* is granted directly or by implication, estoppel or otherwise;
|
||||
*
|
||||
* The above copyright and patent license is granted only if the following
|
||||
* conditions are met:
|
||||
*
|
||||
* 3. Conditions
|
||||
*
|
||||
* 3.1. Redistribution of source code of any substantial portion of the Covered
|
||||
* Code or modification must include the above Copyright Notice, the above
|
||||
* License, this list of Conditions, and the following Disclaimer and Export
|
||||
* Compliance provision. In addition, Licensee must cause all Covered Code to
|
||||
* which Licensee contributes to contain a file documenting the changes
|
||||
* Licensee made to create that Covered Code and the date of any change.
|
||||
* Licensee must include in that file the documentation of any changes made by
|
||||
* any predecessor Licensee. Licensee must include a prominent statement that
|
||||
* the modification is derived, directly or indirectly, from Original Intel
|
||||
* Code.
|
||||
* 3.1. Redistribution of Source with Rights to Further Distribute Source.
|
||||
* Redistribution of source code of any substantial portion of the Covered
|
||||
* Code or modification with rights to further distribute source must include
|
||||
* the above Copyright Notice, the above License, this list of Conditions,
|
||||
* and the following Disclaimer and Export Compliance provision. In addition,
|
||||
* Licensee must cause all Covered Code to which Licensee contributes to
|
||||
* contain a file documenting the changes Licensee made to create that Covered
|
||||
* Code and the date of any change. Licensee must include in that file the
|
||||
* documentation of any changes made by any predecessor Licensee. Licensee
|
||||
* must include a prominent statement that the modification is derived,
|
||||
* directly or indirectly, from Original Intel Code.
|
||||
*
|
||||
* 3.2. Redistribution in binary form of any substantial portion of the Covered
|
||||
* Code or modification must reproduce the above Copyright Notice, and the
|
||||
* following Disclaimer and Export Compliance provision in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
* 3.2. Redistribution of Source with no Rights to Further Distribute Source.
|
||||
* Redistribution of source code of any substantial portion of the Covered
|
||||
* Code or modification without rights to further distribute source must
|
||||
* include the following Disclaimer and Export Compliance provision in the
|
||||
* documentation and/or other materials provided with distribution. In
|
||||
* addition, Licensee may not authorize further sublicense of source of any
|
||||
* portion of the Covered Code, and must include terms to the effect that the
|
||||
* license from Licensee to its licensee is limited to the intellectual
|
||||
* property embodied in the software Licensee provides to its licensee, and
|
||||
* not to intellectual property embodied in modifications its licensee may
|
||||
* make.
|
||||
*
|
||||
* 3.3. Intel retains all right, title, and interest in and to the Original
|
||||
* 3.3. Redistribution of Executable. Redistribution in executable form of any
|
||||
* substantial portion of the Covered Code or modification must reproduce the
|
||||
* above Copyright Notice, and the following Disclaimer and Export Compliance
|
||||
* provision in the documentation and/or other materials provided with the
|
||||
* distribution.
|
||||
*
|
||||
* 3.4. Intel retains all right, title, and interest in and to the Original
|
||||
* Intel Code.
|
||||
*
|
||||
* 3.4. Neither the name Intel nor any other trademark owned or controlled by
|
||||
* Intel shall be used in advertising or otherwise to promote the sale, use or
|
||||
* other dealings in products derived from or relating to the Covered Code
|
||||
* 3.5. Neither the name Intel nor any other trademark owned or controlled by
|
||||
* Intel shall be used in advertising or otherwise to promote the sale, use or
|
||||
* other dealings in products derived from or relating to the Covered Code
|
||||
* without prior written authorization from Intel.
|
||||
*
|
||||
* 4. Disclaimer and Export Compliance
|
||||
*
|
||||
* 4.1. INTEL MAKES NO WARRANTY OF ANY KIND REGARDING ANY SOFTWARE PROVIDED
|
||||
* HERE. ANY SOFTWARE ORIGINATING FROM INTEL OR DERIVED FROM INTEL SOFTWARE
|
||||
* IS PROVIDED "AS IS," AND INTEL WILL NOT PROVIDE ANY SUPPORT, ASSISTANCE,
|
||||
* INSTALLATION, TRAINING OR OTHER SERVICES. INTEL WILL NOT PROVIDE ANY
|
||||
* UPDATES, ENHANCEMENTS OR EXTENSIONS. INTEL SPECIFICALLY DISCLAIMS ANY
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT AND FITNESS FOR A
|
||||
* 4.1. INTEL MAKES NO WARRANTY OF ANY KIND REGARDING ANY SOFTWARE PROVIDED
|
||||
* HERE. ANY SOFTWARE ORIGINATING FROM INTEL OR DERIVED FROM INTEL SOFTWARE
|
||||
* IS PROVIDED "AS IS," AND INTEL WILL NOT PROVIDE ANY SUPPORT, ASSISTANCE,
|
||||
* INSTALLATION, TRAINING OR OTHER SERVICES. INTEL WILL NOT PROVIDE ANY
|
||||
* UPDATES, ENHANCEMENTS OR EXTENSIONS. INTEL SPECIFICALLY DISCLAIMS ANY
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT AND FITNESS FOR A
|
||||
* PARTICULAR PURPOSE.
|
||||
*
|
||||
* 4.2. IN NO EVENT SHALL INTEL HAVE ANY LIABILITY TO LICENSEE, ITS LICENSEES
|
||||
* OR ANY OTHER THIRD PARTY, FOR ANY LOST PROFITS, LOST DATA, LOSS OF USE OR
|
||||
* COSTS OF PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, OR FOR ANY INDIRECT,
|
||||
* SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THIS AGREEMENT, UNDER ANY
|
||||
* CAUSE OF ACTION OR THEORY OF LIABILITY, AND IRRESPECTIVE OF WHETHER INTEL
|
||||
* HAS ADVANCE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES. THESE LIMITATIONS
|
||||
* SHALL APPLY NOTWITHSTANDING THE FAILURE OF THE ESSENTIAL PURPOSE OF ANY
|
||||
* 4.2. IN NO EVENT SHALL INTEL HAVE ANY LIABILITY TO LICENSEE, ITS LICENSEES
|
||||
* OR ANY OTHER THIRD PARTY, FOR ANY LOST PROFITS, LOST DATA, LOSS OF USE OR
|
||||
* COSTS OF PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, OR FOR ANY INDIRECT,
|
||||
* SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THIS AGREEMENT, UNDER ANY
|
||||
* CAUSE OF ACTION OR THEORY OF LIABILITY, AND IRRESPECTIVE OF WHETHER INTEL
|
||||
* HAS ADVANCE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES. THESE LIMITATIONS
|
||||
* SHALL APPLY NOTWITHSTANDING THE FAILURE OF THE ESSENTIAL PURPOSE OF ANY
|
||||
* LIMITED REMEDY.
|
||||
*
|
||||
* 4.3. Licensee shall not export, either directly or indirectly, any of this
|
||||
* software or system incorporating such software without first obtaining any
|
||||
* required license or other approval from the U. S. Department of Commerce or
|
||||
* any other agency or department of the United States Government. In the
|
||||
* event Licensee exports any such software from the United States or re-
|
||||
* exports any such software from a foreign destination, Licensee shall ensure
|
||||
* that the distribution and export/re-export of the software is in compliance
|
||||
* with all laws, regulations, orders, or other restrictions of the U.S. Export
|
||||
* Administration Regulations. Licensee agrees that neither it nor any of its
|
||||
* subsidiaries will export/re-export any technical data, process, software, or
|
||||
* service, directly or indirectly, to any country for which the United States
|
||||
* government or any agency thereof requires an export license, other
|
||||
* governmental approval, or letter of assurance, without first obtaining such
|
||||
* license, approval or letter.
|
||||
* 4.3. Licensee shall not export, either directly or indirectly, any of this
|
||||
* software or system incorporating such software without first obtaining any
|
||||
* required license or other approval from the U. S. Department of Commerce or
|
||||
* any other agency or department of the United States Government. In the
|
||||
* event Licensee exports any such software from the United States or
|
||||
* re-exports any such software from a foreign destination, Licensee shall
|
||||
* ensure that the distribution and export/re-export of the software is in
|
||||
* compliance with all laws, regulations, orders, or other restrictions of the
|
||||
* U.S. Export Administration Regulations. Licensee agrees that neither it nor
|
||||
* any of its subsidiaries will export/re-export any technical data, process,
|
||||
* software, or service, directly or indirectly, to any country for which the
|
||||
* United States government or any agency thereof requires an export license,
|
||||
* other governmental approval, or letter of assurance, without first obtaining
|
||||
* such license, approval or letter.
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
#ifndef _ACPIOSD_H_
|
||||
#define _ACPIOSD_H_
|
||||
#ifndef __ACPIOSD_H__
|
||||
#define __ACPIOSD_H__
|
||||
|
||||
#include <environment.h>
|
||||
#include <datatypes.h>
|
||||
#include <acpiasm.h>
|
||||
#include <excep.h>
|
||||
#include <output.h>
|
||||
#include <acenv.h>
|
||||
#include <actypes.h>
|
||||
|
||||
|
||||
/* Priorities for OsdQueueForExecution */
|
||||
@ -114,17 +132,55 @@
|
||||
#define OSD_PRIORITY_GPE OSD_PRIORITY_HIGH
|
||||
|
||||
|
||||
/* Types specific to the OS-dependent layer interfaces */
|
||||
/*
|
||||
* Types specific to the OS-dependent layer interfaces
|
||||
*/
|
||||
|
||||
typedef
|
||||
UINT32 (*OSD_HANDLER) (
|
||||
void);
|
||||
void *Context);
|
||||
|
||||
typedef
|
||||
void (*OSD_EXECUTION_CALLBACK) (
|
||||
void *Context);
|
||||
|
||||
|
||||
/*
|
||||
* Initialization and shutdown primitives (Optional)
|
||||
*/
|
||||
|
||||
ACPI_STATUS
|
||||
OsdInitialize (
|
||||
void);
|
||||
|
||||
ACPI_STATUS
|
||||
OsdTerminate (
|
||||
void);
|
||||
|
||||
/*
|
||||
* Synchronization primitives
|
||||
*/
|
||||
|
||||
ACPI_STATUS
|
||||
OsdCreateSemaphore (
|
||||
UINT32 InitialUnits,
|
||||
ACPI_HANDLE *OutHandle);
|
||||
|
||||
ACPI_STATUS
|
||||
OsdDeleteSemaphore (
|
||||
ACPI_HANDLE Handle);
|
||||
|
||||
ACPI_STATUS
|
||||
OsdWaitSemaphore (
|
||||
ACPI_HANDLE Handle,
|
||||
UINT32 Units,
|
||||
UINT32 Timeout);
|
||||
|
||||
ACPI_STATUS
|
||||
OsdSignalSemaphore (
|
||||
ACPI_HANDLE Handle,
|
||||
UINT32 Units);
|
||||
|
||||
/*
|
||||
* Memory allocation and mapping
|
||||
*/
|
||||
@ -141,14 +197,15 @@ void
|
||||
OsdFree (
|
||||
void * Memory);
|
||||
|
||||
void *
|
||||
ACPI_STATUS
|
||||
OsdMapMemory (
|
||||
void *PhysicalAddress,
|
||||
UINT32 Length);
|
||||
UINT32 Length,
|
||||
void **LogicalAddress);
|
||||
|
||||
void
|
||||
OsdUnMapMemory (
|
||||
void *PhysicalAddress,
|
||||
void *LogicalAddress,
|
||||
UINT32 Length);
|
||||
|
||||
|
||||
@ -156,15 +213,16 @@ OsdUnMapMemory (
|
||||
* Interrupt handlers
|
||||
*/
|
||||
|
||||
UINT32
|
||||
ACPI_STATUS
|
||||
OsdInstallInterruptHandler (
|
||||
UINT32 InterruptNumber,
|
||||
OSD_HANDLER ServiceRoutine,
|
||||
UINT32 *SciHandle);
|
||||
void *Context);
|
||||
|
||||
void
|
||||
ACPI_STATUS
|
||||
OsdRemoveInterruptHandler (
|
||||
UINT32 Handle);
|
||||
UINT32 InterruptNumber,
|
||||
OSD_HANDLER ServiceRoutine);
|
||||
|
||||
|
||||
/*
|
||||
@ -186,36 +244,36 @@ void
|
||||
OsdSleepUsec (
|
||||
UINT32 Microseconds);
|
||||
|
||||
|
||||
/*
|
||||
* Platform/Hardware independent I/O interfaces
|
||||
*/
|
||||
|
||||
UINT8
|
||||
OsdIn8 (
|
||||
UINT16 InPort);
|
||||
ACPI_IO_ADDRESS InPort);
|
||||
|
||||
|
||||
UINT16
|
||||
OsdIn16 (
|
||||
UINT16 InPort);
|
||||
ACPI_IO_ADDRESS InPort);
|
||||
|
||||
UINT32
|
||||
OsdIn32 (
|
||||
UINT16 InPort);
|
||||
ACPI_IO_ADDRESS InPort);
|
||||
|
||||
void
|
||||
OsdOut8 (
|
||||
UINT16 OutPort,
|
||||
ACPI_IO_ADDRESS OutPort,
|
||||
UINT8 Value);
|
||||
|
||||
void
|
||||
OsdOut16 (
|
||||
UINT16 OutPort,
|
||||
ACPI_IO_ADDRESS OutPort,
|
||||
UINT16 Value);
|
||||
|
||||
void
|
||||
OsdOut32 (
|
||||
UINT16 OutPort,
|
||||
ACPI_IO_ADDRESS OutPort,
|
||||
UINT32 Value);
|
||||
|
||||
|
||||
@ -223,104 +281,104 @@ OsdOut32 (
|
||||
* Standard access to PCI configuration space
|
||||
*/
|
||||
|
||||
UINT8
|
||||
ACPI_STATUS
|
||||
OsdReadPciCfgByte (
|
||||
INT32 Bus,
|
||||
INT32 DeviceFunction,
|
||||
INT32 Register,
|
||||
UINT32 Bus,
|
||||
UINT32 DeviceFunction,
|
||||
UINT32 Register,
|
||||
UINT8 *Value);
|
||||
|
||||
UINT8
|
||||
ACPI_STATUS
|
||||
OsdReadPciCfgWord (
|
||||
INT32 Bus,
|
||||
INT32 DeviceFunction,
|
||||
INT32 Register,
|
||||
UINT32 Bus,
|
||||
UINT32 DeviceFunction,
|
||||
UINT32 Register,
|
||||
UINT16 *Value);
|
||||
|
||||
UINT8
|
||||
ACPI_STATUS
|
||||
OsdReadPciCfgDword (
|
||||
INT32 Bus,
|
||||
INT32 DeviceFunction,
|
||||
INT32 Register,
|
||||
UINT32 Bus,
|
||||
UINT32 DeviceFunction,
|
||||
UINT32 Register,
|
||||
UINT32 *Value);
|
||||
|
||||
UINT8
|
||||
ACPI_STATUS
|
||||
OsdWritePciCfgByte (
|
||||
INT32 Bus,
|
||||
INT32 DeviceFunction,
|
||||
INT32 Register,
|
||||
UINT32 Bus,
|
||||
UINT32 DeviceFunction,
|
||||
UINT32 Register,
|
||||
UINT8 Value);
|
||||
|
||||
UINT8
|
||||
ACPI_STATUS
|
||||
OsdWritePciCfgWord (
|
||||
INT32 Bus,
|
||||
INT32 DeviceFunction,
|
||||
INT32 Register,
|
||||
UINT32 Bus,
|
||||
UINT32 DeviceFunction,
|
||||
UINT32 Register,
|
||||
UINT16 Value);
|
||||
|
||||
UINT8
|
||||
|
||||
ACPI_STATUS
|
||||
OsdWritePciCfgDword (
|
||||
INT32 Bus,
|
||||
INT32 DeviceFunction,
|
||||
INT32 Register,
|
||||
UINT32 Bus,
|
||||
UINT32 DeviceFunction,
|
||||
UINT32 Register,
|
||||
UINT32 Value);
|
||||
|
||||
|
||||
/*
|
||||
* Miscellaneous
|
||||
*/
|
||||
|
||||
ACPI_STATUS
|
||||
OsdBreakpoint (
|
||||
char *Message);
|
||||
|
||||
BOOLEAN
|
||||
OsdReadable (
|
||||
void *Pointer,
|
||||
UINT32 Length);
|
||||
|
||||
|
||||
BOOLEAN
|
||||
OsdWritable (
|
||||
void *Pointer,
|
||||
UINT32 Length);
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* Debug print routines
|
||||
*/
|
||||
|
||||
INT32
|
||||
OsdPrintf (
|
||||
OSD_FILE *Stream,
|
||||
const char *Format,
|
||||
...);
|
||||
|
||||
INT32
|
||||
OsdVprintf (
|
||||
OSD_FILE *Stream,
|
||||
const char *Format,
|
||||
va_list Args);
|
||||
|
||||
|
||||
/*
|
||||
* File I/O
|
||||
* TBD: These may be removed completely since it is not always
|
||||
* possible to do file I/O from a kernel mode driver, especially
|
||||
* during system initialization!
|
||||
/*
|
||||
* Debug input
|
||||
*/
|
||||
|
||||
OSD_FILE *
|
||||
OsdOpen (
|
||||
const char *Filename,
|
||||
const char *Mode);
|
||||
UINT32
|
||||
OsdGetLine (
|
||||
char *Buffer);
|
||||
|
||||
INT32
|
||||
OsdClose (
|
||||
OSD_FILE *Stream);
|
||||
|
||||
UINT32
|
||||
OsdRead (
|
||||
void *Buffer,
|
||||
UINT32 Size,
|
||||
UINT32 Count,
|
||||
OSD_FILE *Stream);
|
||||
|
||||
UINT32
|
||||
OsdWrite (
|
||||
const void *Buffer,
|
||||
UINT32 Size,
|
||||
UINT32 Count,
|
||||
OSD_FILE *Stream);
|
||||
|
||||
void
|
||||
OsdDbgTrap(
|
||||
UCHAR *pTrapCause);
|
||||
/*
|
||||
* Debug
|
||||
*/
|
||||
|
||||
void
|
||||
OsdDbgAssert(
|
||||
void *FailedAssertion,
|
||||
void *FileName,
|
||||
UINT32 LineNumber,
|
||||
UCHAR *Message);
|
||||
#endif
|
||||
void *FailedAssertion,
|
||||
void *FileName,
|
||||
UINT32 LineNumber,
|
||||
char *Message);
|
||||
|
||||
|
||||
#endif /* __ACPIOSD_H__ */
|
||||
|
@ -1,7 +1,7 @@
|
||||
|
||||
/******************************************************************************
|
||||
*
|
||||
* Name: acpisubsys.h - external interfaces to the ACPI subsystem
|
||||
* Name: acapi.h - external interfaces to the ACPI subsystem
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
@ -9,226 +9,245 @@
|
||||
*
|
||||
* 1. Copyright Notice
|
||||
*
|
||||
* Some or all of this work - Copyright (c) 1999, Intel Corp. All rights
|
||||
* Some or all of this work - Copyright (c) 1999, Intel Corp. All rights
|
||||
* reserved.
|
||||
*
|
||||
* 2. License
|
||||
*
|
||||
* 2.1. Intel grants, free of charge, to any person ("Licensee") obtaining a
|
||||
* copy of the source code appearing in this file ("Covered Code") a license
|
||||
* under Intel's copyrights in the base code distributed originally by Intel
|
||||
* ("Original Intel Code") to copy, make derivatives, distribute, use and
|
||||
* display any portion of the Covered Code in any form; and
|
||||
*
|
||||
* 2.2. Intel grants Licensee a non-exclusive and non-transferable patent
|
||||
* license (without the right to sublicense), under only those claims of Intel
|
||||
* patents that are infringed by the Original Intel Code, to make, use, sell,
|
||||
* offer to sell, and import the Covered Code and derivative works thereof
|
||||
* solely to the minimum extent necessary to exercise the above copyright
|
||||
* license, and in no event shall the patent license extend to any additions to
|
||||
* or modifications of the Original Intel Code. No other license or right is
|
||||
* granted directly or by implication, estoppel or otherwise;
|
||||
* 2.1. This is your license from Intel Corp. under its intellectual property
|
||||
* rights. You may have additional license terms from the party that provided
|
||||
* you this software, covering your right to use that party's intellectual
|
||||
* property rights.
|
||||
*
|
||||
* the above copyright and patent license is granted only if the following
|
||||
* 2.2. Intel grants, free of charge, to any person ("Licensee") obtaining a
|
||||
* copy of the source code appearing in this file ("Covered Code") an
|
||||
* irrevocable, perpetual, worldwide license under Intel's copyrights in the
|
||||
* base code distributed originally by Intel ("Original Intel Code") to copy,
|
||||
* make derivatives, distribute, use and display any portion of the Covered
|
||||
* Code in any form, with the right to sublicense such rights; and
|
||||
*
|
||||
* 2.3. Intel grants Licensee a non-exclusive and non-transferable patent
|
||||
* license (with the right to sublicense), under only those claims of Intel
|
||||
* patents that are infringed by the Original Intel Code, to make, use, sell,
|
||||
* offer to sell, and import the Covered Code and derivative works thereof
|
||||
* solely to the minimum extent necessary to exercise the above copyright
|
||||
* license, and in no event shall the patent license extend to any additions
|
||||
* to or modifications of the Original Intel Code. No other license or right
|
||||
* is granted directly or by implication, estoppel or otherwise;
|
||||
*
|
||||
* The above copyright and patent license is granted only if the following
|
||||
* conditions are met:
|
||||
*
|
||||
* 3. Conditions
|
||||
*
|
||||
* 3.1. Redistribution of source code of any substantial portion of the Covered
|
||||
* Code or modification must include the above Copyright Notice, the above
|
||||
* License, this list of Conditions, and the following Disclaimer and Export
|
||||
* Compliance provision. In addition, Licensee must cause all Covered Code to
|
||||
* which Licensee contributes to contain a file documenting the changes
|
||||
* Licensee made to create that Covered Code and the date of any change.
|
||||
* Licensee must include in that file the documentation of any changes made by
|
||||
* any predecessor Licensee. Licensee must include a prominent statement that
|
||||
* the modification is derived, directly or indirectly, from Original Intel
|
||||
* Code.
|
||||
* 3.1. Redistribution of Source with Rights to Further Distribute Source.
|
||||
* Redistribution of source code of any substantial portion of the Covered
|
||||
* Code or modification with rights to further distribute source must include
|
||||
* the above Copyright Notice, the above License, this list of Conditions,
|
||||
* and the following Disclaimer and Export Compliance provision. In addition,
|
||||
* Licensee must cause all Covered Code to which Licensee contributes to
|
||||
* contain a file documenting the changes Licensee made to create that Covered
|
||||
* Code and the date of any change. Licensee must include in that file the
|
||||
* documentation of any changes made by any predecessor Licensee. Licensee
|
||||
* must include a prominent statement that the modification is derived,
|
||||
* directly or indirectly, from Original Intel Code.
|
||||
*
|
||||
* 3.2. Redistribution in binary form of any substantial portion of the Covered
|
||||
* Code or modification must reproduce the above Copyright Notice, and the
|
||||
* following Disclaimer and Export Compliance provision in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
* 3.2. Redistribution of Source with no Rights to Further Distribute Source.
|
||||
* Redistribution of source code of any substantial portion of the Covered
|
||||
* Code or modification without rights to further distribute source must
|
||||
* include the following Disclaimer and Export Compliance provision in the
|
||||
* documentation and/or other materials provided with distribution. In
|
||||
* addition, Licensee may not authorize further sublicense of source of any
|
||||
* portion of the Covered Code, and must include terms to the effect that the
|
||||
* license from Licensee to its licensee is limited to the intellectual
|
||||
* property embodied in the software Licensee provides to its licensee, and
|
||||
* not to intellectual property embodied in modifications its licensee may
|
||||
* make.
|
||||
*
|
||||
* 3.3. Intel retains all right, title, and interest in and to the Original
|
||||
* 3.3. Redistribution of Executable. Redistribution in executable form of any
|
||||
* substantial portion of the Covered Code or modification must reproduce the
|
||||
* above Copyright Notice, and the following Disclaimer and Export Compliance
|
||||
* provision in the documentation and/or other materials provided with the
|
||||
* distribution.
|
||||
*
|
||||
* 3.4. Intel retains all right, title, and interest in and to the Original
|
||||
* Intel Code.
|
||||
*
|
||||
* 3.4. Neither the name Intel nor any other trademark owned or controlled by
|
||||
* Intel shall be used in advertising or otherwise to promote the sale, use or
|
||||
* other dealings in products derived from or relating to the Covered Code
|
||||
* 3.5. Neither the name Intel nor any other trademark owned or controlled by
|
||||
* Intel shall be used in advertising or otherwise to promote the sale, use or
|
||||
* other dealings in products derived from or relating to the Covered Code
|
||||
* without prior written authorization from Intel.
|
||||
*
|
||||
* 4. Disclaimer and Export Compliance
|
||||
*
|
||||
* 4.1. INTEL MAKES NO WARRANTY OF ANY KIND REGARDING ANY SOFTWARE PROVIDED
|
||||
* HERE. ANY SOFTWARE ORIGINATING FROM INTEL OR DERIVED FROM INTEL SOFTWARE
|
||||
* IS PROVIDED "AS IS," AND INTEL WILL NOT PROVIDE ANY SUPPORT, ASSISTANCE,
|
||||
* INSTALLATION, TRAINING OR OTHER SERVICES. INTEL WILL NOT PROVIDE ANY
|
||||
* UPDATES, ENHANCEMENTS OR EXTENSIONS. INTEL SPECIFICALLY DISCLAIMS ANY
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT AND FITNESS FOR A
|
||||
* 4.1. INTEL MAKES NO WARRANTY OF ANY KIND REGARDING ANY SOFTWARE PROVIDED
|
||||
* HERE. ANY SOFTWARE ORIGINATING FROM INTEL OR DERIVED FROM INTEL SOFTWARE
|
||||
* IS PROVIDED "AS IS," AND INTEL WILL NOT PROVIDE ANY SUPPORT, ASSISTANCE,
|
||||
* INSTALLATION, TRAINING OR OTHER SERVICES. INTEL WILL NOT PROVIDE ANY
|
||||
* UPDATES, ENHANCEMENTS OR EXTENSIONS. INTEL SPECIFICALLY DISCLAIMS ANY
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT AND FITNESS FOR A
|
||||
* PARTICULAR PURPOSE.
|
||||
*
|
||||
* 4.2. IN NO EVENT SHALL INTEL HAVE ANY LIABILITY TO LICENSEE, ITS LICENSEES
|
||||
* OR ANY OTHER THIRD PARTY, FOR ANY LOST PROFITS, LOST DATA, LOSS OF USE OR
|
||||
* COSTS OF PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, OR FOR ANY INDIRECT,
|
||||
* SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THIS AGREEMENT, UNDER ANY
|
||||
* CAUSE OF ACTION OR THEORY OF LIABILITY, AND IRRESPECTIVE OF WHETHER INTEL
|
||||
* HAS ADVANCE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES. THESE LIMITATIONS
|
||||
* SHALL APPLY NOTWITHSTANDING THE FAILURE OF THE ESSENTIAL PURPOSE OF ANY
|
||||
* 4.2. IN NO EVENT SHALL INTEL HAVE ANY LIABILITY TO LICENSEE, ITS LICENSEES
|
||||
* OR ANY OTHER THIRD PARTY, FOR ANY LOST PROFITS, LOST DATA, LOSS OF USE OR
|
||||
* COSTS OF PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, OR FOR ANY INDIRECT,
|
||||
* SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THIS AGREEMENT, UNDER ANY
|
||||
* CAUSE OF ACTION OR THEORY OF LIABILITY, AND IRRESPECTIVE OF WHETHER INTEL
|
||||
* HAS ADVANCE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES. THESE LIMITATIONS
|
||||
* SHALL APPLY NOTWITHSTANDING THE FAILURE OF THE ESSENTIAL PURPOSE OF ANY
|
||||
* LIMITED REMEDY.
|
||||
*
|
||||
* 4.3. Licensee shall not export, either directly or indirectly, any of this
|
||||
* software or system incorporating such software without first obtaining any
|
||||
* required license or other approval from the U. S. Department of Commerce or
|
||||
* any other agency or department of the United States Government. In the
|
||||
* event Licensee exports any such software from the United States or re-
|
||||
* exports any such software from a foreign destination, Licensee shall ensure
|
||||
* that the distribution and export/re-export of the software is in compliance
|
||||
* with all laws, regulations, orders, or other restrictions of the U.S. Export
|
||||
* Administration Regulations. Licensee agrees that neither it nor any of its
|
||||
* subsidiaries will export/re-export any technical data, process, software, or
|
||||
* service, directly or indirectly, to any country for which the United States
|
||||
* government or any agency thereof requires an export license, other
|
||||
* governmental approval, or letter of assurance, without first obtaining such
|
||||
* license, approval or letter.
|
||||
* 4.3. Licensee shall not export, either directly or indirectly, any of this
|
||||
* software or system incorporating such software without first obtaining any
|
||||
* required license or other approval from the U. S. Department of Commerce or
|
||||
* any other agency or department of the United States Government. In the
|
||||
* event Licensee exports any such software from the United States or
|
||||
* re-exports any such software from a foreign destination, Licensee shall
|
||||
* ensure that the distribution and export/re-export of the software is in
|
||||
* compliance with all laws, regulations, orders, or other restrictions of the
|
||||
* U.S. Export Administration Regulations. Licensee agrees that neither it nor
|
||||
* any of its subsidiaries will export/re-export any technical data, process,
|
||||
* software, or service, directly or indirectly, to any country for which the
|
||||
* United States government or any agency thereof requires an export license,
|
||||
* other governmental approval, or letter of assurance, without first obtaining
|
||||
* such license, approval or letter.
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
|
||||
#ifndef __ACPISUBSYS_H__
|
||||
#define __ACPISUBSYS_H__
|
||||
|
||||
#include <datatypes.h>
|
||||
#include <acpitables.h>
|
||||
#include <acpiobj.h>
|
||||
|
||||
#define ACPI_MODE 1
|
||||
#define LEGACY_MODE 2
|
||||
#ifndef __ACAPI_H__
|
||||
#define __ACAPI_H__
|
||||
|
||||
#include <actypes.h>
|
||||
#include <actables.h>
|
||||
|
||||
/*
|
||||
* Global interfaces
|
||||
*/
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiInit (
|
||||
char *AcpiFile);
|
||||
|
||||
|
||||
/*
|
||||
* Interpreter interfaces
|
||||
*/
|
||||
AcpiInitialize (
|
||||
ACPI_INIT_DATA *InitData);
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiEvaluateObject (
|
||||
ACPI_HANDLE Handle,
|
||||
char *Pathname,
|
||||
ACPI_OBJECT *ReturnObject,
|
||||
ACPI_OBJECT **Params);
|
||||
|
||||
|
||||
/*
|
||||
* Namespace and enumeration interfaces
|
||||
*/
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiLoadNameSpace (
|
||||
INT32 DisplayAmlDuringLoad);
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiLoadTable (
|
||||
ACPI_TABLE_HEADER *TablePtr,
|
||||
ACPI_HANDLE *OutTableHandle);
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiUnLoadTable (
|
||||
ACPI_HANDLE TableHandle);
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiLoadTableFromFile (
|
||||
char *FileName,
|
||||
ACPI_HANDLE *OutTableHandle);
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiGetTableHeader (
|
||||
ACPI_TABLE_TYPE TableType,
|
||||
char *OutTableHeader);
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiGetTable (
|
||||
ACPI_TABLE_TYPE TableType,
|
||||
ACPI_BUFFER *RetBuffer);
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiNameToHandle (
|
||||
ACPI_HANDLE Scope,
|
||||
UINT32 Name,
|
||||
ACPI_HANDLE *OutHandle);
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiHandleToName (
|
||||
ACPI_HANDLE Handle,
|
||||
UINT32 *RetName);
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiPathnameToHandle (
|
||||
char *Pathname,
|
||||
ACPI_HANDLE *OutHandle);
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiHandleToPathname (
|
||||
ACPI_HANDLE Handle,
|
||||
ACPI_BUFFER *OutPathBuffer);
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiGetNextObject (
|
||||
ACPI_OBJECT_TYPE Type,
|
||||
ACPI_HANDLE Scope,
|
||||
ACPI_HANDLE Handle,
|
||||
ACPI_HANDLE *OutHandle);
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiGetParent (
|
||||
ACPI_HANDLE Handle,
|
||||
ACPI_HANDLE *OutHandle);
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiGetScope (
|
||||
ACPI_HANDLE Handle,
|
||||
ACPI_HANDLE *OutHandle);
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiGetContainingScope (
|
||||
ACPI_HANDLE Handle,
|
||||
ACPI_HANDLE *OutHandle);
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiWalkNamespace (
|
||||
ACPI_OBJECT_TYPE Type,
|
||||
ACPI_HANDLE StartHandle,
|
||||
UINT32 MaxDepth,
|
||||
void * (* UserFunction)(ACPI_HANDLE,UINT32,void *),
|
||||
void *Context,
|
||||
void * *ReturnValue);
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiGetDeviceInfo (
|
||||
ACPI_HANDLE Device,
|
||||
ACPI_DEVICE_INFO *Info);
|
||||
|
||||
|
||||
/*
|
||||
* Event / System interfaces
|
||||
*/
|
||||
AcpiTerminate (
|
||||
void);
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiEnable (
|
||||
void);
|
||||
void);
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiDisable (
|
||||
void);
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiGetSystemInfo(
|
||||
ACPI_BUFFER *RetBuffer);
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiFormatException (
|
||||
ACPI_STATUS Exception,
|
||||
ACPI_BUFFER *OutBuffer);
|
||||
|
||||
|
||||
/*
|
||||
* ACPI table manipulation interfaces
|
||||
*/
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiLoadFirmwareTables (
|
||||
void);
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiLoadTable (
|
||||
ACPI_TABLE_HEADER *TablePtr);
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiUnloadTable (
|
||||
ACPI_TABLE_TYPE TableType);
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiGetTableHeader (
|
||||
ACPI_TABLE_TYPE TableType,
|
||||
UINT32 Instance,
|
||||
ACPI_TABLE_HEADER *OutTableHeader);
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiGetTable (
|
||||
ACPI_TABLE_TYPE TableType,
|
||||
UINT32 Instance,
|
||||
ACPI_BUFFER *RetBuffer);
|
||||
|
||||
|
||||
/*
|
||||
* Namespace and name interfaces
|
||||
*/
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiLoadNamespace (
|
||||
void);
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiWalkNamespace (
|
||||
ACPI_OBJECT_TYPE Type,
|
||||
ACPI_HANDLE StartObject,
|
||||
UINT32 MaxDepth,
|
||||
WALK_CALLBACK UserFunction,
|
||||
void *Context,
|
||||
void * *ReturnValue);
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiGetName (
|
||||
ACPI_HANDLE Handle,
|
||||
UINT32 NameType,
|
||||
ACPI_BUFFER *RetPathPtr);
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiGetHandle (
|
||||
ACPI_HANDLE Parent,
|
||||
ACPI_STRING Pathname,
|
||||
ACPI_HANDLE *RetHandle);
|
||||
|
||||
|
||||
/*
|
||||
* Object manipulation and enumeration
|
||||
*/
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiEvaluateObject (
|
||||
ACPI_HANDLE Object,
|
||||
ACPI_STRING Pathname,
|
||||
ACPI_OBJECT_LIST *ParameterObjects,
|
||||
ACPI_BUFFER *ReturnObjectBuffer);
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiGetObjectInfo (
|
||||
ACPI_HANDLE Device,
|
||||
ACPI_DEVICE_INFO *Info);
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiGetNextObject (
|
||||
ACPI_OBJECT_TYPE Type,
|
||||
ACPI_HANDLE Parent,
|
||||
ACPI_HANDLE Child,
|
||||
ACPI_HANDLE *OutHandle);
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiGetType (
|
||||
ACPI_HANDLE Object,
|
||||
ACPI_OBJECT_TYPE *OutType);
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiGetParent (
|
||||
ACPI_HANDLE Object,
|
||||
ACPI_HANDLE *OutHandle);
|
||||
|
||||
|
||||
/*
|
||||
* Event handler interfaces
|
||||
*/
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiInstallFixedEventHandler (
|
||||
UINT32 Event,
|
||||
@ -240,10 +259,38 @@ AcpiRemoveFixedEventHandler (
|
||||
UINT32 Event,
|
||||
FIXED_EVENT_HANDLER Handler);
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiInstallNotifyHandler (
|
||||
ACPI_HANDLE Device,
|
||||
UINT32 HandlerType,
|
||||
NOTIFY_HANDLER Handler,
|
||||
void *Context);
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiRemoveNotifyHandler (
|
||||
ACPI_HANDLE Device,
|
||||
UINT32 HandlerType,
|
||||
NOTIFY_HANDLER Handler);
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiInstallAddressSpaceHandler (
|
||||
ACPI_HANDLE Device,
|
||||
ACPI_ADDRESS_SPACE_TYPE SpaceId,
|
||||
ADDRESS_SPACE_HANDLER Handler,
|
||||
ADDRESS_SPACE_SETUP Setup,
|
||||
void *Context);
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiRemoveAddressSpaceHandler (
|
||||
ACPI_HANDLE Device,
|
||||
ACPI_ADDRESS_SPACE_TYPE SpaceId,
|
||||
ADDRESS_SPACE_HANDLER Handler);
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiInstallGpeHandler (
|
||||
UINT32 GpeNumber,
|
||||
GPE_HANDLER Handler,
|
||||
UINT32 GpeNumber,
|
||||
UINT32 Type,
|
||||
GPE_HANDLER Handler,
|
||||
void *Context);
|
||||
|
||||
ACPI_STATUS
|
||||
@ -252,31 +299,28 @@ AcpiRemoveGpeHandler (
|
||||
GPE_HANDLER Handler);
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiInstallNotifyHandler (
|
||||
ACPI_HANDLE Device,
|
||||
NOTIFY_HANDLER Handler,
|
||||
void *Context);
|
||||
AcpiEnableEvent (
|
||||
UINT32 Event,
|
||||
UINT32 Type);
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiRemoveNotifyHandler (
|
||||
ACPI_HANDLE Device,
|
||||
NOTIFY_HANDLER Handler);
|
||||
AcpiDisableEvent (
|
||||
UINT32 Event,
|
||||
UINT32 Type);
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiInstallOpRegionHandler (
|
||||
UINT32 OpRegion,
|
||||
OPREGION_HANDLER Handler,
|
||||
void *Context);
|
||||
AcpiClearEvent (
|
||||
UINT32 Event,
|
||||
UINT32 Type);
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiRemoveOpRegionHandler (
|
||||
UINT32 OpRegion,
|
||||
OPREGION_HANDLER Handler);
|
||||
|
||||
|
||||
AcpiGetEventStatus (
|
||||
UINT32 Event,
|
||||
UINT32 Type,
|
||||
ACPI_EVENT_STATUS *EventStatus);
|
||||
|
||||
/*
|
||||
* Resource related interfaces
|
||||
* Resource interfaces
|
||||
*/
|
||||
|
||||
ACPI_STATUS
|
||||
@ -295,8 +339,9 @@ AcpiSetCurrentResources (
|
||||
ACPI_BUFFER *InBuffer);
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiGetSystemInfo(
|
||||
ACPI_BUFFER *OutBuffer);
|
||||
AcpiGetIRQRoutingTable (
|
||||
ACPI_HANDLE BusDeviceHandle,
|
||||
ACPI_BUFFER *RetBuffer);
|
||||
|
||||
|
||||
/*
|
||||
@ -304,75 +349,42 @@ AcpiGetSystemInfo(
|
||||
*/
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiSetMode (
|
||||
INT32 Mode);
|
||||
|
||||
INT32
|
||||
AcpiGetMode (
|
||||
void);
|
||||
|
||||
INT32
|
||||
AcpiModeCapabilities (
|
||||
void);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* TBD: these may be obsolete */
|
||||
|
||||
void
|
||||
AcpiLocalCleanup (
|
||||
void);
|
||||
|
||||
void
|
||||
InitAcpiLibGlobals (
|
||||
void);
|
||||
|
||||
INT32
|
||||
LoadNameSpace (
|
||||
INT32 DisplayAmlDuringLoad);
|
||||
|
||||
INT32
|
||||
AcpiSetFirmwareWakingVector (
|
||||
UINT32 PhysicalAddress);
|
||||
void *PhysicalAddress);
|
||||
|
||||
INT32
|
||||
ACPI_STATUS
|
||||
AcpiGetFirmwareWakingVector (
|
||||
UINT32 *PhysicalAddress);
|
||||
void **PhysicalAddress);
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiGetProcessorThrottlingInfo (
|
||||
ACPI_HANDLE ProcessorHandle,
|
||||
ACPI_BUFFER *UserBuffer);
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiSetProcessorThrottlingState (
|
||||
ACPI_HANDLE ProcessorHandle,
|
||||
UINT32 ThrottleState);
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiGetProcessorThrottlingState (
|
||||
ACPI_HANDLE ProcessorHandle,
|
||||
UINT32 *ThrottleState);
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiGetProcessorCxInfo (
|
||||
ACPI_HANDLE ProcessorHandle,
|
||||
ACPI_BUFFER *UserBuffer);
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiSetProcessorSleepState (
|
||||
ACPI_HANDLE ProcessorHandle,
|
||||
UINT32 CxState);
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiProcessorSleep (
|
||||
ACPI_HANDLE ProcessorHandle,
|
||||
UINT32 *PmTimerTicks);
|
||||
|
||||
|
||||
ACPI_HANDLE
|
||||
AcpiGetParentHandle (
|
||||
ACPI_HANDLE ChildHandle);
|
||||
|
||||
ACPI_OBJECT_TYPE
|
||||
AcpiValueType (
|
||||
ACPI_HANDLE Handle);
|
||||
|
||||
char *
|
||||
AcpiCurrentScopeName (
|
||||
void);
|
||||
|
||||
BOOLEAN
|
||||
AcpiIsNameSpaceHandle (
|
||||
ACPI_HANDLE QueryHandle);
|
||||
|
||||
BOOLEAN
|
||||
AcpiIsNameSpaceValue (
|
||||
ACPI_OBJECT_TYPE Value);
|
||||
|
||||
INT32
|
||||
AcpiSetFirmwareWakingVector (
|
||||
UINT32 PhysicalAddress);
|
||||
|
||||
INT32
|
||||
AcpiGetFirmwareWakingVector (
|
||||
UINT32 *PhysicalAddress);
|
||||
|
||||
/* End of potentiallly obsolete functions */
|
||||
|
||||
#endif /* ACPISUBSYS_H */
|
||||
#endif /* __ACAPI_H__ */
|
||||
|
@ -1,7 +1,6 @@
|
||||
/******************************************************************************
|
||||
*
|
||||
* Name: acresrc.h - Resource Manager function prototypes
|
||||
* $Revision: 1.34 $
|
||||
*
|
||||
* Name: resource.h - Resource Manager function prototypes
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
@ -9,8 +8,8 @@
|
||||
*
|
||||
* 1. Copyright Notice
|
||||
*
|
||||
* Some or all of this work - Copyright (c) 1999 - 2002, Intel Corp.
|
||||
* All rights reserved.
|
||||
* Some or all of this work - Copyright (c) 1999, Intel Corp. All rights
|
||||
* reserved.
|
||||
*
|
||||
* 2. License
|
||||
*
|
||||
@ -39,9 +38,9 @@
|
||||
* The above copyright and patent license is granted only if the following
|
||||
* conditions are met:
|
||||
*
|
||||
* 3. Conditions
|
||||
* 3. Conditions
|
||||
*
|
||||
* 3.1. Redistribution of Source with Rights to Further Distribute Source.
|
||||
* 3.1. Redistribution of Source with Rights to Further Distribute Source.
|
||||
* Redistribution of source code of any substantial portion of the Covered
|
||||
* Code or modification with rights to further distribute source must include
|
||||
* the above Copyright Notice, the above License, this list of Conditions,
|
||||
@ -49,11 +48,11 @@
|
||||
* Licensee must cause all Covered Code to which Licensee contributes to
|
||||
* contain a file documenting the changes Licensee made to create that Covered
|
||||
* Code and the date of any change. Licensee must include in that file the
|
||||
* documentation of any changes made by any predecessor Licensee. Licensee
|
||||
* documentation of any changes made by any predecessor Licensee. Licensee
|
||||
* must include a prominent statement that the modification is derived,
|
||||
* directly or indirectly, from Original Intel Code.
|
||||
*
|
||||
* 3.2. Redistribution of Source with no Rights to Further Distribute Source.
|
||||
* 3.2. Redistribution of Source with no Rights to Further Distribute Source.
|
||||
* Redistribution of source code of any substantial portion of the Covered
|
||||
* Code or modification without rights to further distribute source must
|
||||
* include the following Disclaimer and Export Compliance provision in the
|
||||
@ -87,7 +86,7 @@
|
||||
* INSTALLATION, TRAINING OR OTHER SERVICES. INTEL WILL NOT PROVIDE ANY
|
||||
* UPDATES, ENHANCEMENTS OR EXTENSIONS. INTEL SPECIFICALLY DISCLAIMS ANY
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT AND FITNESS FOR A
|
||||
* PARTICULAR PURPOSE.
|
||||
* PARTICULAR PURPOSE.
|
||||
*
|
||||
* 4.2. IN NO EVENT SHALL INTEL HAVE ANY LIABILITY TO LICENSEE, ITS LICENSEES
|
||||
* OR ANY OTHER THIRD PARTY, FOR ANY LOST PROFITS, LOST DATA, LOSS OF USE OR
|
||||
@ -115,345 +114,279 @@
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
#ifndef __ACRESRC_H__
|
||||
#define __ACRESRC_H__
|
||||
#ifndef __RESOURCE_H__
|
||||
#define __RESOURCE_H__
|
||||
|
||||
#include <actypes.h>
|
||||
#include <acobject.h>
|
||||
|
||||
/*
|
||||
/*
|
||||
* Function prototypes called from Acpi* APIs
|
||||
*/
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiRsGetPrtMethodData (
|
||||
ACPI_HANDLE Handle,
|
||||
RsGetPRTMethodData (
|
||||
ACPI_HANDLE Handle,
|
||||
ACPI_BUFFER *RetBuffer);
|
||||
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiRsGetCrsMethodData (
|
||||
ACPI_HANDLE Handle,
|
||||
RsGetCRSMethodData (
|
||||
ACPI_HANDLE Handle,
|
||||
ACPI_BUFFER *RetBuffer);
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiRsGetPrsMethodData (
|
||||
ACPI_HANDLE Handle,
|
||||
RsGetPRSMethodData (
|
||||
ACPI_HANDLE Handle,
|
||||
ACPI_BUFFER *RetBuffer);
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiRsSetSrsMethodData (
|
||||
ACPI_HANDLE Handle,
|
||||
RsSetSRSMethodData (
|
||||
ACPI_HANDLE Handle,
|
||||
ACPI_BUFFER *RetBuffer);
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiRsCreateResourceList (
|
||||
ACPI_OPERAND_OBJECT *ByteStreamBuffer,
|
||||
ACPI_BUFFER *OutputBuffer);
|
||||
RsCreateResourceList (
|
||||
ACPI_OBJECT_INTERNAL *ByteStreamBuffer,
|
||||
UINT8 *OutputBuffer,
|
||||
UINT32 *OutputBufferLength);
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiRsCreateByteStream (
|
||||
ACPI_RESOURCE *LinkedListBuffer,
|
||||
ACPI_BUFFER *OutputBuffer);
|
||||
RsCreateByteStream (
|
||||
RESOURCE *LinkedListBuffer,
|
||||
UINT8 *OutputBuffer,
|
||||
UINT32 *OutputBufferLength);
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiRsCreatePciRoutingTable (
|
||||
ACPI_OPERAND_OBJECT *PackageObject,
|
||||
ACPI_BUFFER *OutputBuffer);
|
||||
|
||||
RsCreatePciRoutingTable (
|
||||
ACPI_OBJECT_INTERNAL *MethodReturnObject,
|
||||
UINT8 *OutputBuffer,
|
||||
UINT32 *OutputBufferLength);
|
||||
|
||||
|
||||
/*
|
||||
* Function prototypes called from AcpiRsCreate*
|
||||
*Function prototypes called from RsCreate*APIs
|
||||
*/
|
||||
|
||||
void
|
||||
AcpiRsDumpIrq (
|
||||
ACPI_RESOURCE_DATA *Data);
|
||||
RsDumpResourceList (
|
||||
RESOURCE *Resource);
|
||||
|
||||
void
|
||||
AcpiRsDumpAddress16 (
|
||||
ACPI_RESOURCE_DATA *Data);
|
||||
|
||||
void
|
||||
AcpiRsDumpAddress32 (
|
||||
ACPI_RESOURCE_DATA *Data);
|
||||
|
||||
void
|
||||
AcpiRsDumpAddress64 (
|
||||
ACPI_RESOURCE_DATA *Data);
|
||||
|
||||
void
|
||||
AcpiRsDumpDma (
|
||||
ACPI_RESOURCE_DATA *Data);
|
||||
|
||||
void
|
||||
AcpiRsDumpIo (
|
||||
ACPI_RESOURCE_DATA *Data);
|
||||
|
||||
void
|
||||
AcpiRsDumpExtendedIrq (
|
||||
ACPI_RESOURCE_DATA *Data);
|
||||
|
||||
void
|
||||
AcpiRsDumpFixedIo (
|
||||
ACPI_RESOURCE_DATA *Data);
|
||||
|
||||
void
|
||||
AcpiRsDumpFixedMemory32 (
|
||||
ACPI_RESOURCE_DATA *Data);
|
||||
|
||||
void
|
||||
AcpiRsDumpMemory24 (
|
||||
ACPI_RESOURCE_DATA *Data);
|
||||
|
||||
void
|
||||
AcpiRsDumpMemory32 (
|
||||
ACPI_RESOURCE_DATA *Data);
|
||||
|
||||
void
|
||||
AcpiRsDumpStartDependFns (
|
||||
ACPI_RESOURCE_DATA *Data);
|
||||
|
||||
void
|
||||
AcpiRsDumpVendorSpecific (
|
||||
ACPI_RESOURCE_DATA *Data);
|
||||
|
||||
void
|
||||
AcpiRsDumpResourceList (
|
||||
ACPI_RESOURCE *Resource);
|
||||
|
||||
void
|
||||
AcpiRsDumpIrqList (
|
||||
RsDumpIRQList (
|
||||
UINT8 *RouteTable);
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiRsGetByteStreamStart (
|
||||
RsGetByteStreamStart (
|
||||
UINT8 *ByteStreamBuffer,
|
||||
UINT8 **ByteStreamStart,
|
||||
UINT32 *Size);
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiRsGetListLength (
|
||||
RsCalculateListLength (
|
||||
UINT8 *ByteStreamBuffer,
|
||||
UINT32 ByteStreamBufferLength,
|
||||
ACPI_SIZE *SizeNeeded);
|
||||
UINT32 *SizeNeeded);
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiRsGetByteStreamLength (
|
||||
ACPI_RESOURCE *LinkedListBuffer,
|
||||
ACPI_SIZE *SizeNeeded);
|
||||
RsCalculateByteStreamLength (
|
||||
RESOURCE *LinkedListBuffer,
|
||||
UINT32 *SizeNeeded);
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiRsGetPciRoutingTableLength (
|
||||
ACPI_OPERAND_OBJECT *PackageObject,
|
||||
ACPI_SIZE *BufferSizeNeeded);
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiRsByteStreamToList (
|
||||
RsByteStreamToList (
|
||||
UINT8 *ByteStreamBuffer,
|
||||
UINT32 ByteStreamBufferLength,
|
||||
UINT8 *OutputBuffer);
|
||||
UINT8 **OutputBuffer);
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiRsListToByteStream (
|
||||
ACPI_RESOURCE *LinkedList,
|
||||
ACPI_SIZE ByteStreamSizeNeeded,
|
||||
UINT8 *OutputBuffer);
|
||||
RsListToByteStream (
|
||||
RESOURCE *LinkedList,
|
||||
UINT32 ByteStreamSizeNeeded,
|
||||
UINT8 **OutputBuffer);
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiRsIoResource (
|
||||
RsIoResource (
|
||||
UINT8 *ByteStreamBuffer,
|
||||
ACPI_SIZE *BytesConsumed,
|
||||
UINT32 *BytesConsumed,
|
||||
UINT8 **OutputBuffer,
|
||||
ACPI_SIZE *StructureSize);
|
||||
UINT32 *StructureSize);
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiRsFixedIoResource (
|
||||
RsFixedIoResource (
|
||||
UINT8 *ByteStreamBuffer,
|
||||
ACPI_SIZE *BytesConsumed,
|
||||
UINT32 *BytesConsumed,
|
||||
UINT8 **OutputBuffer,
|
||||
ACPI_SIZE *StructureSize);
|
||||
UINT32 *StructureSize);
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiRsIoStream (
|
||||
ACPI_RESOURCE *LinkedList,
|
||||
RsIoStream (
|
||||
RESOURCE *LinkedList,
|
||||
UINT8 **OutputBuffer,
|
||||
ACPI_SIZE *BytesConsumed);
|
||||
UINT32 *BytesConsumed);
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiRsFixedIoStream (
|
||||
ACPI_RESOURCE *LinkedList,
|
||||
RsFixedIoStream (
|
||||
RESOURCE *LinkedList,
|
||||
UINT8 **OutputBuffer,
|
||||
ACPI_SIZE *BytesConsumed);
|
||||
UINT32 *BytesConsumed);
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiRsIrqResource (
|
||||
RsIrqResource (
|
||||
UINT8 *ByteStreamBuffer,
|
||||
ACPI_SIZE *BytesConsumed,
|
||||
UINT32 *BytesConsumed,
|
||||
UINT8 **OutputBuffer,
|
||||
ACPI_SIZE *StructureSize);
|
||||
UINT32 *StructureSize);
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiRsIrqStream (
|
||||
ACPI_RESOURCE *LinkedList,
|
||||
RsIrqStream (
|
||||
RESOURCE *LinkedList,
|
||||
UINT8 **OutputBuffer,
|
||||
ACPI_SIZE *BytesConsumed);
|
||||
UINT32 *BytesConsumed);
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiRsDmaResource (
|
||||
RsDmaResource (
|
||||
UINT8 *ByteStreamBuffer,
|
||||
ACPI_SIZE *BytesConsumed,
|
||||
UINT32 *BytesConsumed,
|
||||
UINT8 **OutputBuffer,
|
||||
ACPI_SIZE *StructureSize);
|
||||
UINT32 *StructureSize);
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiRsDmaStream (
|
||||
ACPI_RESOURCE *LinkedList,
|
||||
RsDmaStream (
|
||||
RESOURCE *LinkedList,
|
||||
UINT8 **OutputBuffer,
|
||||
ACPI_SIZE *BytesConsumed);
|
||||
UINT32 *BytesConsumed);
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiRsAddress16Resource (
|
||||
RsAddress16Resource (
|
||||
UINT8 *ByteStreamBuffer,
|
||||
ACPI_SIZE *BytesConsumed,
|
||||
UINT32 *BytesConsumed,
|
||||
UINT8 **OutputBuffer,
|
||||
ACPI_SIZE *StructureSize);
|
||||
UINT32 *StructureSize);
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiRsAddress16Stream (
|
||||
ACPI_RESOURCE *LinkedList,
|
||||
RsAddress16Stream (
|
||||
RESOURCE *LinkedList,
|
||||
UINT8 **OutputBuffer,
|
||||
ACPI_SIZE *BytesConsumed);
|
||||
UINT32 *BytesConsumed);
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiRsAddress32Resource (
|
||||
RsAddress32Resource (
|
||||
UINT8 *ByteStreamBuffer,
|
||||
ACPI_SIZE *BytesConsumed,
|
||||
UINT32 *BytesConsumed,
|
||||
UINT8 **OutputBuffer,
|
||||
ACPI_SIZE *StructureSize);
|
||||
UINT32 *StructureSize);
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiRsAddress32Stream (
|
||||
ACPI_RESOURCE *LinkedList,
|
||||
RsAddress32Stream (
|
||||
RESOURCE *LinkedList,
|
||||
UINT8 **OutputBuffer,
|
||||
ACPI_SIZE *BytesConsumed);
|
||||
UINT32 *BytesConsumed);
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiRsAddress64Resource (
|
||||
RsStartDependentFunctionsResource (
|
||||
UINT8 *ByteStreamBuffer,
|
||||
ACPI_SIZE *BytesConsumed,
|
||||
UINT32 *BytesConsumed,
|
||||
UINT8 **OutputBuffer,
|
||||
ACPI_SIZE *StructureSize);
|
||||
UINT32 *StructureSize);
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiRsAddress64Stream (
|
||||
ACPI_RESOURCE *LinkedList,
|
||||
UINT8 **OutputBuffer,
|
||||
ACPI_SIZE *BytesConsumed);
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiRsStartDependFnsResource (
|
||||
RsEndDependentFunctionsResource (
|
||||
UINT8 *ByteStreamBuffer,
|
||||
ACPI_SIZE *BytesConsumed,
|
||||
UINT32 *BytesConsumed,
|
||||
UINT8 **OutputBuffer,
|
||||
ACPI_SIZE *StructureSize);
|
||||
UINT32 *StructureSize);
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiRsEndDependFnsResource (
|
||||
RsStartDependentFunctionsStream (
|
||||
RESOURCE *LinkedList,
|
||||
UINT8 **OutputBuffer,
|
||||
UINT32 *BytesConsumed);
|
||||
|
||||
ACPI_STATUS
|
||||
RsEndDependentFunctionsStream (
|
||||
RESOURCE *LinkedList,
|
||||
UINT8 **OutputBuffer,
|
||||
UINT32 *BytesConsumed);
|
||||
|
||||
ACPI_STATUS
|
||||
RsMemory24Resource (
|
||||
UINT8 *ByteStreamBuffer,
|
||||
ACPI_SIZE *BytesConsumed,
|
||||
UINT32 *BytesConsumed,
|
||||
UINT8 **OutputBuffer,
|
||||
ACPI_SIZE *StructureSize);
|
||||
UINT32 *StructureSize);
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiRsStartDependFnsStream (
|
||||
ACPI_RESOURCE *LinkedList,
|
||||
RsMemory24Stream (
|
||||
RESOURCE *LinkedList,
|
||||
UINT8 **OutputBuffer,
|
||||
ACPI_SIZE *BytesConsumed);
|
||||
UINT32 *BytesConsumed);
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiRsEndDependFnsStream (
|
||||
ACPI_RESOURCE *LinkedList,
|
||||
UINT8 **OutputBuffer,
|
||||
ACPI_SIZE *BytesConsumed);
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiRsMemory24Resource (
|
||||
RsMemory32RangeResource (
|
||||
UINT8 *ByteStreamBuffer,
|
||||
ACPI_SIZE *BytesConsumed,
|
||||
UINT32 *BytesConsumed,
|
||||
UINT8 **OutputBuffer,
|
||||
ACPI_SIZE *StructureSize);
|
||||
UINT32 *StructureSize
|
||||
);
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiRsMemory24Stream (
|
||||
ACPI_RESOURCE *LinkedList,
|
||||
UINT8 **OutputBuffer,
|
||||
ACPI_SIZE *BytesConsumed);
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiRsMemory32RangeResource (
|
||||
RsFixedMemory32Resource (
|
||||
UINT8 *ByteStreamBuffer,
|
||||
ACPI_SIZE *BytesConsumed,
|
||||
UINT32 *BytesConsumed,
|
||||
UINT8 **OutputBuffer,
|
||||
ACPI_SIZE *StructureSize);
|
||||
UINT32 *StructureSize);
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiRsFixedMemory32Resource (
|
||||
RsMemory32RangeStream (
|
||||
RESOURCE *LinkedList,
|
||||
UINT8 **OutputBuffer,
|
||||
UINT32 *BytesConsumed);
|
||||
|
||||
ACPI_STATUS
|
||||
RsFixedMemory32Stream (
|
||||
RESOURCE *LinkedList,
|
||||
UINT8 **OutputBuffer,
|
||||
UINT32 *BytesConsumed);
|
||||
|
||||
ACPI_STATUS
|
||||
RsExtendedIrqResource (
|
||||
UINT8 *ByteStreamBuffer,
|
||||
ACPI_SIZE *BytesConsumed,
|
||||
UINT32 *BytesConsumed,
|
||||
UINT8 **OutputBuffer,
|
||||
ACPI_SIZE *StructureSize);
|
||||
UINT32 *StructureSize);
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiRsMemory32RangeStream (
|
||||
ACPI_RESOURCE *LinkedList,
|
||||
RsExtendedIrqStream (
|
||||
RESOURCE *LinkedList,
|
||||
UINT8 **OutputBuffer,
|
||||
ACPI_SIZE *BytesConsumed);
|
||||
UINT32 *BytesConsumed);
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiRsFixedMemory32Stream (
|
||||
ACPI_RESOURCE *LinkedList,
|
||||
UINT8 **OutputBuffer,
|
||||
ACPI_SIZE *BytesConsumed);
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiRsExtendedIrqResource (
|
||||
RsEndTagResource (
|
||||
UINT8 *ByteStreamBuffer,
|
||||
ACPI_SIZE *BytesConsumed,
|
||||
UINT32 *BytesConsumed,
|
||||
UINT8 **OutputBuffer,
|
||||
ACPI_SIZE *StructureSize);
|
||||
UINT32 *StructureSize);
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiRsExtendedIrqStream (
|
||||
ACPI_RESOURCE *LinkedList,
|
||||
RsEndTagStream (
|
||||
RESOURCE *LinkedList,
|
||||
UINT8 **OutputBuffer,
|
||||
ACPI_SIZE *BytesConsumed);
|
||||
UINT32 *BytesConsumed);
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiRsEndTagResource (
|
||||
RsVendorResource (
|
||||
UINT8 *ByteStreamBuffer,
|
||||
ACPI_SIZE *BytesConsumed,
|
||||
UINT32 *BytesConsumed,
|
||||
UINT8 **OutputBuffer,
|
||||
ACPI_SIZE *StructureSize);
|
||||
UINT32 *StructureSize);
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiRsEndTagStream (
|
||||
ACPI_RESOURCE *LinkedList,
|
||||
RsVendorStream (
|
||||
RESOURCE *LinkedList,
|
||||
UINT8 **OutputBuffer,
|
||||
ACPI_SIZE *BytesConsumed);
|
||||
UINT32 *BytesConsumed);
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiRsVendorResource (
|
||||
UINT8 *ByteStreamBuffer,
|
||||
ACPI_SIZE *BytesConsumed,
|
||||
UINT8 **OutputBuffer,
|
||||
ACPI_SIZE *StructureSize);
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiRsVendorStream (
|
||||
ACPI_RESOURCE *LinkedList,
|
||||
UINT8 **OutputBuffer,
|
||||
ACPI_SIZE *BytesConsumed);
|
||||
|
||||
UINT8
|
||||
AcpiRsGetResourceType (
|
||||
UINT8 ResourceStartByte);
|
||||
|
||||
#endif /* __ACRESRC_H__ */
|
||||
#endif /*__RESOURCE_H__ */
|
||||
|
@ -1,7 +1,7 @@
|
||||
|
||||
/******************************************************************************
|
||||
*
|
||||
* Name: actables.h - ACPI table management
|
||||
* $Revision: 1.49 $
|
||||
*
|
||||
* Name: tables.h - ACPI table management
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
@ -9,8 +9,8 @@
|
||||
*
|
||||
* 1. Copyright Notice
|
||||
*
|
||||
* Some or all of this work - Copyright (c) 1999 - 2005, Intel Corp.
|
||||
* All rights reserved.
|
||||
* Some or all of this work - Copyright (c) 1999, Intel Corp. All rights
|
||||
* reserved.
|
||||
*
|
||||
* 2. License
|
||||
*
|
||||
@ -38,9 +38,9 @@
|
||||
* The above copyright and patent license is granted only if the following
|
||||
* conditions are met:
|
||||
*
|
||||
* 3. Conditions
|
||||
* 3. Conditions
|
||||
*
|
||||
* 3.1. Redistribution of Source with Rights to Further Distribute Source.
|
||||
* 3.1. Redistribution of Source with Rights to Further Distribute Source.
|
||||
* Redistribution of source code of any substantial portion of the Covered
|
||||
* Code or modification with rights to further distribute source must include
|
||||
* the above Copyright Notice, the above License, this list of Conditions,
|
||||
@ -48,11 +48,11 @@
|
||||
* Licensee must cause all Covered Code to which Licensee contributes to
|
||||
* contain a file documenting the changes Licensee made to create that Covered
|
||||
* Code and the date of any change. Licensee must include in that file the
|
||||
* documentation of any changes made by any predecessor Licensee. Licensee
|
||||
* documentation of any changes made by any predecessor Licensee. Licensee
|
||||
* must include a prominent statement that the modification is derived,
|
||||
* directly or indirectly, from Original Intel Code.
|
||||
*
|
||||
* 3.2. Redistribution of Source with no Rights to Further Distribute Source.
|
||||
* 3.2. Redistribution of Source with no Rights to Further Distribute Source.
|
||||
* Redistribution of source code of any substantial portion of the Covered
|
||||
* Code or modification without rights to further distribute source must
|
||||
* include the following Disclaimer and Export Compliance provision in the
|
||||
@ -86,7 +86,7 @@
|
||||
* INSTALLATION, TRAINING OR OTHER SERVICES. INTEL WILL NOT PROVIDE ANY
|
||||
* UPDATES, ENHANCEMENTS OR EXTENSIONS. INTEL SPECIFICALLY DISCLAIMS ANY
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT AND FITNESS FOR A
|
||||
* PARTICULAR PURPOSE.
|
||||
* PARTICULAR PURPOSE.
|
||||
*
|
||||
* 4.2. IN NO EVENT SHALL INTEL HAVE ANY LIABILITY TO LICENSEE, ITS LICENSEES
|
||||
* OR ANY OTHER THIRD PARTY, FOR ANY LOST PROFITS, LOST DATA, LOSS OF USE OR
|
||||
@ -114,210 +114,148 @@
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
#ifndef __ACTABLES_H__
|
||||
#define __ACTABLES_H__
|
||||
#ifndef __TABLES_H__
|
||||
#define __TABLES_H__
|
||||
|
||||
#include <actypes.h>
|
||||
#include <actables.h>
|
||||
|
||||
|
||||
/* Used in AcpiTbMapAcpiTable for size parameter if table header is to be used */
|
||||
|
||||
/* Used in TbMapAcpiTable for size parameter if table header is to be used */
|
||||
|
||||
#define SIZE_IN_HEADER 0
|
||||
|
||||
|
||||
/*
|
||||
* tbconvrt - Table conversion routines
|
||||
*/
|
||||
ACPI_STATUS
|
||||
AcpiTbConvertToXsdt (
|
||||
ACPI_TABLE_DESC *TableInfo);
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiTbConvertTableFadt (
|
||||
void);
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiTbBuildCommonFacs (
|
||||
ACPI_TABLE_DESC *TableInfo);
|
||||
|
||||
UINT32
|
||||
AcpiTbGetTableCount (
|
||||
RSDP_DESCRIPTOR *RSDP,
|
||||
ACPI_TABLE_HEADER *RSDT);
|
||||
|
||||
static void
|
||||
AcpiTbInitGenericAddress (
|
||||
ACPI_GENERIC_ADDRESS *NewGasStruct,
|
||||
UINT8 RegisterBitWidth,
|
||||
ACPI_PHYSICAL_ADDRESS Address);
|
||||
|
||||
static void
|
||||
AcpiTbConvertFadt1 (
|
||||
FADT_DESCRIPTOR_REV2 *LocalFadt,
|
||||
FADT_DESCRIPTOR_REV1 *OriginalFadt);
|
||||
|
||||
static void
|
||||
AcpiTbConvertFadt2 (
|
||||
FADT_DESCRIPTOR_REV2 *LocalFadt,
|
||||
FADT_DESCRIPTOR_REV2 *OriginalFadt);
|
||||
TbHandleToObject (
|
||||
UINT16 TableId,
|
||||
ACPI_TABLE_DESC **TableDesc);
|
||||
|
||||
|
||||
/*
|
||||
* tbget - Table "get" routines
|
||||
* Tbfac - FACP, FACS utilities
|
||||
*/
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiTbGetTable (
|
||||
ACPI_POINTER *Address,
|
||||
TbGetTableFacs (
|
||||
char *BufferPtr,
|
||||
ACPI_TABLE_DESC *TableInfo);
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiTbGetTableHeader (
|
||||
ACPI_POINTER *Address,
|
||||
ACPI_TABLE_HEADER *ReturnHeader);
|
||||
|
||||
/*
|
||||
* Tbget - Table "get" routines
|
||||
*/
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiTbGetTableBody (
|
||||
ACPI_POINTER *Address,
|
||||
ACPI_TABLE_HEADER *Header,
|
||||
ACPI_TABLE_DESC *TableInfo);
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiTbGetTablePtr (
|
||||
ACPI_TABLE_TYPE TableType,
|
||||
TbGetTablePtr (
|
||||
ACPI_TABLE_TYPE TableType,
|
||||
UINT32 Instance,
|
||||
ACPI_TABLE_HEADER **TablePtrLoc);
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiTbVerifyRsdp (
|
||||
ACPI_POINTER *Address);
|
||||
TbGetTable (
|
||||
void *PhysicalAddress,
|
||||
char *BufferPtr,
|
||||
ACPI_TABLE_DESC *TableInfo);
|
||||
|
||||
void
|
||||
AcpiTbGetRsdtAddress (
|
||||
ACPI_POINTER *OutAddress);
|
||||
|
||||
/*
|
||||
* Tbgetall - Get all firmware ACPI tables
|
||||
*/
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiTbValidateRsdt (
|
||||
ACPI_TABLE_HEADER *TablePtr);
|
||||
|
||||
static ACPI_STATUS
|
||||
AcpiTbGetThisTable (
|
||||
ACPI_POINTER *Address,
|
||||
ACPI_TABLE_HEADER *Header,
|
||||
ACPI_TABLE_DESC *TableInfo);
|
||||
|
||||
static ACPI_STATUS
|
||||
AcpiTbTableOverride (
|
||||
ACPI_TABLE_HEADER *Header,
|
||||
ACPI_TABLE_DESC *TableInfo);
|
||||
TbGetAllTables (
|
||||
UINT32 NumberOfTables,
|
||||
char *BufferPtr);
|
||||
|
||||
|
||||
/*
|
||||
* tbgetall - get multiple required tables
|
||||
* Tbinstall - Table installation
|
||||
*/
|
||||
ACPI_STATUS
|
||||
AcpiTbGetRequiredTables (
|
||||
void);
|
||||
|
||||
static ACPI_STATUS
|
||||
AcpiTbGetPrimaryTable (
|
||||
ACPI_POINTER *Address,
|
||||
ACPI_STATUS
|
||||
TbInstallTable (
|
||||
char *TablePtr,
|
||||
ACPI_TABLE_DESC *TableInfo);
|
||||
|
||||
static ACPI_STATUS
|
||||
AcpiTbGetSecondaryTable (
|
||||
ACPI_POINTER *Address,
|
||||
ACPI_STRING Signature,
|
||||
ACPI_STATUS
|
||||
TbRecognizeTable (
|
||||
char *TablePtr,
|
||||
ACPI_TABLE_DESC *TableInfo);
|
||||
|
||||
|
||||
/*
|
||||
* tbinstall - Table installation
|
||||
*/
|
||||
ACPI_STATUS
|
||||
AcpiTbInstallTable (
|
||||
ACPI_TABLE_DESC *TableInfo);
|
||||
|
||||
static ACPI_STATUS
|
||||
AcpiTbMatchSignature (
|
||||
char *Signature,
|
||||
ACPI_TABLE_DESC *TableInfo,
|
||||
UINT8 SearchType);
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiTbRecognizeTable (
|
||||
ACPI_TABLE_DESC *TableInfo,
|
||||
UINT8 SearchType);
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiTbInitTableDescriptor (
|
||||
TbInitTableDescriptor (
|
||||
ACPI_TABLE_TYPE TableType,
|
||||
ACPI_TABLE_DESC *TableInfo);
|
||||
|
||||
|
||||
/*
|
||||
* tbremove - Table removal and deletion
|
||||
* Tbremove - Table removal and deletion
|
||||
*/
|
||||
|
||||
void
|
||||
AcpiTbDeleteAllTables (
|
||||
TbDeleteAcpiTables (
|
||||
void);
|
||||
|
||||
void
|
||||
AcpiTbDeleteTablesByType (
|
||||
TbDeleteAcpiTable (
|
||||
ACPI_TABLE_TYPE Type);
|
||||
|
||||
void
|
||||
AcpiTbDeleteSingleTable (
|
||||
ACPI_TABLE_DESC *
|
||||
TbDeleteSingleTable (
|
||||
ACPI_TABLE_DESC *TableDesc);
|
||||
|
||||
ACPI_TABLE_DESC *
|
||||
AcpiTbUninstallTable (
|
||||
ACPI_TABLE_DESC *TableDesc);
|
||||
void
|
||||
TbFreeAcpiTablesOfType (
|
||||
ACPI_TABLE_DESC *TableInfo);
|
||||
|
||||
|
||||
/*
|
||||
* tbxfroot - RSDP, RSDT utilities
|
||||
* Tbrsd - RSDP, RSDT utilities
|
||||
*/
|
||||
ACPI_STATUS
|
||||
AcpiTbFindTable (
|
||||
char *Signature,
|
||||
char *OemId,
|
||||
char *OemTableId,
|
||||
ACPI_TABLE_HEADER **TablePtr);
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiTbGetTableRsdt (
|
||||
void);
|
||||
TbGetTableRsdt (
|
||||
UINT32 *NumberOfTables);
|
||||
|
||||
static ACPI_STATUS
|
||||
AcpiTbFindRsdp (
|
||||
ACPI_TABLE_DESC *TableInfo,
|
||||
UINT32 Flags);
|
||||
|
||||
static UINT8 *
|
||||
AcpiTbScanMemoryForRsdp (
|
||||
UINT8 *StartAddress,
|
||||
char *
|
||||
TbScanMemoryForRsdp (
|
||||
char *StartAddress,
|
||||
UINT32 Length);
|
||||
|
||||
ACPI_STATUS
|
||||
TbFindRsdp (
|
||||
ACPI_TABLE_DESC *TableInfo);
|
||||
|
||||
|
||||
/*
|
||||
* tbutils - common table utilities
|
||||
* Tbutils - common table utilities
|
||||
*/
|
||||
|
||||
BOOLEAN
|
||||
TbSystemTablePointer (
|
||||
void *Where);
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiTbVerifyTableChecksum (
|
||||
ACPI_TABLE_HEADER *TableHeader);
|
||||
TbMapAcpiTable (
|
||||
void *PhysicalAddress,
|
||||
UINT32 *Size,
|
||||
void **LogicalAddress);
|
||||
|
||||
ACPI_STATUS
|
||||
TbVerifyTableChecksum (
|
||||
ACPI_TABLE_HEADER *TableHeader);
|
||||
|
||||
UINT8
|
||||
AcpiTbChecksum (
|
||||
TbChecksum (
|
||||
void *Buffer,
|
||||
UINT32 Length);
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiTbValidateTableHeader (
|
||||
TbValidateTableHeader (
|
||||
ACPI_TABLE_HEADER *TableHeader);
|
||||
|
||||
#ifdef ACPI_OBSOLETE_FUNCTIONS
|
||||
ACPI_STATUS
|
||||
AcpiTbHandleToObject (
|
||||
UINT16 TableId,
|
||||
ACPI_TABLE_DESC **TableDesc);
|
||||
#endif
|
||||
|
||||
#endif /* __ACTABLES_H__ */
|
||||
#endif /* __TABLES_H__ */
|
||||
|
Loading…
x
Reference in New Issue
Block a user