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__
49 acpi_ev_initialize_events (
53 acpi_ev_install_xrupt_handlers (
58 * Evfixed - Fixed event handling
62 acpi_ev_fixed_event_initialize (
66 acpi_ev_fixed_event_detect (
70 acpi_ev_fixed_event_dispatch (
79 acpi_ev_is_notify_object (
80 struct acpi_namespace_node
*node
);
83 acpi_ev_acquire_global_lock(
87 acpi_ev_release_global_lock(
91 acpi_ev_init_global_lock_handler (
95 acpi_ev_get_gpe_number_index (
99 acpi_ev_queue_notify_request (
100 struct acpi_namespace_node
*node
,
103 void ACPI_SYSTEM_XFACE
104 acpi_ev_notify_dispatch (
109 * Evgpe - GPE handling and dispatch
113 acpi_ev_walk_gpe_list (
114 ACPI_GPE_CALLBACK gpe_walk_callback
,
118 acpi_ev_valid_gpe_event (
119 struct acpi_gpe_event_info
*gpe_event_info
);
122 acpi_ev_update_gpe_enable_masks (
123 struct acpi_gpe_event_info
*gpe_event_info
,
128 struct acpi_gpe_event_info
*gpe_event_info
,
129 u8 write_to_hardware
);
132 acpi_ev_disable_gpe (
133 struct acpi_gpe_event_info
*gpe_event_info
);
135 struct acpi_gpe_event_info
*
136 acpi_ev_get_gpe_event_info (
137 acpi_handle gpe_device
,
141 acpi_ev_gpe_initialize (
145 acpi_ev_create_gpe_block (
146 struct acpi_namespace_node
*gpe_device
,
147 struct acpi_generic_address
*gpe_block_address
,
149 u8 gpe_block_base_number
,
151 struct acpi_gpe_block_info
**return_gpe_block
);
154 acpi_ev_delete_gpe_block (
155 struct acpi_gpe_block_info
*gpe_block
);
158 acpi_ev_delete_gpe_handlers (
159 struct acpi_gpe_xrupt_info
*gpe_xrupt_info
,
160 struct acpi_gpe_block_info
*gpe_block
);
163 acpi_ev_gpe_dispatch (
164 struct acpi_gpe_event_info
*gpe_event_info
,
169 struct acpi_gpe_xrupt_info
*gpe_xrupt_list
);
172 acpi_ev_set_gpe_type (
173 struct acpi_gpe_event_info
*gpe_event_info
,
177 acpi_ev_check_for_wake_only_gpe (
178 struct acpi_gpe_event_info
*gpe_event_info
);
181 * Evregion - Address Space handling
185 acpi_ev_install_region_handlers (
189 acpi_ev_initialize_op_regions (
193 acpi_ev_address_space_dispatch (
194 union acpi_operand_object
*region_obj
,
196 acpi_physical_address address
,
201 acpi_ev_install_handler (
202 acpi_handle obj_handle
,
205 void **return_value
);
208 acpi_ev_attach_region (
209 union acpi_operand_object
*handler_obj
,
210 union acpi_operand_object
*region_obj
,
211 u8 acpi_ns_is_locked
);
214 acpi_ev_detach_region (
215 union acpi_operand_object
*region_obj
,
216 u8 acpi_ns_is_locked
);
219 acpi_ev_install_space_handler (
220 struct acpi_namespace_node
*node
,
221 acpi_adr_space_type space_id
,
222 acpi_adr_space_handler handler
,
223 acpi_adr_space_setup setup
,
227 acpi_ev_execute_reg_methods (
228 struct acpi_namespace_node
*node
,
229 acpi_adr_space_type space_id
);
232 acpi_ev_execute_reg_method (
233 union acpi_operand_object
*region_obj
,
238 acpi_handle obj_handle
,
241 void **return_value
);
244 * Evregini - Region initialization and setup
248 acpi_ev_system_memory_region_setup (
251 void *handler_context
,
252 void **region_context
);
255 acpi_ev_io_space_region_setup (
258 void *handler_context
,
259 void **region_context
);
262 acpi_ev_pci_config_region_setup (
265 void *handler_context
,
266 void **region_context
);
269 acpi_ev_cmos_region_setup (
272 void *handler_context
,
273 void **region_context
);
276 acpi_ev_pci_bar_region_setup (
279 void *handler_context
,
280 void **region_context
);
283 acpi_ev_default_region_setup (
286 void *handler_context
,
287 void **region_context
);
290 acpi_ev_initialize_region (
291 union acpi_operand_object
*region_obj
,
296 * Evsci - SCI (System Control Interrupt) handling/dispatch
299 u32 ACPI_SYSTEM_XFACE
300 acpi_ev_gpe_xrupt_handler (
304 acpi_ev_install_sci_handler (
308 acpi_ev_remove_sci_handler (
312 acpi_ev_initialize_sCI (
320 #endif /* __ACEVENTS_H__ */