diff options
-rw-r--r-- | drivers/acpi/acpica/acglobal.h | 7 | ||||
-rw-r--r-- | drivers/acpi/acpica/utglobal.c | 1 | ||||
-rw-r--r-- | include/acpi/actypes.h | 28 |
3 files changed, 19 insertions, 17 deletions
diff --git a/drivers/acpi/acpica/acglobal.h b/drivers/acpi/acpica/acglobal.h index b8d38117a20c..90e846f985fa 100644 --- a/drivers/acpi/acpica/acglobal.h +++ b/drivers/acpi/acpica/acglobal.h | |||
@@ -138,6 +138,12 @@ u8 ACPI_INIT_GLOBAL(acpi_gbl_disable_auto_repair, FALSE); | |||
138 | */ | 138 | */ |
139 | u8 ACPI_INIT_GLOBAL(acpi_gbl_disable_ssdt_table_load, FALSE); | 139 | u8 ACPI_INIT_GLOBAL(acpi_gbl_disable_ssdt_table_load, FALSE); |
140 | 140 | ||
141 | /* | ||
142 | * We keep track of the latest version of Windows that has been requested by | ||
143 | * the BIOS. | ||
144 | */ | ||
145 | u8 ACPI_INIT_GLOBAL(acpi_gbl_osi_data, 0); | ||
146 | |||
141 | /* acpi_gbl_FADT is a local copy of the FADT, converted to a common format. */ | 147 | /* acpi_gbl_FADT is a local copy of the FADT, converted to a common format. */ |
142 | 148 | ||
143 | struct acpi_table_fadt acpi_gbl_FADT; | 149 | struct acpi_table_fadt acpi_gbl_FADT; |
@@ -285,7 +291,6 @@ ACPI_EXTERN u8 acpi_gbl_debugger_configuration; | |||
285 | ACPI_EXTERN u8 acpi_gbl_step_to_next_call; | 291 | ACPI_EXTERN u8 acpi_gbl_step_to_next_call; |
286 | ACPI_EXTERN u8 acpi_gbl_acpi_hardware_present; | 292 | ACPI_EXTERN u8 acpi_gbl_acpi_hardware_present; |
287 | ACPI_EXTERN u8 acpi_gbl_events_initialized; | 293 | ACPI_EXTERN u8 acpi_gbl_events_initialized; |
288 | ACPI_EXTERN u8 acpi_gbl_osi_data; | ||
289 | ACPI_EXTERN struct acpi_interface_info *acpi_gbl_supported_interfaces; | 294 | ACPI_EXTERN struct acpi_interface_info *acpi_gbl_supported_interfaces; |
290 | ACPI_EXTERN struct acpi_address_range | 295 | ACPI_EXTERN struct acpi_address_range |
291 | *acpi_gbl_address_range_list[ACPI_ADDRESS_RANGE_MAX]; | 296 | *acpi_gbl_address_range_list[ACPI_ADDRESS_RANGE_MAX]; |
diff --git a/drivers/acpi/acpica/utglobal.c b/drivers/acpi/acpica/utglobal.c index f736448a8606..d6f26bf8a062 100644 --- a/drivers/acpi/acpica/utglobal.c +++ b/drivers/acpi/acpica/utglobal.c | |||
@@ -336,7 +336,6 @@ acpi_status acpi_ut_init_globals(void) | |||
336 | acpi_gbl_trace_dbg_layer = 0; | 336 | acpi_gbl_trace_dbg_layer = 0; |
337 | acpi_gbl_debugger_configuration = DEBUGGER_THREADING; | 337 | acpi_gbl_debugger_configuration = DEBUGGER_THREADING; |
338 | acpi_gbl_db_output_flags = ACPI_DB_CONSOLE_OUTPUT; | 338 | acpi_gbl_db_output_flags = ACPI_DB_CONSOLE_OUTPUT; |
339 | acpi_gbl_osi_data = 0; | ||
340 | acpi_gbl_osi_mutex = NULL; | 339 | acpi_gbl_osi_mutex = NULL; |
341 | acpi_gbl_reg_methods_executed = FALSE; | 340 | acpi_gbl_reg_methods_executed = FALSE; |
342 | 341 | ||
diff --git a/include/acpi/actypes.h b/include/acpi/actypes.h index eae55fb74905..b748aefce929 100644 --- a/include/acpi/actypes.h +++ b/include/acpi/actypes.h | |||
@@ -1137,7 +1137,19 @@ struct acpi_memory_list { | |||
1137 | #endif | 1137 | #endif |
1138 | }; | 1138 | }; |
1139 | 1139 | ||
1140 | /* Definitions for _OSI support */ | 1140 | /* Definitions of _OSI support */ |
1141 | |||
1142 | #define ACPI_VENDOR_STRINGS 0x01 | ||
1143 | #define ACPI_FEATURE_STRINGS 0x02 | ||
1144 | #define ACPI_ENABLE_INTERFACES 0x00 | ||
1145 | #define ACPI_DISABLE_INTERFACES 0x04 | ||
1146 | |||
1147 | #define ACPI_DISABLE_ALL_VENDOR_STRINGS (ACPI_DISABLE_INTERFACES | ACPI_VENDOR_STRINGS) | ||
1148 | #define ACPI_DISABLE_ALL_FEATURE_STRINGS (ACPI_DISABLE_INTERFACES | ACPI_FEATURE_STRINGS) | ||
1149 | #define ACPI_DISABLE_ALL_STRINGS (ACPI_DISABLE_INTERFACES | ACPI_VENDOR_STRINGS | ACPI_FEATURE_STRINGS) | ||
1150 | #define ACPI_ENABLE_ALL_VENDOR_STRINGS (ACPI_ENABLE_INTERFACES | ACPI_VENDOR_STRINGS) | ||
1151 | #define ACPI_ENABLE_ALL_FEATURE_STRINGS (ACPI_ENABLE_INTERFACES | ACPI_FEATURE_STRINGS) | ||
1152 | #define ACPI_ENABLE_ALL_STRINGS (ACPI_ENABLE_INTERFACES | ACPI_VENDOR_STRINGS | ACPI_FEATURE_STRINGS) | ||
1141 | 1153 | ||
1142 | #define ACPI_OSI_WIN_2000 0x01 | 1154 | #define ACPI_OSI_WIN_2000 0x01 |
1143 | #define ACPI_OSI_WIN_XP 0x02 | 1155 | #define ACPI_OSI_WIN_XP 0x02 |
@@ -1152,18 +1164,4 @@ struct acpi_memory_list { | |||
1152 | #define ACPI_OSI_WIN_7 0x0B | 1164 | #define ACPI_OSI_WIN_7 0x0B |
1153 | #define ACPI_OSI_WIN_8 0x0C | 1165 | #define ACPI_OSI_WIN_8 0x0C |
1154 | 1166 | ||
1155 | /* _OSI update actions */ | ||
1156 | |||
1157 | #define ACPI_VENDOR_STRINGS 0x01 | ||
1158 | #define ACPI_FEATURE_STRINGS 0x02 | ||
1159 | #define ACPI_ENABLE_INTERFACES 0x00 | ||
1160 | #define ACPI_DISABLE_INTERFACES 0x04 | ||
1161 | |||
1162 | #define ACPI_DISABLE_ALL_VENDOR_STRINGS (ACPI_DISABLE_INTERFACES | ACPI_VENDOR_STRINGS) | ||
1163 | #define ACPI_DISABLE_ALL_FEATURE_STRINGS (ACPI_DISABLE_INTERFACES | ACPI_FEATURE_STRINGS) | ||
1164 | #define ACPI_DISABLE_ALL_STRINGS (ACPI_DISABLE_INTERFACES | ACPI_VENDOR_STRINGS | ACPI_FEATURE_STRINGS) | ||
1165 | #define ACPI_ENABLE_ALL_VENDOR_STRINGS (ACPI_ENABLE_INTERFACES | ACPI_VENDOR_STRINGS) | ||
1166 | #define ACPI_ENABLE_ALL_FEATURE_STRINGS (ACPI_ENABLE_INTERFACES | ACPI_FEATURE_STRINGS) | ||
1167 | #define ACPI_ENABLE_ALL_STRINGS (ACPI_ENABLE_INTERFACES | ACPI_VENDOR_STRINGS | ACPI_FEATURE_STRINGS) | ||
1168 | |||
1169 | #endif /* __ACTYPES_H__ */ | 1167 | #endif /* __ACTYPES_H__ */ |