]>
git.proxmox.com Git - mirror_edk2.git/blob - OvmfPkg/QemuVideoDxe/UnalignedIoInternal.h
2 Unaligned port I/O, with implementations for various x86 compilers and a
3 dummy for platforms which do not support unaligned port I/O.
5 Copyright (c) 2017, Phil Dennis-Jordan.<BR>
6 This program and the accompanying materials are licensed and made available
7 under the terms and conditions of the BSD License which accompanies this
8 distribution. The full text of the license may be found at
9 http://opensource.org/licenses/bsd-license.php.
11 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
12 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
16 #ifndef _UNALIGNED_IO_INTERNAL_H_
17 #define _UNALIGNED_IO_INTERNAL_H_
20 Performs a 32-bit write to the specified, possibly unaligned I/O-type address.
22 Writes the 32-bit I/O port specified by Port with the value specified by Value
23 and returns Value. This function must guarantee that all I/O read and write
24 operations are serialized.
26 If 32-bit unaligned I/O port operations are not supported, then ASSERT().
28 @param[in] Port I/O port address
29 @param[in] Value 32-bit word to write
31 @return The value written to the I/O port.
41 Reads a 32-bit word from the specified, possibly unaligned I/O-type address.
43 Reads the 32-bit I/O port specified by Port. The 32-bit read value is
44 returned. This function must guarantee that all I/O read and write operations
47 If 32-bit unaligned I/O port operations are not supported, then ASSERT().
49 @param[in] Port The I/O port to read.
51 @return The value read.