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.
57 acpi_initialize_subsystem (
61 acpi_enable_subsystem (
65 acpi_initialize_objects (
72 #ifdef ACPI_FUTURE_USAGE
74 acpi_subsystem_status (
86 #ifdef ACPI_FUTURE_USAGE
88 acpi_get_system_info (
89 struct acpi_buffer *ret_buffer);
93 acpi_format_exception (
94 acpi_status exception);
97 acpi_purge_cached_objects (
100 #ifdef ACPI_FUTURE_USAGE
102 acpi_install_initialization_handler (
103 acpi_init_handler handler,
108 * ACPI Memory managment
124 * ACPI table manipulation interfaces
127 acpi_find_root_pointer (
129 struct acpi_pointer *rsdp_address);
135 #ifdef ACPI_FUTURE_USAGE
138 struct acpi_table_header *table_ptr);
142 acpi_table_type table_type);
145 acpi_get_table_header (
146 acpi_table_type table_type,
148 struct acpi_table_header *out_table_header);
149 #endif /* ACPI_FUTURE_USAGE */
153 acpi_table_type table_type,
155 struct acpi_buffer *ret_buffer);
158 acpi_get_firmware_table (
159 acpi_string signature,
162 struct acpi_table_header **table_pointer);
166 * Namespace and name interfaces
169 acpi_walk_namespace (
170 acpi_object_type type,
171 acpi_handle start_object,
173 acpi_walk_callback user_function,
175 void **return_value);
180 acpi_walk_callback user_function,
182 void **return_value);
188 struct acpi_buffer *ret_path_ptr);
193 acpi_string pathname,
194 acpi_handle *ret_handle);
198 acpi_handle obj_handle,
199 acpi_object_handler handler,
204 acpi_handle obj_handle,
205 acpi_object_handler handler);
209 acpi_handle obj_handle,
210 acpi_object_handler handler,
215 * Object manipulation and enumeration
218 acpi_evaluate_object (
220 acpi_string pathname,
221 struct acpi_object_list *parameter_objects,
222 struct acpi_buffer *return_object_buffer);
224 #ifdef ACPI_FUTURE_USAGE
226 acpi_evaluate_object_typed (
228 acpi_string pathname,
229 struct acpi_object_list *external_params,
230 struct acpi_buffer *return_buffer,
231 acpi_object_type return_type);
235 acpi_get_object_info (
237 struct acpi_buffer *return_buffer);
240 acpi_get_next_object (
241 acpi_object_type type,
244 acpi_handle *out_handle);
249 acpi_object_type *out_type);
254 acpi_handle *out_handle);
258 * Event handler interfaces
261 acpi_install_fixed_event_handler (
263 acpi_event_handler handler,
267 acpi_remove_fixed_event_handler (
269 acpi_event_handler handler);
272 acpi_install_notify_handler (
275 acpi_notify_handler handler,
279 acpi_remove_notify_handler (
282 acpi_notify_handler handler);
285 acpi_install_address_space_handler (
287 acpi_adr_space_type space_id,
288 acpi_adr_space_handler handler,
289 acpi_adr_space_setup setup,
293 acpi_remove_address_space_handler (
295 acpi_adr_space_type space_id,
296 acpi_adr_space_handler handler);
299 acpi_install_gpe_handler (
300 acpi_handle gpe_device,
303 acpi_event_handler address,
306 #ifdef ACPI_FUTURE_USAGE
308 acpi_install_exception_handler (
309 acpi_exception_handler handler);
317 acpi_acquire_global_lock (
322 acpi_release_global_lock (
326 acpi_remove_gpe_handler (
327 acpi_handle gpe_device,
329 acpi_event_handler address);
345 #ifdef ACPI_FUTURE_USAGE
347 acpi_get_event_status (
349 acpi_event_status *event_status);
350 #endif /* ACPI_FUTURE_USAGE */
354 acpi_handle gpe_device,
360 acpi_handle gpe_device,
366 acpi_handle gpe_device,
372 acpi_handle gpe_device,
376 #ifdef ACPI_FUTURE_USAGE
378 acpi_get_gpe_status (
379 acpi_handle gpe_device,
382 acpi_event_status *event_status);
383 #endif /* ACPI_FUTURE_USAGE */
386 acpi_install_gpe_block (
387 acpi_handle gpe_device,
388 struct acpi_generic_address *gpe_block_address,
390 u32 interrupt_level);
393 acpi_remove_gpe_block (
394 acpi_handle gpe_device);
398 * Resource interfaces
401 acpi_status (*ACPI_WALK_RESOURCE_CALLBACK) (
402 struct acpi_resource *resource,
407 acpi_get_current_resources(
408 acpi_handle device_handle,
409 struct acpi_buffer *ret_buffer);
411 #ifdef ACPI_FUTURE_USAGE
413 acpi_get_possible_resources(
414 acpi_handle device_handle,
415 struct acpi_buffer *ret_buffer);
419 acpi_walk_resources (
420 acpi_handle device_handle,
422 ACPI_WALK_RESOURCE_CALLBACK user_function,
426 acpi_set_current_resources (
427 acpi_handle device_handle,
428 struct acpi_buffer *in_buffer);
431 acpi_get_irq_routing_table (
432 acpi_handle bus_device_handle,
433 struct acpi_buffer *ret_buffer);
436 acpi_resource_to_address64 (
437 struct acpi_resource *resource,
438 struct acpi_resource_address64 *out);
441 * Hardware (ACPI device) interfaces
456 acpi_set_firmware_waking_vector (
457 acpi_physical_address physical_address);
459 #ifdef ACPI_FUTURE_USAGE
461 acpi_get_firmware_waking_vector (
462 acpi_physical_address *physical_address);
466 acpi_get_sleep_type_data (
472 acpi_enter_sleep_state_prep (
475 acpi_status asmlinkage
476 acpi_enter_sleep_state (
479 acpi_status asmlinkage
480 acpi_enter_sleep_state_s4bios (
484 acpi_leave_sleep_state (
488 #endif /* __ACXFACE_H__ */