]> git.proxmox.com Git - mirror_edk2.git/blobdiff - IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciPowerManagement.c
Retired PciIncompatibleDeviceSupportLib from IntelFrameworkModulePkg.
[mirror_edk2.git] / IntelFrameworkModulePkg / Bus / Pci / PciBusDxe / PciPowerManagement.c
index 5ebbaf910cbbf18878e8456705eda243fc9a1957..860d427f352a7b652169267066864ba63b472db2 100644 (file)
@@ -1,13 +1,14 @@
 /** @file\r
 /** @file\r
+  Power management support fucntions implementation for PCI Bus module.\r
 \r
 \r
-Copyright (c) 2006, Intel Corporation                                                         \r
-All rights reserved. This program and the accompanying materials                          \r
-are licensed and made available under the terms and conditions of the BSD License         \r
-which accompanies this distribution.  The full text of the license may be found at        \r
-http://opensource.org/licenses/bsd-license.php                                            \r
-                                                                                          \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
+Copyright (c) 2006 - 2009, Intel Corporation\r
+All rights reserved. This program and the accompanying materials\r
+are licensed and made available under the terms and conditions of the BSD License\r
+which accompanies this distribution.  The full text of the license may be found at\r
+http://opensource.org/licenses/bsd-license.php\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
 **/\r
 \r
 \r
 **/\r
 \r
@@ -18,10 +19,11 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
   put the device to D0 state if the device supports\r
   PCI Power Management.\r
 \r
   put the device to D0 state if the device supports\r
   PCI Power Management.\r
 \r
-  @param PciIoDevice  Pci device instance\r
+  @param PciIoDevice      PCI device instance.\r
+\r
+  @retval EFI_UNSUPPORTED PCI Device does not support power management.\r
+  @retval EFI_SUCCESS     Turned off PWE successfully.\r
 \r
 \r
-  @retval EFI_UNSUPPORTED Device do not support power management\r
-  @retval EFI_SUCCESS     Success\r
 **/\r
 EFI_STATUS\r
 ResetPowerManagementFeature (\r
 **/\r
 EFI_STATUS\r
 ResetPowerManagementFeature (\r
@@ -53,13 +55,13 @@ ResetPowerManagementFeature (
   //\r
   // Write PMCSR\r
   //\r
   //\r
   // Write PMCSR\r
   //\r
-  PciIoWrite (\r
-               &PciIoDevice->PciIo,\r
-               EfiPciIoWidthUint16,\r
-               PowerManagementRegBlock + 4,\r
-               1,\r
-               &PowerManagementCSR\r
-             );\r
+  PciIoDevice->PciIo.Pci.Write (\r
+                           &PciIoDevice->PciIo,\r
+                           EfiPciIoWidthUint16,\r
+                           PowerManagementRegBlock + 4,\r
+                           1,\r
+                           &PowerManagementCSR\r
+                           );\r
 \r
   return EFI_SUCCESS;\r
 }\r
 \r
   return EFI_SUCCESS;\r
 }\r