diff options
author | Aaron Lu <aaron.lu@intel.com> | 2013-07-02 09:59:10 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-07-17 19:29:14 -0400 |
commit | 242b2287cd7f27521c8b54a4101d569e53e7a0ca (patch) | |
tree | acbaf8c865e50a835bf8477fff5320cf28fac238 /include | |
parent | ad81f0545ef01ea651886dddac4bef6cec930092 (diff) |
ACPICA: expose OSI version
Expose acpi_gbl_osi_data so that code outside of ACPICA can check
the value of the last successfull _OSI call. The definitions for
OSI versions are moved to actypes.h so that other components can
access them too.
Based on a patch from Matthew Garrett which in turn was based on
an earlier patch from Seth Forshee.
[rjw: Changelog]
Signed-off-by: Aaron Lu <aaron.lu@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/acpi/acpixf.h | 1 | ||||
-rw-r--r-- | include/acpi/actypes.h | 15 |
2 files changed, 16 insertions, 0 deletions
diff --git a/include/acpi/acpixf.h b/include/acpi/acpixf.h index 1b09300810e6..22d497ee6ef9 100644 --- a/include/acpi/acpixf.h +++ b/include/acpi/acpixf.h | |||
@@ -62,6 +62,7 @@ extern u32 acpi_current_gpe_count; | |||
62 | extern struct acpi_table_fadt acpi_gbl_FADT; | 62 | extern struct acpi_table_fadt acpi_gbl_FADT; |
63 | extern u8 acpi_gbl_system_awake_and_running; | 63 | extern u8 acpi_gbl_system_awake_and_running; |
64 | extern u8 acpi_gbl_reduced_hardware; /* ACPI 5.0 */ | 64 | extern u8 acpi_gbl_reduced_hardware; /* ACPI 5.0 */ |
65 | extern u8 acpi_gbl_osi_data; | ||
65 | 66 | ||
66 | /* Runtime configuration of debug print levels */ | 67 | /* Runtime configuration of debug print levels */ |
67 | 68 | ||
diff --git a/include/acpi/actypes.h b/include/acpi/actypes.h index a64adcc29ae5..22b03c9286e9 100644 --- a/include/acpi/actypes.h +++ b/include/acpi/actypes.h | |||
@@ -1144,4 +1144,19 @@ struct acpi_memory_list { | |||
1144 | #endif | 1144 | #endif |
1145 | }; | 1145 | }; |
1146 | 1146 | ||
1147 | /* Definitions for _OSI support */ | ||
1148 | |||
1149 | #define ACPI_OSI_WIN_2000 0x01 | ||
1150 | #define ACPI_OSI_WIN_XP 0x02 | ||
1151 | #define ACPI_OSI_WIN_XP_SP1 0x03 | ||
1152 | #define ACPI_OSI_WINSRV_2003 0x04 | ||
1153 | #define ACPI_OSI_WIN_XP_SP2 0x05 | ||
1154 | #define ACPI_OSI_WINSRV_2003_SP1 0x06 | ||
1155 | #define ACPI_OSI_WIN_VISTA 0x07 | ||
1156 | #define ACPI_OSI_WINSRV_2008 0x08 | ||
1157 | #define ACPI_OSI_WIN_VISTA_SP1 0x09 | ||
1158 | #define ACPI_OSI_WIN_VISTA_SP2 0x0A | ||
1159 | #define ACPI_OSI_WIN_7 0x0B | ||
1160 | #define ACPI_OSI_WIN_8 0x0C | ||
1161 | |||
1147 | #endif /* __ACTYPES_H__ */ | 1162 | #endif /* __ACTYPES_H__ */ |