]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/BasePciLibCf8/PciLib.c
Add following library instances to MDE package:
[mirror_edk2.git] / MdePkg / Library / BasePciLibCf8 / PciLib.c
index 1bf9c87ea8988dbae3c769fe9540b160d2ae7ebe..af71b88e597b9f9146069837d9e40823a7f5e1d3 100644 (file)
@@ -1,7 +1,8 @@
 /** @file\r
-  PCI Library using Port CF8/CFC access.\r
+  PCI Library functions that use I/O ports 0xCF8 and 0xCFC to perform\r
+  PCI Configuration cycles. Layers on top of one PCI CF8 Library instance.\r
 \r
-  Copyright (c) 2006, Intel Corporation<BR>\r
+  Copyright (c) 2006 - 2008, Intel Corporation<BR>\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
   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
-  Module Name:  PciLib.c\r
-\r
 **/\r
 \r
-//\r
-// Include common header file for this module.\r
-//\r
-#include "CommonHeader.h"\r
+\r
+#include <Base.h>\r
+\r
+#include <Library/PciLib.h>\r
+#include <Library/PciCf8Lib.h>\r
 \r
 /**\r
   Reads an 8-bit PCI configuration register.\r
@@ -63,10 +63,10 @@ UINT8
 EFIAPI\r
 PciWrite8 (\r
   IN      UINTN                     Address,\r
-  IN      UINT8                     Data\r
+  IN      UINT8                     Value\r
   )\r
 {\r
-  return PciCf8Write8 (Address, Data);\r
+  return PciCf8Write8 (Address, Value);\r
 }\r
 \r
 /**\r
@@ -391,10 +391,10 @@ UINT16
 EFIAPI\r
 PciWrite16 (\r
   IN      UINTN                     Address,\r
-  IN      UINT16                    Data\r
+  IN      UINT16                    Value\r
   )\r
 {\r
-  return PciCf8Write16 (Address, Data);\r
+  return PciCf8Write16 (Address, Value);\r
 }\r
 \r
 /**\r
@@ -719,10 +719,10 @@ UINT32
 EFIAPI\r
 PciWrite32 (\r
   IN      UINTN                     Address,\r
-  IN      UINT32                    Data\r
+  IN      UINT32                    Value\r
   )\r
 {\r
-  return PciCf8Write32 (Address, Data);\r
+  return PciCf8Write32 (Address, Value);\r
 }\r
 \r
 /**\r