diff options
Diffstat (limited to 'MdePkg/Library/BaseIoLibIntrinsic/IoLib.c')
-rw-r--r-- | MdePkg/Library/BaseIoLibIntrinsic/IoLib.c | 32 |
1 files changed, 13 insertions, 19 deletions
diff --git a/MdePkg/Library/BaseIoLibIntrinsic/IoLib.c b/MdePkg/Library/BaseIoLibIntrinsic/IoLib.c index 407c66a03ae5..f55b328d5a7f 100644 --- a/MdePkg/Library/BaseIoLibIntrinsic/IoLib.c +++ b/MdePkg/Library/BaseIoLibIntrinsic/IoLib.c @@ -1,14 +1,8 @@ /** @file Common I/O Library routines. - Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR> - 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 - http://opensource.org/licenses/bsd-license.php. - - THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, - WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. + Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR> + SPDX-License-Identifier: BSD-2-Clause-Patent **/ @@ -107,7 +101,7 @@ MmioRead8 ( @param Address The MMIO register to write. @param Value The value to write to the MMIO register. - + @return Value. **/ @@ -169,7 +163,7 @@ MmioRead16 ( @param Address The MMIO register to write. @param Value The value to write to the MMIO register. - + @return Value. **/ @@ -185,7 +179,7 @@ MmioWrite16 ( MemoryFence (); *(volatile UINT16*)Address = Value; MemoryFence (); - + return Value; } @@ -213,11 +207,11 @@ MmioRead32 ( UINT32 Value; ASSERT ((Address & 3) == 0); - + MemoryFence (); Value = *(volatile UINT32*)Address; MemoryFence (); - + return Value; } @@ -233,7 +227,7 @@ MmioRead32 ( @param Address The MMIO register to write. @param Value The value to write to the MMIO register. - + @return Value. **/ @@ -245,11 +239,11 @@ MmioWrite32 ( ) { ASSERT ((Address & 3) == 0); - + MemoryFence (); *(volatile UINT32*)Address = Value; MemoryFence (); - + return Value; } @@ -277,7 +271,7 @@ MmioRead64 ( UINT64 Value; ASSERT ((Address & 7) == 0); - + MemoryFence (); Value = *(volatile UINT64*)Address; MemoryFence (); @@ -307,11 +301,11 @@ MmioWrite64 ( ) { ASSERT ((Address & 7) == 0); - + MemoryFence (); *(volatile UINT64*)Address = Value; MemoryFence (); - + return Value; } |