]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Omap35xxPkg/PciEmulation/PciRootBridgeIo.c
SecurityPkg: Tcg2Dxe: Report correct FinalEventLog size
[mirror_edk2.git] / Omap35xxPkg / PciEmulation / PciRootBridgeIo.c
index d06a56ce57277f0dbb46b52362400491394af79f..e8635ed88d91d49307a380f023d0788b964759d1 100644 (file)
@@ -1,8 +1,8 @@
 /** @file\r
 \r
-  Copyright (c) 2008-2009, Apple Inc. All rights reserved.\r
-  \r
-  All rights reserved. This program and the accompanying materials\r
+  Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>\r
+\r
+  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
@@ -87,20 +87,20 @@ PciRootBridgeIoPciRW (
   return EFI_SUCCESS;\r
 }\r
 \r
-/**                                                                 \r
+/**\r
   Enables a PCI driver to access PCI controller registers in the PCI root bridge memory space.\r
-          \r
+\r
   @param  This                  A pointer to the EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL.\r
   @param  Width                 Signifies the width of the memory operations.\r
-  @param  Address               The base address of the memory operations.                                  \r
+  @param  Address               The base address of the memory operations.\r
   @param  Count                 The number of memory operations to perform.\r
   @param  Buffer                For read operations, the destination buffer to store the results. For write\r
-                                operations, the source buffer to write data from.                          \r
-  \r
-  @retval EFI_SUCCESS           The data was read from or written to the PCI root bridge.  \r
+                                operations, the source buffer to write data from.\r
+\r
+  @retval EFI_SUCCESS           The data was read from or written to the PCI root bridge.\r
   @retval EFI_OUT_OF_RESOURCES  The request could not be completed due to a lack of resources.\r
   @retval EFI_INVALID_PARAMETER One or more parameters are invalid.\r
-                                   \r
+\r
 **/\r
 EFI_STATUS\r
 EFIAPI\r
@@ -120,7 +120,7 @@ PciRootBridgeIoMemRead (
   if ( Buffer == NULL ) {\r
     return EFI_INVALID_PARAMETER;\r
   }\r
-  \r
+\r
   Private = INSTANCE_FROM_PCI_ROOT_BRIDGE_IO_THIS (This);\r
 \r
   if (!PciRootBridgeMemAddressValid (Private, Address)) {\r
@@ -153,30 +153,30 @@ PciRootBridgeIoMemRead (
   case EfiPciWidthFillUint32:\r
   case EfiPciWidthFillUint64:\r
     return PciRootBridgeIoMemRW (Width, Count, FALSE, In, TRUE, Out);\r
-  \r
+\r
   default:\r
     break;\r
   }\r
-  \r
+\r
   return EFI_INVALID_PARAMETER;\r
 }\r
 \r
 \r
 \r
-/**                                                                 \r
+/**\r
   Enables a PCI driver to access PCI controller registers in the PCI root bridge memory space.\r
-          \r
+\r
   @param  This                  A pointer to the EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL.\r
   @param  Width                 Signifies the width of the memory operations.\r
-  @param  Address               The base address of the memory operations.                                  \r
+  @param  Address               The base address of the memory operations.\r
   @param  Count                 The number of memory operations to perform.\r
   @param  Buffer                For read operations, the destination buffer to store the results. For write\r
-                                operations, the source buffer to write data from.                          \r
-  \r
-  @retval EFI_SUCCESS           The data was read from or written to the PCI root bridge.  \r
+                                operations, the source buffer to write data from.\r
+\r
+  @retval EFI_SUCCESS           The data was read from or written to the PCI root bridge.\r
   @retval EFI_OUT_OF_RESOURCES  The request could not be completed due to a lack of resources.\r
   @retval EFI_INVALID_PARAMETER One or more parameters are invalid.\r
-                                   \r
+\r
 **/\r
 EFI_STATUS\r
 EFIAPI\r
@@ -196,7 +196,7 @@ PciRootBridgeIoMemWrite (
   if ( Buffer == NULL ) {\r
     return EFI_INVALID_PARAMETER;\r
   }\r
-  \r
+\r
   Private = INSTANCE_FROM_PCI_ROOT_BRIDGE_IO_THIS (This);\r
 \r
   if (!PciRootBridgeMemAddressValid (Private, Address)) {\r
@@ -217,7 +217,7 @@ PciRootBridgeIoMemWrite (
   case EfiPciWidthUint32:\r
   case EfiPciWidthUint64:\r
     return PciRootBridgeIoMemRW (Width, Count, TRUE, In, TRUE, Out);\r
-  \r
+\r
   case EfiPciWidthFifoUint8:\r
   case EfiPciWidthFifoUint16:\r
   case EfiPciWidthFifoUint32:\r
@@ -229,7 +229,7 @@ PciRootBridgeIoMemWrite (
   case EfiPciWidthFillUint32:\r
   case EfiPciWidthFillUint64:\r
     return PciRootBridgeIoMemRW (Width, Count, TRUE, In, FALSE, Out);\r
-  \r
+\r
   default:\r
     break;\r
   }\r
@@ -237,20 +237,20 @@ PciRootBridgeIoMemWrite (
   return EFI_INVALID_PARAMETER;\r
 }\r
 \r
-/**                                                                 \r
+/**\r
   Enables a PCI driver to access PCI controller registers in the PCI root bridge memory space.\r
-          \r
+\r
   @param  This                  A pointer to the EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL.\r
   @param  Width                 Signifies the width of the memory operations.\r
-  @param  Address               The base address of the memory operations.                                  \r
+  @param  Address               The base address of the memory operations.\r
   @param  Count                 The number of memory operations to perform.\r
   @param  Buffer                For read operations, the destination buffer to store the results. For write\r
-                                operations, the source buffer to write data from.                          \r
-  \r
-  @retval EFI_SUCCESS           The data was read from or written to the PCI root bridge.  \r
+                                operations, the source buffer to write data from.\r
+\r
+  @retval EFI_SUCCESS           The data was read from or written to the PCI root bridge.\r
   @retval EFI_OUT_OF_RESOURCES  The request could not be completed due to a lack of resources.\r
   @retval EFI_INVALID_PARAMETER One or more parameters are invalid.\r
-                                   \r
+\r
 **/\r
 EFI_STATUS\r
 EFIAPI\r
@@ -271,20 +271,20 @@ PciRootBridgeIoPciRead (
 \r
 \r
 \r
-/**                                                                 \r
+/**\r
   Enables a PCI driver to access PCI controller registers in the PCI root bridge memory space.\r
-          \r
+\r
   @param  This                  A pointer to the EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL.\r
   @param  Width                 Signifies the width of the memory operations.\r
-  @param  Address               The base address of the memory operations.                                  \r
+  @param  Address               The base address of the memory operations.\r
   @param  Count                 The number of memory operations to perform.\r
   @param  Buffer                For read operations, the destination buffer to store the results. For write\r
-                                operations, the source buffer to write data from.                          \r
-  \r
-  @retval EFI_SUCCESS           The data was read from or written to the PCI root bridge.  \r
+                                operations, the source buffer to write data from.\r
+\r
+  @retval EFI_SUCCESS           The data was read from or written to the PCI root bridge.\r
   @retval EFI_OUT_OF_RESOURCES  The request could not be completed due to a lack of resources.\r
   @retval EFI_INVALID_PARAMETER One or more parameters are invalid.\r
-                                   \r
+\r
 **/\r
 EFI_STATUS\r
 EFIAPI\r
@@ -299,7 +299,7 @@ PciRootBridgeIoPciWrite (
   if (Buffer == NULL) {\r
     return EFI_INVALID_PARAMETER;\r
   }\r
-  \r
+\r
   return PciRootBridgeIoPciRW (This, TRUE, Width, Address, Count, Buffer);\r
 }\r
 \r