Commit 1fbd8e90 authored by Len Brown's avatar Len Brown Committed by Len Brown

[ACPI] add #ifdef ACPI_FUTURE_USAGE

Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent 3d9fccf8
......@@ -350,7 +350,7 @@ acpi_ds_method_data_set_value (
* RETURN: Data type of current value of the selected Arg or Local
*
******************************************************************************/
#ifdef ACPI_FUTURE_USAGE
acpi_object_type
acpi_ds_method_data_get_type (
u16 opcode,
......@@ -385,6 +385,7 @@ acpi_ds_method_data_get_type (
return_VALUE (ACPI_GET_OBJECT_TYPE (object));
}
#endif /* ACPI_FUTURE_USAGE */
/*******************************************************************************
......
......@@ -51,6 +51,8 @@
ACPI_MODULE_NAME ("dswstate")
#ifdef ACPI_FUTURE_USAGE
/*******************************************************************************
*
* FUNCTION: acpi_ds_result_insert
......@@ -174,6 +176,8 @@ acpi_ds_result_remove (
return (AE_OK);
}
#endif /* ACPI_FUTURE_USAGE */
/*******************************************************************************
*
......@@ -445,7 +449,7 @@ acpi_ds_result_stack_pop (
* Should be used with great care, if at all!
*
******************************************************************************/
#ifdef ACPI_FUTURE_USAGE
acpi_status
acpi_ds_obj_stack_delete_all (
struct acpi_walk_state *walk_state)
......@@ -467,6 +471,7 @@ acpi_ds_obj_stack_delete_all (
return_ACPI_STATUS (AE_OK);
}
#endif /* ACPI_FUTURE_USAGE */
/*******************************************************************************
......@@ -687,7 +692,7 @@ acpi_ds_obj_stack_pop_and_delete (
* be within the range of the current stack pointer.
*
******************************************************************************/
#ifdef ACPI_FUTURE_USAGE
void *
acpi_ds_obj_stack_get_value (
u32 index,
......@@ -712,6 +717,7 @@ acpi_ds_obj_stack_get_value (
return_PTR (walk_state->operands[(acpi_native_uint)(walk_state->num_operands - 1) -
index]);
}
#endif /* ACPI_FUTURE_USAGE */
/*******************************************************************************
......
......@@ -64,7 +64,7 @@
* DESCRIPTION: Saves the pointer to the handler function
*
******************************************************************************/
#ifdef ACPI_FUTURE_USAGE
acpi_status
acpi_install_exception_handler (
acpi_exception_handler handler)
......@@ -95,6 +95,7 @@ acpi_install_exception_handler (
(void) acpi_ut_release_mutex (ACPI_MTX_EVENTS);
return_ACPI_STATUS (status);
}
#endif /* ACPI_FUTURE_USAGE */
/*******************************************************************************
......
......@@ -435,7 +435,7 @@ EXPORT_SYMBOL(acpi_disable_event);
* DESCRIPTION: Clear an ACPI event (fixed)
*
******************************************************************************/
#ifdef ACPI_FUTURE_USAGE
acpi_status
acpi_clear_event (
u32 event)
......@@ -462,6 +462,7 @@ acpi_clear_event (
return_ACPI_STATUS (status);
}
EXPORT_SYMBOL(acpi_clear_event);
#endif /* ACPI_FUTURE_USAGE */
/*******************************************************************************
......@@ -518,6 +519,8 @@ acpi_clear_gpe (
}
#ifdef ACPI_FUTURE_USAGE
/*******************************************************************************
*
* FUNCTION: acpi_get_event_status
......@@ -619,6 +622,7 @@ acpi_get_gpe_status (
}
return_ACPI_STATUS (status);
}
#endif /* ACPI_FUTURE_USAGE */
/*******************************************************************************
......@@ -773,4 +777,3 @@ acpi_remove_gpe_block (
return_ACPI_STATUS (status);
}
EXPORT_SYMBOL(acpi_remove_gpe_block);
......@@ -438,6 +438,8 @@ acpi_ex_dump_operands (
}
#ifdef ACPI_FUTURE_USAGE
/*****************************************************************************
*
* FUNCTION: acpi_ex_out*
......@@ -786,5 +788,7 @@ acpi_ex_dump_object_descriptor (
return_VOID;
}
#endif /* ACPI_FUTURE_USAGE */
#endif
......@@ -2,6 +2,8 @@
# Makefile for all Linux ACPI interpreter subdirectories
#
obj-y := hwacpi.o hwgpe.o hwregs.o hwsleep.o hwtimer.o
obj-y := hwacpi.o hwgpe.o hwregs.o hwsleep.o
obj-$(ACPI_FUTURE_USAGE) += hwtimer.o
EXTRA_CFLAGS += $(ACPI_CFLAGS)
......@@ -135,7 +135,7 @@ acpi_hw_clear_gpe (
* DESCRIPTION: Return the status of a single GPE.
*
******************************************************************************/
#ifdef ACPI_FUTURE_USAGE
acpi_status
acpi_hw_get_gpe_status (
struct acpi_gpe_event_info *gpe_event_info,
......@@ -194,6 +194,7 @@ acpi_hw_get_gpe_status (
unlock_and_exit:
return (status);
}
#endif /* ACPI_FUTURE_USAGE */
/******************************************************************************
......
......@@ -112,7 +112,7 @@ acpi_set_firmware_waking_vector (
* DESCRIPTION: Access function for firmware_waking_vector field in FACS
*
******************************************************************************/
#ifdef ACPI_FUTURE_USAGE
acpi_status
acpi_get_firmware_waking_vector (
acpi_physical_address *physical_address)
......@@ -138,6 +138,7 @@ acpi_get_firmware_waking_vector (
return_ACPI_STATUS (AE_OK);
}
#endif
/******************************************************************************
......
......@@ -2,9 +2,11 @@
# Makefile for all Linux ACPI interpreter subdirectories
#
obj-y := nsaccess.o nsdumpdv.o nsload.o nssearch.o nsxfeval.o \
obj-y := nsaccess.o nsload.o nssearch.o nsxfeval.o \
nsalloc.o nseval.o nsnames.o nsutils.o nsxfname.o \
nsdump.o nsinit.o nsobject.o nswalk.o nsxfobj.o \
nsparse.o
obj-$(ACPI_FUTURE_USAGE) += nsdumpdv.o
EXTRA_CFLAGS += $(ACPI_CFLAGS)
......@@ -550,6 +550,8 @@ acpi_ns_dump_one_object (
}
#ifdef ACPI_FUTURE_USAGE
/*******************************************************************************
*
* FUNCTION: acpi_ns_dump_objects
......@@ -635,6 +637,8 @@ acpi_ns_dump_tables (
return_VOID;
}
#endif /* ACPI_FUTURE_USAGE */
/*******************************************************************************
*
......
......@@ -321,6 +321,8 @@ acpi_ns_load_namespace (
}
#ifdef ACPI_FUTURE_USAGE
/*******************************************************************************
*
* FUNCTION: acpi_ns_delete_subtree
......@@ -452,5 +454,7 @@ acpi_ns_unload_namespace (
return_ACPI_STATUS (status);
}
#endif /* ACPI_FUTURE_USAGE */
#endif
......@@ -961,7 +961,7 @@ acpi_ns_get_node_by_path (
* (which "should not happen").
*
******************************************************************************/
#ifdef ACPI_FUTURE_USAGE
acpi_name
acpi_ns_find_parent_name (
struct acpi_namespace_node *child_node)
......@@ -994,6 +994,7 @@ acpi_ns_find_parent_name (
return_VALUE (ACPI_UNKNOWN_NAME);
}
#endif
/*******************************************************************************
......
......@@ -73,7 +73,7 @@
* be valid (non-null)
*
******************************************************************************/
#ifdef ACPI_FUTURE_USAGE
acpi_status
acpi_evaluate_object_typed (
acpi_handle handle,
......@@ -144,6 +144,7 @@ acpi_evaluate_object_typed (
return_buffer->length = 0;
return_ACPI_STATUS (AE_TYPE);
}
#endif /* ACPI_FUTURE_USAGE */
/*******************************************************************************
......
......@@ -211,6 +211,7 @@ acpi_os_unmap_memory(void __iomem *virt, acpi_size size)
iounmap(virt);
}
#ifdef ACPI_FUTURE_USAGE
acpi_status
acpi_os_get_physical_address(void *virt, acpi_physical_address *phys)
{
......@@ -221,6 +222,7 @@ acpi_os_get_physical_address(void *virt, acpi_physical_address *phys)
return AE_OK;
}
#endif
#define ACPI_MAX_OVERRIDE_LEN 100
......@@ -989,6 +991,7 @@ acpi_os_signal_semaphore(
}
EXPORT_SYMBOL(acpi_os_signal_semaphore);
#ifdef ACPI_FUTURE_USAGE
u32
acpi_os_get_line(char *buffer)
{
......@@ -1007,6 +1010,7 @@ acpi_os_get_line(char *buffer)
return 0;
}
#endif /* ACPI_FUTURE_USAGE */
/* Assumes no unreadable holes inbetween */
u8
......@@ -1019,6 +1023,7 @@ acpi_os_readable(void *ptr, acpi_size len)
return 1;
}
#ifdef ACPI_FUTURE_USAGE
u8
acpi_os_writable(void *ptr, acpi_size len)
{
......@@ -1026,6 +1031,7 @@ acpi_os_writable(void *ptr, acpi_size len)
The later may be difficult at early boot when kmap doesn't work yet. */
return 1;
}
#endif
u32
acpi_os_get_thread_id (void)
......
......@@ -181,6 +181,8 @@ acpi_ps_append_arg (
}
#ifdef ACPI_FUTURE_USAGE
/*******************************************************************************
*
* FUNCTION: acpi_ps_get_child
......@@ -192,7 +194,6 @@ acpi_ps_append_arg (
* DESCRIPTION: Get op's children or NULL if none
*
******************************************************************************/
union acpi_parse_object *
acpi_ps_get_child (
union acpi_parse_object *op)
......@@ -322,4 +323,5 @@ acpi_ps_get_depth_next (
return (next);
}
#endif /* ACPI_FUTURE_USAGE */
......@@ -267,6 +267,7 @@ acpi_ps_is_prefix_char (
/*
* Get op's name (4-byte name segment) or 0 if unnamed
*/
#ifdef ACPI_FUTURE_USAGE
u32
acpi_ps_get_name (
union acpi_parse_object *op)
......@@ -283,6 +284,7 @@ acpi_ps_get_name (
return (op->named.name);
}
#endif /* ACPI_FUTURE_USAGE */
/*
......
......@@ -67,6 +67,7 @@ acpi_pci_data_handler (
* to resolve PCI information for ACPI-PCI devices defined in the namespace.
* This typically occurs when resolving PCI operation region information.
*/
#ifdef ACPI_FUTURE_USAGE
acpi_status
acpi_os_get_pci_id (
acpi_handle handle,
......@@ -114,6 +115,7 @@ acpi_os_get_pci_id (
return_ACPI_STATUS(AE_OK);
}
#endif /* ACPI_FUTURE_USAGE */
int
......
......@@ -3,6 +3,8 @@
#
obj-y := rsaddr.o rscreate.o rsio.o rslist.o rsmisc.o rsxface.o \
rscalc.o rsdump.o rsirq.o rsmemory.o rsutils.o
rscalc.o rsirq.o rsmemory.o rsutils.o
obj-$(ACPI_FUTURE_USAGE) += rsdump.o
EXTRA_CFLAGS += $(ACPI_CFLAGS)
......@@ -175,7 +175,7 @@ acpi_rs_get_crs_method_data (
* and the contents of the callers buffer is undefined.
*
******************************************************************************/
#ifdef ACPI_FUTURE_USAGE
acpi_status
acpi_rs_get_prs_method_data (
acpi_handle handle,
......@@ -210,6 +210,7 @@ acpi_rs_get_prs_method_data (
acpi_ut_remove_reference (obj_desc);
return_ACPI_STATUS (status);
}
#endif /* ACPI_FUTURE_USAGE */
/*******************************************************************************
......
......@@ -180,7 +180,7 @@ EXPORT_SYMBOL(acpi_get_current_resources);
* and the value of ret_buffer is undefined.
*
******************************************************************************/
#ifdef ACPI_FUTURE_USAGE
acpi_status
acpi_get_possible_resources (
acpi_handle device_handle,
......@@ -211,6 +211,7 @@ acpi_get_possible_resources (
return_ACPI_STATUS (status);
}
EXPORT_SYMBOL(acpi_get_possible_resources);
#endif /* ACPI_FUTURE_USAGE */
/*******************************************************************************
......
......@@ -62,7 +62,7 @@
* return a pointer to that table descriptor.
*
******************************************************************************/
#ifdef ACPI_FUTURE_USAGE
acpi_status
acpi_tb_handle_to_object (
u16 table_id,
......@@ -90,6 +90,7 @@ acpi_tb_handle_to_object (
ACPI_DEBUG_PRINT ((ACPI_DB_ERROR, "table_id=%X does not exist\n", table_id));
return (AE_BAD_PARAMETER);
}
#endif /* ACPI_FUTURE_USAGE */
/*******************************************************************************
......
......@@ -138,6 +138,8 @@ acpi_load_tables (void)
}
#ifdef ACPI_FUTURE_USAGE
/*******************************************************************************
*
* FUNCTION: acpi_load_table
......@@ -344,6 +346,8 @@ acpi_get_table_header (
}
#endif /* ACPI_FUTURE_USAGE */
/*******************************************************************************
*
* FUNCTION: acpi_get_table
......
......@@ -818,7 +818,7 @@ acpi_ut_remove_allocation (
* DESCRIPTION: Print some info about the outstanding allocations.
*
******************************************************************************/
#ifdef ACPI_FUTURE_USAGE
void
acpi_ut_dump_allocation_info (
void)
......@@ -864,6 +864,7 @@ acpi_ut_dump_allocation_info (
*/
return_VOID;
}
#endif /* ACPI_FUTURE_USAGE */
/*******************************************************************************
......
......@@ -488,7 +488,7 @@ acpi_ut_strtoul64 (
* DESCRIPTION: Convert string to uppercase
*
******************************************************************************/
#ifdef ACPI_FUTURE_USAGE
char *
acpi_ut_strupr (
char *src_string)
......@@ -508,6 +508,7 @@ acpi_ut_strupr (
return (src_string);
}
#endif /* ACPI_FUTURE_USAGE */
/*******************************************************************************
......
......@@ -343,6 +343,8 @@ acpi_terminate (void)
}
#ifdef ACPI_FUTURE_USAGE
/*****************************************************************************
*
* FUNCTION: acpi_subsystem_status
......@@ -491,6 +493,8 @@ acpi_install_initialization_handler (
return AE_OK;
}
#endif /* ACPI_FUTURE_USAGE */
/*****************************************************************************
*
......
......@@ -62,10 +62,12 @@ acpi_ds_obj_stack_pop (
u32 pop_count,
struct acpi_walk_state *walk_state);
#ifdef ACPI_FUTURE_USAGE
void *
acpi_ds_obj_stack_get_value (
u32 index,
struct acpi_walk_state *walk_state);
#endif
acpi_status
acpi_ds_obj_stack_pop_object (
......@@ -248,11 +250,13 @@ u8
acpi_ds_is_method_value (
union acpi_operand_object *obj_desc);
#ifdef ACPI_FUTURE_USAGE
acpi_object_type
acpi_ds_method_data_get_type (
u16 opcode,
u32 index,
struct acpi_walk_state *walk_state);
#endif
acpi_status
acpi_ds_method_data_get_value (
......@@ -440,9 +444,11 @@ acpi_ds_init_aml_walk (
struct acpi_parameter_info *info,
u32 pass_number);
#ifdef ACPI_FUTURE_USAGE
acpi_status
acpi_ds_obj_stack_delete_all (
struct acpi_walk_state *walk_state);
#endif
acpi_status
acpi_ds_obj_stack_pop_and_delete (
......@@ -482,6 +488,7 @@ void
acpi_ds_delete_walk_state_cache (
void);
#ifdef ACPI_FUTURE_USAGE
acpi_status
acpi_ds_result_insert (
void *object,
......@@ -493,6 +500,7 @@ acpi_ds_result_remove (
union acpi_operand_object **object,
u32 index,
struct acpi_walk_state *walk_state);
#endif
acpi_status
acpi_ds_result_pop (
......
......@@ -131,10 +131,12 @@ acpi_hw_clear_gpe_block (
struct acpi_gpe_xrupt_info *gpe_xrupt_info,
struct acpi_gpe_block_info *gpe_block);
#ifdef ACPI_FUTURE_USAGE
acpi_status
acpi_hw_get_gpe_status (
struct acpi_gpe_event_info *gpe_event_info,
acpi_event_status *event_status);
#endif
acpi_status
acpi_hw_disable_all_gpes (
......@@ -161,6 +163,7 @@ acpi_hw_enable_wakeup_gpe_block (
/* ACPI Timer prototypes */
#ifdef ACPI_FUTURE_USAGE
acpi_status
acpi_get_timer_resolution (
u32 *resolution);
......@@ -174,6 +177,6 @@ acpi_get_timer_duration (
u32 start_ticks,
u32 end_ticks,
u32 *time_elapsed);
#endif /* ACPI_FUTURE_USAGE */
#endif /* __ACHWARE_H__ */
......@@ -504,6 +504,7 @@ acpi_ex_dump_operands (
char *module_name,
u32 line_number);
#ifdef ACPI_FUTURE_USAGE
void
acpi_ex_dump_object_descriptor (
union acpi_operand_object *object,
......@@ -533,7 +534,7 @@ void
acpi_ex_out_address (
char *title,
acpi_physical_address value);
#endif /* ACPI_FUTURE_USAGE */
/*
* exnames - interpreter/scanner name load/execute
......
......@@ -538,7 +538,11 @@
#define ACPI_DUMP_ENTRY(a,b) acpi_ns_dump_entry (a,b)
#ifdef ACPI_FUTURE_USAGE
#define ACPI_DUMP_TABLES(a,b) acpi_ns_dump_tables(a,b)
#endif
#define ACPI_DUMP_PATHNAME(a,b,c,d) acpi_ns_dump_pathname(a,b,c,d)
#define ACPI_DUMP_RESOURCE_LIST(a) acpi_rs_dump_resource_list(a)
#define ACPI_DUMP_BUFFER(a,b) acpi_ut_dump_buffer((u8 *)a,b,DB_BYTE_DISPLAY,_COMPONENT)
......@@ -591,7 +595,11 @@
#define ACPI_DUMP_STACK_ENTRY(a)
#define ACPI_DUMP_OPERANDS(a,b,c,d,e)
#define ACPI_DUMP_ENTRY(a,b)
#ifdef ACPI_FUTURE_USAGE
#define ACPI_DUMP_TABLES(a,b)
#endif
#define ACPI_DUMP_PATHNAME(a,b,c,d)
#define ACPI_DUMP_RESOURCE_LIST(a)
#define ACPI_DUMP_BUFFER(a,b)
......
......@@ -210,6 +210,7 @@ acpi_ns_remove_reference (
* Namespace modification - nsmodify
*/
#ifdef ACPI_FUTURE_USAGE
acpi_status
acpi_ns_unload_namespace (
acpi_handle handle);
......@@ -217,16 +218,19 @@ acpi_ns_unload_namespace (
acpi_status
acpi_ns_delete_subtree (
acpi_handle start_handle);
#endif
/*
* Namespace dump/print utilities - nsdump
*/
#ifdef ACPI_FUTURE_USAGE
void
acpi_ns_dump_tables (
acpi_handle search_base,
u32 max_depth);
#endif
void
acpi_ns_dump_entry (
......@@ -245,6 +249,7 @@ acpi_ns_print_pathname (
u32 num_segments,
char *pathname);
#ifdef ACPI_FUTURE_USAGE
acpi_status
acpi_ns_dump_one_device (
acpi_handle obj_handle,
......@@ -255,6 +260,7 @@ acpi_ns_dump_one_device (
void
acpi_ns_dump_root_devices (
void);
#endif /* ACPI_FUTURE_USAGE */
acpi_status
acpi_ns_dump_one_object (
......@@ -263,6 +269,7 @@ acpi_ns_dump_one_object (
void *context,
void **return_value);
#ifdef ACPI_FUTURE_USAGE
void
acpi_ns_dump_objects (
acpi_object_type type,
......@@ -270,6 +277,7 @@ acpi_ns_dump_objects (
u32 max_depth,
u32 ownder_id,
acpi_handle start_handle);
#endif
/*
......@@ -303,9 +311,11 @@ acpi_ns_get_object_value (
* Parent/Child/Peer utility functions
*/
#ifdef ACPI_FUTURE_USAGE
acpi_name
acpi_ns_find_parent_name (
struct acpi_namespace_node *node_to_search);
#endif
/*
......
......@@ -247,6 +247,7 @@ acpi_ps_get_arg(
union acpi_parse_object *op,
u32 argn);
#ifdef ACPI_FUTURE_USAGE
union acpi_parse_object *
acpi_ps_get_child (
union acpi_parse_object *op);
......@@ -255,6 +256,7 @@ union acpi_parse_object *
acpi_ps_get_depth_next (
union acpi_parse_object *origin,
union acpi_parse_object *op);
#endif /* ACPI_FUTURE_USAGE */
/* pswalk - parse tree walk routines */
......@@ -313,9 +315,11 @@ u8
acpi_ps_is_prefix_char (
u32 c);
#ifdef ACPI_FUTURE_USAGE
u32
acpi_ps_get_name(
union acpi_parse_object *op);
#endif
void
acpi_ps_set_name(
......
......@@ -176,10 +176,12 @@ acpi_os_unmap_memory (
void __iomem *logical_address,
acpi_size size);
#ifdef ACPI_FUTURE_USAGE
acpi_status
acpi_os_get_physical_address (
void *logical_address,
acpi_physical_address *physical_address);
#endif
/*
......@@ -302,10 +304,12 @@ acpi_os_readable (
void *pointer,
acpi_size length);
#ifdef ACPI_FUTURE_USAGE
u8
acpi_os_writable (
void *pointer,
acpi_size length);
#endif
u64
acpi_os_get_timer (
......@@ -339,9 +343,11 @@ acpi_os_redirect_output (
* Debug input
*/
#ifdef ACPI_FUTURE_USAGE
u32
acpi_os_get_line (
char *buffer);
#endif
/*
......
......@@ -70,9 +70,11 @@ acpi_status
acpi_terminate (
void);
#ifdef ACPI_FUTURE_USAGE
acpi_status
acpi_subsystem_status (
void);
#endif
acpi_status
acpi_enable (
......@@ -82,9 +84,11 @@ acpi_status
acpi_disable (
void);
#ifdef ACPI_FUTURE_USAGE
acpi_status
acpi_get_system_info (
struct acpi_buffer *ret_buffer);
#endif
const char *
acpi_format_exception (
......@@ -94,10 +98,12 @@ acpi_status
acpi_purge_cached_objects (
void);
#ifdef ACPI_FUTURE_USAGE
acpi_status
acpi_install_initialization_handler (
acpi_init_handler handler,
u32 function);
#endif
/*
* ACPI Memory manager
......@@ -129,6 +135,7 @@ acpi_status
acpi_load_tables (
void);
#ifdef ACPI_FUTURE_USAGE
acpi_status
acpi_load_table (
struct acpi_table_header *table_ptr);
......@@ -142,6 +149,7 @@ acpi_get_table_header (
acpi_table_type table_type,
u32 instance,
struct acpi_table_header *out_table_header);
#endif /* ACPI_FUTURE_USAGE */
acpi_status
acpi_get_table (
......@@ -218,6 +226,7 @@ acpi_evaluate_object (
struct acpi_object_list *parameter_objects,
struct acpi_buffer *return_object_buffer);
#ifdef ACPI_FUTURE_USAGE
acpi_status
acpi_evaluate_object_typed (
acpi_handle object,
......@@ -225,6 +234,7 @@ acpi_evaluate_object_typed (
struct acpi_object_list *external_params,
struct acpi_buffer *return_buffer,
acpi_object_type return_type);
#endif
acpi_status
acpi_get_object_info (
......@@ -299,9 +309,11 @@ acpi_install_gpe_handler (
acpi_event_handler address,
void *context);
#ifdef ACPI_FUTURE_USAGE
acpi_status
acpi_install_exception_handler (
acpi_exception_handler handler);
#endif
/*
......@@ -333,6 +345,7 @@ acpi_disable_event (
u32 event,
u32 flags);
#ifdef ACPI_FUTURE_USAGE
acpi_status
acpi_clear_event (
u32 event);
......@@ -341,6 +354,7 @@ acpi_status
acpi_get_event_status (
u32 event,
acpi_event_status *event_status);
#endif /* ACPI_FUTURE_USAGE */
acpi_status
acpi_set_gpe_type (
......@@ -366,12 +380,14 @@ acpi_clear_gpe (
u32 gpe_number,
u32 flags);
#ifdef ACPI_FUTURE_USAGE
acpi_status
acpi_get_gpe_status (
acpi_handle gpe_device,
u32 gpe_number,
u32 flags,
acpi_event_status *event_status);
#endif /* ACPI_FUTURE_USAGE */
acpi_status
acpi_install_gpe_block (
......@@ -400,10 +416,12 @@ acpi_get_current_resources(
acpi_handle device_handle,
struct acpi_buffer *ret_buffer);
#ifdef ACPI_FUTURE_USAGE
acpi_status
acpi_get_possible_resources(
acpi_handle device_handle,
struct acpi_buffer *ret_buffer);
#endif
acpi_status
acpi_walk_resources (
......@@ -447,9 +465,11 @@ acpi_status
acpi_set_firmware_waking_vector (
acpi_physical_address physical_address);
#ifdef ACPI_FUTURE_USAGE
acpi_status
acpi_get_firmware_waking_vector (
acpi_physical_address *physical_address);
#endif
acpi_status
acpi_get_sleep_type_data (
......
......@@ -60,10 +60,12 @@ acpi_rs_get_crs_method_data (
acpi_handle handle,
struct acpi_buffer *ret_buffer);
#ifdef ACPI_FUTURE_USAGE
acpi_status
acpi_rs_get_prs_method_data (
acpi_handle handle,
struct acpi_buffer *ret_buffer);
#endif
acpi_status
acpi_rs_get_method_data (
......@@ -95,6 +97,7 @@ acpi_rs_create_pci_routing_table (
/*
* Function prototypes called from acpi_rs_create*
*/
#ifdef ACPI_FUTURE_USAGE
void
acpi_rs_dump_irq (
union acpi_resource_data *data);
......@@ -154,6 +157,7 @@ acpi_rs_dump_resource_list (
void
acpi_rs_dump_irq_list (
u8 *route_table);
#endif /* ACPI_FUTURE_USAGE */
acpi_status
acpi_rs_get_byte_stream_start (
......
......@@ -50,10 +50,12 @@
#define SIZE_IN_HEADER 0
#ifdef ACPI_FUTURE_USAGE
acpi_status
acpi_tb_handle_to_object (
u16 table_id,
struct acpi_table_desc **table_desc);
#endif
/*
* tbconvrt - Table conversion routines
......
......@@ -666,12 +666,14 @@ acpi_ut_create_update_state_and_push (
u16 action,
union acpi_generic_state **state_list);
#ifdef ACPI_FUTURE_USAGE
acpi_status
acpi_ut_create_pkg_state_and_push (
void *internal_object,
void *external_object,
u16 index,
union acpi_generic_state **state_list);
#endif
union acpi_generic_state *
acpi_ut_create_control_state (
......@@ -730,9 +732,11 @@ acpi_ut_strtoul64 (
#define ACPI_ANY_BASE 0
#ifdef ACPI_FUTURE_USAGE
char *
acpi_ut_strupr (
char *src_string);
#endif
u8 *
acpi_ut_get_resource_end_tag (
......@@ -851,9 +855,11 @@ acpi_ut_remove_allocation (
char *module,
u32 line);
#ifdef ACPI_FUTURE_USAGE
void
acpi_ut_dump_allocation_info (
void);
#endif
void
acpi_ut_dump_allocations (
......
......@@ -223,7 +223,11 @@
*/
#define ACPI_STRSTR(s1,s2) strstr((s1), (s2))
#ifdef ACPI_FUTURE_USAGE
#define ACPI_STRUPR(s) (void) acpi_ut_strupr ((s))
#endif
#define ACPI_STRLEN(s) (acpi_size) strlen((s))
#define ACPI_STRCPY(d,s) (void) strcpy((d), (s))
#define ACPI_STRNCPY(d,s,n) (void) strncpy((d), (s), (acpi_size)(n))
......@@ -287,7 +291,11 @@ typedef char *va_list;
#define ACPI_STRSTR(s1,s2) acpi_ut_strstr ((s1), (s2))
#ifdef ACPI_FUTURE_USAGE
#define ACPI_STRUPR(s) (void) acpi_ut_strupr ((s))
#endif
#define ACPI_STRLEN(s) (acpi_size) acpi_ut_strlen ((s))
#define ACPI_STRCPY(d,s) (void) acpi_ut_strcpy ((d), (s))
#define ACPI_STRNCPY(d,s,n) (void) acpi_ut_strncpy ((d), (s), (acpi_size)(n))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment