This DXE driver will load/save persistent values for OVMF's config knobs,
plus expose those knobs via HII.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15364
6f19259b-4bc3-4df7-8a09-
765794883524
}\r
OvmfPkg/SecureBootConfigDxe/SecureBootConfigDxe.inf\r
!endif\r
+\r
+ OvmfPkg/PlatformDxe/Platform.inf\r
!endif\r
\r
INF OvmfPkg/QemuVideoDxe/QemuVideoDxe.inf\r
+INF OvmfPkg/PlatformDxe/Platform.inf\r
\r
################################################################################\r
\r
}\r
OvmfPkg/SecureBootConfigDxe/SecureBootConfigDxe.inf\r
!endif\r
+\r
+ OvmfPkg/PlatformDxe/Platform.inf\r
!endif\r
\r
INF OvmfPkg/QemuVideoDxe/QemuVideoDxe.inf\r
+INF OvmfPkg/PlatformDxe/Platform.inf\r
\r
################################################################################\r
\r
}\r
OvmfPkg/SecureBootConfigDxe/SecureBootConfigDxe.inf\r
!endif\r
+\r
+ OvmfPkg/PlatformDxe/Platform.inf\r
!endif\r
\r
INF OvmfPkg/QemuVideoDxe/QemuVideoDxe.inf\r
+INF OvmfPkg/PlatformDxe/Platform.inf\r
\r
################################################################################\r
\r
--- /dev/null
+/** @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
--- /dev/null
+## @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 - 2010, 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,\r
+# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR\r
+# IMPLIED.\r
+##\r
+\r
+[Defines]\r
+ INF_VERSION = 0x00010005\r
+ BASE_NAME = PlatformDxe\r
+ FILE_GUID = D9DCC5DF-4007-435E-9098-8970935504B2\r
+ MODULE_TYPE = DXE_DRIVER\r
+ VERSION_STRING = 1.0\r
+ ENTRY_POINT = PlatformInit\r
+ UNLOAD_IMAGE = PlatformUnload\r
+\r
+[Sources]\r
+ Platform.c\r
+\r
+[Packages]\r
+ MdePkg/MdePkg.dec\r
+ MdeModulePkg/MdeModulePkg.dec\r
+ OvmfPkg/OvmfPkg.dec\r
+\r
+[LibraryClasses]\r
+ DebugLib\r
+ UefiBootServicesTableLib\r
+ UefiDriverEntryPoint\r
+\r
+[Depex]\r
+ TRUE\r