forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-31 f70575805708cabdedea7498aaa3f710fde4d920
kernel/drivers/acpi/acpica/utdecode.c
....@@ -3,7 +3,7 @@
33 *
44 * Module Name: utdecode - Utility decoding routines (value-to-string)
55 *
6
- * Copyright (C) 2000 - 2018, Intel Corp.
6
+ * Copyright (C) 2000 - 2020, Intel Corp.
77 *
88 *****************************************************************************/
99
....@@ -78,7 +78,8 @@
7878 "IPMI", /* 0x07 */
7979 "GeneralPurposeIo", /* 0x08 */
8080 "GenericSerialBus", /* 0x09 */
81
- "PCC" /* 0x0A */
81
+ "PCC", /* 0x0A */
82
+ "PlatformRtMechanism" /* 0x0B */
8283 };
8384
8485 const char *acpi_ut_get_region_name(u8 space_id)
....@@ -239,7 +240,7 @@
239240 {
240241 struct acpi_namespace_node *node = (struct acpi_namespace_node *)object;
241242
242
- /* Must return a string of exactly 4 characters == ACPI_NAME_SIZE */
243
+ /* Must return a string of exactly 4 characters == ACPI_NAMESEG_SIZE */
243244
244245 if (!object) {
245246 return ("NULL");
....@@ -284,7 +285,7 @@
284285
285286 static const char *acpi_gbl_desc_type_names[] = {
286287 /* 00 */ "Not a Descriptor",
287
- /* 01 */ "Cached",
288
+ /* 01 */ "Cached Object",
288289 /* 02 */ "State-Generic",
289290 /* 03 */ "State-Update",
290291 /* 04 */ "State-Package",
....@@ -295,10 +296,10 @@
295296 /* 09 */ "State-Result",
296297 /* 10 */ "State-Notify",
297298 /* 11 */ "State-Thread",
298
- /* 12 */ "Walk",
299
- /* 13 */ "Parser",
300
- /* 14 */ "Operand",
301
- /* 15 */ "Node"
299
+ /* 12 */ "Tree Walk State",
300
+ /* 13 */ "Parse Tree Op",
301
+ /* 14 */ "Operand Object",
302
+ /* 15 */ "Namespace Node"
302303 };
303304
304305 const char *acpi_ut_get_descriptor_name(void *object)
....@@ -430,8 +431,10 @@
430431 /* 0C */ "Reserved (was previously Shutdown Request)",
431432 /* Reserved in ACPI 6.0 */
432433 /* 0D */ "System Resource Affinity Update",
433
- /* 0E */ "Heterogeneous Memory Attributes Update"
434
+ /* 0E */ "Heterogeneous Memory Attributes Update",
434435 /* ACPI 6.2 */
436
+ /* 0F */ "Error Disconnect Recover"
437
+ /* ACPI 6.3 */
435438 };
436439
437440 static const char *acpi_gbl_device_notify[5] = {
....@@ -461,13 +464,13 @@
461464 const char *acpi_ut_get_notify_name(u32 notify_value, acpi_object_type type)
462465 {
463466
464
- /* 00 - 0D are "common to all object types" (from ACPI Spec) */
467
+ /* 00 - 0F are "common to all object types" (from ACPI Spec) */
465468
466469 if (notify_value <= ACPI_GENERIC_NOTIFY_MAX) {
467470 return (acpi_gbl_generic_notify[notify_value]);
468471 }
469472
470
- /* 0E - 7F are reserved */
473
+ /* 10 - 7F are reserved */
471474
472475 if (notify_value <= ACPI_MAX_SYS_NOTIFY) {
473476 return ("Reserved");