]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EdkCompatibilityPkg/Compatibility/CpuIo2OnCpuIoThunk/CpuIo2OnCpuIoThunk.c
MdeModulePkg/PciBus: Avoid hang when BUS pad resource is not in top
[mirror_edk2.git] / EdkCompatibilityPkg / Compatibility / CpuIo2OnCpuIoThunk / CpuIo2OnCpuIoThunk.c
index 261d6cd97afd8727196418575a1455ac8b360c78..ee9cf607d0ec3782e6095010d49f5d0c4ccb35a3 100644 (file)
@@ -4,8 +4,8 @@
   Intel's Framework CPU I/O Protocol is replaced by CPU I/O 2 Protocol in PI.\r
   This module produces PI CPU I/O 2 Protocol on top of Framework CPU I/O Protocol.\r
 \r
-Copyright (c) 2009, Intel Corporation\r
-All rights reserved. This program and the accompanying materials\r
+Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved.<BR>\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
@@ -38,7 +38,7 @@ EFI_CPU_IO2_PROTOCOL mCpuIo2 = {
   @param[in]       Address      The base address of the memory operation.\r
   @param[in]       Count        The number of memory operations to perform. The number of bytes moved\r
                                 is Width size * Count, starting at Address.\r
-  @param[out]      Buffer       The destination buffer to store the results.\r
+  @param[in, out]   Buffer       The destination buffer to store the results.\r
 \r
   @retval EFI_SUCCESS           The data was read from or written to the EFI system.\r
   @retval EFI_INVALID_PARAMETER Width is invalid for this EFI system. Or Buffer is NULL.\r
@@ -53,7 +53,7 @@ CpuMemoryServiceRead (
   IN     EFI_CPU_IO_PROTOCOL_WIDTH         Width,\r
   IN     UINT64                            Address,\r
   IN     UINTN                             Count,\r
-  OUT    VOID                              *Buffer\r
+  IN OUT VOID                              *Buffer\r
   )\r
 {\r
   return mCpuIo->Mem.Read (\r
@@ -73,7 +73,7 @@ CpuMemoryServiceRead (
   @param[in]       Address      The base address of the memory operation.\r
   @param[in]       Count        The number of memory operations to perform. The number of bytes moved\r
                                 is Width size * Count, starting at Address.\r
-  @param[in]       Buffer       The source buffer from which to write data.\r
+  @param[in, out]   Buffer       The source buffer from which to write data.\r
 \r
   @retval EFI_SUCCESS           The data was read from or written to the EFI system.\r
   @retval EFI_INVALID_PARAMETER Width is invalid for this EFI system. Or Buffer is NULL.\r
@@ -88,7 +88,7 @@ CpuMemoryServiceWrite (
   IN     EFI_CPU_IO_PROTOCOL_WIDTH         Width,\r
   IN     UINT64                            Address,\r
   IN     UINTN                             Count,\r
-  IN     VOID                              *Buffer\r
+  IN OUT VOID                              *Buffer\r
   )\r
 {\r
   return mCpuIo->Mem.Write (\r
@@ -109,7 +109,7 @@ CpuMemoryServiceWrite (
                                 for aligning the Address if required. \r
   @param[in]       Count        The number of I/O operations to perform. The number of bytes moved\r
                                 is Width size * Count, starting at Address.\r
-  @param[out]      Buffer       The destination buffer to store the results.\r
+  @param[in, out]   Buffer       The destination buffer to store the results.\r
 \r
   @retval EFI_SUCCESS           The data was read from or written to the EFI system.\r
   @retval EFI_INVALID_PARAMETER Width is invalid for this EFI system. Or Buffer is NULL.\r
@@ -124,7 +124,7 @@ CpuIoServiceRead (
   IN     EFI_CPU_IO_PROTOCOL_WIDTH         Width,\r
   IN     UINT64                            Address,\r
   IN     UINTN                             Count,\r
-  OUT    VOID                              *Buffer\r
+  IN OUT VOID                              *Buffer\r
   )\r
 {\r
   return mCpuIo->Io.Read (\r
@@ -145,7 +145,7 @@ CpuIoServiceRead (
                                 for aligning the Address if required. \r
   @param[in]       Count        The number of I/O operations to perform. The number of bytes moved\r
                                 is Width size * Count, starting at Address.\r
-  @param[in]       Buffer       The source buffer from which to write data.\r
+  @param[in, out]   Buffer       The source buffer from which to write data.\r
 \r
   @retval EFI_SUCCESS           The data was read from or written to the EFI system.\r
   @retval EFI_INVALID_PARAMETER Width is invalid for this EFI system. Or Buffer is NULL.\r
@@ -160,7 +160,7 @@ CpuIoServiceWrite (
   IN     EFI_CPU_IO_PROTOCOL_WIDTH         Width,\r
   IN     UINT64                            Address,\r
   IN     UINTN                             Count,\r
-  IN     VOID                              *Buffer\r
+  IN OUT VOID                              *Buffer\r
   )\r
 {\r
   return mCpuIo->Io.Write (\r