Code Scrub for MdePkg.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5567 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
yshang1
2008-07-25 12:21:57 +00:00
parent 0f82bd5514
commit 42eedea958
176 changed files with 1437 additions and 253 deletions

View File

@@ -1,4 +1,4 @@
/**@file
/** @file
Common header file shared by all source files.
This file includes package header files, dependent library classes.

View File

@@ -147,7 +147,7 @@ IoRead64 (
operations are serialized.
@param Port The I/O port to write.
@param Value The value to write to the I/O port.
@param Data The value to write to the I/O port.
@return The value written to the I/O port. It equals to the
input Value instead of the actual value read back from
@@ -172,7 +172,7 @@ IoWrite8 (
operations are serialized.
@param Port The I/O port to write.
@param Value The value to write to the I/O port.
@param Data The value to write to the I/O port.
@return The value written to the I/O port. It equals to the
input Value instead of the actual value read back from
@@ -197,7 +197,7 @@ IoWrite16 (
operations are serialized.
@param Port The I/O port to write.
@param Value The value to write to the I/O port.
@param Data The value to write to the I/O port.
@return The value written to the I/O port. It equals to the
input Value instead of the actual value read back from

View File

@@ -47,7 +47,7 @@ MmioReadBuffer8 (
ReturnBuffer = Buffer;
while (Length--) {
while (Length-- != 0) {
*(Buffer++) = MmioRead8 (StartAddress++);
}
@@ -96,7 +96,7 @@ MmioReadBuffer16 (
ReturnBuffer = Buffer;
while (Length) {
while (Length != 0) {
*(Buffer++) = MmioRead16 (StartAddress);
StartAddress += sizeof (UINT16);
Length -= sizeof (UINT16);
@@ -147,7 +147,7 @@ MmioReadBuffer32 (
ReturnBuffer = Buffer;
while (Length) {
while (Length != 0) {
*(Buffer++) = MmioRead32 (StartAddress);
StartAddress += sizeof (UINT32);
Length -= sizeof (UINT32);
@@ -198,7 +198,7 @@ MmioReadBuffer64 (
ReturnBuffer = Buffer;
while (Length) {
while (Length != 0) {
*(Buffer++) = MmioRead64 (StartAddress);
StartAddress += sizeof (UINT64);
Length -= sizeof (UINT64);
@@ -241,7 +241,7 @@ MmioWriteBuffer8 (
ReturnBuffer = (UINT8 *) Buffer;
while (Length--) {
while (Length-- != 0) {
MmioWrite8 (StartAddress++, *(Buffer++));
}
@@ -292,7 +292,7 @@ MmioWriteBuffer16 (
ReturnBuffer = (UINT16 *) Buffer;
while (Length) {
while (Length != 0) {
MmioWrite16 (StartAddress, *(Buffer++));
StartAddress += sizeof (UINT16);
@@ -346,7 +346,7 @@ MmioWriteBuffer32 (
ReturnBuffer = (UINT32 *) Buffer;
while (Length) {
while (Length != 0) {
MmioWrite32 (StartAddress, *(Buffer++));
StartAddress += sizeof (UINT32);
@@ -399,7 +399,7 @@ MmioWriteBuffer64 (
ReturnBuffer = (UINT64 *) Buffer;
while (Length) {
while (Length != 0) {
MmioWrite64 (StartAddress, *(Buffer++));
StartAddress += sizeof (UINT64);

View File

@@ -26,8 +26,9 @@
#include "BaseIoLibIntrinsicInternal.h"
//
// Microsoft Visual Studio 7.1 Function Prototypes for I/O Intrinsics
// Microsoft Visual Studio 7.1 Function Prototypes for I/O Intrinsics.
//
int _inp (unsigned short port);
unsigned short _inpw (unsigned short port);
unsigned long _inpd (unsigned short port);