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