]> git.proxmox.com Git - mirror_edk2.git/blobdiff - OvmfPkg/QemuVideoDxe/UnalignedIoUnsupported.c
Revert "OvmfPkg/QemuVideoDxe: Helper functions for unaligned port I/O."
[mirror_edk2.git] / OvmfPkg / QemuVideoDxe / UnalignedIoUnsupported.c
diff --git a/OvmfPkg/QemuVideoDxe/UnalignedIoUnsupported.c b/OvmfPkg/QemuVideoDxe/UnalignedIoUnsupported.c
deleted file mode 100644 (file)
index 57560ab..0000000
+++ /dev/null
@@ -1,66 +0,0 @@
-/** @file\r
-  Unaligned port I/O dummy implementation for platforms which do not support it.\r
-\r
-  Copyright (c) 2017, Phil Dennis-Jordan.<BR>\r
-  This program and the accompanying materials are licensed and made available\r
-  under the terms and conditions of the BSD License which accompanies this\r
-  distribution.  The full text of the license may be found at\r
-  http://opensource.org/licenses/bsd-license.php.\r
-\r
-  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-\r
-**/\r
-\r
-\r
-#include <Library/DebugLib.h>\r
-#include "UnalignedIoInternal.h"\r
-\r
-/**\r
-  Performs a 32-bit write to the specified, possibly unaligned I/O-type\r
-  address.\r
-\r
-  Writes the 32-bit I/O port specified by Port with the value specified by\r
-  Value and returns Value. This function must guarantee that all I/O read and\r
-  write operations are serialized.\r
-\r
-  If 32-bit unaligned I/O port operations are not supported, then ASSERT().\r
-\r
-  @param[in]  Port   I/O port address\r
-  @param[in]  Value  32-bit word to write\r
-\r
-  @return The value written to the I/O port.\r
-\r
-**/\r
-UINT32\r
-UnalignedIoWrite32 (\r
-  IN      UINTN                     Port,\r
-  IN      UINT32                    Value\r
-  )\r
-{\r
-  ASSERT (FALSE);\r
-  return Value;\r
-}\r
-\r
-/**\r
-  Reads a 32-bit word from the specified, possibly unaligned I/O-type address.\r
-\r
-  Reads the 32-bit I/O port specified by Port. The 32-bit read value is\r
-  returned. This function must guarantee that all I/O read and write operations\r
-  are serialized.\r
-\r
-  If 32-bit unaligned I/O port operations are not supported, then ASSERT().\r
-\r
-  @param[in]  Port  The I/O port to read.\r
-\r
-  @return The value read.\r
-\r
-**/\r
-UINT32\r
-UnalignedIoRead32 (\r
-  IN      UINTN                     Port\r
-  )\r
-{\r
-  ASSERT (FALSE);\r
-  return 0;\r
-}\r