1 /******************************************************************************
3 * Name: acevents.h - Event subcomponent prototypes and defines
5 *****************************************************************************/
8 * Copyright (C) 2000 - 2005, R. Byron Moore
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 acpi_ev_initialize_events (
56 acpi_ev_install_xrupt_handlers (
60 acpi_ev_fixed_event_detect (
68 acpi_ev_is_notify_object (
69 struct acpi_namespace_node
*node
);
72 acpi_ev_acquire_global_lock(
76 acpi_ev_release_global_lock(
80 acpi_ev_init_global_lock_handler (
84 acpi_ev_get_gpe_number_index (
88 acpi_ev_queue_notify_request (
89 struct acpi_namespace_node
*node
,
94 * evgpe - GPE handling and dispatch
97 acpi_ev_update_gpe_enable_masks (
98 struct acpi_gpe_event_info
*gpe_event_info
,
103 struct acpi_gpe_event_info
*gpe_event_info
,
104 u8 write_to_hardware
);
107 acpi_ev_disable_gpe (
108 struct acpi_gpe_event_info
*gpe_event_info
);
110 struct acpi_gpe_event_info
*
111 acpi_ev_get_gpe_event_info (
112 acpi_handle gpe_device
,
120 acpi_ev_valid_gpe_event (
121 struct acpi_gpe_event_info
*gpe_event_info
);
124 acpi_ev_walk_gpe_list (
125 ACPI_GPE_CALLBACK gpe_walk_callback
,
129 acpi_ev_delete_gpe_handlers (
130 struct acpi_gpe_xrupt_info
*gpe_xrupt_info
,
131 struct acpi_gpe_block_info
*gpe_block
);
134 acpi_ev_create_gpe_block (
135 struct acpi_namespace_node
*gpe_device
,
136 struct acpi_generic_address
*gpe_block_address
,
138 u8 gpe_block_base_number
,
140 struct acpi_gpe_block_info
**return_gpe_block
);
143 acpi_ev_delete_gpe_block (
144 struct acpi_gpe_block_info
*gpe_block
);
147 acpi_ev_gpe_dispatch (
148 struct acpi_gpe_event_info
*gpe_event_info
,
153 struct acpi_gpe_xrupt_info
*gpe_xrupt_list
);
156 acpi_ev_set_gpe_type (
157 struct acpi_gpe_event_info
*gpe_event_info
,
161 acpi_ev_check_for_wake_only_gpe (
162 struct acpi_gpe_event_info
*gpe_event_info
);
165 acpi_ev_gpe_initialize (
170 * evregion - Address Space handling
173 acpi_ev_install_region_handlers (
177 acpi_ev_initialize_op_regions (
181 acpi_ev_address_space_dispatch (
182 union acpi_operand_object
*region_obj
,
184 acpi_physical_address address
,
189 acpi_ev_attach_region (
190 union acpi_operand_object
*handler_obj
,
191 union acpi_operand_object
*region_obj
,
192 u8 acpi_ns_is_locked
);
195 acpi_ev_detach_region (
196 union acpi_operand_object
*region_obj
,
197 u8 acpi_ns_is_locked
);
200 acpi_ev_install_space_handler (
201 struct acpi_namespace_node
*node
,
202 acpi_adr_space_type space_id
,
203 acpi_adr_space_handler handler
,
204 acpi_adr_space_setup setup
,
208 acpi_ev_execute_reg_methods (
209 struct acpi_namespace_node
*node
,
210 acpi_adr_space_type space_id
);
213 acpi_ev_execute_reg_method (
214 union acpi_operand_object
*region_obj
,
219 * evregini - Region initialization and setup
222 acpi_ev_system_memory_region_setup (
225 void *handler_context
,
226 void **region_context
);
229 acpi_ev_io_space_region_setup (
232 void *handler_context
,
233 void **region_context
);
236 acpi_ev_pci_config_region_setup (
239 void *handler_context
,
240 void **region_context
);
243 acpi_ev_cmos_region_setup (
246 void *handler_context
,
247 void **region_context
);
250 acpi_ev_pci_bar_region_setup (
253 void *handler_context
,
254 void **region_context
);
257 acpi_ev_default_region_setup (
260 void *handler_context
,
261 void **region_context
);
264 acpi_ev_initialize_region (
265 union acpi_operand_object
*region_obj
,
270 * evsci - SCI (System Control Interrupt) handling/dispatch
272 u32 ACPI_SYSTEM_XFACE
273 acpi_ev_gpe_xrupt_handler (
277 acpi_ev_install_sci_handler (
281 acpi_ev_remove_sci_handler (
285 acpi_ev_initialize_sCI (
293 #endif /* __ACEVENTS_H__ */