1 /******************************************************************************
3 * Name: acevents.h - Event subcomponent prototypes and defines
5 *****************************************************************************/
8 * Copyright (C) 2000 - 2014, 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__
48 #pragma pack(push) /* Set default struct packing */
54 AcpiEvInitializeEvents (
58 AcpiEvInstallXruptHandlers (
62 AcpiEvFixedEventDetect (
70 AcpiEvIsNotifyObject (
71 ACPI_NAMESPACE_NODE *Node);
74 AcpiEvGetGpeNumberIndex (
78 AcpiEvQueueNotifyRequest (
79 ACPI_NAMESPACE_NODE *Node,
84 * evglock - Global Lock support
87 AcpiEvInitGlobalLockHandler (
90 ACPI_HW_DEPENDENT_RETURN_OK (
92 AcpiEvAcquireGlobalLock(
95 ACPI_HW_DEPENDENT_RETURN_OK (
97 AcpiEvReleaseGlobalLock(
101 AcpiEvRemoveGlobalLockHandler (
106 * evgpe - Low-level GPE support
110 ACPI_GPE_XRUPT_INFO *GpeXruptList);
113 AcpiEvUpdateGpeEnableMask (
114 ACPI_GPE_EVENT_INFO *GpeEventInfo);
118 ACPI_GPE_EVENT_INFO *GpeEventInfo);
121 AcpiEvAddGpeReference (
122 ACPI_GPE_EVENT_INFO *GpeEventInfo);
125 AcpiEvRemoveGpeReference (
126 ACPI_GPE_EVENT_INFO *GpeEventInfo);
128 ACPI_GPE_EVENT_INFO *
129 AcpiEvGetGpeEventInfo (
130 ACPI_HANDLE GpeDevice,
133 ACPI_GPE_EVENT_INFO *
134 AcpiEvLowGetGpeInfo (
136 ACPI_GPE_BLOCK_INFO *GpeBlock);
140 ACPI_GPE_EVENT_INFO *GpeEventInfo);
144 * evgpeblk - Upper-level GPE block support
147 AcpiEvCreateGpeBlock (
148 ACPI_NAMESPACE_NODE *GpeDevice,
149 ACPI_GENERIC_ADDRESS *GpeBlockAddress,
150 UINT32 RegisterCount,
151 UINT8 GpeBlockBaseNumber,
152 UINT32 InterruptNumber,
153 ACPI_GPE_BLOCK_INFO **ReturnGpeBlock);
156 AcpiEvInitializeGpeBlock (
157 ACPI_GPE_XRUPT_INFO *GpeXruptInfo,
158 ACPI_GPE_BLOCK_INFO *GpeBlock,
161 ACPI_HW_DEPENDENT_RETURN_OK (
163 AcpiEvDeleteGpeBlock (
164 ACPI_GPE_BLOCK_INFO *GpeBlock))
168 ACPI_NAMESPACE_NODE *GpeDevice,
169 ACPI_GPE_EVENT_INFO *GpeEventInfo,
174 * evgpeinit - GPE initialization and update
177 AcpiEvGpeInitialize (
180 ACPI_HW_DEPENDENT_RETURN_VOID (
183 ACPI_OWNER_ID TableOwnerId))
186 AcpiEvMatchGpeMethod (
187 ACPI_HANDLE ObjHandle,
194 * evgpeutil - GPE utilities
198 ACPI_GPE_CALLBACK GpeWalkCallback,
202 AcpiEvValidGpeEvent (
203 ACPI_GPE_EVENT_INFO *GpeEventInfo);
207 ACPI_GPE_XRUPT_INFO *GpeXruptInfo,
208 ACPI_GPE_BLOCK_INFO *GpeBlock,
212 AcpiEvGetGpeXruptBlock (
213 UINT32 InterruptNumber,
214 ACPI_GPE_XRUPT_INFO **GpeXruptBlock);
217 AcpiEvDeleteGpeXrupt (
218 ACPI_GPE_XRUPT_INFO *GpeXrupt);
221 AcpiEvDeleteGpeHandlers (
222 ACPI_GPE_XRUPT_INFO *GpeXruptInfo,
223 ACPI_GPE_BLOCK_INFO *GpeBlock,
228 * evhandler - Address space handling
231 AcpiEvHasDefaultHandler (
232 ACPI_NAMESPACE_NODE *Node,
233 ACPI_ADR_SPACE_TYPE SpaceId);
236 AcpiEvInstallRegionHandlers (
240 AcpiEvInstallSpaceHandler (
241 ACPI_NAMESPACE_NODE *Node,
242 ACPI_ADR_SPACE_TYPE SpaceId,
243 ACPI_ADR_SPACE_HANDLER Handler,
244 ACPI_ADR_SPACE_SETUP Setup,
249 * evregion - Operation region support
252 AcpiEvInitializeOpRegions (
256 AcpiEvAddressSpaceDispatch (
257 ACPI_OPERAND_OBJECT *RegionObj,
258 ACPI_OPERAND_OBJECT *FieldObj,
266 ACPI_OPERAND_OBJECT *HandlerObj,
267 ACPI_OPERAND_OBJECT *RegionObj,
268 BOOLEAN AcpiNsIsLocked);
272 ACPI_OPERAND_OBJECT *RegionObj,
273 BOOLEAN AcpiNsIsLocked);
276 AcpiEvExecuteRegMethods (
277 ACPI_NAMESPACE_NODE *Node,
278 ACPI_ADR_SPACE_TYPE SpaceId);
281 AcpiEvExecuteRegMethod (
282 ACPI_OPERAND_OBJECT *RegionObj,
287 * evregini - Region initialization and setup
290 AcpiEvSystemMemoryRegionSetup (
293 void *HandlerContext,
294 void **RegionContext);
297 AcpiEvIoSpaceRegionSetup (
300 void *HandlerContext,
301 void **RegionContext);
304 AcpiEvPciConfigRegionSetup (
307 void *HandlerContext,
308 void **RegionContext);
311 AcpiEvCmosRegionSetup (
314 void *HandlerContext,
315 void **RegionContext);
318 AcpiEvPciBarRegionSetup (
321 void *HandlerContext,
322 void **RegionContext);
325 AcpiEvDefaultRegionSetup (
328 void *HandlerContext,
329 void **RegionContext);
332 AcpiEvInitializeRegion (
333 ACPI_OPERAND_OBJECT *RegionObj,
334 BOOLEAN AcpiNsLocked);
338 * evsci - SCI (System Control Interrupt) handling/dispatch
340 UINT32 ACPI_SYSTEM_XFACE
341 AcpiEvGpeXruptHandler (
349 AcpiEvInstallSciHandler (
353 AcpiEvRemoveAllSciHandlers (
356 ACPI_HW_DEPENDENT_RETURN_VOID (
361 #pragma pack(pop) /* Restore original struct packing */
363 #endif /* __ACEVENTS_H__ */