2 /******************************************************************************
4 * Name: acpixf.h - External interfaces to the ACPI subsystem
6 *****************************************************************************/
9 * Copyright (C) 2000 - 2005, R. Byron Moore
10 * All rights reserved.
12 * Redistribution and use in source and binary forms, with or without
13 * modification, are permitted provided that the following conditions
15 * 1. Redistributions of source code must retain the above copyright
16 * notice, this list of conditions, and the following disclaimer,
17 * without modification.
18 * 2. Redistributions in binary form must reproduce at minimum a disclaimer
19 * substantially similar to the "NO WARRANTY" disclaimer below
20 * ("Disclaimer") and any redistribution must be conditioned upon
21 * including a substantially similar Disclaimer requirement for further
22 * binary redistribution.
23 * 3. Neither the names of the above-listed copyright holders nor the names
24 * of any contributors may be used to endorse or promote products derived
25 * from this software without specific prior written permission.
27 * Alternatively, this software may be distributed under the terms of the
28 * GNU General Public License ("GPL") version 2 as published by the Free
29 * Software Foundation.
32 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
33 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
34 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR
35 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
36 * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
37 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
38 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
39 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
40 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
41 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
42 * POSSIBILITY OF SUCH DAMAGES.
58 acpi_initialize_subsystem (
62 acpi_enable_subsystem (
66 acpi_initialize_objects (
73 #ifdef ACPI_FUTURE_USAGE
75 acpi_subsystem_status (
87 #ifdef ACPI_FUTURE_USAGE
89 acpi_get_system_info (
90 struct acpi_buffer
*ret_buffer
);
94 acpi_format_exception (
95 acpi_status exception
);
98 acpi_purge_cached_objects (
101 #ifdef ACPI_FUTURE_USAGE
103 acpi_install_initialization_handler (
104 acpi_init_handler handler
,
109 * ACPI Memory manager
126 * ACPI table manipulation interfaces
130 acpi_find_root_pointer (
132 struct acpi_pointer
*rsdp_address
);
138 #ifdef ACPI_FUTURE_USAGE
141 struct acpi_table_header
*table_ptr
);
145 acpi_table_type table_type
);
148 acpi_get_table_header (
149 acpi_table_type table_type
,
151 struct acpi_table_header
*out_table_header
);
152 #endif /* ACPI_FUTURE_USAGE */
156 acpi_table_type table_type
,
158 struct acpi_buffer
*ret_buffer
);
161 acpi_get_firmware_table (
162 acpi_string signature
,
165 struct acpi_table_header
**table_pointer
);
169 * Namespace and name interfaces
173 acpi_walk_namespace (
174 acpi_object_type type
,
175 acpi_handle start_object
,
177 acpi_walk_callback user_function
,
179 void **return_value
);
184 acpi_walk_callback user_function
,
186 void **return_value
);
192 struct acpi_buffer
*ret_path_ptr
);
197 acpi_string pathname
,
198 acpi_handle
*ret_handle
);
202 acpi_handle obj_handle
,
203 acpi_object_handler handler
,
208 acpi_handle obj_handle
,
209 acpi_object_handler handler
);
213 acpi_handle obj_handle
,
214 acpi_object_handler handler
,
219 * Object manipulation and enumeration
223 acpi_evaluate_object (
225 acpi_string pathname
,
226 struct acpi_object_list
*parameter_objects
,
227 struct acpi_buffer
*return_object_buffer
);
229 #ifdef ACPI_FUTURE_USAGE
231 acpi_evaluate_object_typed (
233 acpi_string pathname
,
234 struct acpi_object_list
*external_params
,
235 struct acpi_buffer
*return_buffer
,
236 acpi_object_type return_type
);
240 acpi_get_object_info (
242 struct acpi_buffer
*return_buffer
);
245 acpi_get_next_object (
246 acpi_object_type type
,
249 acpi_handle
*out_handle
);
254 acpi_object_type
*out_type
);
259 acpi_handle
*out_handle
);
263 * Event handler interfaces
267 acpi_install_fixed_event_handler (
269 acpi_event_handler handler
,
273 acpi_remove_fixed_event_handler (
275 acpi_event_handler handler
);
278 acpi_install_notify_handler (
281 acpi_notify_handler handler
,
285 acpi_remove_notify_handler (
288 acpi_notify_handler handler
);
291 acpi_install_address_space_handler (
293 acpi_adr_space_type space_id
,
294 acpi_adr_space_handler handler
,
295 acpi_adr_space_setup setup
,
299 acpi_remove_address_space_handler (
301 acpi_adr_space_type space_id
,
302 acpi_adr_space_handler handler
);
305 acpi_install_gpe_handler (
306 acpi_handle gpe_device
,
309 acpi_event_handler address
,
312 #ifdef ACPI_FUTURE_USAGE
314 acpi_install_exception_handler (
315 acpi_exception_handler handler
);
324 acpi_acquire_global_lock (
329 acpi_release_global_lock (
333 acpi_remove_gpe_handler (
334 acpi_handle gpe_device
,
336 acpi_event_handler address
);
352 #ifdef ACPI_FUTURE_USAGE
354 acpi_get_event_status (
356 acpi_event_status
*event_status
);
357 #endif /* ACPI_FUTURE_USAGE */
361 acpi_handle gpe_device
,
367 acpi_handle gpe_device
,
373 acpi_handle gpe_device
,
379 acpi_handle gpe_device
,
383 #ifdef ACPI_FUTURE_USAGE
385 acpi_get_gpe_status (
386 acpi_handle gpe_device
,
389 acpi_event_status
*event_status
);
390 #endif /* ACPI_FUTURE_USAGE */
393 acpi_install_gpe_block (
394 acpi_handle gpe_device
,
395 struct acpi_generic_address
*gpe_block_address
,
397 u32 interrupt_level
);
400 acpi_remove_gpe_block (
401 acpi_handle gpe_device
);
405 * Resource interfaces
409 acpi_status (*ACPI_WALK_RESOURCE_CALLBACK
) (
410 struct acpi_resource
*resource
,
415 acpi_get_current_resources(
416 acpi_handle device_handle
,
417 struct acpi_buffer
*ret_buffer
);
419 #ifdef ACPI_FUTURE_USAGE
421 acpi_get_possible_resources(
422 acpi_handle device_handle
,
423 struct acpi_buffer
*ret_buffer
);
427 acpi_walk_resources (
428 acpi_handle device_handle
,
430 ACPI_WALK_RESOURCE_CALLBACK user_function
,
434 acpi_set_current_resources (
435 acpi_handle device_handle
,
436 struct acpi_buffer
*in_buffer
);
439 acpi_get_irq_routing_table (
440 acpi_handle bus_device_handle
,
441 struct acpi_buffer
*ret_buffer
);
444 acpi_resource_to_address64 (
445 struct acpi_resource
*resource
,
446 struct acpi_resource_address64
*out
);
449 * Hardware (ACPI device) interfaces
465 acpi_set_firmware_waking_vector (
466 acpi_physical_address physical_address
);
468 #ifdef ACPI_FUTURE_USAGE
470 acpi_get_firmware_waking_vector (
471 acpi_physical_address
*physical_address
);
475 acpi_get_sleep_type_data (
481 acpi_enter_sleep_state_prep (
484 acpi_status asmlinkage
485 acpi_enter_sleep_state (
488 acpi_status asmlinkage
489 acpi_enter_sleep_state_s4bios (
493 acpi_leave_sleep_state (
497 #endif /* __ACXFACE_H__ */