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