hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/include/acpi/acexcep.h
....@@ -3,7 +3,7 @@
33 *
44 * Name: acexcep.h - Exception codes returned by the ACPI subsystem
55 *
6
- * Copyright (C) 2000 - 2018, Intel Corp.
6
+ * Copyright (C) 2000 - 2020, Intel Corp.
77 *
88 *****************************************************************************/
99
....@@ -40,12 +40,12 @@
4040 struct acpi_exception_info {
4141 char *name;
4242
43
-#ifdef ACPI_HELP_APP
43
+#if defined (ACPI_HELP_APP) || defined (ACPI_ASL_COMPILER)
4444 char *description;
4545 #endif
4646 };
4747
48
-#ifdef ACPI_HELP_APP
48
+#if defined (ACPI_HELP_APP) || defined (ACPI_ASL_COMPILER)
4949 #define EXCEP_TXT(name,description) {name, description}
5050 #else
5151 #define EXCEP_TXT(name,description) {name}
....@@ -171,8 +171,10 @@
171171 #define AE_AML_LOOP_TIMEOUT EXCEP_AML (0x0021)
172172 #define AE_AML_UNINITIALIZED_NODE EXCEP_AML (0x0022)
173173 #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)
174176
175
-#define AE_CODE_AML_MAX 0x0023
177
+#define AE_CODE_AML_MAX 0x0025
176178
177179 /*
178180 * Internal exceptions used for control
....@@ -309,7 +311,8 @@
309311 "An ACPI name contains invalid character(s)"),
310312 EXCEP_TXT("AE_AML_NAME_NOT_FOUND",
311313 "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"),
313316 EXCEP_TXT("AE_AML_INVALID_SPACE_ID",
314317 "An Operation Region SpaceID is invalid"),
315318 EXCEP_TXT("AE_AML_STRING_LIMIT",
....@@ -347,7 +350,10 @@
347350 EXCEP_TXT("AE_AML_UNINITIALIZED_NODE",
348351 "A namespace node is uninitialized or unresolved"),
349352 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")
351357 };
352358
353359 static const struct acpi_exception_info acpi_gbl_exception_names_ctrl[] = {