Refine the code.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5729 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
klu2 2008-08-25 05:36:08 +00:00
parent 340499ce6e
commit 4ca0802e08
3 changed files with 15 additions and 20 deletions

View File

@ -13,12 +13,6 @@
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
The following IoLib instances share the same version of this file:
BaseIoLibIntrinsic
DxeIoLibCpuIo
PeiIoLibCpuIo
**/ **/

View File

@ -1,5 +1,5 @@
/** @file /** @file
I/O Library. I/O Library. The implementations are based on EFI_PEI_SERVICE->CpuIo interface.
Copyright (c) 2006, Intel Corporation<BR> Copyright (c) 2006, Intel Corporation<BR>
All rights reserved. This program and the accompanying materials All rights reserved. This program and the accompanying materials
@ -521,7 +521,7 @@ MmioRead64 (
// //
// Make sure Address is aligned on a 64-bit boundary. // Make sure Address is aligned on a 64-bit boundary.
// //
ASSERT ((Address & 7) == 0); ASSERT ((Address & 7) == (sizeof (UINT64) - 1));
return CpuIo->MemRead64 (PeiServices, CpuIo, (UINT64) Address); return CpuIo->MemRead64 (PeiServices, CpuIo, (UINT64) Address);
} }

View File

@ -1,5 +1,6 @@
/** @file /** @file
I/O Library MMIO Buffer Functions. I/O Library MMIO Buffer Functions.
The implementations are based on EFI_PEI_SERVICE->CpuIo interface.
Copyright (c) 2007, Intel Corporation<BR> Copyright (c) 2007, Intel Corporation<BR>
All rights reserved. This program and the accompanying materials All rights reserved. This program and the accompanying materials
@ -35,7 +36,7 @@
@param Length Size in bytes of the copy. @param Length Size in bytes of the copy.
@param Buffer Pointer to a system memory buffer receiving the data read. @param Buffer Pointer to a system memory buffer receiving the data read.
@return Buffer @return Pointer to a system memory buffer receiving the data read.
**/ **/
UINT8 * UINT8 *
@ -79,7 +80,7 @@ MmioReadBuffer8 (
@param Length Size in bytes of the copy. @param Length Size in bytes of the copy.
@param Buffer Pointer to a system memory buffer receiving the data read. @param Buffer Pointer to a system memory buffer receiving the data read.
@return Buffer @return Pointer to a system memory buffer receiving the data read.
**/ **/
UINT16 * UINT16 *
@ -130,7 +131,7 @@ MmioReadBuffer16 (
@param Length Size in bytes of the copy. @param Length Size in bytes of the copy.
@param Buffer Pointer to a system memory buffer receiving the data read. @param Buffer Pointer to a system memory buffer receiving the data read.
@return Buffer @return Pointer to a system memory buffer receiving the data read.
**/ **/
UINT32 * UINT32 *
@ -181,7 +182,7 @@ MmioReadBuffer32 (
@param Length Size in bytes of the copy. @param Length Size in bytes of the copy.
@param Buffer Pointer to a system memory buffer receiving the data read. @param Buffer Pointer to a system memory buffer receiving the data read.
@return Buffer @return Pointer to a system memory buffer receiving the data read.
**/ **/
UINT64 * UINT64 *
@ -229,7 +230,7 @@ MmioReadBuffer64 (
@param Length Size in bytes of the copy. @param Length Size in bytes of the copy.
@param Buffer Pointer to a system memory buffer containing the data to write. @param Buffer Pointer to a system memory buffer containing the data to write.
@return Size in bytes of the copy. @return Pointer to a system memory buffer containing the data to write.
**/ **/
UINT8 * UINT8 *
@ -275,7 +276,7 @@ MmioWriteBuffer8 (
@param Length Size in bytes of the copy. @param Length Size in bytes of the copy.
@param Buffer Pointer to a system memory buffer containing the data to write. @param Buffer Pointer to a system memory buffer containing the data to write.
@return Size in bytes of the copy. @return Pointer to a system memory buffer containing the data to write.
**/ **/
UINT16 * UINT16 *
@ -329,7 +330,7 @@ MmioWriteBuffer16 (
@param Length Size in bytes of the copy. @param Length Size in bytes of the copy.
@param Buffer Pointer to a system memory buffer containing the data to write. @param Buffer Pointer to a system memory buffer containing the data to write.
@return Size in bytes of the copy. @return Pointer to a system memory buffer containing the data to write.
**/ **/
UINT32 * UINT32 *
@ -382,7 +383,7 @@ MmioWriteBuffer32 (
@param Length Size in bytes of the copy. @param Length Size in bytes of the copy.
@param Buffer Pointer to a system memory buffer containing the data to write. @param Buffer Pointer to a system memory buffer containing the data to write.
@return Size in bytes of the copy. @return Pointer to a system memory buffer containing the data to write.
**/ **/
UINT64 * UINT64 *