diff options
author | Lv Zheng <lv.zheng@intel.com> | 2015-10-18 22:25:56 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2015-10-21 20:05:05 -0400 |
commit | 4d946f7970e51d80f8358e0a619dfb17d89e0920 (patch) | |
tree | 5cb76afe44ec6c420e53f793a4910d4d14cd1d2e | |
parent | f988f24ee7931d3487b36cc0c29164296bf2191e (diff) |
ACPI: Enable build of AML interpreter debugger
This patch enables ACPICA debugger files using a configurable
CONFIG_ACPI_DEBUGGER configuration item. Those debugger related code that
was originally masked as ACPI_FUTURE_USAGE now gets unmasked.
Necessary OSL stubs are also added in this patch:
1. acpi_os_readable(): This should be arch specific in Linux, while this
patch doesn't introduce real implementation and a complex mechanism to
allow architecture specific acpi_os_readable() to be implemented to
validate the address. It may be done by future commits.
2. acpi_os_get_line(): This is used to obtain debugger command input. This
patch only introduces a simple KDB concept example in it and the
example should be co-working with the code implemented in
acpi_os_printf(). Since this KDB example won't be compiled unless
ENABLE_DEBUGGER is defined and it seems Linux has already stopped to
use ENABLE_DEBUGGER, thus do not expect it can work properly.
This patch also cleans up all other ACPI_FUTURE_USAGE surroundings
accordingly.
1. Since linkage error can be automatically detected, declaration in the
headers needn't be surrounded by ACPI_FUTURE_USAGE.
So only the following separate exported fuction bodies are masked by
this macro (other exported fucntions may have already been masked at
entire module level via drivers/acpi/acpica/Makefile):
acpi_install_exception_handler()
acpi_subsystem_status()
acpi_get_system_info()
acpi_get_statistics()
acpi_install_initialization_handler()
2. Since strip can automatically zap the no-user functions, functions that
are not marked with ACPI_EXPORT_SYMBOL() needn't get surrounded by
ACPI_FUTURE_USAGE.
So the following function which is not used by Linux kernel now won't
get surrounded by this macro:
acpi_ps_get_name()
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
-rw-r--r-- | drivers/acpi/Kconfig | 9 | ||||
-rw-r--r-- | drivers/acpi/acpica/Makefile | 18 | ||||
-rw-r--r-- | drivers/acpi/acpica/acinterp.h | 2 | ||||
-rw-r--r-- | drivers/acpi/acpica/acnamesp.h | 4 | ||||
-rw-r--r-- | drivers/acpi/acpica/acparser.h | 4 | ||||
-rw-r--r-- | drivers/acpi/acpica/acutils.h | 2 | ||||
-rw-r--r-- | drivers/acpi/acpica/evxface.c | 2 | ||||
-rw-r--r-- | drivers/acpi/acpica/nsdump.c | 6 | ||||
-rw-r--r-- | drivers/acpi/acpica/pstree.c | 2 | ||||
-rw-r--r-- | drivers/acpi/acpica/psutils.c | 2 | ||||
-rw-r--r-- | drivers/acpi/acpica/rsutils.c | 2 | ||||
-rw-r--r-- | drivers/acpi/acpica/rsxface.c | 4 | ||||
-rw-r--r-- | drivers/acpi/acpica/utxface.c | 2 | ||||
-rw-r--r-- | drivers/acpi/osl.c | 11 | ||||
-rw-r--r-- | include/acpi/acpixf.h | 10 | ||||
-rw-r--r-- | include/acpi/platform/aclinux.h | 7 | ||||
-rw-r--r-- | include/acpi/platform/aclinuxex.h | 5 |
17 files changed, 43 insertions, 49 deletions
diff --git a/drivers/acpi/Kconfig b/drivers/acpi/Kconfig index 5d1015c26ff4..706c2e95503f 100644 --- a/drivers/acpi/Kconfig +++ b/drivers/acpi/Kconfig | |||
@@ -57,6 +57,15 @@ config ACPI_SYSTEM_POWER_STATES_SUPPORT | |||
57 | config ACPI_CCA_REQUIRED | 57 | config ACPI_CCA_REQUIRED |
58 | bool | 58 | bool |
59 | 59 | ||
60 | config ACPI_DEBUGGER | ||
61 | bool "In-kernel debugger (EXPERIMENTAL)" | ||
62 | select ACPI_DEBUG | ||
63 | help | ||
64 | Enable in-kernel debugging facilities: statistics, internal | ||
65 | object dump, single step control method execution. | ||
66 | This is still under development, currently enabling this only | ||
67 | results in the compilation of the ACPICA debugger files. | ||
68 | |||
60 | config ACPI_SLEEP | 69 | config ACPI_SLEEP |
61 | bool | 70 | bool |
62 | depends on SUSPEND || HIBERNATION | 71 | depends on SUSPEND || HIBERNATION |
diff --git a/drivers/acpi/acpica/Makefile b/drivers/acpi/acpica/Makefile index ac78d7657204..885936f79542 100644 --- a/drivers/acpi/acpica/Makefile +++ b/drivers/acpi/acpica/Makefile | |||
@@ -177,8 +177,24 @@ acpi-y += \ | |||
177 | utxferror.o \ | 177 | utxferror.o \ |
178 | utxfmutex.o | 178 | utxfmutex.o |
179 | 179 | ||
180 | acpi-$(ACPI_FUTURE_USAGE) += \ | 180 | acpi-$(CONFIG_ACPI_DEBUGGER) += \ |
181 | dbcmds.o \ | ||
182 | dbconvert.o \ | ||
183 | dbdisply.o \ | ||
184 | dbexec.o \ | ||
185 | dbhistry.o \ | ||
186 | dbinput.o \ | ||
187 | dbmethod.o \ | ||
188 | dbnames.o \ | ||
189 | dbobject.o \ | ||
190 | dbstats.o \ | ||
191 | dbutils.o \ | ||
192 | dbxface.o \ | ||
181 | rsdump.o \ | 193 | rsdump.o \ |
194 | |||
195 | acpi-$(ACPI_FUTURE_USAGE) += \ | ||
196 | dbfileio.o \ | ||
197 | dbtest.o \ | ||
182 | utcache.o \ | 198 | utcache.o \ |
183 | utfileio.o \ | 199 | utfileio.o \ |
184 | utprint.o \ | 200 | utprint.o \ |
diff --git a/drivers/acpi/acpica/acinterp.h b/drivers/acpi/acpica/acinterp.h index e820ed8f173f..e9e936e78154 100644 --- a/drivers/acpi/acpica/acinterp.h +++ b/drivers/acpi/acpica/acinterp.h | |||
@@ -397,12 +397,10 @@ void | |||
397 | acpi_ex_dump_operands(union acpi_operand_object **operands, | 397 | acpi_ex_dump_operands(union acpi_operand_object **operands, |
398 | const char *opcode_name, u32 num_opcodes); | 398 | const char *opcode_name, u32 num_opcodes); |
399 | 399 | ||
400 | #ifdef ACPI_FUTURE_USAGE | ||
401 | void | 400 | void |
402 | acpi_ex_dump_object_descriptor(union acpi_operand_object *object, u32 flags); | 401 | acpi_ex_dump_object_descriptor(union acpi_operand_object *object, u32 flags); |
403 | 402 | ||
404 | void acpi_ex_dump_namespace_node(struct acpi_namespace_node *node, u32 flags); | 403 | void acpi_ex_dump_namespace_node(struct acpi_namespace_node *node, u32 flags); |
405 | #endif /* ACPI_FUTURE_USAGE */ | ||
406 | 404 | ||
407 | /* | 405 | /* |
408 | * exnames - AML namestring support | 406 | * exnames - AML namestring support |
diff --git a/drivers/acpi/acpica/acnamesp.h b/drivers/acpi/acpica/acnamesp.h index ea0d9076d408..5d261c942a0d 100644 --- a/drivers/acpi/acpica/acnamesp.h +++ b/drivers/acpi/acpica/acnamesp.h | |||
@@ -193,9 +193,7 @@ acpi_ns_convert_to_resource(union acpi_operand_object *original_object, | |||
193 | /* | 193 | /* |
194 | * nsdump - Namespace dump/print utilities | 194 | * nsdump - Namespace dump/print utilities |
195 | */ | 195 | */ |
196 | #ifdef ACPI_FUTURE_USAGE | ||
197 | void acpi_ns_dump_tables(acpi_handle search_base, u32 max_depth); | 196 | void acpi_ns_dump_tables(acpi_handle search_base, u32 max_depth); |
198 | #endif /* ACPI_FUTURE_USAGE */ | ||
199 | 197 | ||
200 | void acpi_ns_dump_entry(acpi_handle handle, u32 debug_level); | 198 | void acpi_ns_dump_entry(acpi_handle handle, u32 debug_level); |
201 | 199 | ||
@@ -208,7 +206,6 @@ acpi_status | |||
208 | acpi_ns_dump_one_object(acpi_handle obj_handle, | 206 | acpi_ns_dump_one_object(acpi_handle obj_handle, |
209 | u32 level, void *context, void **return_value); | 207 | u32 level, void *context, void **return_value); |
210 | 208 | ||
211 | #ifdef ACPI_FUTURE_USAGE | ||
212 | void | 209 | void |
213 | acpi_ns_dump_objects(acpi_object_type type, | 210 | acpi_ns_dump_objects(acpi_object_type type, |
214 | u8 display_type, | 211 | u8 display_type, |
@@ -220,7 +217,6 @@ acpi_ns_dump_object_paths(acpi_object_type type, | |||
220 | u8 display_type, | 217 | u8 display_type, |
221 | u32 max_depth, | 218 | u32 max_depth, |
222 | acpi_owner_id owner_id, acpi_handle start_handle); | 219 | acpi_owner_id owner_id, acpi_handle start_handle); |
223 | #endif /* ACPI_FUTURE_USAGE */ | ||
224 | 220 | ||
225 | /* | 221 | /* |
226 | * nseval - Namespace evaluation functions | 222 | * nseval - Namespace evaluation functions |
diff --git a/drivers/acpi/acpica/acparser.h b/drivers/acpi/acpica/acparser.h index 6021ccfb0b1c..8fc8c7cea879 100644 --- a/drivers/acpi/acpica/acparser.h +++ b/drivers/acpi/acpica/acparser.h | |||
@@ -194,10 +194,8 @@ union acpi_parse_object *acpi_ps_find(union acpi_parse_object *scope, | |||
194 | 194 | ||
195 | union acpi_parse_object *acpi_ps_get_arg(union acpi_parse_object *op, u32 argn); | 195 | union acpi_parse_object *acpi_ps_get_arg(union acpi_parse_object *op, u32 argn); |
196 | 196 | ||
197 | #ifdef ACPI_FUTURE_USAGE | ||
198 | union acpi_parse_object *acpi_ps_get_depth_next(union acpi_parse_object *origin, | 197 | union acpi_parse_object *acpi_ps_get_depth_next(union acpi_parse_object *origin, |
199 | union acpi_parse_object *op); | 198 | union acpi_parse_object *op); |
200 | #endif /* ACPI_FUTURE_USAGE */ | ||
201 | 199 | ||
202 | /* | 200 | /* |
203 | * pswalk - parse tree walk routines | 201 | * pswalk - parse tree walk routines |
@@ -235,9 +233,7 @@ void acpi_ps_free_op(union acpi_parse_object *op); | |||
235 | 233 | ||
236 | u8 acpi_ps_is_leading_char(u32 c); | 234 | u8 acpi_ps_is_leading_char(u32 c); |
237 | 235 | ||
238 | #ifdef ACPI_FUTURE_USAGE | ||
239 | u32 acpi_ps_get_name(union acpi_parse_object *op); | 236 | u32 acpi_ps_get_name(union acpi_parse_object *op); |
240 | #endif /* ACPI_FUTURE_USAGE */ | ||
241 | 237 | ||
242 | void acpi_ps_set_name(union acpi_parse_object *op, u32 name); | 238 | void acpi_ps_set_name(union acpi_parse_object *op, u32 name); |
243 | 239 | ||
diff --git a/drivers/acpi/acpica/acutils.h b/drivers/acpi/acpica/acutils.h index fb2aa5066f3f..8b8fef6cc32d 100644 --- a/drivers/acpi/acpica/acutils.h +++ b/drivers/acpi/acpica/acutils.h | |||
@@ -635,9 +635,7 @@ void | |||
635 | acpi_ut_free_and_track(void *address, | 635 | acpi_ut_free_and_track(void *address, |
636 | u32 component, const char *module, u32 line); | 636 | u32 component, const char *module, u32 line); |
637 | 637 | ||
638 | #ifdef ACPI_FUTURE_USAGE | ||
639 | void acpi_ut_dump_allocation_info(void); | 638 | void acpi_ut_dump_allocation_info(void); |
640 | #endif /* ACPI_FUTURE_USAGE */ | ||
641 | 639 | ||
642 | void acpi_ut_dump_allocations(u32 component, const char *module); | 640 | void acpi_ut_dump_allocations(u32 component, const char *module); |
643 | 641 | ||
diff --git a/drivers/acpi/acpica/evxface.c b/drivers/acpi/acpica/evxface.c index 81f2d9e87fad..07d22bfbaa00 100644 --- a/drivers/acpi/acpica/evxface.c +++ b/drivers/acpi/acpica/evxface.c | |||
@@ -405,7 +405,7 @@ cleanup: | |||
405 | } | 405 | } |
406 | 406 | ||
407 | ACPI_EXPORT_SYMBOL(acpi_install_exception_handler) | 407 | ACPI_EXPORT_SYMBOL(acpi_install_exception_handler) |
408 | #endif /* ACPI_FUTURE_USAGE */ | 408 | #endif |
409 | 409 | ||
410 | #if (!ACPI_REDUCED_HARDWARE) | 410 | #if (!ACPI_REDUCED_HARDWARE) |
411 | /******************************************************************************* | 411 | /******************************************************************************* |
diff --git a/drivers/acpi/acpica/nsdump.c b/drivers/acpi/acpica/nsdump.c index 0f1daba640e7..37aa5c45ca4b 100644 --- a/drivers/acpi/acpica/nsdump.c +++ b/drivers/acpi/acpica/nsdump.c | |||
@@ -60,7 +60,6 @@ acpi_ns_dump_one_device(acpi_handle obj_handle, | |||
60 | 60 | ||
61 | #if defined(ACPI_DEBUG_OUTPUT) || defined(ACPI_DEBUGGER) | 61 | #if defined(ACPI_DEBUG_OUTPUT) || defined(ACPI_DEBUGGER) |
62 | 62 | ||
63 | #ifdef ACPI_FUTURE_USAGE | ||
64 | static acpi_status | 63 | static acpi_status |
65 | acpi_ns_dump_one_object_path(acpi_handle obj_handle, | 64 | acpi_ns_dump_one_object_path(acpi_handle obj_handle, |
66 | u32 level, void *context, void **return_value); | 65 | u32 level, void *context, void **return_value); |
@@ -68,7 +67,6 @@ acpi_ns_dump_one_object_path(acpi_handle obj_handle, | |||
68 | static acpi_status | 67 | static acpi_status |
69 | acpi_ns_get_max_depth(acpi_handle obj_handle, | 68 | acpi_ns_get_max_depth(acpi_handle obj_handle, |
70 | u32 level, void *context, void **return_value); | 69 | u32 level, void *context, void **return_value); |
71 | #endif /* ACPI_FUTURE_USAGE */ | ||
72 | 70 | ||
73 | /******************************************************************************* | 71 | /******************************************************************************* |
74 | * | 72 | * |
@@ -625,7 +623,6 @@ cleanup: | |||
625 | return (AE_OK); | 623 | return (AE_OK); |
626 | } | 624 | } |
627 | 625 | ||
628 | #ifdef ACPI_FUTURE_USAGE | ||
629 | /******************************************************************************* | 626 | /******************************************************************************* |
630 | * | 627 | * |
631 | * FUNCTION: acpi_ns_dump_objects | 628 | * FUNCTION: acpi_ns_dump_objects |
@@ -680,9 +677,7 @@ acpi_ns_dump_objects(acpi_object_type type, | |||
680 | 677 | ||
681 | (void)acpi_ut_release_mutex(ACPI_MTX_NAMESPACE); | 678 | (void)acpi_ut_release_mutex(ACPI_MTX_NAMESPACE); |
682 | } | 679 | } |
683 | #endif /* ACPI_FUTURE_USAGE */ | ||
684 | 680 | ||
685 | #ifdef ACPI_FUTURE_USAGE | ||
686 | /******************************************************************************* | 681 | /******************************************************************************* |
687 | * | 682 | * |
688 | * FUNCTION: acpi_ns_dump_one_object_path, acpi_ns_get_max_depth | 683 | * FUNCTION: acpi_ns_dump_one_object_path, acpi_ns_get_max_depth |
@@ -810,7 +805,6 @@ acpi_ns_dump_object_paths(acpi_object_type type, | |||
810 | 805 | ||
811 | (void)acpi_ut_release_mutex(ACPI_MTX_NAMESPACE); | 806 | (void)acpi_ut_release_mutex(ACPI_MTX_NAMESPACE); |
812 | } | 807 | } |
813 | #endif /* ACPI_FUTURE_USAGE */ | ||
814 | 808 | ||
815 | /******************************************************************************* | 809 | /******************************************************************************* |
816 | * | 810 | * |
diff --git a/drivers/acpi/acpica/pstree.c b/drivers/acpi/acpica/pstree.c index 89984f30addc..cf2f2faf4f92 100644 --- a/drivers/acpi/acpica/pstree.c +++ b/drivers/acpi/acpica/pstree.c | |||
@@ -183,7 +183,6 @@ acpi_ps_append_arg(union acpi_parse_object *op, union acpi_parse_object *arg) | |||
183 | } | 183 | } |
184 | } | 184 | } |
185 | 185 | ||
186 | #ifdef ACPI_FUTURE_USAGE | ||
187 | /******************************************************************************* | 186 | /******************************************************************************* |
188 | * | 187 | * |
189 | * FUNCTION: acpi_ps_get_depth_next | 188 | * FUNCTION: acpi_ps_get_depth_next |
@@ -317,4 +316,3 @@ union acpi_parse_object *acpi_ps_get_child(union acpi_parse_object *op) | |||
317 | return (child); | 316 | return (child); |
318 | } | 317 | } |
319 | #endif | 318 | #endif |
320 | #endif /* ACPI_FUTURE_USAGE */ | ||
diff --git a/drivers/acpi/acpica/psutils.c b/drivers/acpi/acpica/psutils.c index 183cc1efbc51..71d2877cd2ce 100644 --- a/drivers/acpi/acpica/psutils.c +++ b/drivers/acpi/acpica/psutils.c | |||
@@ -205,7 +205,6 @@ u8 acpi_ps_is_leading_char(u32 c) | |||
205 | /* | 205 | /* |
206 | * Get op's name (4-byte name segment) or 0 if unnamed | 206 | * Get op's name (4-byte name segment) or 0 if unnamed |
207 | */ | 207 | */ |
208 | #ifdef ACPI_FUTURE_USAGE | ||
209 | u32 acpi_ps_get_name(union acpi_parse_object * op) | 208 | u32 acpi_ps_get_name(union acpi_parse_object * op) |
210 | { | 209 | { |
211 | 210 | ||
@@ -219,7 +218,6 @@ u32 acpi_ps_get_name(union acpi_parse_object * op) | |||
219 | 218 | ||
220 | return (op->named.name); | 219 | return (op->named.name); |
221 | } | 220 | } |
222 | #endif /* ACPI_FUTURE_USAGE */ | ||
223 | 221 | ||
224 | /* | 222 | /* |
225 | * Set op's name | 223 | * Set op's name |
diff --git a/drivers/acpi/acpica/rsutils.c b/drivers/acpi/acpica/rsutils.c index 52b024df0052..9486992edbb8 100644 --- a/drivers/acpi/acpica/rsutils.c +++ b/drivers/acpi/acpica/rsutils.c | |||
@@ -564,7 +564,6 @@ acpi_rs_get_crs_method_data(struct acpi_namespace_node *node, | |||
564 | * | 564 | * |
565 | ******************************************************************************/ | 565 | ******************************************************************************/ |
566 | 566 | ||
567 | #ifdef ACPI_FUTURE_USAGE | ||
568 | acpi_status | 567 | acpi_status |
569 | acpi_rs_get_prs_method_data(struct acpi_namespace_node *node, | 568 | acpi_rs_get_prs_method_data(struct acpi_namespace_node *node, |
570 | struct acpi_buffer *ret_buffer) | 569 | struct acpi_buffer *ret_buffer) |
@@ -596,7 +595,6 @@ acpi_rs_get_prs_method_data(struct acpi_namespace_node *node, | |||
596 | acpi_ut_remove_reference(obj_desc); | 595 | acpi_ut_remove_reference(obj_desc); |
597 | return_ACPI_STATUS(status); | 596 | return_ACPI_STATUS(status); |
598 | } | 597 | } |
599 | #endif /* ACPI_FUTURE_USAGE */ | ||
600 | 598 | ||
601 | /******************************************************************************* | 599 | /******************************************************************************* |
602 | * | 600 | * |
diff --git a/drivers/acpi/acpica/rsxface.c b/drivers/acpi/acpica/rsxface.c index de51f836ef68..1e8cd5723326 100644 --- a/drivers/acpi/acpica/rsxface.c +++ b/drivers/acpi/acpica/rsxface.c | |||
@@ -220,7 +220,7 @@ acpi_get_current_resources(acpi_handle device_handle, | |||
220 | } | 220 | } |
221 | 221 | ||
222 | ACPI_EXPORT_SYMBOL(acpi_get_current_resources) | 222 | ACPI_EXPORT_SYMBOL(acpi_get_current_resources) |
223 | #ifdef ACPI_FUTURE_USAGE | 223 | |
224 | /******************************************************************************* | 224 | /******************************************************************************* |
225 | * | 225 | * |
226 | * FUNCTION: acpi_get_possible_resources | 226 | * FUNCTION: acpi_get_possible_resources |
@@ -262,7 +262,7 @@ acpi_get_possible_resources(acpi_handle device_handle, | |||
262 | } | 262 | } |
263 | 263 | ||
264 | ACPI_EXPORT_SYMBOL(acpi_get_possible_resources) | 264 | ACPI_EXPORT_SYMBOL(acpi_get_possible_resources) |
265 | #endif /* ACPI_FUTURE_USAGE */ | 265 | |
266 | /******************************************************************************* | 266 | /******************************************************************************* |
267 | * | 267 | * |
268 | * FUNCTION: acpi_set_current_resources | 268 | * FUNCTION: acpi_set_current_resources |
diff --git a/drivers/acpi/acpica/utxface.c b/drivers/acpi/acpica/utxface.c index a6b0eb034fc0..f9c8f9ce1f0f 100644 --- a/drivers/acpi/acpica/utxface.c +++ b/drivers/acpi/acpica/utxface.c | |||
@@ -253,7 +253,7 @@ acpi_install_initialization_handler(acpi_init_handler handler, u32 function) | |||
253 | } | 253 | } |
254 | 254 | ||
255 | ACPI_EXPORT_SYMBOL(acpi_install_initialization_handler) | 255 | ACPI_EXPORT_SYMBOL(acpi_install_initialization_handler) |
256 | #endif /* ACPI_FUTURE_USAGE */ | 256 | #endif |
257 | 257 | ||
258 | /***************************************************************************** | 258 | /***************************************************************************** |
259 | * | 259 | * |
diff --git a/drivers/acpi/osl.c b/drivers/acpi/osl.c index 739a4a6b3b9b..327291586f84 100644 --- a/drivers/acpi/osl.c +++ b/drivers/acpi/osl.c | |||
@@ -66,8 +66,6 @@ struct acpi_os_dpc { | |||
66 | /* stuff for debugger support */ | 66 | /* stuff for debugger support */ |
67 | int acpi_in_debugger; | 67 | int acpi_in_debugger; |
68 | EXPORT_SYMBOL(acpi_in_debugger); | 68 | EXPORT_SYMBOL(acpi_in_debugger); |
69 | |||
70 | extern char line_buf[80]; | ||
71 | #endif /*ENABLE_DEBUGGER */ | 69 | #endif /*ENABLE_DEBUGGER */ |
72 | 70 | ||
73 | static int (*__acpi_os_prepare_sleep)(u8 sleep_state, u32 pm1a_ctrl, | 71 | static int (*__acpi_os_prepare_sleep)(u8 sleep_state, u32 pm1a_ctrl, |
@@ -1345,15 +1343,13 @@ acpi_status acpi_os_signal_semaphore(acpi_handle handle, u32 units) | |||
1345 | return AE_OK; | 1343 | return AE_OK; |
1346 | } | 1344 | } |
1347 | 1345 | ||
1348 | #ifdef ACPI_FUTURE_USAGE | 1346 | acpi_status acpi_os_get_line(char *buffer, u32 buffer_length, u32 *bytes_read) |
1349 | u32 acpi_os_get_line(char *buffer) | ||
1350 | { | 1347 | { |
1351 | |||
1352 | #ifdef ENABLE_DEBUGGER | 1348 | #ifdef ENABLE_DEBUGGER |
1353 | if (acpi_in_debugger) { | 1349 | if (acpi_in_debugger) { |
1354 | u32 chars; | 1350 | u32 chars; |
1355 | 1351 | ||
1356 | kdb_read(buffer, sizeof(line_buf)); | 1352 | kdb_read(buffer, buffer_length); |
1357 | 1353 | ||
1358 | /* remove the CR kdb includes */ | 1354 | /* remove the CR kdb includes */ |
1359 | chars = strlen(buffer) - 1; | 1355 | chars = strlen(buffer) - 1; |
@@ -1361,9 +1357,8 @@ u32 acpi_os_get_line(char *buffer) | |||
1361 | } | 1357 | } |
1362 | #endif | 1358 | #endif |
1363 | 1359 | ||
1364 | return 0; | 1360 | return AE_OK; |
1365 | } | 1361 | } |
1366 | #endif /* ACPI_FUTURE_USAGE */ | ||
1367 | 1362 | ||
1368 | acpi_status acpi_os_signal(u32 function, void *info) | 1363 | acpi_status acpi_os_signal(u32 function, void *info) |
1369 | { | 1364 | { |
diff --git a/include/acpi/acpixf.h b/include/acpi/acpixf.h index f837adf15477..ded9fa3d7194 100644 --- a/include/acpi/acpixf.h +++ b/include/acpi/acpixf.h | |||
@@ -393,15 +393,11 @@ ACPI_EXTERNAL_RETURN_STATUS(acpi_status __init acpi_terminate(void)) | |||
393 | */ | 393 | */ |
394 | ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status acpi_enable(void)) | 394 | ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status acpi_enable(void)) |
395 | ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status acpi_disable(void)) | 395 | ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status acpi_disable(void)) |
396 | #ifdef ACPI_FUTURE_USAGE | ||
397 | ACPI_EXTERNAL_RETURN_STATUS(acpi_status acpi_subsystem_status(void)) | 396 | ACPI_EXTERNAL_RETURN_STATUS(acpi_status acpi_subsystem_status(void)) |
398 | #endif | ||
399 | 397 | ||
400 | #ifdef ACPI_FUTURE_USAGE | ||
401 | ACPI_EXTERNAL_RETURN_STATUS(acpi_status | 398 | ACPI_EXTERNAL_RETURN_STATUS(acpi_status |
402 | acpi_get_system_info(struct acpi_buffer | 399 | acpi_get_system_info(struct acpi_buffer |
403 | *ret_buffer)) | 400 | *ret_buffer)) |
404 | #endif | ||
405 | ACPI_EXTERNAL_RETURN_STATUS(acpi_status | 401 | ACPI_EXTERNAL_RETURN_STATUS(acpi_status |
406 | acpi_get_statistics(struct acpi_statistics *stats)) | 402 | acpi_get_statistics(struct acpi_statistics *stats)) |
407 | ACPI_EXTERNAL_RETURN_PTR(const char | 403 | ACPI_EXTERNAL_RETURN_PTR(const char |
@@ -625,11 +621,9 @@ ACPI_EXTERNAL_RETURN_STATUS(acpi_status | |||
625 | space_id, | 621 | space_id, |
626 | acpi_adr_space_handler | 622 | acpi_adr_space_handler |
627 | handler)) | 623 | handler)) |
628 | #ifdef ACPI_FUTURE_USAGE | ||
629 | ACPI_EXTERNAL_RETURN_STATUS(acpi_status | 624 | ACPI_EXTERNAL_RETURN_STATUS(acpi_status |
630 | acpi_install_exception_handler | 625 | acpi_install_exception_handler |
631 | (acpi_exception_handler handler)) | 626 | (acpi_exception_handler handler)) |
632 | #endif | ||
633 | ACPI_EXTERNAL_RETURN_STATUS(acpi_status | 627 | ACPI_EXTERNAL_RETURN_STATUS(acpi_status |
634 | acpi_install_interface_handler | 628 | acpi_install_interface_handler |
635 | (acpi_interface_handler handler)) | 629 | (acpi_interface_handler handler)) |
@@ -750,12 +744,10 @@ ACPI_EXTERNAL_RETURN_STATUS(acpi_status | |||
750 | acpi_get_current_resources(acpi_handle device, | 744 | acpi_get_current_resources(acpi_handle device, |
751 | struct acpi_buffer | 745 | struct acpi_buffer |
752 | *ret_buffer)) | 746 | *ret_buffer)) |
753 | #ifdef ACPI_FUTURE_USAGE | ||
754 | ACPI_EXTERNAL_RETURN_STATUS(acpi_status | 747 | ACPI_EXTERNAL_RETURN_STATUS(acpi_status |
755 | acpi_get_possible_resources(acpi_handle device, | 748 | acpi_get_possible_resources(acpi_handle device, |
756 | struct acpi_buffer | 749 | struct acpi_buffer |
757 | *ret_buffer)) | 750 | *ret_buffer)) |
758 | #endif | ||
759 | ACPI_EXTERNAL_RETURN_STATUS(acpi_status | 751 | ACPI_EXTERNAL_RETURN_STATUS(acpi_status |
760 | acpi_get_event_resources(acpi_handle device_handle, | 752 | acpi_get_event_resources(acpi_handle device_handle, |
761 | struct acpi_buffer | 753 | struct acpi_buffer |
@@ -844,7 +836,6 @@ ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status | |||
844 | /* | 836 | /* |
845 | * ACPI Timer interfaces | 837 | * ACPI Timer interfaces |
846 | */ | 838 | */ |
847 | #ifdef ACPI_FUTURE_USAGE | ||
848 | ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status | 839 | ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status |
849 | acpi_get_timer_resolution(u32 *resolution)) | 840 | acpi_get_timer_resolution(u32 *resolution)) |
850 | ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status acpi_get_timer(u32 *ticks)) | 841 | ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status acpi_get_timer(u32 *ticks)) |
@@ -853,7 +844,6 @@ ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status | |||
853 | acpi_get_timer_duration(u32 start_ticks, | 844 | acpi_get_timer_duration(u32 start_ticks, |
854 | u32 end_ticks, | 845 | u32 end_ticks, |
855 | u32 *time_elapsed)) | 846 | u32 *time_elapsed)) |
856 | #endif /* ACPI_FUTURE_USAGE */ | ||
857 | 847 | ||
858 | /* | 848 | /* |
859 | * Error/Warning output | 849 | * Error/Warning output |
diff --git a/include/acpi/platform/aclinux.h b/include/acpi/platform/aclinux.h index 74ba46c8157a..323e5daece54 100644 --- a/include/acpi/platform/aclinux.h +++ b/include/acpi/platform/aclinux.h | |||
@@ -63,12 +63,16 @@ | |||
63 | 63 | ||
64 | #define ACPI_USE_SYSTEM_INTTYPES | 64 | #define ACPI_USE_SYSTEM_INTTYPES |
65 | 65 | ||
66 | /* Compile for reduced hardware mode only with this kernel config */ | 66 | /* Kernel specific ACPICA configuration */ |
67 | 67 | ||
68 | #ifdef CONFIG_ACPI_REDUCED_HARDWARE_ONLY | 68 | #ifdef CONFIG_ACPI_REDUCED_HARDWARE_ONLY |
69 | #define ACPI_REDUCED_HARDWARE 1 | 69 | #define ACPI_REDUCED_HARDWARE 1 |
70 | #endif | 70 | #endif |
71 | 71 | ||
72 | #ifdef CONFIG_ACPI_DEBUGGER | ||
73 | #define ACPI_DEBUGGER | ||
74 | #endif | ||
75 | |||
72 | #include <linux/string.h> | 76 | #include <linux/string.h> |
73 | #include <linux/kernel.h> | 77 | #include <linux/kernel.h> |
74 | #include <linux/ctype.h> | 78 | #include <linux/ctype.h> |
@@ -151,7 +155,6 @@ | |||
151 | * OSL interfaces used by utilities | 155 | * OSL interfaces used by utilities |
152 | */ | 156 | */ |
153 | #define ACPI_USE_ALTERNATE_PROTOTYPE_acpi_os_redirect_output | 157 | #define ACPI_USE_ALTERNATE_PROTOTYPE_acpi_os_redirect_output |
154 | #define ACPI_USE_ALTERNATE_PROTOTYPE_acpi_os_get_line | ||
155 | #define ACPI_USE_ALTERNATE_PROTOTYPE_acpi_os_get_table_by_name | 158 | #define ACPI_USE_ALTERNATE_PROTOTYPE_acpi_os_get_table_by_name |
156 | #define ACPI_USE_ALTERNATE_PROTOTYPE_acpi_os_get_table_by_index | 159 | #define ACPI_USE_ALTERNATE_PROTOTYPE_acpi_os_get_table_by_index |
157 | #define ACPI_USE_ALTERNATE_PROTOTYPE_acpi_os_get_table_by_address | 160 | #define ACPI_USE_ALTERNATE_PROTOTYPE_acpi_os_get_table_by_address |
diff --git a/include/acpi/platform/aclinuxex.h b/include/acpi/platform/aclinuxex.h index acedc3f026de..fd6d70fe1219 100644 --- a/include/acpi/platform/aclinuxex.h +++ b/include/acpi/platform/aclinuxex.h | |||
@@ -124,6 +124,11 @@ static inline acpi_thread_id acpi_os_get_thread_id(void) | |||
124 | lock ? AE_OK : AE_NO_MEMORY; \ | 124 | lock ? AE_OK : AE_NO_MEMORY; \ |
125 | }) | 125 | }) |
126 | 126 | ||
127 | static inline u8 acpi_os_readable(void *pointer, acpi_size length) | ||
128 | { | ||
129 | return TRUE; | ||
130 | } | ||
131 | |||
127 | /* | 132 | /* |
128 | * OSL interfaces added by Linux | 133 | * OSL interfaces added by Linux |
129 | */ | 134 | */ |