ACPICA: Cleanup AML opcode definitions, no functional change
ACPICA commit ec969d38fef3be95358e65f0dd071b5f2c045b6b This change is a cleanup and further standardization of the AML opcode defines in amlcode.h Improves the readability and maintainability of the source code. Link: https://github.com/acpica/acpica/commit/ec969d38 Signed-off-by: Bob Moore <robert.moore@intel.com> Signed-off-by: Lv Zheng <lv.zheng@intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:

committad av
Rafael J. Wysocki

förälder
069f9bf454
incheckning
9ff5a21a50
@@ -274,7 +274,7 @@ acpi_status acpi_ex_opcode_1A_1T_1R(struct acpi_walk_state *walk_state)
|
||||
case AML_FIND_SET_RIGHT_BIT_OP:
|
||||
case AML_FROM_BCD_OP:
|
||||
case AML_TO_BCD_OP:
|
||||
case AML_COND_REF_OF_OP:
|
||||
case AML_CONDITIONAL_REF_OF_OP:
|
||||
|
||||
/* Create a return object of type Integer for these opcodes */
|
||||
|
||||
@@ -405,7 +405,7 @@ acpi_status acpi_ex_opcode_1A_1T_1R(struct acpi_walk_state *walk_state)
|
||||
}
|
||||
break;
|
||||
|
||||
case AML_COND_REF_OF_OP: /* cond_ref_of (source_object, Result) */
|
||||
case AML_CONDITIONAL_REF_OF_OP: /* cond_ref_of (source_object, Result) */
|
||||
/*
|
||||
* This op is a little strange because the internal return value is
|
||||
* different than the return value stored in the result descriptor
|
||||
@@ -475,14 +475,14 @@ acpi_status acpi_ex_opcode_1A_1T_1R(struct acpi_walk_state *walk_state)
|
||||
/*
|
||||
* ACPI 2.0 Opcodes
|
||||
*/
|
||||
case AML_COPY_OP: /* Copy (Source, Target) */
|
||||
case AML_COPY_OBJECT_OP: /* copy_object (Source, Target) */
|
||||
|
||||
status =
|
||||
acpi_ut_copy_iobject_to_iobject(operand[0], &return_desc,
|
||||
walk_state);
|
||||
break;
|
||||
|
||||
case AML_TO_DECSTRING_OP: /* to_decimal_string (Data, Result) */
|
||||
case AML_TO_DECIMAL_STRING_OP: /* to_decimal_string (Data, Result) */
|
||||
|
||||
status =
|
||||
acpi_ex_convert_to_string(operand[0], &return_desc,
|
||||
@@ -495,7 +495,7 @@ acpi_status acpi_ex_opcode_1A_1T_1R(struct acpi_walk_state *walk_state)
|
||||
}
|
||||
break;
|
||||
|
||||
case AML_TO_HEXSTRING_OP: /* to_hex_string (Data, Result) */
|
||||
case AML_TO_HEX_STRING_OP: /* to_hex_string (Data, Result) */
|
||||
|
||||
status =
|
||||
acpi_ex_convert_to_string(operand[0], &return_desc,
|
||||
@@ -603,7 +603,7 @@ acpi_status acpi_ex_opcode_1A_0T_1R(struct acpi_walk_state *walk_state)
|
||||
/* Examine the AML opcode */
|
||||
|
||||
switch (walk_state->opcode) {
|
||||
case AML_LNOT_OP: /* LNot (Operand) */
|
||||
case AML_LOGICAL_NOT_OP: /* LNot (Operand) */
|
||||
|
||||
return_desc = acpi_ut_create_integer_object((u64) 0);
|
||||
if (!return_desc) {
|
||||
@@ -652,9 +652,8 @@ acpi_status acpi_ex_opcode_1A_0T_1R(struct acpi_walk_state *walk_state)
|
||||
* NOTE: We use LNOT_OP here in order to force resolution of the
|
||||
* reference operand to an actual integer.
|
||||
*/
|
||||
status =
|
||||
acpi_ex_resolve_operands(AML_LNOT_OP, &temp_desc,
|
||||
walk_state);
|
||||
status = acpi_ex_resolve_operands(AML_LOGICAL_NOT_OP,
|
||||
&temp_desc, walk_state);
|
||||
if (ACPI_FAILURE(status)) {
|
||||
ACPI_EXCEPTION((AE_INFO, status,
|
||||
"While resolving operands for [%s]",
|
||||
|
Referens i nytt ärende
Block a user