aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLv Zheng <lv.zheng@intel.com>2014-04-29 22:05:08 -0400
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2014-05-06 18:55:01 -0400
commit8b9c1152a018883f6f0b841e12e17671f2c64c32 (patch)
tree586244410c7c04781aa547992f46a6f187ae7e8d
parent0dedb3c43cae6968ef6c2351e081f38eced47bfa (diff)
ACPICA: OSL: Add configurability for generic external functions.
OSPMs like Linux trend to include all header files but leave empty inline stub functions for a feature that is not configured during build. This patch adds wrappers mechanism to be used around ACPICA external interfaces to facilitate OSPM with such configurability. This patch doesn't include code for Linux to use this new mechanism, thus no functional change. Lv Zheng. Signed-off-by: Lv Zheng <lv.zheng@intel.com> Signed-off-by: Bob Moore <robert.moore@intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
-rw-r--r--include/acpi/acpixf.h483
1 files changed, 283 insertions, 200 deletions
diff --git a/include/acpi/acpixf.h b/include/acpi/acpixf.h
index 7980c87643a5..ac04985017c5 100644
--- a/include/acpi/acpixf.h
+++ b/include/acpi/acpixf.h
@@ -81,6 +81,33 @@ extern u8 acpi_gbl_permanent_mmap;
81#endif 81#endif
82#endif 82#endif
83 83
84/* ACPICA prototypes */
85
86#ifndef ACPI_EXTERNAL_RETURN_STATUS
87#define ACPI_EXTERNAL_RETURN_STATUS(prototype) \
88 prototype;
89#endif
90
91#ifndef ACPI_EXTERNAL_RETURN_OK
92#define ACPI_EXTERNAL_RETURN_OK(prototype) \
93 prototype;
94#endif
95
96#ifndef ACPI_EXTERNAL_RETURN_VOID
97#define ACPI_EXTERNAL_RETURN_VOID(prototype) \
98 prototype;
99#endif
100
101#ifndef ACPI_EXTERNAL_RETURN_UINT32
102#define ACPI_EXTERNAL_RETURN_UINT32(prototype) \
103 prototype;
104#endif
105
106#ifndef ACPI_EXTERNAL_RETURN_PTR
107#define ACPI_EXTERNAL_RETURN_PTR(prototype) \
108 prototype;
109#endif
110
84/* Public globals, available from outside ACPICA subsystem */ 111/* Public globals, available from outside ACPICA subsystem */
85 112
86/***************************************************************************** 113/*****************************************************************************
@@ -220,13 +247,13 @@ ACPI_GLOBAL(u8, acpi_gbl_system_awake_and_running);
220 */ 247 */
221#if (!ACPI_REDUCED_HARDWARE) 248#if (!ACPI_REDUCED_HARDWARE)
222#define ACPI_HW_DEPENDENT_RETURN_STATUS(prototype) \ 249#define ACPI_HW_DEPENDENT_RETURN_STATUS(prototype) \
223 prototype; 250 ACPI_EXTERNAL_RETURN_STATUS(prototype)
224 251
225#define ACPI_HW_DEPENDENT_RETURN_OK(prototype) \ 252#define ACPI_HW_DEPENDENT_RETURN_OK(prototype) \
226 prototype; 253 ACPI_EXTERNAL_RETURN_OK(prototype)
227 254
228#define ACPI_HW_DEPENDENT_RETURN_VOID(prototype) \ 255#define ACPI_HW_DEPENDENT_RETURN_VOID(prototype) \
229 prototype; 256 ACPI_EXTERNAL_RETURN_VOID(prototype)
230 257
231#else 258#else
232#define ACPI_HW_DEPENDENT_RETURN_STATUS(prototype) \ 259#define ACPI_HW_DEPENDENT_RETURN_STATUS(prototype) \
@@ -273,17 +300,18 @@ ACPI_GLOBAL(u8, acpi_gbl_system_awake_and_running);
273/* 300/*
274 * Initialization 301 * Initialization
275 */ 302 */
276acpi_status __init 303ACPI_EXTERNAL_RETURN_STATUS(acpi_status __init
277acpi_initialize_tables(struct acpi_table_desc *initial_storage, 304 acpi_initialize_tables(struct acpi_table_desc
278 u32 initial_table_count, u8 allow_resize); 305 *initial_storage,
279 306 u32 initial_table_count,
280acpi_status __init acpi_initialize_subsystem(void); 307 u8 allow_resize))
308ACPI_EXTERNAL_RETURN_STATUS(acpi_status __init acpi_initialize_subsystem(void))
281 309
282acpi_status __init acpi_enable_subsystem(u32 flags); 310ACPI_EXTERNAL_RETURN_STATUS(acpi_status __init acpi_enable_subsystem(u32 flags))
283 311
284acpi_status __init acpi_initialize_objects(u32 flags); 312ACPI_EXTERNAL_RETURN_STATUS(acpi_status __init
285 313 acpi_initialize_objects(u32 flags))
286acpi_status __init acpi_terminate(void); 314ACPI_EXTERNAL_RETURN_STATUS(acpi_status __init acpi_terminate(void))
287 315
288/* 316/*
289 * Miscellaneous global interfaces 317 * Miscellaneous global interfaces
@@ -291,145 +319,170 @@ acpi_status __init acpi_terminate(void);
291ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status acpi_enable(void)) 319ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status acpi_enable(void))
292ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status acpi_disable(void)) 320ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status acpi_disable(void))
293#ifdef ACPI_FUTURE_USAGE 321#ifdef ACPI_FUTURE_USAGE
294acpi_status acpi_subsystem_status(void); 322ACPI_EXTERNAL_RETURN_STATUS(acpi_status acpi_subsystem_status(void))
295#endif 323#endif
296 324
297#ifdef ACPI_FUTURE_USAGE 325#ifdef ACPI_FUTURE_USAGE
298acpi_status acpi_get_system_info(struct acpi_buffer *ret_buffer); 326ACPI_EXTERNAL_RETURN_STATUS(acpi_status
327 acpi_get_system_info(struct acpi_buffer
328 *ret_buffer))
299#endif 329#endif
300 330ACPI_EXTERNAL_RETURN_STATUS(acpi_status
301acpi_status acpi_get_statistics(struct acpi_statistics *stats); 331 acpi_get_statistics(struct acpi_statistics *stats))
302 332ACPI_EXTERNAL_RETURN_PTR(const char
303const char *acpi_format_exception(acpi_status exception); 333 *acpi_format_exception(acpi_status exception))
304 334ACPI_EXTERNAL_RETURN_STATUS(acpi_status acpi_purge_cached_objects(void))
305acpi_status acpi_purge_cached_objects(void); 335
306 336ACPI_EXTERNAL_RETURN_STATUS(acpi_status
307acpi_status acpi_install_interface(acpi_string interface_name); 337 acpi_install_interface(acpi_string interface_name))
308 338
309acpi_status acpi_remove_interface(acpi_string interface_name); 339ACPI_EXTERNAL_RETURN_STATUS(acpi_status
310 340 acpi_remove_interface(acpi_string interface_name))
311acpi_status acpi_update_interfaces(u8 action); 341ACPI_EXTERNAL_RETURN_STATUS(acpi_status acpi_update_interfaces(u8 action))
312 342
313u32 343ACPI_EXTERNAL_RETURN_UINT32(u32
314acpi_check_address_range(acpi_adr_space_type space_id, 344 acpi_check_address_range(acpi_adr_space_type
315 acpi_physical_address address, 345 space_id,
316 acpi_size length, u8 warn); 346 acpi_physical_address
317 347 address, acpi_size length,
318acpi_status 348 u8 warn))
319acpi_decode_pld_buffer(u8 *in_buffer, 349ACPI_EXTERNAL_RETURN_STATUS(acpi_status
320 acpi_size length, struct acpi_pld_info **return_buffer); 350 acpi_decode_pld_buffer(u8 *in_buffer,
351 acpi_size length,
352 struct acpi_pld_info
353 **return_buffer))
321 354
322/* 355/*
323 * ACPI table load/unload interfaces 356 * ACPI table load/unload interfaces
324 */ 357 */
325acpi_status __init 358ACPI_EXTERNAL_RETURN_STATUS(acpi_status __init
326acpi_install_table(acpi_physical_address address, u8 physical); 359 acpi_install_table(acpi_physical_address address,
360 u8 physical))
327 361
328acpi_status acpi_load_table(struct acpi_table_header *table); 362ACPI_EXTERNAL_RETURN_STATUS(acpi_status
363 acpi_load_table(struct acpi_table_header *table))
329 364
330acpi_status acpi_unload_parent_table(acpi_handle object); 365ACPI_EXTERNAL_RETURN_STATUS(acpi_status
331 366 acpi_unload_parent_table(acpi_handle object))
332acpi_status __init acpi_load_tables(void); 367ACPI_EXTERNAL_RETURN_STATUS(acpi_status __init acpi_load_tables(void))
333 368
334/* 369/*
335 * ACPI table manipulation interfaces 370 * ACPI table manipulation interfaces
336 */ 371 */
337acpi_status __init acpi_reallocate_root_table(void); 372ACPI_EXTERNAL_RETURN_STATUS(acpi_status __init acpi_reallocate_root_table(void))
338 373
339acpi_status __init acpi_find_root_pointer(acpi_size *rsdp_address); 374ACPI_EXTERNAL_RETURN_STATUS(acpi_status __init
340 375 acpi_find_root_pointer(acpi_size * rsdp_address))
341acpi_status 376
342acpi_get_table_header(acpi_string signature, 377ACPI_EXTERNAL_RETURN_STATUS(acpi_status
343 u32 instance, struct acpi_table_header *out_table_header); 378 acpi_get_table_header(acpi_string signature,
344 379 u32 instance,
345acpi_status 380 struct acpi_table_header
346acpi_get_table(acpi_string signature, 381 *out_table_header))
347 u32 instance, struct acpi_table_header **out_table); 382ACPI_EXTERNAL_RETURN_STATUS(acpi_status
348 383 acpi_get_table(acpi_string signature, u32 instance,
349acpi_status 384 struct acpi_table_header
350acpi_get_table_by_index(u32 table_index, struct acpi_table_header **out_table); 385 **out_table))
351 386ACPI_EXTERNAL_RETURN_STATUS(acpi_status
352acpi_status 387 acpi_get_table_by_index(u32 table_index,
353acpi_install_table_handler(acpi_table_handler handler, void *context); 388 struct acpi_table_header
354 389 **out_table))
355acpi_status acpi_remove_table_handler(acpi_table_handler handler); 390ACPI_EXTERNAL_RETURN_STATUS(acpi_status
391 acpi_install_table_handler(acpi_table_handler
392 handler, void *context))
393ACPI_EXTERNAL_RETURN_STATUS(acpi_status
394 acpi_remove_table_handler(acpi_table_handler
395 handler))
356 396
357/* 397/*
358 * Namespace and name interfaces 398 * Namespace and name interfaces
359 */ 399 */
360acpi_status 400ACPI_EXTERNAL_RETURN_STATUS(acpi_status
361acpi_walk_namespace(acpi_object_type type, 401 acpi_walk_namespace(acpi_object_type type,
362 acpi_handle start_object, 402 acpi_handle start_object,
363 u32 max_depth, 403 u32 max_depth,
364 acpi_walk_callback descending_callback, 404 acpi_walk_callback
365 acpi_walk_callback ascending_callback, 405 descending_callback,
366 void *context, void **return_value); 406 acpi_walk_callback
367 407 ascending_callback,
368acpi_status 408 void *context,
369acpi_get_devices(const char *HID, 409 void **return_value))
370 acpi_walk_callback user_function, 410ACPI_EXTERNAL_RETURN_STATUS(acpi_status
371 void *context, void **return_value); 411 acpi_get_devices(const char *HID,
372 412 acpi_walk_callback user_function,
373acpi_status 413 void *context,
374acpi_get_name(acpi_handle object, 414 void **return_value))
375 u32 name_type, struct acpi_buffer *ret_path_ptr); 415ACPI_EXTERNAL_RETURN_STATUS(acpi_status
376 416 acpi_get_name(acpi_handle object, u32 name_type,
377acpi_status 417 struct acpi_buffer *ret_path_ptr))
378acpi_get_handle(acpi_handle parent, 418ACPI_EXTERNAL_RETURN_STATUS(acpi_status
379 acpi_string pathname, acpi_handle * ret_handle); 419 acpi_get_handle(acpi_handle parent,
380 420 acpi_string pathname,
381acpi_status 421 acpi_handle * ret_handle))
382acpi_attach_data(acpi_handle object, acpi_object_handler handler, void *data); 422ACPI_EXTERNAL_RETURN_STATUS(acpi_status
383 423 acpi_attach_data(acpi_handle object,
384acpi_status acpi_detach_data(acpi_handle object, acpi_object_handler handler); 424 acpi_object_handler handler,
385 425 void *data))
386acpi_status 426ACPI_EXTERNAL_RETURN_STATUS(acpi_status
387acpi_get_data(acpi_handle object, acpi_object_handler handler, void **data); 427 acpi_detach_data(acpi_handle object,
388 428 acpi_object_handler handler))
389acpi_status 429ACPI_EXTERNAL_RETURN_STATUS(acpi_status
390acpi_debug_trace(char *name, u32 debug_level, u32 debug_layer, u32 flags); 430 acpi_get_data(acpi_handle object,
431 acpi_object_handler handler,
432 void **data))
433ACPI_EXTERNAL_RETURN_STATUS(acpi_status
434 acpi_debug_trace(char *name, u32 debug_level,
435 u32 debug_layer, u32 flags))
391 436
392/* 437/*
393 * Object manipulation and enumeration 438 * Object manipulation and enumeration
394 */ 439 */
395acpi_status 440ACPI_EXTERNAL_RETURN_STATUS(acpi_status
396acpi_evaluate_object(acpi_handle object, 441 acpi_evaluate_object(acpi_handle object,
397 acpi_string pathname, 442 acpi_string pathname,
398 struct acpi_object_list *parameter_objects, 443 struct acpi_object_list
399 struct acpi_buffer *return_object_buffer); 444 *parameter_objects,
400 445 struct acpi_buffer
401acpi_status 446 *return_object_buffer))
402acpi_evaluate_object_typed(acpi_handle object, 447ACPI_EXTERNAL_RETURN_STATUS(acpi_status
403 acpi_string pathname, 448 acpi_evaluate_object_typed(acpi_handle object,
404 struct acpi_object_list *external_params, 449 acpi_string pathname,
405 struct acpi_buffer *return_buffer, 450 struct acpi_object_list
406 acpi_object_type return_type); 451 *external_params,
407 452 struct acpi_buffer
408acpi_status 453 *return_buffer,
409acpi_get_object_info(acpi_handle object, 454 acpi_object_type
410 struct acpi_device_info **return_buffer); 455 return_type))
411 456ACPI_EXTERNAL_RETURN_STATUS(acpi_status
412acpi_status acpi_install_method(u8 *buffer); 457 acpi_get_object_info(acpi_handle object,
413 458 struct acpi_device_info
414acpi_status 459 **return_buffer))
415acpi_get_next_object(acpi_object_type type, 460ACPI_EXTERNAL_RETURN_STATUS(acpi_status acpi_install_method(u8 *buffer))
416 acpi_handle parent, 461
417 acpi_handle child, acpi_handle * out_handle); 462ACPI_EXTERNAL_RETURN_STATUS(acpi_status
418 463 acpi_get_next_object(acpi_object_type type,
419acpi_status acpi_get_type(acpi_handle object, acpi_object_type * out_type); 464 acpi_handle parent,
420 465 acpi_handle child,
421acpi_status acpi_get_parent(acpi_handle object, acpi_handle * out_handle); 466 acpi_handle * out_handle))
467
468ACPI_EXTERNAL_RETURN_STATUS(acpi_status
469 acpi_get_type(acpi_handle object,
470 acpi_object_type * out_type))
471
472ACPI_EXTERNAL_RETURN_STATUS(acpi_status
473 acpi_get_parent(acpi_handle object,
474 acpi_handle * out_handle))
422 475
423/* 476/*
424 * Handler interfaces 477 * Handler interfaces
425 */ 478 */
426acpi_status 479ACPI_EXTERNAL_RETURN_STATUS(acpi_status
427acpi_install_initialization_handler(acpi_init_handler handler, u32 function); 480 acpi_install_initialization_handler
428 481 (acpi_init_handler handler, u32 function))
429ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status 482ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status
430 acpi_install_sci_handler(acpi_sci_handler 483 acpi_install_sci_handler(acpi_sci_handler
431 address, 484 address,
432 void *context)) 485 void *context))
433ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status 486ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status
434 acpi_remove_sci_handler(acpi_sci_handler 487 acpi_remove_sci_handler(acpi_sci_handler
435 address)) 488 address))
@@ -461,30 +514,42 @@ ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status
461 u32 gpe_number, 514 u32 gpe_number,
462 acpi_gpe_handler 515 acpi_gpe_handler
463 address)) 516 address))
464acpi_status acpi_install_notify_handler(acpi_handle device, u32 handler_type, 517ACPI_EXTERNAL_RETURN_STATUS(acpi_status
465 acpi_notify_handler handler, 518 acpi_install_notify_handler(acpi_handle device,
466 void *context); 519 u32 handler_type,
467 520 acpi_notify_handler
468acpi_status 521 handler,
469acpi_remove_notify_handler(acpi_handle device, 522 void *context))
470 u32 handler_type, acpi_notify_handler handler); 523ACPI_EXTERNAL_RETURN_STATUS(acpi_status
471 524 acpi_remove_notify_handler(acpi_handle device,
472acpi_status 525 u32 handler_type,
473acpi_install_address_space_handler(acpi_handle device, 526 acpi_notify_handler
474 acpi_adr_space_type space_id, 527 handler))
475 acpi_adr_space_handler handler, 528ACPI_EXTERNAL_RETURN_STATUS(acpi_status
476 acpi_adr_space_setup setup, void *context); 529 acpi_install_address_space_handler(acpi_handle
477 530 device,
478acpi_status 531 acpi_adr_space_type
479acpi_remove_address_space_handler(acpi_handle device, 532 space_id,
480 acpi_adr_space_type space_id, 533 acpi_adr_space_handler
481 acpi_adr_space_handler handler); 534 handler,
482 535 acpi_adr_space_setup
536 setup,
537 void *context))
538ACPI_EXTERNAL_RETURN_STATUS(acpi_status
539 acpi_remove_address_space_handler(acpi_handle
540 device,
541 acpi_adr_space_type
542 space_id,
543 acpi_adr_space_handler
544 handler))
483#ifdef ACPI_FUTURE_USAGE 545#ifdef ACPI_FUTURE_USAGE
484acpi_status acpi_install_exception_handler(acpi_exception_handler handler); 546ACPI_EXTERNAL_RETURN_STATUS(acpi_status
547 acpi_install_exception_handler
548 (acpi_exception_handler handler))
485#endif 549#endif
486 550ACPI_EXTERNAL_RETURN_STATUS(acpi_status
487acpi_status acpi_install_interface_handler(acpi_interface_handler handler); 551 acpi_install_interface_handler
552 (acpi_interface_handler handler))
488 553
489/* 554/*
490 * Global Lock interfaces 555 * Global Lock interfaces
@@ -499,10 +564,14 @@ ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status
499/* 564/*
500 * Interfaces to AML mutex objects 565 * Interfaces to AML mutex objects
501 */ 566 */
502acpi_status 567ACPI_EXTERNAL_RETURN_STATUS(acpi_status
503acpi_acquire_mutex(acpi_handle handle, acpi_string pathname, u16 timeout); 568 acpi_acquire_mutex(acpi_handle handle,
569 acpi_string pathname,
570 u16 timeout))
504 571
505acpi_status acpi_release_mutex(acpi_handle handle, acpi_string pathname); 572ACPI_EXTERNAL_RETURN_STATUS(acpi_status
573 acpi_release_mutex(acpi_handle handle,
574 acpi_string pathname))
506 575
507/* 576/*
508 * Fixed Event interfaces 577 * Fixed Event interfaces
@@ -582,57 +651,69 @@ typedef
582acpi_status(*acpi_walk_resource_callback) (struct acpi_resource * resource, 651acpi_status(*acpi_walk_resource_callback) (struct acpi_resource * resource,
583 void *context); 652 void *context);
584 653
585acpi_status 654ACPI_EXTERNAL_RETURN_STATUS(acpi_status
586acpi_get_vendor_resource(acpi_handle device, 655 acpi_get_vendor_resource(acpi_handle device,
587 char *name, 656 char *name,
588 struct acpi_vendor_uuid *uuid, 657 struct acpi_vendor_uuid
589 struct acpi_buffer *ret_buffer); 658 *uuid,
590 659 struct acpi_buffer
591acpi_status 660 *ret_buffer))
592acpi_get_current_resources(acpi_handle device, struct acpi_buffer *ret_buffer); 661ACPI_EXTERNAL_RETURN_STATUS(acpi_status
593 662 acpi_get_current_resources(acpi_handle device,
663 struct acpi_buffer
664 *ret_buffer))
594#ifdef ACPI_FUTURE_USAGE 665#ifdef ACPI_FUTURE_USAGE
595acpi_status 666ACPI_EXTERNAL_RETURN_STATUS(acpi_status
596acpi_get_possible_resources(acpi_handle device, struct acpi_buffer *ret_buffer); 667 acpi_get_possible_resources(acpi_handle device,
668 struct acpi_buffer
669 *ret_buffer))
597#endif 670#endif
598 671ACPI_EXTERNAL_RETURN_STATUS(acpi_status
599acpi_status 672 acpi_get_event_resources(acpi_handle device_handle,
600acpi_get_event_resources(acpi_handle device_handle, 673 struct acpi_buffer
601 struct acpi_buffer *ret_buffer); 674 *ret_buffer))
602 675ACPI_EXTERNAL_RETURN_STATUS(acpi_status
603acpi_status 676 acpi_walk_resource_buffer(struct acpi_buffer
604acpi_walk_resource_buffer(struct acpi_buffer *buffer, 677 *buffer,
605 acpi_walk_resource_callback user_function, 678 acpi_walk_resource_callback
606 void *context); 679 user_function,
607 680 void *context))
608acpi_status 681ACPI_EXTERNAL_RETURN_STATUS(acpi_status
609acpi_walk_resources(acpi_handle device, 682 acpi_walk_resources(acpi_handle device, char *name,
610 char *name, 683 acpi_walk_resource_callback
611 acpi_walk_resource_callback user_function, void *context); 684 user_function, void *context))
612 685ACPI_EXTERNAL_RETURN_STATUS(acpi_status
613acpi_status 686 acpi_set_current_resources(acpi_handle device,
614acpi_set_current_resources(acpi_handle device, struct acpi_buffer *in_buffer); 687 struct acpi_buffer
615 688 *in_buffer))
616acpi_status 689ACPI_EXTERNAL_RETURN_STATUS(acpi_status
617acpi_get_irq_routing_table(acpi_handle device, struct acpi_buffer *ret_buffer); 690 acpi_get_irq_routing_table(acpi_handle device,
618 691 struct acpi_buffer
619acpi_status 692 *ret_buffer))
620acpi_resource_to_address64(struct acpi_resource *resource, 693ACPI_EXTERNAL_RETURN_STATUS(acpi_status
621 struct acpi_resource_address64 *out); 694 acpi_resource_to_address64(struct acpi_resource
622 695 *resource,
623acpi_status 696 struct
624acpi_buffer_to_resource(u8 *aml_buffer, 697 acpi_resource_address64
625 u16 aml_buffer_length, 698 *out))
626 struct acpi_resource **resource_ptr); 699ACPI_EXTERNAL_RETURN_STATUS(acpi_status
700 acpi_buffer_to_resource(u8 *aml_buffer,
701 u16 aml_buffer_length,
702 struct acpi_resource
703 **resource_ptr))
627 704
628/* 705/*
629 * Hardware (ACPI device) interfaces 706 * Hardware (ACPI device) interfaces
630 */ 707 */
631acpi_status acpi_reset(void); 708ACPI_EXTERNAL_RETURN_STATUS(acpi_status acpi_reset(void))
632 709
633acpi_status acpi_read(u64 *value, struct acpi_generic_address *reg); 710ACPI_EXTERNAL_RETURN_STATUS(acpi_status
711 acpi_read(u64 *value,
712 struct acpi_generic_address *reg))
634 713
635acpi_status acpi_write(u64 value, struct acpi_generic_address *reg); 714ACPI_EXTERNAL_RETURN_STATUS(acpi_status
715 acpi_write(u64 value,
716 struct acpi_generic_address *reg))
636 717
637ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status 718ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status
638 acpi_read_bit_register(u32 register_id, 719 acpi_read_bit_register(u32 register_id,
@@ -645,18 +726,20 @@ ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status
645/* 726/*
646 * Sleep/Wake interfaces 727 * Sleep/Wake interfaces
647 */ 728 */
648acpi_status 729ACPI_EXTERNAL_RETURN_STATUS(acpi_status
649acpi_get_sleep_type_data(u8 sleep_state, u8 *slp_typ_a, u8 *slp_typ_b); 730 acpi_get_sleep_type_data(u8 sleep_state,
650 731 u8 *slp_typ_a,
651acpi_status acpi_enter_sleep_state_prep(u8 sleep_state); 732 u8 *slp_typ_b))
652 733
653acpi_status acpi_enter_sleep_state(u8 sleep_state); 734ACPI_EXTERNAL_RETURN_STATUS(acpi_status
735 acpi_enter_sleep_state_prep(u8 sleep_state))
736ACPI_EXTERNAL_RETURN_STATUS(acpi_status acpi_enter_sleep_state(u8 sleep_state))
654 737
655ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status acpi_enter_sleep_state_s4bios(void)) 738ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status acpi_enter_sleep_state_s4bios(void))
656 739
657acpi_status acpi_leave_sleep_state_prep(u8 sleep_state); 740ACPI_EXTERNAL_RETURN_STATUS(acpi_status
658 741 acpi_leave_sleep_state_prep(u8 sleep_state))
659acpi_status acpi_leave_sleep_state(u8 sleep_state); 742ACPI_EXTERNAL_RETURN_STATUS(acpi_status acpi_leave_sleep_state(u8 sleep_state))
660 743
661ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status 744ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status
662 acpi_set_firmware_waking_vector(u32 745 acpi_set_firmware_waking_vector(u32