1 /******************************************************************************
3 * Name: acevents.h - Event subcomponent prototypes and defines
5 *****************************************************************************/
8 * Copyright (C) 2000 - 2011, Intel Corp.
11 * Redistribution and use in source and binary forms, with or without
12 * modification, are permitted provided that the following conditions
14 * 1. Redistributions of source code must retain the above copyright
15 * notice, this list of conditions, and the following disclaimer,
16 * without modification.
17 * 2. Redistributions in binary form must reproduce at minimum a disclaimer
18 * substantially similar to the "NO WARRANTY" disclaimer below
19 * ("Disclaimer") and any redistribution must be conditioned upon
20 * including a substantially similar Disclaimer requirement for further
21 * binary redistribution.
22 * 3. Neither the names of the above-listed copyright holders nor the names
23 * of any contributors may be used to endorse or promote products derived
24 * from this software without specific prior written permission.
26 * Alternatively, this software may be distributed under the terms of the
27 * GNU General Public License ("GPL") version 2 as published by the Free
28 * Software Foundation.
31 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
32 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
33 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR
34 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
35 * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
36 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
37 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
38 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
39 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
40 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
41 * POSSIBILITY OF SUCH DAMAGES.
44 #ifndef __ACEVENTS_H__
45 #define __ACEVENTS_H__
52 AcpiEvInitializeEvents (
56 AcpiEvInstallXruptHandlers (
60 AcpiEvFixedEventDetect (
68 AcpiEvIsNotifyObject (
69 ACPI_NAMESPACE_NODE *Node);
72 AcpiEvGetGpeNumberIndex (
76 AcpiEvQueueNotifyRequest (
77 ACPI_NAMESPACE_NODE *Node,
82 * evglock - Global Lock support
85 AcpiEvInitGlobalLockHandler (
89 AcpiEvAcquireGlobalLock(
93 AcpiEvReleaseGlobalLock(
97 AcpiEvRemoveGlobalLockHandler (
102 * evgpe - Low-level GPE support
106 ACPI_GPE_XRUPT_INFO *GpeXruptList);
109 AcpiEvUpdateGpeEnableMask (
110 ACPI_GPE_EVENT_INFO *GpeEventInfo);
114 ACPI_GPE_EVENT_INFO *GpeEventInfo);
117 AcpiEvAddGpeReference (
118 ACPI_GPE_EVENT_INFO *GpeEventInfo);
121 AcpiEvRemoveGpeReference (
122 ACPI_GPE_EVENT_INFO *GpeEventInfo);
124 ACPI_GPE_EVENT_INFO *
125 AcpiEvGetGpeEventInfo (
126 ACPI_HANDLE GpeDevice,
129 ACPI_GPE_EVENT_INFO *
130 AcpiEvLowGetGpeInfo (
132 ACPI_GPE_BLOCK_INFO *GpeBlock);
136 ACPI_GPE_EVENT_INFO *GpeEventInfo);
140 * evgpeblk - Upper-level GPE block support
143 AcpiEvCreateGpeBlock (
144 ACPI_NAMESPACE_NODE *GpeDevice,
145 ACPI_GENERIC_ADDRESS *GpeBlockAddress,
146 UINT32 RegisterCount,
147 UINT8 GpeBlockBaseNumber,
148 UINT32 InterruptNumber,
149 ACPI_GPE_BLOCK_INFO **ReturnGpeBlock);
152 AcpiEvInitializeGpeBlock (
153 ACPI_GPE_XRUPT_INFO *GpeXruptInfo,
154 ACPI_GPE_BLOCK_INFO *GpeBlock,
158 AcpiEvDeleteGpeBlock (
159 ACPI_GPE_BLOCK_INFO *GpeBlock);
163 ACPI_NAMESPACE_NODE *GpeDevice,
164 ACPI_GPE_EVENT_INFO *GpeEventInfo,
168 * evgpeinit - GPE initialization and update
171 AcpiEvGpeInitialize (
176 ACPI_OWNER_ID TableOwnerId);
179 AcpiEvMatchGpeMethod (
180 ACPI_HANDLE ObjHandle,
186 * evgpeutil - GPE utilities
190 ACPI_GPE_CALLBACK GpeWalkCallback,
194 AcpiEvValidGpeEvent (
195 ACPI_GPE_EVENT_INFO *GpeEventInfo);
199 ACPI_GPE_XRUPT_INFO *GpeXruptInfo,
200 ACPI_GPE_BLOCK_INFO *GpeBlock,
203 ACPI_GPE_XRUPT_INFO *
204 AcpiEvGetGpeXruptBlock (
205 UINT32 InterruptNumber);
208 AcpiEvDeleteGpeXrupt (
209 ACPI_GPE_XRUPT_INFO *GpeXrupt);
212 AcpiEvDeleteGpeHandlers (
213 ACPI_GPE_XRUPT_INFO *GpeXruptInfo,
214 ACPI_GPE_BLOCK_INFO *GpeBlock,
219 * evregion - Address Space handling
222 AcpiEvInstallRegionHandlers (
226 AcpiEvInitializeOpRegions (
230 AcpiEvAddressSpaceDispatch (
231 ACPI_OPERAND_OBJECT *RegionObj,
239 ACPI_OPERAND_OBJECT *HandlerObj,
240 ACPI_OPERAND_OBJECT *RegionObj,
241 BOOLEAN AcpiNsIsLocked);
245 ACPI_OPERAND_OBJECT *RegionObj,
246 BOOLEAN AcpiNsIsLocked);
249 AcpiEvInstallSpaceHandler (
250 ACPI_NAMESPACE_NODE *Node,
251 ACPI_ADR_SPACE_TYPE SpaceId,
252 ACPI_ADR_SPACE_HANDLER Handler,
253 ACPI_ADR_SPACE_SETUP Setup,
257 AcpiEvExecuteRegMethods (
258 ACPI_NAMESPACE_NODE *Node,
259 ACPI_ADR_SPACE_TYPE SpaceId);
262 AcpiEvExecuteRegMethod (
263 ACPI_OPERAND_OBJECT *RegionObj,
268 * evregini - Region initialization and setup
271 AcpiEvSystemMemoryRegionSetup (
274 void *HandlerContext,
275 void **RegionContext);
278 AcpiEvIoSpaceRegionSetup (
281 void *HandlerContext,
282 void **RegionContext);
285 AcpiEvPciConfigRegionSetup (
288 void *HandlerContext,
289 void **RegionContext);
292 AcpiEvCmosRegionSetup (
295 void *HandlerContext,
296 void **RegionContext);
299 AcpiEvPciBarRegionSetup (
302 void *HandlerContext,
303 void **RegionContext);
306 AcpiEvDefaultRegionSetup (
309 void *HandlerContext,
310 void **RegionContext);
313 AcpiEvInitializeRegion (
314 ACPI_OPERAND_OBJECT *RegionObj,
315 BOOLEAN AcpiNsLocked);
319 * evsci - SCI (System Control Interrupt) handling/dispatch
321 UINT32 ACPI_SYSTEM_XFACE
322 AcpiEvGpeXruptHandler (
326 AcpiEvInstallSciHandler (
330 AcpiEvRemoveSciHandler (
334 AcpiEvInitializeSCI (
342 #endif /* __ACEVENTS_H__ */