Print this page
acpica-unix2-20130823
PANKOVs restructure

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/intel/io/acpica/events/evrgnini.c
          +++ new/usr/src/common/acpica/components/events/evrgnini.c
   1    1  /******************************************************************************
   2    2   *
   3    3   * Module Name: evrgnini- ACPI AddressSpace (OpRegion) init
   4    4   *
   5    5   *****************************************************************************/
   6    6  
   7    7  /*
   8      - * Copyright (C) 2000 - 2011, Intel Corp.
        8 + * Copyright (C) 2000 - 2013, 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 ↓ 363 lines elided ↑ open up ↑
 382  382   * DESCRIPTION: Determine if the input device represents a PCI Root Bridge by
 383  383   *              examining the _HID and _CID for the device.
 384  384   *
 385  385   ******************************************************************************/
 386  386  
 387  387  static BOOLEAN
 388  388  AcpiEvIsPciRootBridge (
 389  389      ACPI_NAMESPACE_NODE     *Node)
 390  390  {
 391  391      ACPI_STATUS             Status;
 392      -    ACPI_DEVICE_ID          *Hid;
 393      -    ACPI_DEVICE_ID_LIST     *Cid;
      392 +    ACPI_PNP_DEVICE_ID      *Hid;
      393 +    ACPI_PNP_DEVICE_ID_LIST *Cid;
 394  394      UINT32                  i;
 395  395      BOOLEAN                 Match;
 396  396  
 397  397  
 398  398      /* Get the _HID and check for a PCI Root Bridge */
 399  399  
 400  400      Status = AcpiUtExecute_HID (Node, &Hid);
 401  401      if (ACPI_FAILURE (Status))
 402  402      {
 403  403          return (FALSE);
↓ open down ↓ 253 lines elided ↑ open up ↑
 657  657                   *
 658  658                   * See AcpiNsExecModuleCode
 659  659                   */
 660  660                  if (ObjDesc->Method.InfoFlags & ACPI_METHOD_MODULE_LEVEL)
 661  661                  {
 662  662                      HandlerObj = ObjDesc->Method.Dispatch.Handler;
 663  663                  }
 664  664                  break;
 665  665  
 666  666              default:
      667 +
 667  668                  /* Ignore other objects */
      669 +
 668  670                  break;
 669  671              }
 670  672  
 671  673              while (HandlerObj)
 672  674              {
 673  675                  /* Is this handler of the correct type? */
 674  676  
 675  677                  if (HandlerObj->AddressSpace.SpaceId == SpaceId)
 676  678                  {
 677  679                      /* Found correct handler */
↓ open down ↓ 44 lines elided ↑ open up ↑
 722  724      }
 723  725  
 724  726      /* If we get here, there is no handler for this region */
 725  727  
 726  728      ACPI_DEBUG_PRINT ((ACPI_DB_OPREGION,
 727  729          "No handler for RegionType %s(%X) (RegionObj %p)\n",
 728  730          AcpiUtGetRegionName (SpaceId), SpaceId, RegionObj));
 729  731  
 730  732      return_ACPI_STATUS (AE_NOT_EXIST);
 731  733  }
 732      -
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX