From 26a76fbcb2762826523bba325400e302bf346859 Mon Sep 17 00:00:00 2001 From: lgao4 Date: Mon, 1 Mar 2010 03:26:19 +0000 Subject: Update code to match EDKII coding style. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10130 6f19259b-4bc3-4df7-8a09-765794883524 --- .../CpuIo2OnCpuIoThunk/CpuIo2OnCpuIoThunk.c | 18 +++++++++--------- .../CpuIo2OnCpuIoThunk/CpuIo2OnCpuIoThunk.h | 10 +++++----- 2 files changed, 14 insertions(+), 14 deletions(-) (limited to 'EdkCompatibilityPkg/Compatibility/CpuIo2OnCpuIoThunk') diff --git a/EdkCompatibilityPkg/Compatibility/CpuIo2OnCpuIoThunk/CpuIo2OnCpuIoThunk.c b/EdkCompatibilityPkg/Compatibility/CpuIo2OnCpuIoThunk/CpuIo2OnCpuIoThunk.c index 261d6cd97a..3ac6555c89 100644 --- a/EdkCompatibilityPkg/Compatibility/CpuIo2OnCpuIoThunk/CpuIo2OnCpuIoThunk.c +++ b/EdkCompatibilityPkg/Compatibility/CpuIo2OnCpuIoThunk/CpuIo2OnCpuIoThunk.c @@ -4,7 +4,7 @@ Intel's Framework CPU I/O Protocol is replaced by CPU I/O 2 Protocol in PI. This module produces PI CPU I/O 2 Protocol on top of Framework CPU I/O Protocol. -Copyright (c) 2009, Intel Corporation +Copyright (c) 2009 - 2010, Intel Corporation All rights reserved. This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -38,7 +38,7 @@ EFI_CPU_IO2_PROTOCOL mCpuIo2 = { @param[in] Address The base address of the memory operation. @param[in] Count The number of memory operations to perform. The number of bytes moved is Width size * Count, starting at Address. - @param[out] Buffer The destination buffer to store the results. + @param[in, out] Buffer The destination buffer to store the results. @retval EFI_SUCCESS The data was read from or written to the EFI system. @retval EFI_INVALID_PARAMETER Width is invalid for this EFI system. Or Buffer is NULL. @@ -53,7 +53,7 @@ CpuMemoryServiceRead ( IN EFI_CPU_IO_PROTOCOL_WIDTH Width, IN UINT64 Address, IN UINTN Count, - OUT VOID *Buffer + IN OUT VOID *Buffer ) { return mCpuIo->Mem.Read ( @@ -73,7 +73,7 @@ CpuMemoryServiceRead ( @param[in] Address The base address of the memory operation. @param[in] Count The number of memory operations to perform. The number of bytes moved is Width size * Count, starting at Address. - @param[in] Buffer The source buffer from which to write data. + @param[in, out] Buffer The source buffer from which to write data. @retval EFI_SUCCESS The data was read from or written to the EFI system. @retval EFI_INVALID_PARAMETER Width is invalid for this EFI system. Or Buffer is NULL. @@ -88,7 +88,7 @@ CpuMemoryServiceWrite ( IN EFI_CPU_IO_PROTOCOL_WIDTH Width, IN UINT64 Address, IN UINTN Count, - IN VOID *Buffer + IN OUT VOID *Buffer ) { return mCpuIo->Mem.Write ( @@ -109,7 +109,7 @@ CpuMemoryServiceWrite ( for aligning the Address if required. @param[in] Count The number of I/O operations to perform. The number of bytes moved is Width size * Count, starting at Address. - @param[out] Buffer The destination buffer to store the results. + @param[in, out] Buffer The destination buffer to store the results. @retval EFI_SUCCESS The data was read from or written to the EFI system. @retval EFI_INVALID_PARAMETER Width is invalid for this EFI system. Or Buffer is NULL. @@ -124,7 +124,7 @@ CpuIoServiceRead ( IN EFI_CPU_IO_PROTOCOL_WIDTH Width, IN UINT64 Address, IN UINTN Count, - OUT VOID *Buffer + IN OUT VOID *Buffer ) { return mCpuIo->Io.Read ( @@ -145,7 +145,7 @@ CpuIoServiceRead ( for aligning the Address if required. @param[in] Count The number of I/O operations to perform. The number of bytes moved is Width size * Count, starting at Address. - @param[in] Buffer The source buffer from which to write data. + @param[in, out] Buffer The source buffer from which to write data. @retval EFI_SUCCESS The data was read from or written to the EFI system. @retval EFI_INVALID_PARAMETER Width is invalid for this EFI system. Or Buffer is NULL. @@ -160,7 +160,7 @@ CpuIoServiceWrite ( IN EFI_CPU_IO_PROTOCOL_WIDTH Width, IN UINT64 Address, IN UINTN Count, - IN VOID *Buffer + IN OUT VOID *Buffer ) { return mCpuIo->Io.Write ( diff --git a/EdkCompatibilityPkg/Compatibility/CpuIo2OnCpuIoThunk/CpuIo2OnCpuIoThunk.h b/EdkCompatibilityPkg/Compatibility/CpuIo2OnCpuIoThunk/CpuIo2OnCpuIoThunk.h index 5c8760e9fa..823bd80c7c 100644 --- a/EdkCompatibilityPkg/Compatibility/CpuIo2OnCpuIoThunk/CpuIo2OnCpuIoThunk.h +++ b/EdkCompatibilityPkg/Compatibility/CpuIo2OnCpuIoThunk/CpuIo2OnCpuIoThunk.h @@ -1,7 +1,7 @@ /** @file Internal include file for the CPU I/O 2 Protocol thunk driver. -Copyright (c) 2009, Intel Corporation +Copyright (c) 2009 - 2010, Intel Corporation All rights reserved. This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -29,7 +29,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. @param[in] Address The base address of the memory operation. @param[in] Count The number of memory operations to perform. The number of bytes moved is Width size * Count, starting at Address. - @param[out] Buffer The destination buffer to store the results. + @param[in, out] Buffer The destination buffer to store the results. @retval EFI_SUCCESS The data was read from or written to the EFI system. @retval EFI_INVALID_PARAMETER Width is invalid for this EFI system. Or Buffer is NULL. @@ -55,7 +55,7 @@ CpuMemoryServiceRead ( @param[in] Address The base address of the memory operation. @param[in] Count The number of memory operations to perform. The number of bytes moved is Width size * Count, starting at Address. - @param[in] Buffer The source buffer from which to write data. + @param[in, out] Buffer The source buffer from which to write data. @retval EFI_SUCCESS The data was read from or written to the EFI system. @retval EFI_INVALID_PARAMETER Width is invalid for this EFI system. Or Buffer is NULL. @@ -82,7 +82,7 @@ CpuMemoryServiceWrite ( for aligning the Address if required. @param[in] Count The number of I/O operations to perform. The number of bytes moved is Width size * Count, starting at Address. - @param[out] Buffer The destination buffer to store the results. + @param[in, out] Buffer The destination buffer to store the results. @retval EFI_SUCCESS The data was read from or written to the EFI system. @retval EFI_INVALID_PARAMETER Width is invalid for this EFI system. Or Buffer is NULL. @@ -109,7 +109,7 @@ CpuIoServiceRead ( for aligning the Address if required. @param[in] Count The number of I/O operations to perform. The number of bytes moved is Width size * Count, starting at Address. - @param[in] Buffer The source buffer from which to write data. + @param[in, out] Buffer The source buffer from which to write data. @retval EFI_SUCCESS The data was read from or written to the EFI system. @retval EFI_INVALID_PARAMETER Width is invalid for this EFI system. Or Buffer is NULL. -- cgit v1.2.3