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