Print this page
update to acpica-unix2-20140114
acpica-unix2-20130823
PANKOVs restructure

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/intel/io/acpica/parser/pstree.c
          +++ new/usr/src/common/acpica/components/parser/pstree.c
   1    1  /******************************************************************************
   2    2   *
   3    3   * Module Name: pstree - Parser op tree manipulation/traversal/search
   4    4   *
   5    5   *****************************************************************************/
   6    6  
   7    7  /*
   8      - * Copyright (C) 2000 - 2011, Intel Corp.
        8 + * Copyright (C) 2000 - 2014, Intel Corp.
   9    9   * All rights reserved.
  10   10   *
  11   11   * Redistribution and use in source and binary forms, with or without
  12   12   * modification, are permitted provided that the following conditions
  13   13   * are met:
  14   14   * 1. Redistributions of source code must retain the above copyright
  15   15   *    notice, this list of conditions, and the following disclaimer,
  16   16   *    without modification.
  17   17   * 2. Redistributions in binary form must reproduce at minimum a disclaimer
  18   18   *    substantially similar to the "NO WARRANTY" disclaimer below
↓ open down ↓ 59 lines elided ↑ open up ↑
  78   78  AcpiPsGetArg (
  79   79      ACPI_PARSE_OBJECT       *Op,
  80   80      UINT32                  Argn)
  81   81  {
  82   82      ACPI_PARSE_OBJECT       *Arg = NULL;
  83   83      const ACPI_OPCODE_INFO  *OpInfo;
  84   84  
  85   85  
  86   86      ACPI_FUNCTION_ENTRY ();
  87   87  
  88      -
       88 +/*
       89 +    if (Op->Common.AmlOpcode == AML_INT_CONNECTION_OP)
       90 +    {
       91 +        return (Op->Common.Value.Arg);
       92 +    }
       93 +*/
  89   94      /* Get the info structure for this opcode */
  90   95  
  91   96      OpInfo = AcpiPsGetOpcodeInfo (Op->Common.AmlOpcode);
  92   97      if (OpInfo->Class == AML_CLASS_UNKNOWN)
  93   98      {
  94   99          /* Invalid opcode or ASCII character */
  95  100  
  96  101          return (NULL);
  97  102      }
  98  103  
↓ open down ↓ 211 lines elided ↑ open up ↑
 310  315      {
 311  316      case AML_SCOPE_OP:
 312  317      case AML_ELSE_OP:
 313  318      case AML_DEVICE_OP:
 314  319      case AML_THERMAL_ZONE_OP:
 315  320      case AML_INT_METHODCALL_OP:
 316  321  
 317  322          Child = AcpiPsGetArg (Op, 0);
 318  323          break;
 319  324  
 320      -
 321  325      case AML_BUFFER_OP:
 322  326      case AML_PACKAGE_OP:
 323  327      case AML_METHOD_OP:
 324  328      case AML_IF_OP:
 325  329      case AML_WHILE_OP:
 326  330      case AML_FIELD_OP:
 327  331  
 328  332          Child = AcpiPsGetArg (Op, 1);
 329  333          break;
 330  334  
 331      -
 332  335      case AML_POWER_RES_OP:
 333  336      case AML_INDEX_FIELD_OP:
 334  337  
 335  338          Child = AcpiPsGetArg (Op, 2);
 336  339          break;
 337  340  
 338      -
 339  341      case AML_PROCESSOR_OP:
 340  342      case AML_BANK_FIELD_OP:
 341  343  
 342  344          Child = AcpiPsGetArg (Op, 3);
 343  345          break;
 344  346  
 345      -
 346  347      default:
      348 +
 347  349          /* All others have no children */
      350 +
 348  351          break;
 349  352      }
 350  353  
 351  354      return (Child);
 352  355  }
 353  356  #endif
 354      -
 355      -
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX