mirror of
https://github.com/acpica/acpica/
synced 2025-01-09 11:02:02 +03:00
Added some ACPI prefixes; linux support
date 2000.06.21.21.17.00; author rmoore1; state Exp;
This commit is contained in:
parent
99bae0bab6
commit
d5e03cf9a3
@ -1,7 +1,7 @@
|
||||
|
||||
/******************************************************************************
|
||||
*
|
||||
* Name: events.h - Event subcomponent prototypes and defines
|
||||
*
|
||||
* Name: events.h - AcpiEvent subcomponent prototypes and defines
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
@ -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
|
||||
@ -118,100 +118,81 @@
|
||||
#define __EVENTS_H__
|
||||
|
||||
|
||||
|
||||
/* Status bits. */
|
||||
|
||||
#define STATUS_PMTIMER 0x0001
|
||||
#define STATUS_GLOBAL 0x0020
|
||||
#define STATUS_POWER_BUTTON 0x0100
|
||||
#define STATUS_SLEEP_BUTTON 0x0200
|
||||
#define STATUS_RTC_ALARM 0x0400
|
||||
|
||||
/* Enable bits. */
|
||||
|
||||
#define ENABLE_PMTIMER 0x0001
|
||||
#define ENABLE_GLOBAL 0x0020
|
||||
#define ENABLE_POWER_BUTTON 0x0100
|
||||
#define ENABLE_SLEEP_BUTTON 0x0200
|
||||
#define ENABLE_RTC_ALARM 0x0400
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* Evfixed - Fixed event handling
|
||||
/*
|
||||
* AcpiEvfixed - Fixed event handling
|
||||
*/
|
||||
|
||||
ACPI_STATUS
|
||||
EvFixedEventInitialize (
|
||||
AcpiEvFixedEventInitialize (
|
||||
void);
|
||||
|
||||
UINT32
|
||||
EvFixedEventDetect (
|
||||
AcpiEvFixedEventDetect (
|
||||
void);
|
||||
|
||||
UINT32
|
||||
EvFixedEventDispatch (
|
||||
UINT32 Event);
|
||||
AcpiEvFixedEventDispatch (
|
||||
UINT32 AcpiEvent);
|
||||
|
||||
|
||||
/*
|
||||
* Evglock - Global Lock support
|
||||
* AcpiEvglock - Global Lock support
|
||||
*/
|
||||
|
||||
ACPI_STATUS
|
||||
EvAcquireGlobalLock(
|
||||
AcpiEvAcquireGlobalLock(
|
||||
void);
|
||||
|
||||
void
|
||||
EvReleaseGlobalLock(
|
||||
AcpiEvReleaseGlobalLock(
|
||||
void);
|
||||
|
||||
ACPI_STATUS
|
||||
EvInitGlobalLockHandler (
|
||||
AcpiEvInitGlobalLockHandler (
|
||||
void);
|
||||
|
||||
|
||||
/*
|
||||
* Evgpe - GPE handling and dispatch
|
||||
* AcpiEvgpe - GPE handling and dispatch
|
||||
*/
|
||||
|
||||
ACPI_STATUS
|
||||
EvGpeInitialize (
|
||||
AcpiEvGpeInitialize (
|
||||
void);
|
||||
|
||||
ACPI_STATUS
|
||||
EvInitGpeControlMethods (
|
||||
AcpiEvInitGpeControlMethods (
|
||||
void);
|
||||
|
||||
UINT32
|
||||
EvGpeDispatch (
|
||||
AcpiEvGpeDispatch (
|
||||
UINT32 GpeNumber);
|
||||
|
||||
UINT32
|
||||
EvGpeDetect (
|
||||
AcpiEvGpeDetect (
|
||||
void);
|
||||
|
||||
|
||||
/*
|
||||
* Evnotify - Device Notify handling and dispatch
|
||||
* AcpiEvnotify - Device Notify handling and dispatch
|
||||
*/
|
||||
|
||||
void
|
||||
EvNotifyDispatch (
|
||||
ACPI_HANDLE Device,
|
||||
AcpiEvNotifyDispatch (
|
||||
ACPI_HANDLE Device,
|
||||
UINT32 NotifyValue);
|
||||
|
||||
|
||||
/*
|
||||
* Evregion - Address Space handling
|
||||
/*
|
||||
* AcpiEvregion - Address Space handling
|
||||
*/
|
||||
|
||||
ACPI_STATUS
|
||||
EvInstallDefaultAddressSpaceHandlers (
|
||||
AcpiEvInstallDefaultAddressSpaceHandlers (
|
||||
void);
|
||||
|
||||
ACPI_STATUS
|
||||
EvAddressSpaceDispatch (
|
||||
AcpiEvAddressSpaceDispatch (
|
||||
ACPI_OBJECT_INTERNAL *RegionObj,
|
||||
UINT32 Function,
|
||||
UINT32 Address,
|
||||
@ -220,100 +201,95 @@ EvAddressSpaceDispatch (
|
||||
|
||||
|
||||
ACPI_STATUS
|
||||
EvAddrHandlerHelper (
|
||||
ACPI_HANDLE ObjHandle,
|
||||
UINT32 Level,
|
||||
AcpiEvAddrHandlerHelper (
|
||||
ACPI_HANDLE ObjHandle,
|
||||
UINT32 Level,
|
||||
void *Context,
|
||||
void **ReturnValue);
|
||||
|
||||
void
|
||||
EvDisassociateRegionFromHandler(
|
||||
AcpiEvDisassociateRegionFromHandler(
|
||||
ACPI_OBJECT_INTERNAL *RegionObj);
|
||||
|
||||
|
||||
ACPI_STATUS
|
||||
EvAssociateRegionAndHandler(
|
||||
AcpiEvAssociateRegionAndHandler(
|
||||
ACPI_OBJECT_INTERNAL *HandlerObj,
|
||||
ACPI_OBJECT_INTERNAL *RegionObj);
|
||||
|
||||
|
||||
/*
|
||||
* Evregini - Region initialization and setup
|
||||
* AcpiEvregini - Region initialization and setup
|
||||
*/
|
||||
|
||||
ACPI_STATUS
|
||||
EvSystemMemoryRegionSetup (
|
||||
AcpiEvSystemMemoryRegionSetup (
|
||||
ACPI_HANDLE Handle,
|
||||
UINT32 Function,
|
||||
void *HandlerContext,
|
||||
void **ReturnContext);
|
||||
|
||||
ACPI_STATUS
|
||||
EvIoSpaceRegionSetup (
|
||||
AcpiEvIoSpaceRegionSetup (
|
||||
ACPI_HANDLE Handle,
|
||||
UINT32 Function,
|
||||
void *HandlerContext,
|
||||
void **ReturnContext);
|
||||
|
||||
ACPI_STATUS
|
||||
EvPciConfigRegionSetup (
|
||||
AcpiEvPciConfigRegionSetup (
|
||||
ACPI_HANDLE Handle,
|
||||
UINT32 Function,
|
||||
void *HandlerContext,
|
||||
void **ReturnContext);
|
||||
|
||||
ACPI_STATUS
|
||||
EvDefaultRegionSetup (
|
||||
AcpiEvDefaultRegionSetup (
|
||||
ACPI_HANDLE Handle,
|
||||
UINT32 Function,
|
||||
void *HandlerContext,
|
||||
void **ReturnContext);
|
||||
|
||||
ACPI_STATUS
|
||||
EvInitializeRegion (
|
||||
AcpiEvInitializeRegion (
|
||||
ACPI_OBJECT_INTERNAL *RegionObj,
|
||||
BOOLEAN NsLocked);
|
||||
BOOLEAN AcpiNsLocked);
|
||||
|
||||
|
||||
/*
|
||||
* Evsci - SCI (System Control Interrupt) handling/dispatch
|
||||
* AcpiEvsci - SCI (System Control Interrupt) handling/dispatch
|
||||
*/
|
||||
|
||||
UINT32
|
||||
EvInstallSciHandler (
|
||||
|
||||
UINT32
|
||||
AcpiEvInstallSciHandler (
|
||||
void);
|
||||
|
||||
ACPI_STATUS
|
||||
EvRemoveSciHandler (
|
||||
AcpiEvRemoveSciHandler (
|
||||
void);
|
||||
|
||||
INT32
|
||||
EvInitializeSCI (
|
||||
INT32
|
||||
AcpiEvInitializeSCI (
|
||||
INT32 ProgramSCI);
|
||||
|
||||
void
|
||||
EvRestoreAcpiState (
|
||||
AcpiEvRestoreAcpiState (
|
||||
void);
|
||||
|
||||
void
|
||||
EvTerminate (
|
||||
AcpiEvTerminate (
|
||||
void);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* Debug support */
|
||||
|
||||
#ifdef ACPI_DEBUG
|
||||
|
||||
INT32
|
||||
EvSciCount (
|
||||
UINT32 Event);
|
||||
INT32
|
||||
AcpiEvSciCount (
|
||||
UINT32 AcpiEvent);
|
||||
|
||||
#define DEBUG_INCREMENT_EVENT_COUNT(a) Gbl_EventCount[a]++;
|
||||
#define DEBUG_INCREMENT_EVENT_COUNT(a) AcpiGbl_EventCount[a]++;
|
||||
|
||||
#else
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
|
||||
/******************************************************************************
|
||||
*
|
||||
*
|
||||
* Name: globals.h - Declarations for global variables
|
||||
*
|
||||
*****************************************************************************/
|
||||
@ -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
|
||||
@ -131,27 +131,26 @@
|
||||
extern char *MsgAcpiErrorBreak;
|
||||
|
||||
/*****************************************************************************
|
||||
*
|
||||
*
|
||||
* Debug support
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
/* Runtime configuration of debug print levels */
|
||||
|
||||
extern UINT32 DebugLevel;
|
||||
extern UINT32 DebugLayer;
|
||||
extern UINT32 AcpiDbgLevel;
|
||||
extern UINT32 AcpiDbgLayer;
|
||||
|
||||
|
||||
/* Procedure nesting level for debug output */
|
||||
|
||||
extern UINT32 Gbl_NestingLevel;
|
||||
|
||||
extern UINT32 AcpiGbl_NestingLevel;
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
*
|
||||
* ACPI Table globals
|
||||
*
|
||||
*
|
||||
* ACPI Table globals
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
/*
|
||||
@ -163,15 +162,15 @@ extern UINT32 Gbl_NestingLevel;
|
||||
* of each in the system. Each global points to the actual table.
|
||||
*
|
||||
*/
|
||||
ACPI_EXTERN ROOT_SYSTEM_DESCRIPTOR_POINTER *Gbl_RSDP;
|
||||
ACPI_EXTERN ROOT_SYSTEM_DESCRIPTION_TABLE *Gbl_RSDT;
|
||||
ACPI_EXTERN FIRMWARE_ACPI_CONTROL_STRUCTURE *Gbl_FACS;
|
||||
ACPI_EXTERN FIXED_ACPI_DESCRIPTION_TABLE *Gbl_FACP;
|
||||
ACPI_EXTERN APIC_TABLE *Gbl_APIC;
|
||||
ACPI_EXTERN ACPI_TABLE_HEADER *Gbl_DSDT;
|
||||
ACPI_EXTERN ACPI_TABLE_HEADER *Gbl_SBST;
|
||||
/*
|
||||
* Since there may be multiple SSDTs and PSDTS, a single pointer is not
|
||||
ACPI_EXTERN ROOT_SYSTEM_DESCRIPTOR_POINTER *AcpiGbl_RSDP;
|
||||
ACPI_EXTERN ROOT_SYSTEM_DESCRIPTION_TABLE *AcpiGbl_RSDT;
|
||||
ACPI_EXTERN FIRMWARE_ACPI_CONTROL_STRUCTURE *AcpiGbl_FACS;
|
||||
ACPI_EXTERN FIXED_ACPI_DESCRIPTION_TABLE *AcpiGbl_FACP;
|
||||
ACPI_EXTERN APIC_TABLE *AcpiGbl_APIC;
|
||||
ACPI_EXTERN ACPI_TABLE_HEADER *AcpiGbl_DSDT;
|
||||
ACPI_EXTERN ACPI_TABLE_HEADER *AcpiGbl_SBST;
|
||||
/*
|
||||
* Since there may be multiple SSDTs and PSDTS, a single pointer is not
|
||||
* sufficient; Therefore, there isn't one!
|
||||
*/
|
||||
|
||||
@ -179,175 +178,171 @@ ACPI_EXTERN ACPI_TABLE_HEADER *Gbl_SBST;
|
||||
/*
|
||||
* ACPI Table info arrays
|
||||
*/
|
||||
extern ACPI_TABLE_DESC Gbl_AcpiTables[NUM_ACPI_TABLES];
|
||||
extern ACPI_TABLE_SUPPORT Gbl_AcpiTableData[NUM_ACPI_TABLES];
|
||||
extern ACPI_TABLE_DESC AcpiGbl_AcpiTables[NUM_ACPI_TABLES];
|
||||
extern ACPI_TABLE_SUPPORT AcpiGbl_AcpiTableData[NUM_ACPI_TABLES];
|
||||
|
||||
/*
|
||||
* Predefined mutex objects. This array contains the
|
||||
* Predefined mutex objects. This array contains the
|
||||
* actual OS mutex handles, indexed by the local ACPI_MUTEX_HANDLEs.
|
||||
* (The table maps local handles to the real OS handles)
|
||||
*/
|
||||
ACPI_EXTERN ACPI_MUTEX_INFO Gbl_AcpiMutexInfo [NUM_MTX];
|
||||
extern ACPI_INIT_DATA Gbl_AcpiInitData;
|
||||
ACPI_EXTERN ACPI_MUTEX_INFO AcpiGbl_AcpiMutexInfo [NUM_MTX];
|
||||
extern ACPI_INIT_DATA AcpiGbl_AcpiInitData;
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
*
|
||||
* Miscellaneous globals
|
||||
*
|
||||
* Miscellaneous globals
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
|
||||
ACPI_EXTERN UINT8 *Gbl_Gpe0EnableRegisterSave;
|
||||
ACPI_EXTERN UINT8 *Gbl_Gpe1EnableRegisterSave;
|
||||
ACPI_EXTERN ACPI_WALK_STATE *Gbl_BreakpointWalk;
|
||||
ACPI_EXTERN ACPI_GENERIC_STATE *Gbl_GenericStateCache;
|
||||
ACPI_EXTERN ACPI_GENERIC_OP *Gbl_ParseCache;
|
||||
ACPI_EXTERN ACPI_OBJECT_INTERNAL *Gbl_ObjectCache;
|
||||
ACPI_EXTERN ACPI_WALK_STATE *Gbl_WalkStateCache;
|
||||
ACPI_EXTERN ACPI_HANDLE Gbl_GlobalLockSemaphore;
|
||||
ACPI_EXTERN UINT8 *AcpiGbl_Gpe0EnableRegisterSave;
|
||||
ACPI_EXTERN UINT8 *AcpiGbl_Gpe1EnableRegisterSave;
|
||||
ACPI_EXTERN ACPI_WALK_STATE *AcpiGbl_BreakpointWalk;
|
||||
ACPI_EXTERN ACPI_GENERIC_STATE *AcpiGbl_GenericStateCache;
|
||||
ACPI_EXTERN ACPI_GENERIC_OP *AcpiGbl_ParseCache;
|
||||
ACPI_EXTERN ACPI_OBJECT_INTERNAL *AcpiGbl_ObjectCache;
|
||||
ACPI_EXTERN ACPI_WALK_STATE *AcpiGbl_WalkStateCache;
|
||||
ACPI_EXTERN ACPI_HANDLE AcpiGbl_GlobalLockSemaphore;
|
||||
|
||||
|
||||
ACPI_EXTERN UINT32 Gbl_GlobalLockThreadCount;
|
||||
ACPI_EXTERN UINT32 Gbl_RestoreAcpiChipset;
|
||||
ACPI_EXTERN UINT32 Gbl_OriginalMode;
|
||||
ACPI_EXTERN UINT32 Gbl_EdgeLevelSave;
|
||||
ACPI_EXTERN UINT32 Gbl_IrqEnableSave;
|
||||
ACPI_EXTERN UINT32 Gbl_RsdpOriginalLocation;
|
||||
ACPI_EXTERN UINT32 AcpiGbl_GlobalLockThreadCount;
|
||||
ACPI_EXTERN UINT32 AcpiGbl_RestoreAcpiChipset;
|
||||
ACPI_EXTERN UINT32 AcpiGbl_OriginalMode;
|
||||
ACPI_EXTERN UINT32 AcpiGbl_EdgeLevelSave;
|
||||
ACPI_EXTERN UINT32 AcpiGbl_IrqEnableSave;
|
||||
ACPI_EXTERN UINT32 AcpiGbl_RsdpOriginalLocation;
|
||||
|
||||
ACPI_EXTERN UINT32 Gbl_StateCacheRequests;
|
||||
ACPI_EXTERN UINT32 Gbl_StateCacheHits;
|
||||
ACPI_EXTERN UINT32 Gbl_ParseCacheRequests;
|
||||
ACPI_EXTERN UINT32 Gbl_ParseCacheHits;
|
||||
ACPI_EXTERN UINT32 Gbl_ObjectCacheRequests;
|
||||
ACPI_EXTERN UINT32 Gbl_ObjectCacheHits;
|
||||
ACPI_EXTERN UINT32 Gbl_WalkStateCacheRequests;
|
||||
ACPI_EXTERN UINT32 Gbl_WalkStateCacheHits;
|
||||
ACPI_EXTERN UINT32 Gbl_NsLookupCount;
|
||||
ACPI_EXTERN UINT32 Gbl_PsFindCount;
|
||||
ACPI_EXTERN UINT32 AcpiGbl_StateCacheRequests;
|
||||
ACPI_EXTERN UINT32 AcpiGbl_StateCacheHits;
|
||||
ACPI_EXTERN UINT32 AcpiGbl_ParseCacheRequests;
|
||||
ACPI_EXTERN UINT32 AcpiGbl_ParseCacheHits;
|
||||
ACPI_EXTERN UINT32 AcpiGbl_ObjectCacheRequests;
|
||||
ACPI_EXTERN UINT32 AcpiGbl_ObjectCacheHits;
|
||||
ACPI_EXTERN UINT32 AcpiGbl_WalkStateCacheRequests;
|
||||
ACPI_EXTERN UINT32 AcpiGbl_WalkStateCacheHits;
|
||||
ACPI_EXTERN UINT32 AcpiGbl_NsLookupCount;
|
||||
ACPI_EXTERN UINT32 AcpiGbl_PsFindCount;
|
||||
|
||||
|
||||
ACPI_EXTERN UINT16 Gbl_GenericStateCacheDepth;
|
||||
ACPI_EXTERN UINT16 Gbl_ParseCacheDepth;
|
||||
ACPI_EXTERN UINT16 Gbl_ObjectCacheDepth;
|
||||
ACPI_EXTERN UINT16 Gbl_WalkStateCacheDepth;
|
||||
ACPI_EXTERN UINT16 Gbl_Pm1EnableRegisterSave;
|
||||
ACPI_EXTERN UINT16 Gbl_NextTableOwnerId;
|
||||
ACPI_EXTERN UINT16 Gbl_NextMethodOwnerId;
|
||||
ACPI_EXTERN UINT16 AcpiGbl_GenericStateCacheDepth;
|
||||
ACPI_EXTERN UINT16 AcpiGbl_ParseCacheDepth;
|
||||
ACPI_EXTERN UINT16 AcpiGbl_ObjectCacheDepth;
|
||||
ACPI_EXTERN UINT16 AcpiGbl_WalkStateCacheDepth;
|
||||
ACPI_EXTERN UINT16 AcpiGbl_Pm1EnableRegisterSave;
|
||||
ACPI_EXTERN UINT16 AcpiGbl_NextTableOwnerId;
|
||||
ACPI_EXTERN UINT16 AcpiGbl_NextMethodOwnerId;
|
||||
|
||||
ACPI_EXTERN UINT8 Gbl_DebuggerConfiguration;
|
||||
ACPI_EXTERN BOOLEAN Gbl_GlobalLockAcquired;
|
||||
ACPI_EXTERN BOOLEAN Gbl_GlobalLockSet; /* TBD: OBSOLETE?? */
|
||||
ACPI_EXTERN BOOLEAN Gbl_StepToNextCall;
|
||||
ACPI_EXTERN BOOLEAN Gbl_AcpiHardwarePresent;
|
||||
ACPI_EXTERN UINT8 AcpiGbl_DebuggerConfiguration;
|
||||
ACPI_EXTERN BOOLEAN AcpiGbl_GlobalLockAcquired;
|
||||
ACPI_EXTERN BOOLEAN AcpiGbl_GlobalLockSet; /* TBD: [Restructure] OBSOLETE?? */
|
||||
ACPI_EXTERN BOOLEAN AcpiGbl_StepToNextCall;
|
||||
ACPI_EXTERN BOOLEAN AcpiGbl_AcpiHardwarePresent;
|
||||
|
||||
|
||||
ACPI_EXTERN ACPI_OBJECT_NotifyHandler Gbl_DrvNotify;
|
||||
ACPI_EXTERN ACPI_OBJECT_NotifyHandler Gbl_SysNotify;
|
||||
ACPI_EXTERN ACPI_OBJECT_NOTIFY_HANDLER AcpiGbl_DrvNotify;
|
||||
ACPI_EXTERN ACPI_OBJECT_NOTIFY_HANDLER AcpiGbl_SysNotify;
|
||||
|
||||
|
||||
extern BOOLEAN Gbl_Shutdown;
|
||||
extern UINT32 Gbl_SystemFlags;
|
||||
extern UINT32 Gbl_StartupFlags;
|
||||
|
||||
extern BOOLEAN AcpiGbl_Shutdown;
|
||||
extern UINT32 AcpiGbl_SystemFlags;
|
||||
extern UINT32 AcpiGbl_StartupFlags;
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
*
|
||||
* Namespace globals
|
||||
*
|
||||
* Namespace globals
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
#define NUM_NS_TYPES INTERNAL_TYPE_Invalid+1
|
||||
#define NUM_NS_TYPES INTERNAL_TYPE_INVALID+1
|
||||
#define NUM_PREDEFINED_NAMES 9
|
||||
|
||||
|
||||
ACPI_EXTERN NAME_TABLE_ENTRY Gbl_RootObjStruct;
|
||||
ACPI_EXTERN NAME_TABLE_ENTRY *Gbl_RootObject;
|
||||
ACPI_EXTERN NAME_TABLE_ENTRY AcpiGbl_RootObjStruct;
|
||||
ACPI_EXTERN NAME_TABLE_ENTRY *AcpiGbl_RootObject;
|
||||
|
||||
extern UINT8 Gbl_NsProperties[NUM_NS_TYPES];
|
||||
extern PREDEFINED_NAMES Gbl_PreDefinedNames [NUM_PREDEFINED_NAMES];
|
||||
extern UINT8 AcpiGbl_NsProperties[NUM_NS_TYPES];
|
||||
extern PREDEFINED_NAMES AcpiGbl_PreDefinedNames [NUM_PREDEFINED_NAMES];
|
||||
|
||||
|
||||
/* Used to detect memory leaks (DEBUG ONLY) */
|
||||
|
||||
#ifdef ACPI_DEBUG
|
||||
ACPI_EXTERN ALLOCATION_INFO *Gbl_HeadAllocPtr;
|
||||
ACPI_EXTERN ALLOCATION_INFO *Gbl_TailAllocPtr;
|
||||
ACPI_EXTERN ALLOCATION_INFO *AcpiGbl_HeadAllocPtr;
|
||||
ACPI_EXTERN ALLOCATION_INFO *AcpiGbl_TailAllocPtr;
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
*
|
||||
* Interpreter globals
|
||||
*
|
||||
* Interpreter globals
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
|
||||
ACPI_EXTERN UINT32 Gbl_WhenToParseMethods;
|
||||
ACPI_EXTERN ACPI_WALK_LIST *Gbl_CurrentWalkList;
|
||||
ACPI_EXTERN UINT32 AcpiGbl_WhenToParseMethods;
|
||||
ACPI_EXTERN ACPI_WALK_LIST *AcpiGbl_CurrentWalkList;
|
||||
|
||||
/* Base of AML block, and pointer to current location in it */
|
||||
|
||||
ACPI_EXTERN UINT8 *Gbl_PCodeBase;
|
||||
ACPI_EXTERN UINT8 *Gbl_PCode;
|
||||
ACPI_EXTERN UINT8 *AcpiGbl_PCodeBase;
|
||||
ACPI_EXTERN UINT8 *AcpiGbl_PCode;
|
||||
|
||||
/*
|
||||
/*
|
||||
* Length of AML block, and remaining length of current package.
|
||||
*/
|
||||
ACPI_EXTERN UINT32 Gbl_PCodeBlockLen;
|
||||
ACPI_EXTERN UINT32 Gbl_PCodeLen;
|
||||
ACPI_EXTERN UINT32 AcpiGbl_PCodeBlockLen;
|
||||
ACPI_EXTERN UINT32 AcpiGbl_PCodeLen;
|
||||
|
||||
ACPI_EXTERN UINT32 Gbl_BufSeq; /* Counts allocated Buffer descriptors */
|
||||
ACPI_EXTERN INT32 Gbl_NamedObjectErr; /* Indicate if inc_error should be called */
|
||||
ACPI_EXTERN UINT32 AcpiGbl_BufSeq; /* Counts allocated Buffer descriptors */
|
||||
ACPI_EXTERN INT32 AcpiGbl_NamedObjectErr; /* Indicate if inc_error should be called */
|
||||
|
||||
/*
|
||||
* Handle to the last method found - used during pass1 of load
|
||||
/*
|
||||
* Handle to the last method found - used during pass1 of load
|
||||
*/
|
||||
ACPI_EXTERN ACPI_HANDLE Gbl_LastMethod;
|
||||
ACPI_EXTERN ACPI_HANDLE AcpiGbl_LastMethod;
|
||||
|
||||
/*
|
||||
* Table of Address Space handlers
|
||||
*/
|
||||
|
||||
ACPI_EXTERN ADDRESS_SPACE_INFO Gbl_AddressSpaces[ACPI_NUM_ADDRESS_SPACES];
|
||||
ACPI_EXTERN ACPI_ADDRESS_SPACE_INFO AcpiGbl_AddressSpaces[ACPI_NUM_ADDRESS_SPACES];
|
||||
|
||||
|
||||
/* Control method single step flag */
|
||||
|
||||
ACPI_EXTERN UINT8 Gbl_CmSingleStep;
|
||||
|
||||
ACPI_EXTERN UINT8 AcpiGbl_CmSingleStep;
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
*
|
||||
* Parser globals
|
||||
*
|
||||
* Parser globals
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
ACPI_EXTERN ACPI_GENERIC_OP *Gbl_ParsedNamespaceRoot;
|
||||
|
||||
extern ACPI_OP_INFO Gbl_AmlOpInfo[];
|
||||
extern UINT8 Gbl_AmlOpInfoIndex[256];
|
||||
extern char *Gbl_ParserId;
|
||||
ACPI_EXTERN ACPI_GENERIC_OP *AcpiGbl_ParsedNamespaceRoot;
|
||||
|
||||
extern ACPI_OP_INFO AcpiGbl_AmlOpInfo[];
|
||||
extern UINT8 AcpiGbl_AmlOpInfoIndex[256];
|
||||
extern char *AcpiGbl_ParserId;
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
*
|
||||
* Event globals
|
||||
*
|
||||
* AcpiEvent globals
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
ACPI_EXTERN FIXED_EVENT_INFO Gbl_FixedEventHandlers[NUM_FIXED_EVENTS];
|
||||
ACPI_EXTERN ACPI_FIXED_EVENT_INFO AcpiGbl_FixedEventHandlers[NUM_FIXED_EVENTS];
|
||||
|
||||
ACPI_EXTERN ACPI_HANDLE Gbl_GpeObjHandle;
|
||||
ACPI_EXTERN UINT32 Gbl_GpeRegisterCount;
|
||||
ACPI_EXTERN GPE_REGISTERS *Gbl_GpeRegisters;
|
||||
ACPI_EXTERN GPE_LEVEL_INFO *Gbl_GpeInfo;
|
||||
ACPI_EXTERN ACPI_HANDLE AcpiGbl_GpeObjHandle;
|
||||
ACPI_EXTERN UINT32 AcpiGbl_GpeRegisterCount;
|
||||
ACPI_EXTERN ACPI_GPE_REGISTERS *AcpiGbl_GpeRegisters;
|
||||
ACPI_EXTERN ACPI_GPE_LEVEL_INFO *AcpiGbl_GpeInfo;
|
||||
|
||||
/*
|
||||
/*
|
||||
* Gpe validation and translation table
|
||||
* Indexed by the GPE number, returns GPE_INVALID if the GPE is not supported.
|
||||
* Otherwise, returns a valid index into the global GPE table.
|
||||
@ -355,48 +350,43 @@ ACPI_EXTERN GPE_LEVEL_INFO *Gbl_GpeInfo;
|
||||
* This table is needed because the GPE numbers supported by block 1 do not
|
||||
* have to be contiguous with the GPE numbers supported by block 0.
|
||||
*/
|
||||
ACPI_EXTERN UINT8 Gbl_GpeValid [NUM_GPE];
|
||||
ACPI_EXTERN UINT8 AcpiGbl_GpeValid [NUM_GPE];
|
||||
|
||||
/* Event counter for debug only */
|
||||
/* AcpiEvent counter for debug only */
|
||||
|
||||
#ifdef ACPI_DEBUG
|
||||
ACPI_EXTERN UINT32 Gbl_EventCount[NUM_FIXED_EVENTS];
|
||||
ACPI_EXTERN UINT32 AcpiGbl_EventCount[NUM_FIXED_EVENTS];
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
*
|
||||
* Debugger globals
|
||||
*
|
||||
* Debugger globals
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
ACPI_EXTERN BOOLEAN Gbl_MethodExecuting;
|
||||
ACPI_EXTERN BOOLEAN Gbl_DbTerminateThreads;
|
||||
|
||||
ACPI_EXTERN BOOLEAN AcpiGbl_MethodExecuting;
|
||||
ACPI_EXTERN BOOLEAN AcpiGbl_DbTerminateThreads;
|
||||
|
||||
|
||||
/* Memory allocation metrics - Debug Only! */
|
||||
|
||||
#ifdef ACPI_DEBUG
|
||||
|
||||
ACPI_EXTERN UINT32 Gbl_CurrentAllocSize;
|
||||
ACPI_EXTERN UINT32 Gbl_CurrentAllocCount;
|
||||
ACPI_EXTERN UINT32 Gbl_RunningAllocSize;
|
||||
ACPI_EXTERN UINT32 Gbl_RunningAllocCount;
|
||||
ACPI_EXTERN UINT32 Gbl_MaxConcurrentAllocSize;
|
||||
ACPI_EXTERN UINT32 Gbl_MaxConcurrentAllocCount;
|
||||
ACPI_EXTERN UINT32 Gbl_CurrentObjectCount;
|
||||
ACPI_EXTERN UINT32 Gbl_CurrentObjectSize;
|
||||
ACPI_EXTERN UINT32 Gbl_MaxConcurrentObjectCount;
|
||||
ACPI_EXTERN UINT32 Gbl_MaxConcurrentObjectSize;
|
||||
ACPI_EXTERN UINT32 Gbl_RunningObjectCount;
|
||||
ACPI_EXTERN UINT32 Gbl_RunningObjectSize;
|
||||
ACPI_EXTERN UINT32 AcpiGbl_CurrentAllocSize;
|
||||
ACPI_EXTERN UINT32 AcpiGbl_CurrentAllocCount;
|
||||
ACPI_EXTERN UINT32 AcpiGbl_RunningAllocSize;
|
||||
ACPI_EXTERN UINT32 AcpiGbl_RunningAllocCount;
|
||||
ACPI_EXTERN UINT32 AcpiGbl_MaxConcurrentAllocSize;
|
||||
ACPI_EXTERN UINT32 AcpiGbl_MaxConcurrentAllocCount;
|
||||
ACPI_EXTERN UINT32 AcpiGbl_CurrentObjectCount;
|
||||
ACPI_EXTERN UINT32 AcpiGbl_CurrentObjectSize;
|
||||
ACPI_EXTERN UINT32 AcpiGbl_MaxConcurrentObjectCount;
|
||||
ACPI_EXTERN UINT32 AcpiGbl_MaxConcurrentObjectSize;
|
||||
ACPI_EXTERN UINT32 AcpiGbl_RunningObjectCount;
|
||||
ACPI_EXTERN UINT32 AcpiGbl_RunningObjectSize;
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif /* __GLOBALS_H__ */
|
||||
|
Loading…
Reference in New Issue
Block a user