]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ACPICA: Use manifest constants for parse pass number
authorBob Moore <robert.moore@intel.com>
Fri, 2 Feb 2007 16:48:21 +0000 (19:48 +0300)
committerLen Brown <len.brown@intel.com>
Sat, 3 Feb 2007 02:14:27 +0000 (21:14 -0500)
Signed-off-by: Alexey Starikovskiy <alexey.y.starikovskiy@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/dispatcher/dsmethod.c
drivers/acpi/dispatcher/dsopcode.c
drivers/acpi/dispatcher/dswload.c
drivers/acpi/namespace/nsparse.c
drivers/acpi/parser/psxface.c
include/acpi/aclocal.h

index aa60dca1f8aa012d901865865173709b0296057d..57c5159b261c6390ebcceb5fcb7bad27d79675fd 100644 (file)
@@ -382,7 +382,8 @@ acpi_ds_call_control_method(struct acpi_thread_state *thread,
 
        status = acpi_ds_init_aml_walk(next_walk_state, NULL, method_node,
                                       obj_desc->method.aml_start,
-                                      obj_desc->method.aml_length, info, 3);
+                                      obj_desc->method.aml_length, info,
+                                      ACPI_IMODE_EXECUTE);
 
        ACPI_FREE(info);
        if (ACPI_FAILURE(status)) {
index 5b974a8fe614162c3ec0242aaabe63fe0fc34290..26035a3a32d873e50d82de6fde9142091bb87d99 100644 (file)
@@ -114,7 +114,7 @@ acpi_ds_execute_arguments(struct acpi_namespace_node *node,
        }
 
        status = acpi_ds_init_aml_walk(walk_state, op, NULL, aml_start,
-                                      aml_length, NULL, 1);
+                                      aml_length, NULL, ACPI_IMODE_LOAD_PASS1);
        if (ACPI_FAILURE(status)) {
                acpi_ds_delete_walk_state(walk_state);
                goto cleanup;
@@ -157,7 +157,7 @@ acpi_ds_execute_arguments(struct acpi_namespace_node *node,
        /* Execute the opcode and arguments */
 
        status = acpi_ds_init_aml_walk(walk_state, op, NULL, aml_start,
-                                      aml_length, NULL, 3);
+                                      aml_length, NULL, ACPI_IMODE_EXECUTE);
        if (ACPI_FAILURE(status)) {
                acpi_ds_delete_walk_state(walk_state);
                goto cleanup;
index 4ed08680ae7c2a44f401ef2174095bd0f00db050..baf04e883177b437e21ad1a6949bf4649045504b 100644 (file)
@@ -754,7 +754,7 @@ acpi_ds_load2_begin_op(struct acpi_walk_state *walk_state,
                }
 
                flags = ACPI_NS_NO_UPSEARCH;
-               if (walk_state->pass_number == 3) {
+               if (walk_state->pass_number == ACPI_IMODE_EXECUTE) {
 
                        /* Execution mode, node cannot already exist, node is temporary */
 
index 2e224796d56f270d09235bdd090196163cb7535e..a68de26c7d38a730464f537a37dc42f70369b6f6 100644 (file)
@@ -160,10 +160,10 @@ acpi_ns_parse_table(acpi_native_uint table_index,
         * each Parser Op subtree is deleted when it is finished.  This saves
         * a great deal of memory, and allows a small cache of parse objects
         * to service the entire parse.  The second pass of the parse then
-        * performs another complete parse of the AML..
+        * performs another complete parse of the AML.
         */
        ACPI_DEBUG_PRINT((ACPI_DB_PARSE, "**** Start pass 1\n"));
-       status = acpi_ns_one_complete_parse(1, table_index);
+       status = acpi_ns_one_complete_parse(ACPI_IMODE_LOAD_PASS1, table_index);
        if (ACPI_FAILURE(status)) {
                return_ACPI_STATUS(status);
        }
@@ -178,7 +178,7 @@ acpi_ns_parse_table(acpi_native_uint table_index,
         * parse objects are all cached.
         */
        ACPI_DEBUG_PRINT((ACPI_DB_PARSE, "**** Start pass 2\n"));
-       status = acpi_ns_one_complete_parse(2, table_index);
+       status = acpi_ns_one_complete_parse(ACPI_IMODE_LOAD_PASS2, table_index);
        if (ACPI_FAILURE(status)) {
                return_ACPI_STATUS(status);
        }
index 9069c697cf1d3cc6d6fc713a4d36127a8352d34a..fc5b3e5645e431e4e4c49fe25881db82da626353 100644 (file)
@@ -260,7 +260,7 @@ acpi_status acpi_ps_execute_method(struct acpi_evaluate_info *info)
 
        /* Create and initialize a new walk state */
 
-       info->pass_number = 3;
+       info->pass_number = ACPI_IMODE_EXECUTE;
        walk_state =
            acpi_ds_create_walk_state(info->obj_desc->method.owner_id, NULL,
                                      NULL, NULL);
index 287da6fe256ca6a78d88badab8a55e89c9ccfd9d..7b28d935145ba777cb66ac7b0cadc820d284ea43 100644 (file)
@@ -162,7 +162,7 @@ struct acpi_mutex_info {
 typedef enum {
        ACPI_IMODE_LOAD_PASS1 = 0x01,
        ACPI_IMODE_LOAD_PASS2 = 0x02,
-       ACPI_IMODE_EXECUTE = 0x0E
+       ACPI_IMODE_EXECUTE = 0x03
 } acpi_interpreter_mode;
 
 union acpi_name_union {