11da177e4SLinus Torvalds 21da177e4SLinus Torvalds /****************************************************************************** 31da177e4SLinus Torvalds * 41da177e4SLinus Torvalds * Name: acpixf.h - External interfaces to the ACPI subsystem 51da177e4SLinus Torvalds * 61da177e4SLinus Torvalds *****************************************************************************/ 71da177e4SLinus Torvalds 81da177e4SLinus Torvalds /* 9b4e104eaSBob Moore * Copyright (C) 2000 - 2011, Intel Corp. 101da177e4SLinus Torvalds * All rights reserved. 111da177e4SLinus Torvalds * 121da177e4SLinus Torvalds * Redistribution and use in source and binary forms, with or without 131da177e4SLinus Torvalds * modification, are permitted provided that the following conditions 141da177e4SLinus Torvalds * are met: 151da177e4SLinus Torvalds * 1. Redistributions of source code must retain the above copyright 161da177e4SLinus Torvalds * notice, this list of conditions, and the following disclaimer, 171da177e4SLinus Torvalds * without modification. 181da177e4SLinus Torvalds * 2. Redistributions in binary form must reproduce at minimum a disclaimer 191da177e4SLinus Torvalds * substantially similar to the "NO WARRANTY" disclaimer below 201da177e4SLinus Torvalds * ("Disclaimer") and any redistribution must be conditioned upon 211da177e4SLinus Torvalds * including a substantially similar Disclaimer requirement for further 221da177e4SLinus Torvalds * binary redistribution. 231da177e4SLinus Torvalds * 3. Neither the names of the above-listed copyright holders nor the names 241da177e4SLinus Torvalds * of any contributors may be used to endorse or promote products derived 251da177e4SLinus Torvalds * from this software without specific prior written permission. 261da177e4SLinus Torvalds * 271da177e4SLinus Torvalds * Alternatively, this software may be distributed under the terms of the 281da177e4SLinus Torvalds * GNU General Public License ("GPL") version 2 as published by the Free 291da177e4SLinus Torvalds * Software Foundation. 301da177e4SLinus Torvalds * 311da177e4SLinus Torvalds * NO WARRANTY 321da177e4SLinus Torvalds * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 331da177e4SLinus Torvalds * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 341da177e4SLinus Torvalds * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR 351da177e4SLinus Torvalds * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 361da177e4SLinus Torvalds * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 371da177e4SLinus Torvalds * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 381da177e4SLinus Torvalds * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 391da177e4SLinus Torvalds * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 401da177e4SLinus Torvalds * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 411da177e4SLinus Torvalds * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 421da177e4SLinus Torvalds * POSSIBILITY OF SUCH DAMAGES. 431da177e4SLinus Torvalds */ 441da177e4SLinus Torvalds 451da177e4SLinus Torvalds #ifndef __ACXFACE_H__ 461da177e4SLinus Torvalds #define __ACXFACE_H__ 471da177e4SLinus Torvalds 4850df4d8bSBob Moore /* Current ACPICA subsystem version in YYYYMMDD format */ 4950df4d8bSBob Moore 50*80f40ce0SBob Moore #define ACPI_CA_VERSION 0x20110527 5150df4d8bSBob Moore 521da177e4SLinus Torvalds #include "actypes.h" 531da177e4SLinus Torvalds #include "actbl.h" 541da177e4SLinus Torvalds 55889c78beSLin Ming extern u8 acpi_gbl_permanent_mmap; 56889c78beSLin Ming 571da177e4SLinus Torvalds /* 5858f87ed0SLucas De Marchi * Globals that are publicly available, allowing for 5950df4d8bSBob Moore * run time configuration 6050df4d8bSBob Moore */ 6150df4d8bSBob Moore extern u32 acpi_dbg_level; 6250df4d8bSBob Moore extern u32 acpi_dbg_layer; 6350df4d8bSBob Moore extern u8 acpi_gbl_enable_interpreter_slack; 6450df4d8bSBob Moore extern u8 acpi_gbl_all_methods_serialized; 6550df4d8bSBob Moore extern u8 acpi_gbl_create_osi_method; 66f8d80cdfSBob Moore extern u8 acpi_gbl_use_default_register_widths; 6750df4d8bSBob Moore extern acpi_name acpi_gbl_trace_method_name; 6850df4d8bSBob Moore extern u32 acpi_gbl_trace_flags; 69c637e486SZhang Rui extern u32 acpi_gbl_enable_aml_debug_object; 7069ec87efSLin Ming extern u8 acpi_gbl_copy_dsdt_locally; 71b681f7d9SMatthew Garrett extern u8 acpi_gbl_truncate_io_addresses; 7250df4d8bSBob Moore 7350df4d8bSBob Moore extern u32 acpi_current_gpe_count; 7450df4d8bSBob Moore extern struct acpi_table_fadt acpi_gbl_FADT; 7531b3d4c3SBob Moore extern u8 acpi_gbl_system_awake_and_running; 7650df4d8bSBob Moore 77237889bfSZhao Yakui extern u32 acpi_rsdt_forced; 7850df4d8bSBob Moore /* 791da177e4SLinus Torvalds * Global interfaces 801da177e4SLinus Torvalds */ 81f3d2e786SBob Moore acpi_status 82f3d2e786SBob Moore acpi_initialize_tables(struct acpi_table_desc *initial_storage, 83f3d2e786SBob Moore u32 initial_table_count, u8 allow_resize); 84f3d2e786SBob Moore 85dd272b57SLen Brown acpi_status __init acpi_initialize_subsystem(void); 861da177e4SLinus Torvalds 874be44fcdSLen Brown acpi_status acpi_enable_subsystem(u32 flags); 881da177e4SLinus Torvalds 894be44fcdSLen Brown acpi_status acpi_initialize_objects(u32 flags); 901da177e4SLinus Torvalds 914be44fcdSLen Brown acpi_status acpi_terminate(void); 921da177e4SLinus Torvalds 931da177e4SLinus Torvalds #ifdef ACPI_FUTURE_USAGE 944be44fcdSLen Brown acpi_status acpi_subsystem_status(void); 951da177e4SLinus Torvalds #endif 961da177e4SLinus Torvalds 974be44fcdSLen Brown acpi_status acpi_enable(void); 981da177e4SLinus Torvalds 994be44fcdSLen Brown acpi_status acpi_disable(void); 1001da177e4SLinus Torvalds 1011da177e4SLinus Torvalds #ifdef ACPI_FUTURE_USAGE 1024be44fcdSLen Brown acpi_status acpi_get_system_info(struct acpi_buffer *ret_buffer); 1031da177e4SLinus Torvalds #endif 1041da177e4SLinus Torvalds 1054be44fcdSLen Brown const char *acpi_format_exception(acpi_status exception); 1061da177e4SLinus Torvalds 1074be44fcdSLen Brown acpi_status acpi_purge_cached_objects(void); 1081da177e4SLinus Torvalds 109b0ed7a91SLin Ming acpi_status acpi_install_interface(acpi_string interface_name); 110b0ed7a91SLin Ming 111b0ed7a91SLin Ming acpi_status acpi_remove_interface(acpi_string interface_name); 112b0ed7a91SLin Ming 1131da177e4SLinus Torvalds /* 114aee07ba6SJoe Perches * ACPI Memory management 1151da177e4SLinus Torvalds */ 1164be44fcdSLen Brown void *acpi_allocate(u32 size); 1171da177e4SLinus Torvalds 1184be44fcdSLen Brown void *acpi_callocate(u32 size); 1191da177e4SLinus Torvalds 1204be44fcdSLen Brown void acpi_free(void *address); 1211da177e4SLinus Torvalds 1221da177e4SLinus Torvalds /* 1231da177e4SLinus Torvalds * ACPI table manipulation interfaces 1241da177e4SLinus Torvalds */ 125f3d2e786SBob Moore acpi_status acpi_reallocate_root_table(void); 126f3d2e786SBob Moore 12767a119f9SBob Moore acpi_status acpi_find_root_pointer(acpi_size *rsdp_address); 1281da177e4SLinus Torvalds 1294be44fcdSLen Brown acpi_status acpi_load_tables(void); 1301da177e4SLinus Torvalds 1314be44fcdSLen Brown acpi_status acpi_load_table(struct acpi_table_header *table_ptr); 1324be44fcdSLen Brown 133f3d2e786SBob Moore acpi_status acpi_unload_table_id(acpi_owner_id id); 1341da177e4SLinus Torvalds 1351da177e4SLinus Torvalds acpi_status 136f3d2e786SBob Moore acpi_get_table_header(acpi_string signature, 13767a119f9SBob Moore u32 instance, 138428f2112SAlexey Starikovskiy struct acpi_table_header *out_table_header); 1391da177e4SLinus Torvalds 1401da177e4SLinus Torvalds acpi_status 1417d97277bSYinghai Lu acpi_get_table_with_size(acpi_string signature, 1427d97277bSYinghai Lu u32 instance, struct acpi_table_header **out_table, 1437d97277bSYinghai Lu acpi_size *tbl_size); 1447d97277bSYinghai Lu acpi_status 145f3d2e786SBob Moore acpi_get_table(acpi_string signature, 14667a119f9SBob Moore u32 instance, struct acpi_table_header **out_table); 147f3d2e786SBob Moore 148f3d2e786SBob Moore acpi_status 14967a119f9SBob Moore acpi_get_table_by_index(u32 table_index, 150f3d2e786SBob Moore struct acpi_table_header **out_table); 1511da177e4SLinus Torvalds 1523e08e2d2SLin Ming acpi_status 1533e08e2d2SLin Ming acpi_install_table_handler(acpi_tbl_handler handler, void *context); 1543e08e2d2SLin Ming 1553e08e2d2SLin Ming acpi_status acpi_remove_table_handler(acpi_tbl_handler handler); 1563e08e2d2SLin Ming 1571da177e4SLinus Torvalds /* 1581da177e4SLinus Torvalds * Namespace and name interfaces 1591da177e4SLinus Torvalds */ 1601da177e4SLinus Torvalds acpi_status 1614be44fcdSLen Brown acpi_walk_namespace(acpi_object_type type, 1621da177e4SLinus Torvalds acpi_handle start_object, 1631da177e4SLinus Torvalds u32 max_depth, 1642263576cSLin Ming acpi_walk_callback pre_order_visit, 1652263576cSLin Ming acpi_walk_callback post_order_visit, 1664be44fcdSLen Brown void *context, void **return_value); 1671da177e4SLinus Torvalds 1681da177e4SLinus Torvalds acpi_status 16970b30fb1SAl Viro acpi_get_devices(const char *HID, 1701da177e4SLinus Torvalds acpi_walk_callback user_function, 1714be44fcdSLen Brown void *context, void **return_value); 1721da177e4SLinus Torvalds 1731da177e4SLinus Torvalds acpi_status 174b47cf58eSBob Moore acpi_get_name(acpi_handle object, 1754be44fcdSLen Brown u32 name_type, struct acpi_buffer *ret_path_ptr); 1761da177e4SLinus Torvalds 1771da177e4SLinus Torvalds acpi_status 1784be44fcdSLen Brown acpi_get_handle(acpi_handle parent, 1794be44fcdSLen Brown acpi_string pathname, acpi_handle * ret_handle); 1801da177e4SLinus Torvalds 1811da177e4SLinus Torvalds acpi_status 182b47cf58eSBob Moore acpi_attach_data(acpi_handle object, acpi_object_handler handler, void *data); 183b47cf58eSBob Moore 184b47cf58eSBob Moore acpi_status acpi_detach_data(acpi_handle object, acpi_object_handler handler); 1851da177e4SLinus Torvalds 1861da177e4SLinus Torvalds acpi_status 187b47cf58eSBob Moore acpi_get_data(acpi_handle object, acpi_object_handler handler, void **data); 1881da177e4SLinus Torvalds 18950eca3ebSBob Moore acpi_status 19050eca3ebSBob Moore acpi_debug_trace(char *name, u32 debug_level, u32 debug_layer, u32 flags); 19150eca3ebSBob Moore 1921da177e4SLinus Torvalds /* 1931da177e4SLinus Torvalds * Object manipulation and enumeration 1941da177e4SLinus Torvalds */ 1951da177e4SLinus Torvalds acpi_status 1964be44fcdSLen Brown acpi_evaluate_object(acpi_handle object, 1971da177e4SLinus Torvalds acpi_string pathname, 1981da177e4SLinus Torvalds struct acpi_object_list *parameter_objects, 1991da177e4SLinus Torvalds struct acpi_buffer *return_object_buffer); 2001da177e4SLinus Torvalds 2011da177e4SLinus Torvalds acpi_status 2024be44fcdSLen Brown acpi_evaluate_object_typed(acpi_handle object, 2031da177e4SLinus Torvalds acpi_string pathname, 2041da177e4SLinus Torvalds struct acpi_object_list *external_params, 2051da177e4SLinus Torvalds struct acpi_buffer *return_buffer, 2061da177e4SLinus Torvalds acpi_object_type return_type); 2071da177e4SLinus Torvalds 2081da177e4SLinus Torvalds acpi_status 209b47cf58eSBob Moore acpi_get_object_info(acpi_handle object, 21015b8dd53SBob Moore struct acpi_device_info **return_buffer); 2111da177e4SLinus Torvalds 212b2f7ddcfSLin Ming acpi_status acpi_install_method(u8 *buffer); 213b2f7ddcfSLin Ming 2141da177e4SLinus Torvalds acpi_status 2154be44fcdSLen Brown acpi_get_next_object(acpi_object_type type, 2161da177e4SLinus Torvalds acpi_handle parent, 2174be44fcdSLen Brown acpi_handle child, acpi_handle * out_handle); 2181da177e4SLinus Torvalds 2194be44fcdSLen Brown acpi_status acpi_get_type(acpi_handle object, acpi_object_type * out_type); 2201da177e4SLinus Torvalds 2210f0fe1a0SJohn Keller acpi_status acpi_get_id(acpi_handle object, acpi_owner_id * out_type); 2220f0fe1a0SJohn Keller 2234be44fcdSLen Brown acpi_status acpi_get_parent(acpi_handle object, acpi_handle * out_handle); 2241da177e4SLinus Torvalds 2251da177e4SLinus Torvalds /* 226ecfbbc7bSBob Moore * Handler interfaces 2271da177e4SLinus Torvalds */ 2281da177e4SLinus Torvalds acpi_status 229ecfbbc7bSBob Moore acpi_install_initialization_handler(acpi_init_handler handler, u32 function); 230ecfbbc7bSBob Moore 231ecfbbc7bSBob Moore acpi_status 232a0fcdb23SLin Ming acpi_install_global_event_handler(ACPI_GBL_EVENT_HANDLER handler, 233a0fcdb23SLin Ming void *context); 234a0fcdb23SLin Ming 235a0fcdb23SLin Ming acpi_status 2364be44fcdSLen Brown acpi_install_fixed_event_handler(u32 acpi_event, 2374be44fcdSLen Brown acpi_event_handler handler, void *context); 2381da177e4SLinus Torvalds 2391da177e4SLinus Torvalds acpi_status 2404be44fcdSLen Brown acpi_remove_fixed_event_handler(u32 acpi_event, acpi_event_handler handler); 2411da177e4SLinus Torvalds 2421da177e4SLinus Torvalds acpi_status 2434be44fcdSLen Brown acpi_install_notify_handler(acpi_handle device, 2441da177e4SLinus Torvalds u32 handler_type, 2454be44fcdSLen Brown acpi_notify_handler handler, void *context); 2461da177e4SLinus Torvalds 2471da177e4SLinus Torvalds acpi_status 2484be44fcdSLen Brown acpi_remove_notify_handler(acpi_handle device, 2494be44fcdSLen Brown u32 handler_type, acpi_notify_handler handler); 2501da177e4SLinus Torvalds 2511da177e4SLinus Torvalds acpi_status 2524be44fcdSLen Brown acpi_install_address_space_handler(acpi_handle device, 2531da177e4SLinus Torvalds acpi_adr_space_type space_id, 2541da177e4SLinus Torvalds acpi_adr_space_handler handler, 2554be44fcdSLen Brown acpi_adr_space_setup setup, void *context); 2561da177e4SLinus Torvalds 2571da177e4SLinus Torvalds acpi_status 2584be44fcdSLen Brown acpi_remove_address_space_handler(acpi_handle device, 2591da177e4SLinus Torvalds acpi_adr_space_type space_id, 2601da177e4SLinus Torvalds acpi_adr_space_handler handler); 2611da177e4SLinus Torvalds 2621da177e4SLinus Torvalds acpi_status 2634be44fcdSLen Brown acpi_install_gpe_handler(acpi_handle gpe_device, 2641da177e4SLinus Torvalds u32 gpe_number, 2658b6cd8adSLin Ming u32 type, acpi_gpe_handler address, void *context); 2661da177e4SLinus Torvalds 26708ac07b8SBob Moore acpi_status 26808ac07b8SBob Moore acpi_remove_gpe_handler(acpi_handle gpe_device, 2698b6cd8adSLin Ming u32 gpe_number, acpi_gpe_handler address); 27008ac07b8SBob Moore 2711da177e4SLinus Torvalds #ifdef ACPI_FUTURE_USAGE 2724be44fcdSLen Brown acpi_status acpi_install_exception_handler(acpi_exception_handler handler); 2731da177e4SLinus Torvalds #endif 2741da177e4SLinus Torvalds 275b0ed7a91SLin Ming acpi_status acpi_install_interface_handler(acpi_interface_handler handler); 276b0ed7a91SLin Ming 2771da177e4SLinus Torvalds /* 2781da177e4SLinus Torvalds * Event interfaces 2791da177e4SLinus Torvalds */ 2804be44fcdSLen Brown acpi_status acpi_acquire_global_lock(u16 timeout, u32 * handle); 2814be44fcdSLen Brown 2824be44fcdSLen Brown acpi_status acpi_release_global_lock(u32 handle); 2831da177e4SLinus Torvalds 2844be44fcdSLen Brown acpi_status acpi_enable_event(u32 event, u32 flags); 2851da177e4SLinus Torvalds 2864be44fcdSLen Brown acpi_status acpi_disable_event(u32 event, u32 flags); 2871da177e4SLinus Torvalds 2884be44fcdSLen Brown acpi_status acpi_clear_event(u32 event); 2891da177e4SLinus Torvalds 2904be44fcdSLen Brown acpi_status acpi_get_event_status(u32 event, acpi_event_status * event_status); 2914be44fcdSLen Brown 29208ac07b8SBob Moore /* 29308ac07b8SBob Moore * GPE Interfaces 29408ac07b8SBob Moore */ 295a44061aaSRafael J. Wysocki acpi_status acpi_enable_gpe(acpi_handle gpe_device, u32 gpe_number); 2964be44fcdSLen Brown 297a44061aaSRafael J. Wysocki acpi_status acpi_disable_gpe(acpi_handle gpe_device, u32 gpe_number); 2984be44fcdSLen Brown 2990f849d2cSLin Ming acpi_status acpi_clear_gpe(acpi_handle gpe_device, u32 gpe_number); 3001da177e4SLinus Torvalds 301bba63a29SLin Ming acpi_status 302bba63a29SLin Ming acpi_setup_gpe_for_wake(acpi_handle parent_device, 303bba63a29SLin Ming acpi_handle gpe_device, u32 gpe_number); 304bba63a29SLin Ming 3053a37898dSLin Ming acpi_status acpi_set_gpe_wake_mask(acpi_handle gpe_device, u32 gpe_number, u8 action); 306e8b6f970SRafael J. Wysocki 3071da177e4SLinus Torvalds acpi_status 3084be44fcdSLen Brown acpi_get_gpe_status(acpi_handle gpe_device, 3090f849d2cSLin Ming u32 gpe_number, acpi_event_status *event_status); 3101da177e4SLinus Torvalds 31108ac07b8SBob Moore acpi_status acpi_disable_all_gpes(void); 31208ac07b8SBob Moore 31308ac07b8SBob Moore acpi_status acpi_enable_all_runtime_gpes(void); 31408ac07b8SBob Moore 315e97d6bf1SBob Moore acpi_status acpi_get_gpe_device(u32 gpe_index, acpi_handle *gpe_device); 316e97d6bf1SBob Moore 3171da177e4SLinus Torvalds acpi_status 3184be44fcdSLen Brown acpi_install_gpe_block(acpi_handle gpe_device, 3191da177e4SLinus Torvalds struct acpi_generic_address *gpe_block_address, 3204be44fcdSLen Brown u32 register_count, u32 interrupt_number); 3211da177e4SLinus Torvalds 3224be44fcdSLen Brown acpi_status acpi_remove_gpe_block(acpi_handle gpe_device); 3231da177e4SLinus Torvalds 3243a37898dSLin Ming acpi_status acpi_update_all_gpes(void); 325a2100801SRafael J. Wysocki 3261da177e4SLinus Torvalds /* 3271da177e4SLinus Torvalds * Resource interfaces 3281da177e4SLinus Torvalds */ 3291da177e4SLinus Torvalds typedef 33061686124SBob Moore acpi_status(*acpi_walk_resource_callback) (struct acpi_resource * resource, 3311da177e4SLinus Torvalds void *context); 3321da177e4SLinus Torvalds 3331da177e4SLinus Torvalds acpi_status 334b47cf58eSBob Moore acpi_get_vendor_resource(acpi_handle device, 335c51a4de8SBob Moore char *name, 336c51a4de8SBob Moore struct acpi_vendor_uuid *uuid, 337c51a4de8SBob Moore struct acpi_buffer *ret_buffer); 338c51a4de8SBob Moore 339c51a4de8SBob Moore acpi_status 340b47cf58eSBob Moore acpi_get_current_resources(acpi_handle device, struct acpi_buffer *ret_buffer); 3411da177e4SLinus Torvalds 3421da177e4SLinus Torvalds #ifdef ACPI_FUTURE_USAGE 3431da177e4SLinus Torvalds acpi_status 344b47cf58eSBob Moore acpi_get_possible_resources(acpi_handle device, struct acpi_buffer *ret_buffer); 3451da177e4SLinus Torvalds #endif 3461da177e4SLinus Torvalds 3471da177e4SLinus Torvalds acpi_status 348b47cf58eSBob Moore acpi_walk_resources(acpi_handle device, 349c51a4de8SBob Moore char *name, 35061686124SBob Moore acpi_walk_resource_callback user_function, void *context); 3511da177e4SLinus Torvalds 3521da177e4SLinus Torvalds acpi_status 353b47cf58eSBob Moore acpi_set_current_resources(acpi_handle device, struct acpi_buffer *in_buffer); 3541da177e4SLinus Torvalds 3551da177e4SLinus Torvalds acpi_status 356b47cf58eSBob Moore acpi_get_irq_routing_table(acpi_handle device, struct acpi_buffer *ret_buffer); 3571da177e4SLinus Torvalds 3581da177e4SLinus Torvalds acpi_status 3594be44fcdSLen Brown acpi_resource_to_address64(struct acpi_resource *resource, 3601da177e4SLinus Torvalds struct acpi_resource_address64 *out); 3611da177e4SLinus Torvalds 3621da177e4SLinus Torvalds /* 3631da177e4SLinus Torvalds * Hardware (ACPI device) interfaces 3641da177e4SLinus Torvalds */ 365d3fd902dSBob Moore acpi_status acpi_reset(void); 366d3fd902dSBob Moore 36750ffba1bSBob Moore acpi_status acpi_read_bit_register(u32 register_id, u32 *return_value); 3684be44fcdSLen Brown 36950ffba1bSBob Moore acpi_status acpi_write_bit_register(u32 register_id, u32 value); 3701da177e4SLinus Torvalds 3714f70e371SBob Moore acpi_status acpi_set_firmware_waking_vector(u32 physical_address); 3721da177e4SLinus Torvalds 3734f70e371SBob Moore #if ACPI_MACHINE_WIDTH == 64 3744f70e371SBob Moore acpi_status acpi_set_firmware_waking_vector64(u64 physical_address); 3754f70e371SBob Moore #endif 3761da177e4SLinus Torvalds 377c6b5774cSBob Moore acpi_status acpi_read(u64 *value, struct acpi_generic_address *reg); 378ecfbbc7bSBob Moore 379c6b5774cSBob Moore acpi_status acpi_write(u64 value, struct acpi_generic_address *reg); 380ecfbbc7bSBob Moore 3811da177e4SLinus Torvalds acpi_status 3824be44fcdSLen Brown acpi_get_sleep_type_data(u8 sleep_state, u8 * slp_typ_a, u8 * slp_typ_b); 3831da177e4SLinus Torvalds 3844be44fcdSLen Brown acpi_status acpi_enter_sleep_state_prep(u8 sleep_state); 3851da177e4SLinus Torvalds 3864be44fcdSLen Brown acpi_status asmlinkage acpi_enter_sleep_state(u8 sleep_state); 3871da177e4SLinus Torvalds 3884be44fcdSLen Brown acpi_status asmlinkage acpi_enter_sleep_state_s4bios(void); 3891da177e4SLinus Torvalds 390c95d47a8SRafael J. Wysocki acpi_status acpi_leave_sleep_state_prep(u8 sleep_state); 391c95d47a8SRafael J. Wysocki 3924be44fcdSLen Brown acpi_status acpi_leave_sleep_state(u8 sleep_state); 3931da177e4SLinus Torvalds 39450df4d8bSBob Moore /* 395b74be611SBob Moore * Error/Warning output 39650df4d8bSBob Moore */ 39750df4d8bSBob Moore void ACPI_INTERNAL_VAR_XFACE 39850df4d8bSBob Moore acpi_error(const char *module_name, 39950df4d8bSBob Moore u32 line_number, const char *format, ...) ACPI_PRINTF_LIKE(3); 40050df4d8bSBob Moore 40150df4d8bSBob Moore void ACPI_INTERNAL_VAR_XFACE 40250df4d8bSBob Moore acpi_exception(const char *module_name, 40350df4d8bSBob Moore u32 line_number, 40450df4d8bSBob Moore acpi_status status, const char *format, ...) ACPI_PRINTF_LIKE(4); 40550df4d8bSBob Moore 40650df4d8bSBob Moore void ACPI_INTERNAL_VAR_XFACE 40750df4d8bSBob Moore acpi_warning(const char *module_name, 40850df4d8bSBob Moore u32 line_number, const char *format, ...) ACPI_PRINTF_LIKE(3); 40950df4d8bSBob Moore 41050df4d8bSBob Moore void ACPI_INTERNAL_VAR_XFACE 41150df4d8bSBob Moore acpi_info(const char *module_name, 41250df4d8bSBob Moore u32 line_number, const char *format, ...) ACPI_PRINTF_LIKE(3); 41350df4d8bSBob Moore 414b74be611SBob Moore /* 415b74be611SBob Moore * Debug output 416b74be611SBob Moore */ 41750df4d8bSBob Moore #ifdef ACPI_DEBUG_OUTPUT 41850df4d8bSBob Moore 41950df4d8bSBob Moore void ACPI_INTERNAL_VAR_XFACE 42050df4d8bSBob Moore acpi_debug_print(u32 requested_debug_level, 42150df4d8bSBob Moore u32 line_number, 42250df4d8bSBob Moore const char *function_name, 42350df4d8bSBob Moore const char *module_name, 42450df4d8bSBob Moore u32 component_id, const char *format, ...) ACPI_PRINTF_LIKE(6); 42550df4d8bSBob Moore 42650df4d8bSBob Moore void ACPI_INTERNAL_VAR_XFACE 42750df4d8bSBob Moore acpi_debug_print_raw(u32 requested_debug_level, 42850df4d8bSBob Moore u32 line_number, 42950df4d8bSBob Moore const char *function_name, 43050df4d8bSBob Moore const char *module_name, 43150df4d8bSBob Moore u32 component_id, 43250df4d8bSBob Moore const char *format, ...) ACPI_PRINTF_LIKE(6); 43350df4d8bSBob Moore #endif 43450df4d8bSBob Moore 4351da177e4SLinus Torvalds #endif /* __ACXFACE_H__ */ 436