]> git.proxmox.com Git - mirror_edk2.git/blobdiff - OvmfPkg/PlatformDxe/Platform.c
OvmfPkg: introduce empty PlatformDxe
[mirror_edk2.git] / OvmfPkg / PlatformDxe / Platform.c
diff --git a/OvmfPkg/PlatformDxe/Platform.c b/OvmfPkg/PlatformDxe/Platform.c
new file mode 100644 (file)
index 0000000..7e23530
--- /dev/null
@@ -0,0 +1,53 @@
+/** @file\r
+  This driver effectuates OVMF's platform configuration settings and exposes\r
+  them via HII.\r
+\r
+  Copyright (C) 2014, Red Hat, Inc.\r
+  Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.<BR>\r
+\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, WITHOUT\r
+  WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+**/\r
+\r
+#include <Library/DebugLib.h>\r
+#include <Library/UefiBootServicesTableLib.h>\r
+\r
+/**\r
+  Entry point for this driver.\r
+\r
+  @param[in] ImageHandle  Image handle of this driver.\r
+  @param[in] SystemTable  Pointer to SystemTable.\r
+\r
+  @retval EFI_SUCESS            Driver has loaded successfully.\r
+\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+PlatformInit (\r
+  IN  EFI_HANDLE        ImageHandle,\r
+  IN  EFI_SYSTEM_TABLE  *SystemTable\r
+  )\r
+{\r
+  return EFI_SUCCESS;\r
+}\r
+\r
+/**\r
+  Unload the driver.\r
+\r
+  @param[in]  ImageHandle  Handle that identifies the image to evict.\r
+\r
+  @retval EFI_SUCCESS  The image has been unloaded.\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+PlatformUnload (\r
+  IN  EFI_HANDLE  ImageHandle\r
+  )\r
+{\r
+  return EFI_SUCCESS;\r
+}\r