| .. | .. |
|---|
| 3 | 3 | * |
|---|
| 4 | 4 | * Name: acexcep.h - Exception codes returned by 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 | |
|---|
| .. | .. |
|---|
| 40 | 40 | struct acpi_exception_info { |
|---|
| 41 | 41 | char *name; |
|---|
| 42 | 42 | |
|---|
| 43 | | -#ifdef ACPI_HELP_APP |
|---|
| 43 | +#if defined (ACPI_HELP_APP) || defined (ACPI_ASL_COMPILER) |
|---|
| 44 | 44 | char *description; |
|---|
| 45 | 45 | #endif |
|---|
| 46 | 46 | }; |
|---|
| 47 | 47 | |
|---|
| 48 | | -#ifdef ACPI_HELP_APP |
|---|
| 48 | +#if defined (ACPI_HELP_APP) || defined (ACPI_ASL_COMPILER) |
|---|
| 49 | 49 | #define EXCEP_TXT(name,description) {name, description} |
|---|
| 50 | 50 | #else |
|---|
| 51 | 51 | #define EXCEP_TXT(name,description) {name} |
|---|
| .. | .. |
|---|
| 171 | 171 | #define AE_AML_LOOP_TIMEOUT EXCEP_AML (0x0021) |
|---|
| 172 | 172 | #define AE_AML_UNINITIALIZED_NODE EXCEP_AML (0x0022) |
|---|
| 173 | 173 | #define AE_AML_TARGET_TYPE EXCEP_AML (0x0023) |
|---|
| 174 | +#define AE_AML_PROTOCOL EXCEP_AML (0x0024) |
|---|
| 175 | +#define AE_AML_BUFFER_LENGTH EXCEP_AML (0x0025) |
|---|
| 174 | 176 | |
|---|
| 175 | | -#define AE_CODE_AML_MAX 0x0023 |
|---|
| 177 | +#define AE_CODE_AML_MAX 0x0025 |
|---|
| 176 | 178 | |
|---|
| 177 | 179 | /* |
|---|
| 178 | 180 | * Internal exceptions used for control |
|---|
| .. | .. |
|---|
| 309 | 311 | "An ACPI name contains invalid character(s)"), |
|---|
| 310 | 312 | EXCEP_TXT("AE_AML_NAME_NOT_FOUND", |
|---|
| 311 | 313 | "Could not resolve a named reference"), |
|---|
| 312 | | - EXCEP_TXT("AE_AML_INTERNAL", "An internal error within the interprete"), |
|---|
| 314 | + EXCEP_TXT("AE_AML_INTERNAL", |
|---|
| 315 | + "An internal error within the interpreter"), |
|---|
| 313 | 316 | EXCEP_TXT("AE_AML_INVALID_SPACE_ID", |
|---|
| 314 | 317 | "An Operation Region SpaceID is invalid"), |
|---|
| 315 | 318 | EXCEP_TXT("AE_AML_STRING_LIMIT", |
|---|
| .. | .. |
|---|
| 347 | 350 | EXCEP_TXT("AE_AML_UNINITIALIZED_NODE", |
|---|
| 348 | 351 | "A namespace node is uninitialized or unresolved"), |
|---|
| 349 | 352 | EXCEP_TXT("AE_AML_TARGET_TYPE", |
|---|
| 350 | | - "A target operand of an incorrect type was encountered") |
|---|
| 353 | + "A target operand of an incorrect type was encountered"), |
|---|
| 354 | + EXCEP_TXT("AE_AML_PROTOCOL", "Violation of a fixed ACPI protocol"), |
|---|
| 355 | + EXCEP_TXT("AE_AML_BUFFER_LENGTH", |
|---|
| 356 | + "The length of the buffer is invalid/incorrect") |
|---|
| 351 | 357 | }; |
|---|
| 352 | 358 | |
|---|
| 353 | 359 | static const struct acpi_exception_info acpi_gbl_exception_names_ctrl[] = { |
|---|