]>
git.proxmox.com Git - mirror_edk2.git/blob - OvmfPkg/QemuVideoDxe/UnalignedIoIcc.c
2 Unaligned port I/O. This file has compiler specifics for ICC as there
3 is no ANSI C standard for doing IO.
7 Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
8 This program and the accompanying materials are licensed and made available
9 under the terms and conditions of the BSD License which accompanies this
10 distribution. The full text of the license may be found at
11 http://opensource.org/licenses/bsd-license.php.
13 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
14 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
19 #include "UnalignedIoInternal.h"
22 Performs a 32-bit write to the specified, possibly unaligned I/O-type
25 Writes the 32-bit I/O port specified by Port with the value specified by
26 Value and returns Value. This function must guarantee that all I/O read and
27 write operations are serialized.
29 If 32-bit unaligned I/O port operations are not supported, then ASSERT().
31 @param[in] Port I/O port address
32 @param[in] Value 32-bit word to write
34 @return The value written to the I/O port.
44 mov eax
, dword ptr
[Value
]
45 mov dx
, word ptr
[Port
]
53 Reads a 32-bit word from the specified, possibly unaligned I/O-type address.
55 Reads the 32-bit I/O port specified by Port. The 32-bit read value is
56 returned. This function must guarantee that all I/O read and write operations
59 If 32-bit unaligned I/O port operations are not supported, then ASSERT().
61 @param[in] Port The I/O port to read.
63 @return The value read.
74 mov dx
, word ptr
[Port
]
76 mov dword ptr
[Data
], eax