]> git.proxmox.com Git - mirror_edk2.git/blame - Nt32Pkg/Library/PlatformBootManagerLib/PlatformBootManager.h
Nt32Pkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / Nt32Pkg / Library / PlatformBootManagerLib / PlatformBootManager.h
CommitLineData
123e9f62
RN
1/**@file\r
2 Head file for BDS Platform specific code\r
3\r
4Copyright (c) 2015, Intel Corporation. All rights reserved.<BR>\r
9d2eedba 5SPDX-License-Identifier: BSD-2-Clause-Patent\r
123e9f62
RN
6**/\r
7\r
8#ifndef _PLATFORM_BOOT_MANAGER_H\r
9#define _PLATFORM_BOOT_MANAGER_H\r
10\r
11#include <PiDxe.h>\r
123e9f62 12#include <Guid/WinNtSystemConfig.h>\r
8f227c2f 13#include <Protocol/GenericMemoryTest.h>\r
123e9f62
RN
14#include <Protocol/WinNtThunk.h>\r
15#include <Protocol/WinNtIo.h>\r
16#include <Protocol/LoadedImage.h>\r
0b6dc68d 17#include <Protocol/FirmwareVolume2.h>\r
123e9f62
RN
18\r
19#include <Library/DebugLib.h>\r
20#include <Library/BaseMemoryLib.h>\r
21#include <Library/UefiBootServicesTableLib.h>\r
22#include <Library/UefiRuntimeServicesTableLib.h>\r
23#include <Library/MemoryAllocationLib.h>\r
24#include <Library/BaseLib.h>\r
25#include <Library/UefiRuntimeServicesTableLib.h>\r
26#include <Library/UefiLib.h>\r
27#include <Library/UefiBootManagerLib.h>\r
28#include <Library/PcdLib.h>\r
29#include <Library/DevicePathLib.h>\r
703da8b4
RN
30#include <Library/HiiLib.h>\r
31#include <Library/PrintLib.h>\r
32#include <Library/DxeServicesLib.h>\r
859e75c4 33#include <Library/BootLogoLib.h>\r
123e9f62
RN
34\r
35\r
36typedef struct {\r
37 EFI_DEVICE_PATH_PROTOCOL *DevicePath;\r
38 UINTN ConnectType;\r
39} PLATFORM_CONSOLE_CONNECT_ENTRY;\r
40\r
41extern PLATFORM_CONSOLE_CONNECT_ENTRY gPlatformConsole[];\r
42\r
43#define gEndEntire \\r
44 { \\r
45 END_DEVICE_PATH_TYPE,\\r
46 END_ENTIRE_DEVICE_PATH_SUBTYPE,\\r
47 END_DEVICE_PATH_LENGTH,\\r
48 0\\r
49 }\r
50\r
51#define CONSOLE_OUT BIT0\r
52#define CONSOLE_IN BIT1\r
53#define STD_ERROR BIT2\r
54\r
55typedef struct {\r
56 VENDOR_DEVICE_PATH VendorDevicePath;\r
57 UINT32 Instance;\r
58} WIN_NT_VENDOR_DEVICE_PATH_NODE;\r
59\r
60//\r
61// Below is the platform console device path\r
62//\r
63typedef struct {\r
64 VENDOR_DEVICE_PATH NtBus;\r
65 WIN_NT_VENDOR_DEVICE_PATH_NODE SerialDevice;\r
66 UART_DEVICE_PATH Uart;\r
67 VENDOR_DEVICE_PATH TerminalType;\r
68 EFI_DEVICE_PATH_PROTOCOL End;\r
69} NT_ISA_SERIAL_DEVICE_PATH;\r
70\r
71typedef struct {\r
72 VENDOR_DEVICE_PATH NtBus;\r
73 WIN_NT_VENDOR_DEVICE_PATH_NODE NtGopDevice;\r
74 EFI_DEVICE_PATH_PROTOCOL End;\r
75} NT_PLATFORM_GOP_DEVICE_PATH;\r
76\r
703da8b4
RN
77/**\r
78 Use SystemTable Conout to stop video based Simple Text Out consoles from going\r
79 to the video device. Put up LogoFile on every video device that is a console.\r
80\r
81 @param[in] LogoFile File name of logo to display on the center of the screen.\r
82\r
83 @retval EFI_SUCCESS ConsoleControl has been flipped to graphics and logo displayed.\r
84 @retval EFI_UNSUPPORTED Logo not found\r
85\r
86**/\r
87EFI_STATUS\r
88PlatformBootManagerEnableQuietBoot (\r
89 IN EFI_GUID *LogoFile\r
90 );\r
91\r
92/**\r
93 Use SystemTable Conout to turn on video based Simple Text Out consoles. The \r
94 Simple Text Out screens will now be synced up with all non video output devices\r
95\r
96 @retval EFI_SUCCESS UGA devices are back in text mode and synced up.\r
97\r
98**/\r
99EFI_STATUS\r
100PlatformBootManagerDisableQuietBoot (\r
101 VOID\r
102 );\r
103\r
104/**\r
105 Perform the memory test base on the memory test intensive level,\r
106 and update the memory resource.\r
107\r
108 @param Level The memory test intensive level.\r
109\r
110 @retval EFI_STATUS Success test all the system memory and update\r
111 the memory resource\r
112\r
113**/\r
114EFI_STATUS\r
115PlatformBootManagerMemoryTest (\r
116 IN EXTENDMEM_COVERAGE_LEVEL Level\r
117 );\r
118\r
119/**\r
120\r
121 Show progress bar with title above it. It only works in Graphics mode.\r
122\r
123\r
124 @param TitleForeground Foreground color for Title.\r
125 @param TitleBackground Background color for Title.\r
126 @param Title Title above progress bar.\r
127 @param ProgressColor Progress bar color.\r
128 @param Progress Progress (0-100)\r
129 @param PreviousValue The previous value of the progress.\r
130\r
131 @retval EFI_STATUS Success update the progress bar\r
132\r
133**/\r
134EFI_STATUS\r
135PlatformBootManagerShowProgress (\r
136 IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL TitleForeground,\r
137 IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL TitleBackground,\r
138 IN CHAR16 *Title,\r
139 IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL ProgressColor,\r
140 IN UINTN Progress,\r
141 IN UINTN PreviousValue\r
142 );\r
143\r
123e9f62 144#endif // _PLATFORM_BOOT_MANAGER_H\r