diff options
author | Ruiyu Ni <ruiyu.ni@intel.com> | 2018-08-30 09:53:49 +0800 |
---|---|---|
committer | Ruiyu Ni <ruiyu.ni@intel.com> | 2018-08-31 10:40:18 +0800 |
commit | e01238946cbd16f2dfccd7ec86aebe20d7408586 (patch) | |
tree | 56669cfa6c3860e9a031cd60372ba91595e9cc7d /EmulatorPkg/Library/PlatformBmLib/PlatformBmData.c | |
parent | 0195dd509f80b1ff49739bbf1df39434a6a7540e (diff) | |
download | edk2-e01238946cbd16f2dfccd7ec86aebe20d7408586.tar.gz edk2-e01238946cbd16f2dfccd7ec86aebe20d7408586.tar.bz2 edk2-e01238946cbd16f2dfccd7ec86aebe20d7408586.zip |
EmulatorPkg: Use MdeModulePkg/Bds module
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1120
Logo is enabled by adding a separate core driver LogoDxe.
UiApp and BootManagerMenuApp are added to provide two UIs.
LoadFileOnFv2 is added to auto-install LoadFile protocol for
applications in FV so the boot options for applications can be
auto-created from LoadFile.
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Hao Wu <hao.a.wu@intel.com>
Cc: Andrew Fish <afish@apple.com>
Diffstat (limited to 'EmulatorPkg/Library/PlatformBmLib/PlatformBmData.c')
-rw-r--r-- | EmulatorPkg/Library/PlatformBmLib/PlatformBmData.c | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/EmulatorPkg/Library/PlatformBmLib/PlatformBmData.c b/EmulatorPkg/Library/PlatformBmLib/PlatformBmData.c new file mode 100644 index 0000000000..bb9d7fff2b --- /dev/null +++ b/EmulatorPkg/Library/PlatformBmLib/PlatformBmData.c @@ -0,0 +1,64 @@ +/*++ @file
+
+Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
+Portions copyright (c) 2011, Apple Inc. All rights reserved.
+This program and the accompanying materials
+are licensed and made available under the terms and conditions of the BSD License
+which accompanies this distribution. The full text of the license may be found at
+http://opensource.org/licenses/bsd-license.php
+
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
+
+**/
+
+#include "PlatformBm.h"
+
+
+
+EMU_PLATFORM_UGA_DEVICE_PATH gGopDevicePath = {
+ {
+ {
+ {
+ HARDWARE_DEVICE_PATH,
+ HW_VENDOR_DP,
+ {
+ (UINT8) (sizeof (EMU_VENDOR_DEVICE_PATH_NODE)),
+ (UINT8) ((sizeof (EMU_VENDOR_DEVICE_PATH_NODE)) >> 8)
+ }
+ },
+ EMU_THUNK_PROTOCOL_GUID
+ },
+ 0
+ },
+ {
+ {
+ {
+ HARDWARE_DEVICE_PATH,
+ HW_VENDOR_DP,
+ {
+ (UINT8) (sizeof (EMU_VENDOR_DEVICE_PATH_NODE)),
+ (UINT8) ((sizeof (EMU_VENDOR_DEVICE_PATH_NODE)) >> 8)
+ },
+ },
+ EMU_GRAPHICS_WINDOW_PROTOCOL_GUID,
+ },
+ 0
+ },
+ gEndEntire
+};
+
+//
+// Predefined platform default console device path
+//
+BDS_CONSOLE_CONNECT_ENTRY gPlatformConsole[] = {
+ {
+ (EFI_DEVICE_PATH_PROTOCOL *) &gGopDevicePath,
+ (CONSOLE_OUT | CONSOLE_IN)
+ },
+ {
+ NULL,
+ 0
+ }
+};
+
|