X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=MdePkg%2FLibrary%2FBaseIoLibIntrinsic%2FIoLibGcc.c;h=db94f0f47e657489a18cc52c8bebe01b18abe355;hb=38bbd3d91c38481d18c1a7e2049473c951ee98ed;hp=69fb878888fdd532ed48ae1193ce6b767a39a694;hpb=2ce311322c72857f73138c45358e722607a1e80c;p=mirror_edk2.git diff --git a/MdePkg/Library/BaseIoLibIntrinsic/IoLibGcc.c b/MdePkg/Library/BaseIoLibIntrinsic/IoLibGcc.c index 69fb878888..db94f0f47e 100644 --- a/MdePkg/Library/BaseIoLibIntrinsic/IoLibGcc.c +++ b/MdePkg/Library/BaseIoLibIntrinsic/IoLibGcc.c @@ -10,7 +10,7 @@ We don't advocate putting compiler specifics in libraries or drivers but there is no other way to make this work. - Copyright (c) 2006, Intel Corporation
+ Copyright (c) 2006 - 2007, 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 @@ -19,11 +19,12 @@ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. - Module Name: IoLibGcc.c - **/ -#ifdef __GNUC__ +// +// Include common header file for this module. +// +#include "BaseIoLibIntrinsicInternal.h" /** Reads an 8-bit MMIO register. @@ -36,7 +37,7 @@ @param Address The MMIO register to read. - @return The value read. + @return The value read from Address. **/ UINT8 @@ -60,6 +61,9 @@ MmioRead8 ( @param Address The MMIO register to write. @param Value The value to write to the MMIO register. + @return The value written to the Mmio. It equals to the input + Value instead of the actual value read back from the + Mmio. **/ UINT8 EFIAPI @@ -82,7 +86,7 @@ MmioWrite8 ( @param Address The MMIO register to read. - @return The value read. + @return The value read from Address. **/ UINT16 @@ -107,6 +111,9 @@ MmioRead16 ( @param Address The MMIO register to write. @param Value The value to write to the MMIO register. + @return The value written to the Mmio. It equals to the input + Value instead of the actual value read back from the + Mmio. **/ UINT16 EFIAPI @@ -130,7 +137,7 @@ MmioWrite16 ( @param Address The MMIO register to read. - @return The value read. + @return The value read from Address. **/ UINT32 @@ -155,6 +162,9 @@ MmioRead32 ( @param Address The MMIO register to write. @param Value The value to write to the MMIO register. + @return The value written to the Mmio. It equals to the input + Value instead of the actual value read back from the + Mmio. **/ UINT32 EFIAPI @@ -178,7 +188,7 @@ MmioWrite32 ( @param Address The MMIO register to read. - @return The value read. + @return The value read from Address. **/ UINT64 @@ -203,6 +213,9 @@ MmioRead64 ( @param Address The MMIO register to write. @param Value The value to write to the MMIO register. + @return The value written to the Mmio. It equals to the input + Value instead of the actual value read back from the + Mmio. **/ UINT64 EFIAPI @@ -228,7 +241,7 @@ MmioWrite64 ( @param Port The I/O port to read. - @return The value read. + @return The value read from Port. **/ __inline__ @@ -256,7 +269,9 @@ IoRead8 ( @param Port The I/O port to write. @param Value The value to write to the I/O port. - @return The value written 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 + the I/O port. **/ __inline__ @@ -282,7 +297,7 @@ IoWrite8 ( @param Port The I/O port to read. - @return The value read. + @return The value read from Port. **/ __inline__ @@ -311,7 +326,9 @@ IoRead16 ( @param Port The I/O port to write. @param Value The value to write to the I/O port. - @return The value written 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 + the I/O port. **/ __inline__ @@ -338,7 +355,7 @@ IoWrite16 ( @param Port The I/O port to read. - @return The value read. + @return The value read from Port. **/ __inline__ @@ -367,7 +384,9 @@ IoRead32 ( @param Port The I/O port to write. @param Value The value to write to the I/O port. - @return The value written 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 + the I/O port. **/ __inline__ @@ -383,4 +402,3 @@ IoWrite32 ( return Value; } -#endif