2 Head file for BDS Platform specific code
4 Copyright (c) 2015 - 2016, Intel Corporation. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
8 #ifndef _PLATFORM_BOOT_MANAGER_H
9 #define _PLATFORM_BOOT_MANAGER_H
12 #include <Protocol/LoadedImage.h>
14 #include <Library/DebugLib.h>
15 #include <Library/BaseMemoryLib.h>
16 #include <Library/UefiBootServicesTableLib.h>
17 #include <Library/UefiRuntimeServicesTableLib.h>
18 #include <Library/MemoryAllocationLib.h>
19 #include <Library/BaseLib.h>
20 #include <Library/UefiRuntimeServicesTableLib.h>
21 #include <Library/UefiLib.h>
22 #include <Library/UefiBootManagerLib.h>
23 #include <Library/PcdLib.h>
24 #include <Library/DevicePathLib.h>
25 #include <Library/HiiLib.h>
26 #include <Library/PrintLib.h>
27 #include <Library/DxeServicesLib.h>
28 #include <Library/BootLogoLib.h>
29 #include <Protocol/SmmAccess2.h>
32 EFI_DEVICE_PATH_PROTOCOL
*DevicePath
;
34 } PLATFORM_CONSOLE_CONNECT_ENTRY
;
36 extern PLATFORM_CONSOLE_CONNECT_ENTRY gPlatformConsole
[];
40 END_DEVICE_PATH_TYPE,\
41 END_ENTIRE_DEVICE_PATH_SUBTYPE,\
42 { END_DEVICE_PATH_LENGTH, 0 },\
45 #define CONSOLE_OUT BIT0
46 #define CONSOLE_IN BIT1
47 #define STD_ERROR BIT2
50 VENDOR_DEVICE_PATH VendorDevicePath
;
52 } WIN_NT_VENDOR_DEVICE_PATH_NODE
;
55 // Below is the platform console device path
58 VENDOR_DEVICE_PATH NtBus
;
59 WIN_NT_VENDOR_DEVICE_PATH_NODE SerialDevice
;
60 UART_DEVICE_PATH Uart
;
61 VENDOR_DEVICE_PATH TerminalType
;
62 EFI_DEVICE_PATH_PROTOCOL End
;
63 } NT_ISA_SERIAL_DEVICE_PATH
;
66 VENDOR_DEVICE_PATH NtBus
;
67 WIN_NT_VENDOR_DEVICE_PATH_NODE NtGopDevice
;
68 EFI_DEVICE_PATH_PROTOCOL End
;
69 } NT_PLATFORM_GOP_DEVICE_PATH
;
72 Use SystemTable Conout to stop video based Simple Text Out consoles from going
73 to the video device. Put up LogoFile on every video device that is a console.
75 @param[in] LogoFile File name of logo to display on the center of the screen.
77 @retval EFI_SUCCESS ConsoleControl has been flipped to graphics and logo displayed.
78 @retval EFI_UNSUPPORTED Logo not found
82 PlatformBootManagerEnableQuietBoot (
87 Use SystemTable Conout to turn on video based Simple Text Out consoles. The
88 Simple Text Out screens will now be synced up with all non video output devices
90 @retval EFI_SUCCESS UGA devices are back in text mode and synced up.
94 PlatformBootManagerDisableQuietBoot (
99 Show progress bar with title above it. It only works in Graphics mode.
101 @param TitleForeground Foreground color for Title.
102 @param TitleBackground Background color for Title.
103 @param Title Title above progress bar.
104 @param ProgressColor Progress bar color.
105 @param Progress Progress (0-100)
106 @param PreviousValue The previous value of the progress.
108 @retval EFI_STATUS Success update the progress bar
112 PlatformBootManagerShowProgress (
113 IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL TitleForeground
,
114 IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL TitleBackground
,
116 IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL ProgressColor
,
118 IN UINTN PreviousValue
121 #endif // _PLATFORM_BOOT_MANAGER_H