| .. | .. |
|---|
| 3 | 3 | * |
|---|
| 4 | 4 | * Name: acpixf.h - External interfaces to the ACPI subsystem |
|---|
| 5 | 5 | * |
|---|
| 6 | | - * Copyright (C) 2000 - 2018, Intel Corp. |
|---|
| 6 | + * Copyright (C) 2000 - 2020, Intel Corp. |
|---|
| 7 | 7 | * |
|---|
| 8 | 8 | *****************************************************************************/ |
|---|
| 9 | 9 | |
|---|
| .. | .. |
|---|
| 12 | 12 | |
|---|
| 13 | 13 | /* Current ACPICA subsystem version in YYYYMMDD format */ |
|---|
| 14 | 14 | |
|---|
| 15 | | -#define ACPI_CA_VERSION 0x20180810 |
|---|
| 15 | +#define ACPI_CA_VERSION 0x20200925 |
|---|
| 16 | 16 | |
|---|
| 17 | 17 | #include <acpi/acconfig.h> |
|---|
| 18 | 18 | #include <acpi/actypes.h> |
|---|
| .. | .. |
|---|
| 157 | 157 | ACPI_INIT_GLOBAL(u8, acpi_gbl_do_not_use_xsdt, FALSE); |
|---|
| 158 | 158 | |
|---|
| 159 | 159 | /* |
|---|
| 160 | | - * Optionally support group module level code. |
|---|
| 161 | | - * NOTE, this is essentially obsolete and will be removed soon |
|---|
| 162 | | - * (01/2018). |
|---|
| 163 | | - */ |
|---|
| 164 | | -ACPI_INIT_GLOBAL(u8, acpi_gbl_group_module_level_code, FALSE); |
|---|
| 165 | | - |
|---|
| 166 | | -/* |
|---|
| 167 | | - * Optionally support module level code by parsing an entire table as |
|---|
| 168 | | - * a method as it is loaded. Default is TRUE. |
|---|
| 169 | | - * NOTE, this is essentially obsolete and will be removed soon |
|---|
| 170 | | - * (01/2018). |
|---|
| 171 | | - */ |
|---|
| 172 | | -ACPI_INIT_GLOBAL(u8, acpi_gbl_execute_tables_as_methods, TRUE); |
|---|
| 173 | | - |
|---|
| 174 | | -/* |
|---|
| 175 | 160 | * Optionally use 32-bit FADT addresses if and when there is a conflict |
|---|
| 176 | 161 | * (address mismatch) between the 32-bit and 64-bit versions of the |
|---|
| 177 | 162 | * address. Although ACPICA adheres to the ACPI specification which |
|---|
| .. | .. |
|---|
| 312 | 297 | #define ACPI_HW_DEPENDENT_RETURN_OK(prototype) \ |
|---|
| 313 | 298 | ACPI_EXTERNAL_RETURN_OK(prototype) |
|---|
| 314 | 299 | |
|---|
| 300 | +#define ACPI_HW_DEPENDENT_RETURN_UINT32(prototype) \ |
|---|
| 301 | + ACPI_EXTERNAL_RETURN_UINT32(prototype) |
|---|
| 302 | + |
|---|
| 315 | 303 | #define ACPI_HW_DEPENDENT_RETURN_VOID(prototype) \ |
|---|
| 316 | 304 | ACPI_EXTERNAL_RETURN_VOID(prototype) |
|---|
| 317 | 305 | |
|---|
| .. | .. |
|---|
| 321 | 309 | |
|---|
| 322 | 310 | #define ACPI_HW_DEPENDENT_RETURN_OK(prototype) \ |
|---|
| 323 | 311 | static ACPI_INLINE prototype {return(AE_OK);} |
|---|
| 312 | + |
|---|
| 313 | +#define ACPI_HW_DEPENDENT_RETURN_UINT32(prototype) \ |
|---|
| 314 | + static ACPI_INLINE prototype {return(0);} |
|---|
| 324 | 315 | |
|---|
| 325 | 316 | #define ACPI_HW_DEPENDENT_RETURN_VOID(prototype) \ |
|---|
| 326 | 317 | static ACPI_INLINE prototype {return;} |
|---|
| .. | .. |
|---|
| 467 | 458 | u8 physical)) |
|---|
| 468 | 459 | |
|---|
| 469 | 460 | ACPI_EXTERNAL_RETURN_STATUS(acpi_status |
|---|
| 470 | | - acpi_load_table(struct acpi_table_header *table)) |
|---|
| 461 | + acpi_load_table(struct acpi_table_header *table, |
|---|
| 462 | + u32 *table_idx)) |
|---|
| 463 | + |
|---|
| 464 | +ACPI_EXTERNAL_RETURN_STATUS(acpi_status |
|---|
| 465 | + acpi_unload_table(u32 table_index)) |
|---|
| 471 | 466 | |
|---|
| 472 | 467 | ACPI_EXTERNAL_RETURN_STATUS(acpi_status |
|---|
| 473 | 468 | acpi_unload_parent_table(acpi_handle object)) |
|---|
| .. | .. |
|---|
| 753 | 748 | u32 gpe_number, |
|---|
| 754 | 749 | acpi_event_status |
|---|
| 755 | 750 | *event_status)) |
|---|
| 756 | | -ACPI_HW_DEPENDENT_RETURN_VOID(void acpi_dispatch_gpe(acpi_handle gpe_device, u32 gpe_number)) |
|---|
| 751 | +ACPI_HW_DEPENDENT_RETURN_UINT32(u32 acpi_dispatch_gpe(acpi_handle gpe_device, u32 gpe_number)) |
|---|
| 757 | 752 | ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status acpi_disable_all_gpes(void)) |
|---|
| 758 | 753 | ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status acpi_enable_all_runtime_gpes(void)) |
|---|
| 759 | 754 | ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status acpi_enable_all_wakeup_gpes(void)) |
|---|
| 755 | +ACPI_HW_DEPENDENT_RETURN_UINT32(u32 acpi_any_gpe_status_set(u32 gpe_skip_number)) |
|---|
| 756 | +ACPI_HW_DEPENDENT_RETURN_UINT32(u32 acpi_any_fixed_event_status_set(void)) |
|---|
| 760 | 757 | |
|---|
| 761 | 758 | ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status |
|---|
| 762 | 759 | acpi_get_gpe_device(u32 gpe_index, |
|---|
| .. | .. |
|---|
| 910 | 907 | acpi_bios_error(const char *module_name, |
|---|
| 911 | 908 | u32 line_number, |
|---|
| 912 | 909 | const char *format, ...)) |
|---|
| 910 | +ACPI_MSG_DEPENDENT_RETURN_VOID(ACPI_PRINTF_LIKE(4) |
|---|
| 911 | + void ACPI_INTERNAL_VAR_XFACE |
|---|
| 912 | + acpi_bios_exception(const char *module_name, |
|---|
| 913 | + u32 line_number, |
|---|
| 914 | + acpi_status status, |
|---|
| 915 | + const char *format, ...)) |
|---|
| 913 | 916 | ACPI_MSG_DEPENDENT_RETURN_VOID(ACPI_PRINTF_LIKE(3) |
|---|
| 914 | 917 | void ACPI_INTERNAL_VAR_XFACE |
|---|
| 915 | 918 | acpi_bios_warning(const char *module_name, |
|---|