2000-10-28 05:01:06 +00:00
|
|
|
/******************************************************************************
|
|
|
|
*
|
|
|
|
* Name: acevents.h - Event subcomponent prototypes and defines
|
|
|
|
*
|
|
|
|
*****************************************************************************/
|
|
|
|
|
2011-01-13 16:12:34 +00:00
|
|
|
/*
|
2015-02-05 00:09:52 +00:00
|
|
|
* Copyright (C) 2000 - 2015, Intel Corp.
|
2000-12-21 06:56:46 +00:00
|
|
|
* All rights reserved.
|
2000-10-28 05:01:06 +00:00
|
|
|
*
|
2011-01-13 16:12:34 +00:00
|
|
|
* Redistribution and use in source and binary forms, with or without
|
|
|
|
* modification, are permitted provided that the following conditions
|
|
|
|
* are met:
|
|
|
|
* 1. Redistributions of source code must retain the above copyright
|
|
|
|
* notice, this list of conditions, and the following disclaimer,
|
|
|
|
* without modification.
|
|
|
|
* 2. Redistributions in binary form must reproduce at minimum a disclaimer
|
|
|
|
* substantially similar to the "NO WARRANTY" disclaimer below
|
|
|
|
* ("Disclaimer") and any redistribution must be conditioned upon
|
|
|
|
* including a substantially similar Disclaimer requirement for further
|
|
|
|
* binary redistribution.
|
|
|
|
* 3. Neither the names of the above-listed copyright holders nor the names
|
|
|
|
* of any contributors may be used to endorse or promote products derived
|
|
|
|
* from this software without specific prior written permission.
|
|
|
|
*
|
|
|
|
* Alternatively, this software may be distributed under the terms of the
|
|
|
|
* GNU General Public License ("GPL") version 2 as published by the Free
|
|
|
|
* Software Foundation.
|
|
|
|
*
|
|
|
|
* NO WARRANTY
|
|
|
|
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
|
|
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
|
|
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR
|
|
|
|
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
|
|
* HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
|
|
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
|
|
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
|
|
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
|
|
|
|
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
|
|
|
|
* IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
|
|
* POSSIBILITY OF SUCH DAMAGES.
|
|
|
|
*/
|
2000-10-28 05:01:06 +00:00
|
|
|
|
|
|
|
#ifndef __ACEVENTS_H__
|
|
|
|
#define __ACEVENTS_H__
|
|
|
|
|
|
|
|
|
2005-11-01 22:11:18 +00:00
|
|
|
/*
|
|
|
|
* evevent
|
|
|
|
*/
|
2000-10-28 05:01:06 +00:00
|
|
|
ACPI_STATUS
|
2004-05-25 02:34:44 +00:00
|
|
|
AcpiEvInitializeEvents (
|
2000-10-28 05:01:06 +00:00
|
|
|
void);
|
|
|
|
|
2002-02-23 05:10:40 +00:00
|
|
|
ACPI_STATUS
|
2004-05-25 02:34:44 +00:00
|
|
|
AcpiEvInstallXruptHandlers (
|
2002-02-23 05:10:40 +00:00
|
|
|
void);
|
|
|
|
|
2000-10-28 05:01:06 +00:00
|
|
|
UINT32
|
|
|
|
AcpiEvFixedEventDetect (
|
|
|
|
void);
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
2005-11-01 22:11:18 +00:00
|
|
|
* evmisc
|
2000-10-28 05:01:06 +00:00
|
|
|
*/
|
2002-06-30 17:50:46 +00:00
|
|
|
BOOLEAN
|
|
|
|
AcpiEvIsNotifyObject (
|
|
|
|
ACPI_NAMESPACE_NODE *Node);
|
|
|
|
|
2011-04-13 18:18:52 +00:00
|
|
|
UINT32
|
|
|
|
AcpiEvGetGpeNumberIndex (
|
|
|
|
UINT32 GpeNumber);
|
|
|
|
|
|
|
|
ACPI_STATUS
|
|
|
|
AcpiEvQueueNotifyRequest (
|
|
|
|
ACPI_NAMESPACE_NODE *Node,
|
|
|
|
UINT32 NotifyValue);
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* evglock - Global Lock support
|
|
|
|
*/
|
|
|
|
ACPI_STATUS
|
|
|
|
AcpiEvInitGlobalLockHandler (
|
|
|
|
void);
|
|
|
|
|
2012-02-16 00:24:10 +00:00
|
|
|
ACPI_HW_DEPENDENT_RETURN_OK (
|
2000-10-28 05:01:06 +00:00
|
|
|
ACPI_STATUS
|
|
|
|
AcpiEvAcquireGlobalLock(
|
2012-02-16 00:24:10 +00:00
|
|
|
UINT16 Timeout))
|
2000-10-28 05:01:06 +00:00
|
|
|
|
2012-02-16 00:24:10 +00:00
|
|
|
ACPI_HW_DEPENDENT_RETURN_OK (
|
2002-07-09 17:51:31 +00:00
|
|
|
ACPI_STATUS
|
2000-10-28 05:01:06 +00:00
|
|
|
AcpiEvReleaseGlobalLock(
|
2012-02-16 00:24:10 +00:00
|
|
|
void))
|
2000-10-28 05:01:06 +00:00
|
|
|
|
|
|
|
ACPI_STATUS
|
2011-04-13 18:18:52 +00:00
|
|
|
AcpiEvRemoveGlobalLockHandler (
|
2000-10-28 05:01:06 +00:00
|
|
|
void);
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
2010-04-28 21:50:57 +00:00
|
|
|
* evgpe - Low-level GPE support
|
2000-10-28 05:01:06 +00:00
|
|
|
*/
|
2010-04-28 21:50:57 +00:00
|
|
|
UINT32
|
|
|
|
AcpiEvGpeDetect (
|
|
|
|
ACPI_GPE_XRUPT_INFO *GpeXruptList);
|
|
|
|
|
2004-05-25 02:34:44 +00:00
|
|
|
ACPI_STATUS
|
2010-07-06 17:18:05 +00:00
|
|
|
AcpiEvUpdateGpeEnableMask (
|
2010-04-02 16:48:51 +00:00
|
|
|
ACPI_GPE_EVENT_INFO *GpeEventInfo);
|
2004-05-25 02:34:44 +00:00
|
|
|
|
|
|
|
ACPI_STATUS
|
|
|
|
AcpiEvEnableGpe (
|
2010-04-02 16:48:51 +00:00
|
|
|
ACPI_GPE_EVENT_INFO *GpeEventInfo);
|
2004-05-25 02:34:44 +00:00
|
|
|
|
2010-12-09 20:04:14 +00:00
|
|
|
ACPI_STATUS
|
|
|
|
AcpiEvAddGpeReference (
|
|
|
|
ACPI_GPE_EVENT_INFO *GpeEventInfo);
|
|
|
|
|
|
|
|
ACPI_STATUS
|
|
|
|
AcpiEvRemoveGpeReference (
|
|
|
|
ACPI_GPE_EVENT_INFO *GpeEventInfo);
|
|
|
|
|
2003-04-29 18:39:29 +00:00
|
|
|
ACPI_GPE_EVENT_INFO *
|
|
|
|
AcpiEvGetGpeEventInfo (
|
2003-07-13 22:44:13 +00:00
|
|
|
ACPI_HANDLE GpeDevice,
|
2003-04-29 18:39:29 +00:00
|
|
|
UINT32 GpeNumber);
|
2000-10-28 05:01:06 +00:00
|
|
|
|
2010-04-02 16:48:51 +00:00
|
|
|
ACPI_GPE_EVENT_INFO *
|
|
|
|
AcpiEvLowGetGpeInfo (
|
|
|
|
UINT32 GpeNumber,
|
|
|
|
ACPI_GPE_BLOCK_INFO *GpeBlock);
|
|
|
|
|
2010-12-09 20:04:14 +00:00
|
|
|
ACPI_STATUS
|
|
|
|
AcpiEvFinishGpe (
|
|
|
|
ACPI_GPE_EVENT_INFO *GpeEventInfo);
|
|
|
|
|
2005-11-01 22:11:18 +00:00
|
|
|
|
|
|
|
/*
|
2010-04-28 21:50:57 +00:00
|
|
|
* evgpeblk - Upper-level GPE block support
|
2005-11-01 22:11:18 +00:00
|
|
|
*/
|
2003-07-13 22:44:13 +00:00
|
|
|
ACPI_STATUS
|
|
|
|
AcpiEvCreateGpeBlock (
|
|
|
|
ACPI_NAMESPACE_NODE *GpeDevice,
|
2014-04-25 16:53:42 +00:00
|
|
|
UINT64 Address,
|
|
|
|
UINT8 SpaceId,
|
2003-07-13 22:44:13 +00:00
|
|
|
UINT32 RegisterCount,
|
2014-04-25 16:53:42 +00:00
|
|
|
UINT16 GpeBlockBaseNumber,
|
2005-11-01 22:11:18 +00:00
|
|
|
UINT32 InterruptNumber,
|
2003-07-13 22:44:13 +00:00
|
|
|
ACPI_GPE_BLOCK_INFO **ReturnGpeBlock);
|
|
|
|
|
2007-03-22 17:24:05 +00:00
|
|
|
ACPI_STATUS
|
|
|
|
AcpiEvInitializeGpeBlock (
|
2010-12-09 20:04:14 +00:00
|
|
|
ACPI_GPE_XRUPT_INFO *GpeXruptInfo,
|
|
|
|
ACPI_GPE_BLOCK_INFO *GpeBlock,
|
|
|
|
void *Context);
|
2007-03-22 17:24:05 +00:00
|
|
|
|
2012-02-16 00:24:10 +00:00
|
|
|
ACPI_HW_DEPENDENT_RETURN_OK (
|
2003-07-13 22:44:13 +00:00
|
|
|
ACPI_STATUS
|
|
|
|
AcpiEvDeleteGpeBlock (
|
2012-02-16 00:24:10 +00:00
|
|
|
ACPI_GPE_BLOCK_INFO *GpeBlock))
|
2003-07-13 22:44:13 +00:00
|
|
|
|
2000-10-28 05:01:06 +00:00
|
|
|
UINT32
|
|
|
|
AcpiEvGpeDispatch (
|
2010-12-09 20:04:14 +00:00
|
|
|
ACPI_NAMESPACE_NODE *GpeDevice,
|
2003-07-13 22:44:13 +00:00
|
|
|
ACPI_GPE_EVENT_INFO *GpeEventInfo,
|
|
|
|
UINT32 GpeNumber);
|
2000-10-28 05:01:06 +00:00
|
|
|
|
2013-01-02 19:01:21 +00:00
|
|
|
|
2010-04-28 21:50:57 +00:00
|
|
|
/*
|
|
|
|
* evgpeinit - GPE initialization and update
|
|
|
|
*/
|
2005-11-01 22:11:18 +00:00
|
|
|
ACPI_STATUS
|
|
|
|
AcpiEvGpeInitialize (
|
|
|
|
void);
|
|
|
|
|
2012-02-16 00:24:10 +00:00
|
|
|
ACPI_HW_DEPENDENT_RETURN_VOID (
|
2010-04-28 21:50:57 +00:00
|
|
|
void
|
|
|
|
AcpiEvUpdateGpes (
|
2012-02-16 00:24:10 +00:00
|
|
|
ACPI_OWNER_ID TableOwnerId))
|
2010-04-28 21:50:57 +00:00
|
|
|
|
|
|
|
ACPI_STATUS
|
|
|
|
AcpiEvMatchGpeMethod (
|
|
|
|
ACPI_HANDLE ObjHandle,
|
|
|
|
UINT32 Level,
|
|
|
|
void *Context,
|
|
|
|
void **ReturnValue);
|
|
|
|
|
2013-01-02 19:01:21 +00:00
|
|
|
|
2010-04-28 21:50:57 +00:00
|
|
|
/*
|
|
|
|
* evgpeutil - GPE utilities
|
|
|
|
*/
|
|
|
|
ACPI_STATUS
|
|
|
|
AcpiEvWalkGpeList (
|
|
|
|
ACPI_GPE_CALLBACK GpeWalkCallback,
|
|
|
|
void *Context);
|
|
|
|
|
2010-12-09 20:04:14 +00:00
|
|
|
ACPI_STATUS
|
|
|
|
AcpiEvGetGpeDevice (
|
|
|
|
ACPI_GPE_XRUPT_INFO *GpeXruptInfo,
|
|
|
|
ACPI_GPE_BLOCK_INFO *GpeBlock,
|
|
|
|
void *Context);
|
|
|
|
|
2013-12-19 05:51:01 +00:00
|
|
|
ACPI_STATUS
|
2010-04-28 21:50:57 +00:00
|
|
|
AcpiEvGetGpeXruptBlock (
|
2013-12-19 05:51:01 +00:00
|
|
|
UINT32 InterruptNumber,
|
|
|
|
ACPI_GPE_XRUPT_INFO **GpeXruptBlock);
|
2010-04-28 21:50:57 +00:00
|
|
|
|
|
|
|
ACPI_STATUS
|
|
|
|
AcpiEvDeleteGpeXrupt (
|
|
|
|
ACPI_GPE_XRUPT_INFO *GpeXrupt);
|
|
|
|
|
|
|
|
ACPI_STATUS
|
|
|
|
AcpiEvDeleteGpeHandlers (
|
|
|
|
ACPI_GPE_XRUPT_INFO *GpeXruptInfo,
|
|
|
|
ACPI_GPE_BLOCK_INFO *GpeBlock,
|
|
|
|
void *Context);
|
|
|
|
|
2005-11-01 22:11:18 +00:00
|
|
|
|
2000-10-28 05:01:06 +00:00
|
|
|
/*
|
2013-01-02 19:01:21 +00:00
|
|
|
* evhandler - Address space handling
|
2000-10-28 05:01:06 +00:00
|
|
|
*/
|
2015-12-18 18:35:46 +00:00
|
|
|
ACPI_OPERAND_OBJECT *
|
|
|
|
AcpiEvFindRegionHandler (
|
|
|
|
ACPI_ADR_SPACE_TYPE SpaceId,
|
|
|
|
ACPI_OPERAND_OBJECT *HandlerObj);
|
|
|
|
|
2013-01-02 19:01:21 +00:00
|
|
|
BOOLEAN
|
|
|
|
AcpiEvHasDefaultHandler (
|
|
|
|
ACPI_NAMESPACE_NODE *Node,
|
|
|
|
ACPI_ADR_SPACE_TYPE SpaceId);
|
|
|
|
|
2000-10-28 05:01:06 +00:00
|
|
|
ACPI_STATUS
|
2004-05-25 02:34:44 +00:00
|
|
|
AcpiEvInstallRegionHandlers (
|
|
|
|
void);
|
|
|
|
|
|
|
|
ACPI_STATUS
|
2013-01-02 19:01:21 +00:00
|
|
|
AcpiEvInstallSpaceHandler (
|
|
|
|
ACPI_NAMESPACE_NODE *Node,
|
|
|
|
ACPI_ADR_SPACE_TYPE SpaceId,
|
|
|
|
ACPI_ADR_SPACE_HANDLER Handler,
|
|
|
|
ACPI_ADR_SPACE_SETUP Setup,
|
|
|
|
void *Context);
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* evregion - Operation region support
|
|
|
|
*/
|
|
|
|
ACPI_STATUS
|
2004-05-25 02:34:44 +00:00
|
|
|
AcpiEvInitializeOpRegions (
|
2000-10-28 05:01:06 +00:00
|
|
|
void);
|
|
|
|
|
|
|
|
ACPI_STATUS
|
|
|
|
AcpiEvAddressSpaceDispatch (
|
2011-11-23 18:05:37 +00:00
|
|
|
ACPI_OPERAND_OBJECT *RegionObj,
|
|
|
|
ACPI_OPERAND_OBJECT *FieldObj,
|
2000-10-28 05:01:06 +00:00
|
|
|
UINT32 Function,
|
2009-06-01 21:02:40 +00:00
|
|
|
UINT32 RegionOffset,
|
2000-10-28 05:01:06 +00:00
|
|
|
UINT32 BitWidth,
|
2010-01-21 20:56:18 +00:00
|
|
|
UINT64 *Value);
|
2000-10-28 05:01:06 +00:00
|
|
|
|
|
|
|
ACPI_STATUS
|
2002-07-09 17:51:31 +00:00
|
|
|
AcpiEvAttachRegion (
|
2000-10-28 05:01:06 +00:00
|
|
|
ACPI_OPERAND_OBJECT *HandlerObj,
|
|
|
|
ACPI_OPERAND_OBJECT *RegionObj,
|
|
|
|
BOOLEAN AcpiNsIsLocked);
|
|
|
|
|
2002-07-09 17:51:31 +00:00
|
|
|
void
|
|
|
|
AcpiEvDetachRegion (
|
2015-12-18 18:35:46 +00:00
|
|
|
ACPI_OPERAND_OBJECT *RegionObj,
|
2002-07-09 17:51:31 +00:00
|
|
|
BOOLEAN AcpiNsIsLocked);
|
|
|
|
|
2015-12-18 18:35:46 +00:00
|
|
|
void
|
|
|
|
AcpiEvAssociateRegMethod (
|
|
|
|
ACPI_OPERAND_OBJECT *RegionObj);
|
|
|
|
|
|
|
|
void
|
2004-05-25 02:34:44 +00:00
|
|
|
AcpiEvExecuteRegMethods (
|
|
|
|
ACPI_NAMESPACE_NODE *Node,
|
2015-12-18 18:35:46 +00:00
|
|
|
ACPI_ADR_SPACE_TYPE SpaceId,
|
|
|
|
UINT32 Function);
|
2004-05-25 02:34:44 +00:00
|
|
|
|
2003-12-09 02:45:16 +00:00
|
|
|
ACPI_STATUS
|
|
|
|
AcpiEvExecuteRegMethod (
|
2015-12-18 18:35:46 +00:00
|
|
|
ACPI_OPERAND_OBJECT *RegionObj,
|
2003-12-09 02:45:16 +00:00
|
|
|
UINT32 Function);
|
|
|
|
|
2000-10-28 05:01:06 +00:00
|
|
|
|
|
|
|
/*
|
2005-11-01 22:11:18 +00:00
|
|
|
* evregini - Region initialization and setup
|
2000-10-28 05:01:06 +00:00
|
|
|
*/
|
|
|
|
ACPI_STATUS
|
|
|
|
AcpiEvSystemMemoryRegionSetup (
|
|
|
|
ACPI_HANDLE Handle,
|
|
|
|
UINT32 Function,
|
|
|
|
void *HandlerContext,
|
|
|
|
void **RegionContext);
|
|
|
|
|
|
|
|
ACPI_STATUS
|
|
|
|
AcpiEvIoSpaceRegionSetup (
|
|
|
|
ACPI_HANDLE Handle,
|
|
|
|
UINT32 Function,
|
|
|
|
void *HandlerContext,
|
|
|
|
void **RegionContext);
|
|
|
|
|
|
|
|
ACPI_STATUS
|
|
|
|
AcpiEvPciConfigRegionSetup (
|
|
|
|
ACPI_HANDLE Handle,
|
|
|
|
UINT32 Function,
|
|
|
|
void *HandlerContext,
|
|
|
|
void **RegionContext);
|
|
|
|
|
2001-10-04 23:12:13 +00:00
|
|
|
ACPI_STATUS
|
|
|
|
AcpiEvCmosRegionSetup (
|
|
|
|
ACPI_HANDLE Handle,
|
|
|
|
UINT32 Function,
|
|
|
|
void *HandlerContext,
|
|
|
|
void **RegionContext);
|
|
|
|
|
|
|
|
ACPI_STATUS
|
|
|
|
AcpiEvPciBarRegionSetup (
|
|
|
|
ACPI_HANDLE Handle,
|
|
|
|
UINT32 Function,
|
|
|
|
void *HandlerContext,
|
|
|
|
void **RegionContext);
|
|
|
|
|
2000-10-28 05:01:06 +00:00
|
|
|
ACPI_STATUS
|
|
|
|
AcpiEvDefaultRegionSetup (
|
|
|
|
ACPI_HANDLE Handle,
|
|
|
|
UINT32 Function,
|
|
|
|
void *HandlerContext,
|
|
|
|
void **RegionContext);
|
|
|
|
|
|
|
|
ACPI_STATUS
|
|
|
|
AcpiEvInitializeRegion (
|
|
|
|
ACPI_OPERAND_OBJECT *RegionObj,
|
|
|
|
BOOLEAN AcpiNsLocked);
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
2005-11-01 22:11:18 +00:00
|
|
|
* evsci - SCI (System Control Interrupt) handling/dispatch
|
2000-10-28 05:01:06 +00:00
|
|
|
*/
|
2003-07-13 22:44:13 +00:00
|
|
|
UINT32 ACPI_SYSTEM_XFACE
|
|
|
|
AcpiEvGpeXruptHandler (
|
|
|
|
void *Context);
|
|
|
|
|
2013-08-23 18:01:58 +00:00
|
|
|
UINT32
|
|
|
|
AcpiEvSciDispatch (
|
|
|
|
void);
|
|
|
|
|
2000-10-28 05:01:06 +00:00
|
|
|
UINT32
|
|
|
|
AcpiEvInstallSciHandler (
|
|
|
|
void);
|
|
|
|
|
|
|
|
ACPI_STATUS
|
2013-08-23 18:01:58 +00:00
|
|
|
AcpiEvRemoveAllSciHandlers (
|
2000-10-28 05:01:06 +00:00
|
|
|
void);
|
|
|
|
|
2012-02-16 00:24:10 +00:00
|
|
|
ACPI_HW_DEPENDENT_RETURN_VOID (
|
2000-10-28 05:01:06 +00:00
|
|
|
void
|
|
|
|
AcpiEvTerminate (
|
2012-02-16 00:24:10 +00:00
|
|
|
void))
|
2000-10-28 05:01:06 +00:00
|
|
|
|
|
|
|
#endif /* __ACEVENTS_H__ */
|