3 Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
4 Portions copyright (c) 2011, Apple Inc. All rights reserved.
5 SPDX-License-Identifier: BSD-2-Clause-Patent
10 #define _PLATFORM_BM_H
14 #include <Guid/EmuSystemConfig.h>
15 #include <Guid/EventGroup.h>
16 #include <Protocol/EmuThunk.h>
17 #include <Protocol/EmuIoThunk.h>
18 #include <Protocol/EmuGraphicsWindow.h>
19 #include <Protocol/GenericMemoryTest.h>
20 #include <Protocol/LoadedImage.h>
21 #include <Protocol/FirmwareVolume2.h>
23 #include <Library/DebugLib.h>
24 #include <Library/BaseMemoryLib.h>
25 #include <Library/UefiBootServicesTableLib.h>
26 #include <Library/UefiRuntimeServicesTableLib.h>
27 #include <Library/MemoryAllocationLib.h>
28 #include <Library/BaseLib.h>
29 #include <Library/PcdLib.h>
30 #include <Library/UefiBootManagerLib.h>
31 #include <Library/DevicePathLib.h>
32 #include <Library/UefiLib.h>
33 #include <Library/BootLogoLib.h>
34 #include <Library/HobLib.h>
35 #include <Library/HiiLib.h>
37 #define CONSOLE_OUT 0x00000001
38 #define STD_ERROR 0x00000002
39 #define CONSOLE_IN 0x00000004
40 #define CONSOLE_ALL (CONSOLE_OUT | CONSOLE_IN | STD_ERROR)
43 EFI_DEVICE_PATH_PROTOCOL
*DevicePath
;
45 } BDS_CONSOLE_CONNECT_ENTRY
;
47 extern BDS_CONSOLE_CONNECT_ENTRY gPlatformConsole
[];
51 END_DEVICE_PATH_TYPE,\
52 END_ENTIRE_DEVICE_PATH_SUBTYPE,\
54 END_DEVICE_PATH_LENGTH,\
61 EMU_VENDOR_DEVICE_PATH_NODE EmuBus
;
62 EMU_VENDOR_DEVICE_PATH_NODE EmuGraphicsWindow
;
63 EFI_DEVICE_PATH_PROTOCOL End
;
64 } EMU_PLATFORM_UGA_DEVICE_PATH
;
68 // Platform BDS Functions
72 Perform the memory test base on the memory test intensive level,
73 and update the memory resource.
75 @param Level The memory test intensive level.
77 @retval EFI_STATUS Success test all the system memory and update
82 PlatformBootManagerMemoryTest (
83 IN EXTENDMEM_COVERAGE_LEVEL Level
88 PlatformBdsConnectSequence (
92 #endif // _PLATFORM_BM_H