]> git.proxmox.com Git - mirror_edk2.git/blame - MdeModulePkg/Include/Library/BootLogoLib.h
MdeModulePkg: Change BootLogoEnableLogo use INTN for minus value
[mirror_edk2.git] / MdeModulePkg / Include / Library / BootLogoLib.h
CommitLineData
8dfe7fd2
RN
1/** @file\r
2 This library is only intended to be used by PlatformBootManagerLib\r
3 to show progress bar and LOGO.\r
4\r
5Copyright (c) 2011 - 2015, Intel Corporation. All rights reserved.<BR>\r
6This program and the accompanying materials are licensed and made available under\r
7the terms and conditions of the BSD License that accompanies this distribution.\r
8The full text of the license may be found at\r
9http://opensource.org/licenses/bsd-license.php.\r
10\r
11THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
12WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
13\r
14**/\r
15\r
16#ifndef _BOOT_LOGO_LIB_H_\r
17#define _BOOT_LOGO_LIB_H_\r
18\r
19#include <Protocol/PlatformLogo.h>\r
20\r
21/**\r
22 Show LOGO on all consoles.\r
23\r
24 @param[in] ImageFormat Format of the image file.\r
25 @param[in] LogoFile The file name of logo to display.\r
26 @param[in] Attribute The display attributes of the image returned.\r
b9335cf5
RN
27 @param[in] OffsetX The X offset of the image regarding the Attribute.\r
28 @param[in] OffsetY The Y offset of the image regarding the Attribute.\r
8dfe7fd2
RN
29\r
30 @retval EFI_SUCCESS Logo was displayed.\r
31 @retval EFI_UNSUPPORTED Logo was not found or cannot be displayed.\r
32**/\r
33EFI_STATUS\r
34EFIAPI\r
35BootLogoEnableLogo (\r
36 IN IMAGE_FORMAT ImageFormat,\r
37 IN EFI_GUID *Logo,\r
38 IN EDKII_PLATFORM_LOGO_DISPLAY_ATTRIBUTE Attribute,\r
b9335cf5
RN
39 IN INTN OffsetX,\r
40 IN INTN OffsetY\r
8dfe7fd2
RN
41 );\r
42\r
43\r
44/**\r
45 Use SystemTable ConOut to turn on video based Simple Text Out consoles. The \r
46 Simple Text Out screens will now be synced up with all non-video output devices.\r
47\r
48 @retval EFI_SUCCESS UGA devices are back in text mode and synced up.\r
49\r
50**/\r
51EFI_STATUS\r
52EFIAPI\r
53BootLogoDisableLogo (\r
54 VOID\r
55 );\r
56\r
57/**\r
58\r
59 Update progress bar with title above it. It only works in Graphics mode.\r
60\r
61 @param TitleForeground Foreground color for Title.\r
62 @param TitleBackground Background color for Title.\r
63 @param Title Title above progress bar.\r
64 @param ProgressColor Progress bar color.\r
65 @param Progress Progress (0-100)\r
66 @param PreviousValue The previous value of the progress.\r
67\r
68 @retval EFI_STATUS Successly update the progress bar\r
69\r
70**/\r
71EFI_STATUS\r
72EFIAPI\r
73BootLogoUpdateProgress (\r
74 IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL TitleForeground,\r
75 IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL TitleBackground,\r
76 IN CHAR16 *Title,\r
77 IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL ProgressColor,\r
78 IN UINTN Progress,\r
79 IN UINTN PreviousValue\r
80 );\r
81\r
82#endif\r