diff options
author | Bob Moore <robert.moore@intel.com> | 2012-02-14 05:57:13 -0500 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2012-03-22 01:45:05 -0400 |
commit | 72a8887a356076dfa39bd6691c52446f90a50480 (patch) | |
tree | 6cdf2e3f228b8482273029066554d57c7095a405 /include/acpi | |
parent | 709585765734e90d9fe0a2dc9c6f4e49eff5c6ec (diff) |
ACPICA: Add table-driven dispatch for sleep/wake functions
Simplifies the code, especially the compile-time
ACPI_REDUCED_HARDWARE option.
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Lin Ming <ming.m.lin@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'include/acpi')
-rw-r--r-- | include/acpi/actypes.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/acpi/actypes.h b/include/acpi/actypes.h index 48c4d5f8a492..349615833a4a 100644 --- a/include/acpi/actypes.h +++ b/include/acpi/actypes.h | |||
@@ -788,6 +788,15 @@ typedef u8 acpi_adr_space_type; | |||
788 | #define ACPI_ENABLE_EVENT 1 | 788 | #define ACPI_ENABLE_EVENT 1 |
789 | #define ACPI_DISABLE_EVENT 0 | 789 | #define ACPI_DISABLE_EVENT 0 |
790 | 790 | ||
791 | /* Sleep function dispatch */ | ||
792 | |||
793 | typedef acpi_status(*ACPI_SLEEP_FUNCTION) (u8 sleep_state); | ||
794 | |||
795 | struct acpi_sleep_functions { | ||
796 | ACPI_SLEEP_FUNCTION legacy_function; | ||
797 | ACPI_SLEEP_FUNCTION extended_function; | ||
798 | }; | ||
799 | |||
791 | /* | 800 | /* |
792 | * External ACPI object definition | 801 | * External ACPI object definition |
793 | */ | 802 | */ |