]> git.proxmox.com Git - mirror_edk2.git/blame - EmulatorPkg/Library/PlatformBmLib/PlatformBm.h
EmulatorPkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / EmulatorPkg / Library / PlatformBmLib / PlatformBm.h
CommitLineData
949f388f 1/*++ @file\r
2\r
41fd56be 3Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
949f388f 4Portions copyright (c) 2011, Apple Inc. All rights reserved.\r
e3ba31da 5SPDX-License-Identifier: BSD-2-Clause-Patent\r
949f388f 6\r
7**/\r
8\r
e0123894
RN
9#ifndef _PLATFORM_BM_H\r
10#define _PLATFORM_BM_H\r
949f388f 11\r
12#include <PiDxe.h>\r
13\r
14#include <Guid/EmuSystemConfig.h>\r
41fd56be 15#include <Guid/EventGroup.h>\r
949f388f 16#include <Protocol/EmuThunk.h>\r
17#include <Protocol/EmuIoThunk.h>\r
18#include <Protocol/EmuGraphicsWindow.h>\r
e0123894
RN
19#include <Protocol/GenericMemoryTest.h>\r
20#include <Protocol/LoadedImage.h>\r
21#include <Protocol/FirmwareVolume2.h>\r
949f388f 22\r
23#include <Library/DebugLib.h>\r
24#include <Library/BaseMemoryLib.h>\r
25#include <Library/UefiBootServicesTableLib.h>\r
26#include <Library/UefiRuntimeServicesTableLib.h>\r
27#include <Library/MemoryAllocationLib.h>\r
28#include <Library/BaseLib.h>\r
29#include <Library/PcdLib.h>\r
e0123894 30#include <Library/UefiBootManagerLib.h>\r
949f388f 31#include <Library/DevicePathLib.h>\r
41fd56be 32#include <Library/UefiLib.h>\r
e0123894
RN
33#include <Library/BootLogoLib.h>\r
34#include <Library/HobLib.h>\r
35#include <Library/HiiLib.h>\r
949f388f 36\r
e0123894
RN
37#define CONSOLE_OUT 0x00000001\r
38#define STD_ERROR 0x00000002\r
39#define CONSOLE_IN 0x00000004\r
40#define CONSOLE_ALL (CONSOLE_OUT | CONSOLE_IN | STD_ERROR)\r
41\r
42typedef struct {\r
43 EFI_DEVICE_PATH_PROTOCOL *DevicePath;\r
44 UINTN ConnectType;\r
45} BDS_CONSOLE_CONNECT_ENTRY;\r
949f388f 46\r
47extern BDS_CONSOLE_CONNECT_ENTRY gPlatformConsole[];\r
949f388f 48\r
49#define gEndEntire \\r
50 { \\r
51 END_DEVICE_PATH_TYPE,\\r
52 END_ENTIRE_DEVICE_PATH_SUBTYPE,\\r
6c76e4fa 53 { \\r
54 END_DEVICE_PATH_LENGTH,\\r
55 0\\r
56 }\\r
949f388f 57 }\r
58\r
59\r
60typedef struct {\r
61 EMU_VENDOR_DEVICE_PATH_NODE EmuBus;\r
62 EMU_VENDOR_DEVICE_PATH_NODE EmuGraphicsWindow;\r
63 EFI_DEVICE_PATH_PROTOCOL End;\r
64} EMU_PLATFORM_UGA_DEVICE_PATH;\r
65\r
66\r
67//\r
68// Platform BDS Functions\r
69//\r
949f388f 70\r
e0123894
RN
71/**\r
72 Perform the memory test base on the memory test intensive level,\r
73 and update the memory resource.\r
949f388f 74\r
e0123894 75 @param Level The memory test intensive level.\r
949f388f 76\r
e0123894
RN
77 @retval EFI_STATUS Success test all the system memory and update\r
78 the memory resource\r
949f388f 79\r
e0123894 80**/\r
949f388f 81EFI_STATUS\r
e0123894
RN
82PlatformBootManagerMemoryTest (\r
83 IN EXTENDMEM_COVERAGE_LEVEL Level\r
949f388f 84 );\r
85\r
949f388f 86\r
87VOID\r
e0123894
RN
88PlatformBdsConnectSequence (\r
89 VOID\r
949f388f 90 );\r
91\r
e0123894 92#endif // _PLATFORM_BM_H\r