xref: /freebsd/sys/contrib/dev/acpica/include/acevents.h (revision 5a77b11bd396353d1820bff1ee51e58c2a6ee6a6)
1a9f12690SJung-uk Kim /******************************************************************************
2a9f12690SJung-uk Kim  *
3a9f12690SJung-uk Kim  * Name: acevents.h - Event subcomponent prototypes and defines
4a9f12690SJung-uk Kim  *
5a9f12690SJung-uk Kim  *****************************************************************************/
6a9f12690SJung-uk Kim 
7a9f12690SJung-uk Kim /******************************************************************************
8a9f12690SJung-uk Kim  *
9a9f12690SJung-uk Kim  * 1. Copyright Notice
10a9f12690SJung-uk Kim  *
119a179dd8SJung-uk Kim  * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
12a9f12690SJung-uk Kim  * All rights reserved.
13a9f12690SJung-uk Kim  *
14a9f12690SJung-uk Kim  * 2. License
15a9f12690SJung-uk Kim  *
16a9f12690SJung-uk Kim  * 2.1. This is your license from Intel Corp. under its intellectual property
17a9f12690SJung-uk Kim  * rights.  You may have additional license terms from the party that provided
18a9f12690SJung-uk Kim  * you this software, covering your right to use that party's intellectual
19a9f12690SJung-uk Kim  * property rights.
20a9f12690SJung-uk Kim  *
21a9f12690SJung-uk Kim  * 2.2. Intel grants, free of charge, to any person ("Licensee") obtaining a
22a9f12690SJung-uk Kim  * copy of the source code appearing in this file ("Covered Code") an
23a9f12690SJung-uk Kim  * irrevocable, perpetual, worldwide license under Intel's copyrights in the
24a9f12690SJung-uk Kim  * base code distributed originally by Intel ("Original Intel Code") to copy,
25a9f12690SJung-uk Kim  * make derivatives, distribute, use and display any portion of the Covered
26a9f12690SJung-uk Kim  * Code in any form, with the right to sublicense such rights; and
27a9f12690SJung-uk Kim  *
28a9f12690SJung-uk Kim  * 2.3. Intel grants Licensee a non-exclusive and non-transferable patent
29a9f12690SJung-uk Kim  * license (with the right to sublicense), under only those claims of Intel
30a9f12690SJung-uk Kim  * patents that are infringed by the Original Intel Code, to make, use, sell,
31a9f12690SJung-uk Kim  * offer to sell, and import the Covered Code and derivative works thereof
32a9f12690SJung-uk Kim  * solely to the minimum extent necessary to exercise the above copyright
33a9f12690SJung-uk Kim  * license, and in no event shall the patent license extend to any additions
34a9f12690SJung-uk Kim  * to or modifications of the Original Intel Code.  No other license or right
35a9f12690SJung-uk Kim  * is granted directly or by implication, estoppel or otherwise;
36a9f12690SJung-uk Kim  *
37a9f12690SJung-uk Kim  * The above copyright and patent license is granted only if the following
38a9f12690SJung-uk Kim  * conditions are met:
39a9f12690SJung-uk Kim  *
40a9f12690SJung-uk Kim  * 3. Conditions
41a9f12690SJung-uk Kim  *
42a9f12690SJung-uk Kim  * 3.1. Redistribution of Source with Rights to Further Distribute Source.
43a9f12690SJung-uk Kim  * Redistribution of source code of any substantial portion of the Covered
44a9f12690SJung-uk Kim  * Code or modification with rights to further distribute source must include
45a9f12690SJung-uk Kim  * the above Copyright Notice, the above License, this list of Conditions,
46a9f12690SJung-uk Kim  * and the following Disclaimer and Export Compliance provision.  In addition,
47a9f12690SJung-uk Kim  * Licensee must cause all Covered Code to which Licensee contributes to
48a9f12690SJung-uk Kim  * contain a file documenting the changes Licensee made to create that Covered
49a9f12690SJung-uk Kim  * Code and the date of any change.  Licensee must include in that file the
50a9f12690SJung-uk Kim  * documentation of any changes made by any predecessor Licensee.  Licensee
51a9f12690SJung-uk Kim  * must include a prominent statement that the modification is derived,
52a9f12690SJung-uk Kim  * directly or indirectly, from Original Intel Code.
53a9f12690SJung-uk Kim  *
54a9f12690SJung-uk Kim  * 3.2. Redistribution of Source with no Rights to Further Distribute Source.
55a9f12690SJung-uk Kim  * Redistribution of source code of any substantial portion of the Covered
56a9f12690SJung-uk Kim  * Code or modification without rights to further distribute source must
57a9f12690SJung-uk Kim  * include the following Disclaimer and Export Compliance provision in the
58a9f12690SJung-uk Kim  * documentation and/or other materials provided with distribution.  In
59a9f12690SJung-uk Kim  * addition, Licensee may not authorize further sublicense of source of any
60a9f12690SJung-uk Kim  * portion of the Covered Code, and must include terms to the effect that the
61a9f12690SJung-uk Kim  * license from Licensee to its licensee is limited to the intellectual
62a9f12690SJung-uk Kim  * property embodied in the software Licensee provides to its licensee, and
63a9f12690SJung-uk Kim  * not to intellectual property embodied in modifications its licensee may
64a9f12690SJung-uk Kim  * make.
65a9f12690SJung-uk Kim  *
66a9f12690SJung-uk Kim  * 3.3. Redistribution of Executable. Redistribution in executable form of any
67a9f12690SJung-uk Kim  * substantial portion of the Covered Code or modification must reproduce the
68a9f12690SJung-uk Kim  * above Copyright Notice, and the following Disclaimer and Export Compliance
69a9f12690SJung-uk Kim  * provision in the documentation and/or other materials provided with the
70a9f12690SJung-uk Kim  * distribution.
71a9f12690SJung-uk Kim  *
72a9f12690SJung-uk Kim  * 3.4. Intel retains all right, title, and interest in and to the Original
73a9f12690SJung-uk Kim  * Intel Code.
74a9f12690SJung-uk Kim  *
75a9f12690SJung-uk Kim  * 3.5. Neither the name Intel nor any other trademark owned or controlled by
76a9f12690SJung-uk Kim  * Intel shall be used in advertising or otherwise to promote the sale, use or
77a9f12690SJung-uk Kim  * other dealings in products derived from or relating to the Covered Code
78a9f12690SJung-uk Kim  * without prior written authorization from Intel.
79a9f12690SJung-uk Kim  *
80a9f12690SJung-uk Kim  * 4. Disclaimer and Export Compliance
81a9f12690SJung-uk Kim  *
82a9f12690SJung-uk Kim  * 4.1. INTEL MAKES NO WARRANTY OF ANY KIND REGARDING ANY SOFTWARE PROVIDED
83a9f12690SJung-uk Kim  * HERE.  ANY SOFTWARE ORIGINATING FROM INTEL OR DERIVED FROM INTEL SOFTWARE
84a9f12690SJung-uk Kim  * IS PROVIDED "AS IS," AND INTEL WILL NOT PROVIDE ANY SUPPORT,  ASSISTANCE,
85a9f12690SJung-uk Kim  * INSTALLATION, TRAINING OR OTHER SERVICES.  INTEL WILL NOT PROVIDE ANY
86a9f12690SJung-uk Kim  * UPDATES, ENHANCEMENTS OR EXTENSIONS.  INTEL SPECIFICALLY DISCLAIMS ANY
87a9f12690SJung-uk Kim  * IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT AND FITNESS FOR A
88a9f12690SJung-uk Kim  * PARTICULAR PURPOSE.
89a9f12690SJung-uk Kim  *
90a9f12690SJung-uk Kim  * 4.2. IN NO EVENT SHALL INTEL HAVE ANY LIABILITY TO LICENSEE, ITS LICENSEES
91a9f12690SJung-uk Kim  * OR ANY OTHER THIRD PARTY, FOR ANY LOST PROFITS, LOST DATA, LOSS OF USE OR
92a9f12690SJung-uk Kim  * COSTS OF PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, OR FOR ANY INDIRECT,
93a9f12690SJung-uk Kim  * SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THIS AGREEMENT, UNDER ANY
94a9f12690SJung-uk Kim  * CAUSE OF ACTION OR THEORY OF LIABILITY, AND IRRESPECTIVE OF WHETHER INTEL
95a9f12690SJung-uk Kim  * HAS ADVANCE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES.  THESE LIMITATIONS
96a9f12690SJung-uk Kim  * SHALL APPLY NOTWITHSTANDING THE FAILURE OF THE ESSENTIAL PURPOSE OF ANY
97a9f12690SJung-uk Kim  * LIMITED REMEDY.
98a9f12690SJung-uk Kim  *
99a9f12690SJung-uk Kim  * 4.3. Licensee shall not export, either directly or indirectly, any of this
100a9f12690SJung-uk Kim  * software or system incorporating such software without first obtaining any
101a9f12690SJung-uk Kim  * required license or other approval from the U. S. Department of Commerce or
102a9f12690SJung-uk Kim  * any other agency or department of the United States Government.  In the
103a9f12690SJung-uk Kim  * event Licensee exports any such software from the United States or
104a9f12690SJung-uk Kim  * re-exports any such software from a foreign destination, Licensee shall
105a9f12690SJung-uk Kim  * ensure that the distribution and export/re-export of the software is in
106a9f12690SJung-uk Kim  * compliance with all laws, regulations, orders, or other restrictions of the
107a9f12690SJung-uk Kim  * U.S. Export Administration Regulations. Licensee agrees that neither it nor
108a9f12690SJung-uk Kim  * any of its subsidiaries will export/re-export any technical data, process,
109a9f12690SJung-uk Kim  * software, or service, directly or indirectly, to any country for which the
110a9f12690SJung-uk Kim  * United States government or any agency thereof requires an export license,
111a9f12690SJung-uk Kim  * other governmental approval, or letter of assurance, without first obtaining
112a9f12690SJung-uk Kim  * such license, approval or letter.
113a9f12690SJung-uk Kim  *
114a9f12690SJung-uk Kim  *****************************************************************************/
115a9f12690SJung-uk Kim 
116a9f12690SJung-uk Kim #ifndef __ACEVENTS_H__
117a9f12690SJung-uk Kim #define __ACEVENTS_H__
118a9f12690SJung-uk Kim 
119a9f12690SJung-uk Kim 
120a9f12690SJung-uk Kim /*
121a9f12690SJung-uk Kim  * evevent
122a9f12690SJung-uk Kim  */
123a9f12690SJung-uk Kim ACPI_STATUS
124a9f12690SJung-uk Kim AcpiEvInitializeEvents (
125a9f12690SJung-uk Kim     void);
126a9f12690SJung-uk Kim 
127a9f12690SJung-uk Kim ACPI_STATUS
128a9f12690SJung-uk Kim AcpiEvInstallXruptHandlers (
129a9f12690SJung-uk Kim     void);
130a9f12690SJung-uk Kim 
131a9f12690SJung-uk Kim UINT32
132a9f12690SJung-uk Kim AcpiEvFixedEventDetect (
133a9f12690SJung-uk Kim     void);
134a9f12690SJung-uk Kim 
135a9f12690SJung-uk Kim 
136a9f12690SJung-uk Kim /*
137a9f12690SJung-uk Kim  * evmisc
138a9f12690SJung-uk Kim  */
139a9f12690SJung-uk Kim BOOLEAN
140a9f12690SJung-uk Kim AcpiEvIsNotifyObject (
141a9f12690SJung-uk Kim     ACPI_NAMESPACE_NODE     *Node);
142a9f12690SJung-uk Kim 
143a9f12690SJung-uk Kim ACPI_STATUS
144a9f12690SJung-uk Kim AcpiEvAcquireGlobalLock(
145a9f12690SJung-uk Kim     UINT16                  Timeout);
146a9f12690SJung-uk Kim 
147a9f12690SJung-uk Kim ACPI_STATUS
148a9f12690SJung-uk Kim AcpiEvReleaseGlobalLock(
149a9f12690SJung-uk Kim     void);
150a9f12690SJung-uk Kim 
151a9f12690SJung-uk Kim ACPI_STATUS
152a9f12690SJung-uk Kim AcpiEvInitGlobalLockHandler (
153a9f12690SJung-uk Kim     void);
154a9f12690SJung-uk Kim 
155a9f12690SJung-uk Kim UINT32
156a9f12690SJung-uk Kim AcpiEvGetGpeNumberIndex (
157a9f12690SJung-uk Kim     UINT32                  GpeNumber);
158a9f12690SJung-uk Kim 
159a9f12690SJung-uk Kim ACPI_STATUS
160a9f12690SJung-uk Kim AcpiEvQueueNotifyRequest (
161a9f12690SJung-uk Kim     ACPI_NAMESPACE_NODE     *Node,
162a9f12690SJung-uk Kim     UINT32                  NotifyValue);
163a9f12690SJung-uk Kim 
164a9f12690SJung-uk Kim 
165a9f12690SJung-uk Kim /*
1663f5e024cSJung-uk Kim  * evgpe - Low-level GPE support
167a9f12690SJung-uk Kim  */
1683f5e024cSJung-uk Kim UINT32
1693f5e024cSJung-uk Kim AcpiEvGpeDetect (
1703f5e024cSJung-uk Kim     ACPI_GPE_XRUPT_INFO     *GpeXruptList);
1713f5e024cSJung-uk Kim 
172a9f12690SJung-uk Kim ACPI_STATUS
173a88e22b7SJung-uk Kim AcpiEvUpdateGpeEnableMask (
1748c8be05fSJung-uk Kim     ACPI_GPE_EVENT_INFO     *GpeEventInfo);
175a9f12690SJung-uk Kim 
176a9f12690SJung-uk Kim ACPI_STATUS
177a9f12690SJung-uk Kim AcpiEvEnableGpe (
1788c8be05fSJung-uk Kim     ACPI_GPE_EVENT_INFO     *GpeEventInfo);
179a9f12690SJung-uk Kim 
180*5a77b11bSJung-uk Kim ACPI_STATUS
181*5a77b11bSJung-uk Kim AcpiEvAddGpeReference (
182*5a77b11bSJung-uk Kim     ACPI_GPE_EVENT_INFO     *GpeEventInfo);
183*5a77b11bSJung-uk Kim 
184*5a77b11bSJung-uk Kim ACPI_STATUS
185*5a77b11bSJung-uk Kim AcpiEvRemoveGpeReference (
186*5a77b11bSJung-uk Kim     ACPI_GPE_EVENT_INFO     *GpeEventInfo);
187*5a77b11bSJung-uk Kim 
188a9f12690SJung-uk Kim ACPI_GPE_EVENT_INFO *
189a9f12690SJung-uk Kim AcpiEvGetGpeEventInfo (
190a9f12690SJung-uk Kim     ACPI_HANDLE             GpeDevice,
191a9f12690SJung-uk Kim     UINT32                  GpeNumber);
192a9f12690SJung-uk Kim 
1938c8be05fSJung-uk Kim ACPI_GPE_EVENT_INFO *
1948c8be05fSJung-uk Kim AcpiEvLowGetGpeInfo (
1958c8be05fSJung-uk Kim     UINT32                  GpeNumber,
1968c8be05fSJung-uk Kim     ACPI_GPE_BLOCK_INFO     *GpeBlock);
1978c8be05fSJung-uk Kim 
198*5a77b11bSJung-uk Kim ACPI_STATUS
199*5a77b11bSJung-uk Kim AcpiEvFinishGpe (
200*5a77b11bSJung-uk Kim     ACPI_GPE_EVENT_INFO     *GpeEventInfo);
201*5a77b11bSJung-uk Kim 
202a9f12690SJung-uk Kim 
203a9f12690SJung-uk Kim /*
2043f5e024cSJung-uk Kim  * evgpeblk - Upper-level GPE block support
205a9f12690SJung-uk Kim  */
206a9f12690SJung-uk Kim ACPI_STATUS
207a9f12690SJung-uk Kim AcpiEvCreateGpeBlock (
208a9f12690SJung-uk Kim     ACPI_NAMESPACE_NODE     *GpeDevice,
209a9f12690SJung-uk Kim     ACPI_GENERIC_ADDRESS    *GpeBlockAddress,
210a9f12690SJung-uk Kim     UINT32                  RegisterCount,
211a9f12690SJung-uk Kim     UINT8                   GpeBlockBaseNumber,
212a9f12690SJung-uk Kim     UINT32                  InterruptNumber,
213a9f12690SJung-uk Kim     ACPI_GPE_BLOCK_INFO     **ReturnGpeBlock);
214a9f12690SJung-uk Kim 
215a9f12690SJung-uk Kim ACPI_STATUS
216a9f12690SJung-uk Kim AcpiEvInitializeGpeBlock (
217*5a77b11bSJung-uk Kim     ACPI_GPE_XRUPT_INFO     *GpeXruptInfo,
218*5a77b11bSJung-uk Kim     ACPI_GPE_BLOCK_INFO     *GpeBlock,
219*5a77b11bSJung-uk Kim     void                    *Context);
220a9f12690SJung-uk Kim 
221a9f12690SJung-uk Kim ACPI_STATUS
222a9f12690SJung-uk Kim AcpiEvDeleteGpeBlock (
223a9f12690SJung-uk Kim     ACPI_GPE_BLOCK_INFO     *GpeBlock);
224a9f12690SJung-uk Kim 
225a9f12690SJung-uk Kim UINT32
226a9f12690SJung-uk Kim AcpiEvGpeDispatch (
227*5a77b11bSJung-uk Kim     ACPI_NAMESPACE_NODE     *GpeDevice,
228a9f12690SJung-uk Kim     ACPI_GPE_EVENT_INFO     *GpeEventInfo,
229a9f12690SJung-uk Kim     UINT32                  GpeNumber);
230a9f12690SJung-uk Kim 
2313f5e024cSJung-uk Kim /*
2323f5e024cSJung-uk Kim  * evgpeinit - GPE initialization and update
2333f5e024cSJung-uk Kim  */
234a9f12690SJung-uk Kim ACPI_STATUS
235a9f12690SJung-uk Kim AcpiEvGpeInitialize (
236a9f12690SJung-uk Kim     void);
237a9f12690SJung-uk Kim 
2383f5e024cSJung-uk Kim void
2393f5e024cSJung-uk Kim AcpiEvUpdateGpes (
2403f5e024cSJung-uk Kim     ACPI_OWNER_ID           TableOwnerId);
2413f5e024cSJung-uk Kim 
2423f5e024cSJung-uk Kim ACPI_STATUS
2433f5e024cSJung-uk Kim AcpiEvMatchGpeMethod (
2443f5e024cSJung-uk Kim     ACPI_HANDLE             ObjHandle,
2453f5e024cSJung-uk Kim     UINT32                  Level,
2463f5e024cSJung-uk Kim     void                    *Context,
2473f5e024cSJung-uk Kim     void                    **ReturnValue);
2483f5e024cSJung-uk Kim 
2493f5e024cSJung-uk Kim /*
2503f5e024cSJung-uk Kim  * evgpeutil - GPE utilities
2513f5e024cSJung-uk Kim  */
2523f5e024cSJung-uk Kim ACPI_STATUS
2533f5e024cSJung-uk Kim AcpiEvWalkGpeList (
2543f5e024cSJung-uk Kim     ACPI_GPE_CALLBACK       GpeWalkCallback,
2553f5e024cSJung-uk Kim     void                    *Context);
2563f5e024cSJung-uk Kim 
2573f5e024cSJung-uk Kim BOOLEAN
2583f5e024cSJung-uk Kim AcpiEvValidGpeEvent (
2593f5e024cSJung-uk Kim     ACPI_GPE_EVENT_INFO     *GpeEventInfo);
2603f5e024cSJung-uk Kim 
261*5a77b11bSJung-uk Kim ACPI_STATUS
262*5a77b11bSJung-uk Kim AcpiEvGetGpeDevice (
263*5a77b11bSJung-uk Kim     ACPI_GPE_XRUPT_INFO     *GpeXruptInfo,
264*5a77b11bSJung-uk Kim     ACPI_GPE_BLOCK_INFO     *GpeBlock,
265*5a77b11bSJung-uk Kim     void                    *Context);
266*5a77b11bSJung-uk Kim 
2673f5e024cSJung-uk Kim ACPI_GPE_XRUPT_INFO *
2683f5e024cSJung-uk Kim AcpiEvGetGpeXruptBlock (
2693f5e024cSJung-uk Kim     UINT32                  InterruptNumber);
2703f5e024cSJung-uk Kim 
2713f5e024cSJung-uk Kim ACPI_STATUS
2723f5e024cSJung-uk Kim AcpiEvDeleteGpeXrupt (
2733f5e024cSJung-uk Kim     ACPI_GPE_XRUPT_INFO     *GpeXrupt);
2743f5e024cSJung-uk Kim 
2753f5e024cSJung-uk Kim ACPI_STATUS
2763f5e024cSJung-uk Kim AcpiEvDeleteGpeHandlers (
2773f5e024cSJung-uk Kim     ACPI_GPE_XRUPT_INFO     *GpeXruptInfo,
2783f5e024cSJung-uk Kim     ACPI_GPE_BLOCK_INFO     *GpeBlock,
2793f5e024cSJung-uk Kim     void                    *Context);
2803f5e024cSJung-uk Kim 
281a9f12690SJung-uk Kim 
282a9f12690SJung-uk Kim /*
283a9f12690SJung-uk Kim  * evregion - Address Space handling
284a9f12690SJung-uk Kim  */
285a9f12690SJung-uk Kim ACPI_STATUS
286a9f12690SJung-uk Kim AcpiEvInstallRegionHandlers (
287a9f12690SJung-uk Kim     void);
288a9f12690SJung-uk Kim 
289a9f12690SJung-uk Kim ACPI_STATUS
290a9f12690SJung-uk Kim AcpiEvInitializeOpRegions (
291a9f12690SJung-uk Kim     void);
292a9f12690SJung-uk Kim 
293a9f12690SJung-uk Kim ACPI_STATUS
294a9f12690SJung-uk Kim AcpiEvAddressSpaceDispatch (
295a9f12690SJung-uk Kim     ACPI_OPERAND_OBJECT    *RegionObj,
296a9f12690SJung-uk Kim     UINT32                  Function,
297a9f12690SJung-uk Kim     UINT32                  RegionOffset,
298a9f12690SJung-uk Kim     UINT32                  BitWidth,
2999a179dd8SJung-uk Kim     UINT64                  *Value);
300a9f12690SJung-uk Kim 
301a9f12690SJung-uk Kim ACPI_STATUS
302a9f12690SJung-uk Kim AcpiEvAttachRegion (
303a9f12690SJung-uk Kim     ACPI_OPERAND_OBJECT     *HandlerObj,
304a9f12690SJung-uk Kim     ACPI_OPERAND_OBJECT     *RegionObj,
305a9f12690SJung-uk Kim     BOOLEAN                 AcpiNsIsLocked);
306a9f12690SJung-uk Kim 
307a9f12690SJung-uk Kim void
308a9f12690SJung-uk Kim AcpiEvDetachRegion (
309a9f12690SJung-uk Kim     ACPI_OPERAND_OBJECT    *RegionObj,
310a9f12690SJung-uk Kim     BOOLEAN                 AcpiNsIsLocked);
311a9f12690SJung-uk Kim 
312a9f12690SJung-uk Kim ACPI_STATUS
313a9f12690SJung-uk Kim AcpiEvInstallSpaceHandler (
314a9f12690SJung-uk Kim     ACPI_NAMESPACE_NODE     *Node,
315a9f12690SJung-uk Kim     ACPI_ADR_SPACE_TYPE     SpaceId,
316a9f12690SJung-uk Kim     ACPI_ADR_SPACE_HANDLER  Handler,
317a9f12690SJung-uk Kim     ACPI_ADR_SPACE_SETUP    Setup,
318a9f12690SJung-uk Kim     void                    *Context);
319a9f12690SJung-uk Kim 
320a9f12690SJung-uk Kim ACPI_STATUS
321a9f12690SJung-uk Kim AcpiEvExecuteRegMethods (
322a9f12690SJung-uk Kim     ACPI_NAMESPACE_NODE     *Node,
323a9f12690SJung-uk Kim     ACPI_ADR_SPACE_TYPE     SpaceId);
324a9f12690SJung-uk Kim 
325a9f12690SJung-uk Kim ACPI_STATUS
326a9f12690SJung-uk Kim AcpiEvExecuteRegMethod (
327a9f12690SJung-uk Kim     ACPI_OPERAND_OBJECT    *RegionObj,
328a9f12690SJung-uk Kim     UINT32                  Function);
329a9f12690SJung-uk Kim 
330a9f12690SJung-uk Kim 
331a9f12690SJung-uk Kim /*
332a9f12690SJung-uk Kim  * evregini - Region initialization and setup
333a9f12690SJung-uk Kim  */
334a9f12690SJung-uk Kim ACPI_STATUS
335a9f12690SJung-uk Kim AcpiEvSystemMemoryRegionSetup (
336a9f12690SJung-uk Kim     ACPI_HANDLE             Handle,
337a9f12690SJung-uk Kim     UINT32                  Function,
338a9f12690SJung-uk Kim     void                    *HandlerContext,
339a9f12690SJung-uk Kim     void                    **RegionContext);
340a9f12690SJung-uk Kim 
341a9f12690SJung-uk Kim ACPI_STATUS
342a9f12690SJung-uk Kim AcpiEvIoSpaceRegionSetup (
343a9f12690SJung-uk Kim     ACPI_HANDLE             Handle,
344a9f12690SJung-uk Kim     UINT32                  Function,
345a9f12690SJung-uk Kim     void                    *HandlerContext,
346a9f12690SJung-uk Kim     void                    **RegionContext);
347a9f12690SJung-uk Kim 
348a9f12690SJung-uk Kim ACPI_STATUS
349a9f12690SJung-uk Kim AcpiEvPciConfigRegionSetup (
350a9f12690SJung-uk Kim     ACPI_HANDLE             Handle,
351a9f12690SJung-uk Kim     UINT32                  Function,
352a9f12690SJung-uk Kim     void                    *HandlerContext,
353a9f12690SJung-uk Kim     void                    **RegionContext);
354a9f12690SJung-uk Kim 
355a9f12690SJung-uk Kim ACPI_STATUS
356a9f12690SJung-uk Kim AcpiEvCmosRegionSetup (
357a9f12690SJung-uk Kim     ACPI_HANDLE             Handle,
358a9f12690SJung-uk Kim     UINT32                  Function,
359a9f12690SJung-uk Kim     void                    *HandlerContext,
360a9f12690SJung-uk Kim     void                    **RegionContext);
361a9f12690SJung-uk Kim 
362a9f12690SJung-uk Kim ACPI_STATUS
363a9f12690SJung-uk Kim AcpiEvPciBarRegionSetup (
364a9f12690SJung-uk Kim     ACPI_HANDLE             Handle,
365a9f12690SJung-uk Kim     UINT32                  Function,
366a9f12690SJung-uk Kim     void                    *HandlerContext,
367a9f12690SJung-uk Kim     void                    **RegionContext);
368a9f12690SJung-uk Kim 
369a9f12690SJung-uk Kim ACPI_STATUS
370a9f12690SJung-uk Kim AcpiEvDefaultRegionSetup (
371a9f12690SJung-uk Kim     ACPI_HANDLE             Handle,
372a9f12690SJung-uk Kim     UINT32                  Function,
373a9f12690SJung-uk Kim     void                    *HandlerContext,
374a9f12690SJung-uk Kim     void                    **RegionContext);
375a9f12690SJung-uk Kim 
376a9f12690SJung-uk Kim ACPI_STATUS
377a9f12690SJung-uk Kim AcpiEvInitializeRegion (
378a9f12690SJung-uk Kim     ACPI_OPERAND_OBJECT     *RegionObj,
379a9f12690SJung-uk Kim     BOOLEAN                 AcpiNsLocked);
380a9f12690SJung-uk Kim 
381a9f12690SJung-uk Kim 
382a9f12690SJung-uk Kim /*
383a9f12690SJung-uk Kim  * evsci - SCI (System Control Interrupt) handling/dispatch
384a9f12690SJung-uk Kim  */
385a9f12690SJung-uk Kim UINT32 ACPI_SYSTEM_XFACE
386a9f12690SJung-uk Kim AcpiEvGpeXruptHandler (
387a9f12690SJung-uk Kim     void                    *Context);
388a9f12690SJung-uk Kim 
389a9f12690SJung-uk Kim UINT32
390a9f12690SJung-uk Kim AcpiEvInstallSciHandler (
391a9f12690SJung-uk Kim     void);
392a9f12690SJung-uk Kim 
393a9f12690SJung-uk Kim ACPI_STATUS
394a9f12690SJung-uk Kim AcpiEvRemoveSciHandler (
395a9f12690SJung-uk Kim     void);
396a9f12690SJung-uk Kim 
397a9f12690SJung-uk Kim UINT32
398a9f12690SJung-uk Kim AcpiEvInitializeSCI (
399a9f12690SJung-uk Kim     UINT32                  ProgramSCI);
400a9f12690SJung-uk Kim 
401a9f12690SJung-uk Kim void
402a9f12690SJung-uk Kim AcpiEvTerminate (
403a9f12690SJung-uk Kim     void);
404a9f12690SJung-uk Kim 
405a9f12690SJung-uk Kim 
406a9f12690SJung-uk Kim #endif  /* __ACEVENTS_H__  */
407