Skip to content

Commit 242b228

Browse files
Aaron Lurafaeljw
authored andcommitted
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>
1 parent ad81f05 commit 242b228

File tree

3 files changed

+16
-13
lines changed

3 files changed

+16
-13
lines changed

drivers/acpi/acpica/aclocal.h

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -931,19 +931,6 @@ struct acpi_bit_register_info {
931931

932932
/* Structs and definitions for _OSI support and I/O port validation */
933933

934-
#define ACPI_OSI_WIN_2000 0x01
935-
#define ACPI_OSI_WIN_XP 0x02
936-
#define ACPI_OSI_WIN_XP_SP1 0x03
937-
#define ACPI_OSI_WINSRV_2003 0x04
938-
#define ACPI_OSI_WIN_XP_SP2 0x05
939-
#define ACPI_OSI_WINSRV_2003_SP1 0x06
940-
#define ACPI_OSI_WIN_VISTA 0x07
941-
#define ACPI_OSI_WINSRV_2008 0x08
942-
#define ACPI_OSI_WIN_VISTA_SP1 0x09
943-
#define ACPI_OSI_WIN_VISTA_SP2 0x0A
944-
#define ACPI_OSI_WIN_7 0x0B
945-
#define ACPI_OSI_WIN_8 0x0C
946-
947934
#define ACPI_ALWAYS_ILLEGAL 0x00
948935

949936
struct acpi_interface_info {

include/acpi/acpixf.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ extern u32 acpi_current_gpe_count;
6262
extern struct acpi_table_fadt acpi_gbl_FADT;
6363
extern u8 acpi_gbl_system_awake_and_running;
6464
extern u8 acpi_gbl_reduced_hardware; /* ACPI 5.0 */
65+
extern u8 acpi_gbl_osi_data;
6566

6667
/* Runtime configuration of debug print levels */
6768

include/acpi/actypes.h

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1144,4 +1144,19 @@ struct acpi_memory_list {
11441144
#endif
11451145
};
11461146

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+
11471162
#endif /* __ACTYPES_H__ */

0 commit comments

Comments
 (0)