]>
git.proxmox.com Git - mirror_edk2.git/blob - EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseIoLibIntrinsic/IoLib.c
3 Copyright (c) 2004 - 2006, Intel Corporation
4 All rights reserved. This program and the accompanying materials
5 are licensed and made available under the terms and conditions of the BSD License
6 which accompanies this distribution. The full text of the license may be found at
7 http://opensource.org/licenses/bsd-license.php
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
19 Common I/O Library routines.
23 #include "EdkIIGlueBase.h"
26 Reads a 64-bit I/O port.
28 Reads the 64-bit I/O port specified by Port. The 64-bit read value is returned.
29 This function must guarantee that all I/O read and write operations are
32 If 64-bit I/O port operations are not supported, then ASSERT().
34 @param Port The I/O port to read.
36 @return The value read.
50 Writes a 64-bit I/O port.
52 Writes the 64-bit I/O port specified by Port with the value specified by Value
53 and returns Value. This function must guarantee that all I/O read and write
54 operations are serialized.
56 If 64-bit I/O port operations are not supported, then ASSERT().
58 @param Port The I/O port to write.
59 @param Value The value to write to the I/O port.
61 @return The value written the I/O port.