]> git.proxmox.com Git - mirror_edk2.git/blame - MdePkg/Include/Library/GraphicsLib.h
cleanup some comments.
[mirror_edk2.git] / MdePkg / Include / Library / GraphicsLib.h
CommitLineData
bf231ea6
A
1/** @file\r
2 Graphics Library\r
00c4901b 3\r
2f50ef83 4 Copyright (c) 2006 - 2008, Intel Corporation.<BR>\r
bf231ea6
A
5 All rights reserved. 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
00c4901b 9\r
bf231ea6
A
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
00c4901b 14\r
7540e754
A
15#ifndef __EFI_GRAPHICS_LIB_H__\r
16#define __EFI_GRAPHICS_LIB_H__\r
17\r
18#include <Protocol/GraphicsOutput.h>\r
00c4901b 19\r
bf231ea6
A
20\r
21/**\r
22 Return the graphics image file named FileNameGuid into Image and return it's\r
23 size in ImageSize. All Firmware Volumes (FV) in the system are searched for the\r
24 file name.\r
7d582d6b 25\r
26 @param[in] FileNameGuid File Name of graphics file in the FV(s).\r
bf231ea6 27 @param[out] Image Pointer to pointer to return graphics image. If NULL, a \r
7d582d6b 28 buffer will be allocated.\r
bf231ea6 29 @param[out] ImageSize Size of the graphics Image in bytes. Zero if no image found.\r
7d582d6b 30\r
31 @retval EFI_INVALID_PARAMETER invalid parameter\r
bf231ea6
A
32 @retval EFI_UNSUPPORTED Range can not be erased\r
33 @retval EFI_SUCCESS Image and ImageSize are valid. \r
34 @retval EFI_BUFFER_TOO_SMALL Image not big enough. ImageSize has required size\r
35 @retval EFI_NOT_FOUND FileNameGuid not found\r
7d582d6b 36\r
bf231ea6 37**/\r
00c4901b 38EFI_STATUS\r
2f50ef83 39EFIAPI\r
00c4901b 40GetGraphicsBitMapFromFV (\r
41 IN EFI_GUID *FileNameGuid,\r
42 OUT VOID **Image,\r
43 OUT UINTN *ImageSize\r
bf231ea6 44 );\r
00c4901b 45\r
7d582d6b 46/**\r
47 Return the graphics image file named FileNameGuid into Image and return it's\r
48 size in ImageSize. All Firmware Volumes (FV) in the system are searched for the\r
49 file name.\r
50\r
51 @param[in] ImageHandle The driver image handle of the caller. The parameter is used to\r
52 optimize the loading of the image file so that the FV from which\r
53 the driver image is loaded will be tried first. \r
54 @param[in] FileNameGuid File Name of graphics file in the FV(s).\r
55 @param[out] Image Pointer to pointer to return graphics image. If NULL, a \r
56 buffer will be allocated.\r
57 @param[out] ImageSize Size of the graphics Image in bytes. Zero if no image found.\r
58\r
59 @retval EFI_INVALID_PARAMETER invalid parameter\r
60 @retval EFI_UNSUPPORTED Range can not be erased\r
61 @retval EFI_SUCCESS Image and ImageSize are valid. \r
62 @retval EFI_BUFFER_TOO_SMALL Image not big enough. ImageSize has required size\r
63 @retval EFI_NOT_FOUND FileNameGuid not found\r
64\r
65**/\r
66EFI_STATUS\r
2f50ef83 67EFIAPI\r
7d582d6b 68GetGraphicsBitMapFromFVEx (\r
69 IN EFI_HANDLE ImageHandle,\r
70 IN EFI_GUID *FileNameGuid,\r
71 OUT VOID **Image,\r
72 OUT UINTN *ImageSize\r
73 );\r
00c4901b 74\r
00c4901b 75\r
bf231ea6
A
76/**\r
77 Use Console Control to turn off UGA based Simple Text Out consoles from going\r
78 to the UGA device. Put up LogoFile on every UGA device that is a console\r
7d582d6b 79\r
80 @param[in] LogoFile File name of logo to display on the center of the screen.\r
81\r
bf231ea6
A
82 @retval EFI_SUCCESS ConsoleControl has been flipped to graphics and logo displayed.\r
83 @retval EFI_UNSUPPORTED Logo not found\r
00c4901b 84\r
bf231ea6 85**/\r
00c4901b 86EFI_STATUS\r
2f50ef83 87EFIAPI\r
00c4901b 88EnableQuietBoot (\r
89 IN EFI_GUID *LogoFile\r
bf231ea6 90 );\r
00c4901b 91\r
7d582d6b 92/**\r
93 Use Console Control to turn off GOP/UGA based Simple Text Out consoles from going\r
94 to the UGA device. Put up LogoFile on every UGA device that is a console\r
95\r
96 @param LogoFile File name of logo to display on the center of the screen.\r
97 @param ImageHandle The driver image handle of the caller. The parameter is used to\r
98 optimize the loading of the logo file so that the FV from which\r
99 the driver image is loaded will be tried first.\r
100\r
101 @retval EFI_SUCCESS ConsoleControl has been flipped to graphics and logo displayed.\r
102 @retval EFI_UNSUPPORTED Logo not found\r
103\r
104**/\r
105EFI_STATUS\r
2f50ef83 106EFIAPI\r
7d582d6b 107EnableQuietBootEx (\r
108 IN EFI_GUID *LogoFile,\r
109 IN EFI_HANDLE ImageHandle\r
110 );\r
111\r
00c4901b 112\r
bf231ea6
A
113/**\r
114 Use Console Control to turn on UGA based Simple Text Out consoles. The UGA \r
115 Simple Text Out screens will now be synced up with all non UGA output devices\r
7d582d6b 116\r
bf231ea6 117 @retval EFI_SUCCESS UGA devices are back in text mode and synced up.\r
00c4901b 118\r
bf231ea6 119**/\r
00c4901b 120EFI_STATUS\r
2f50ef83 121EFIAPI\r
00c4901b 122DisableQuietBoot (\r
123 VOID\r
bf231ea6 124 );\r
00c4901b 125\r
00c4901b 126\r
bf231ea6 127/**\r
00c4901b 128 Use Console Control Protocol to lock the Console In Spliter virtual handle. \r
129 This is the ConInHandle and ConIn handle in the EFI system table. All key\r
130 presses will be ignored until the Password is typed in. The only way to\r
131 disable the password is to type it in to a ConIn device.\r
7d582d6b 132\r
133 @param[in] Password Password used to lock ConIn device.\r
134\r
bf231ea6
A
135 @retval EFI_SUCCESS ConsoleControl has been flipped to graphics and logo\r
136 displayed.\r
137 @retval EFI_UNSUPPORTED Password not found\r
00c4901b 138\r
bf231ea6
A
139**/\r
140EFI_STATUS\r
2f50ef83 141EFIAPI\r
bf231ea6
A
142LockKeyboards (\r
143 IN CHAR16 *Password\r
144 );\r
145\r
146\r
147/**\r
7d582d6b 148 Print to graphics screen at the given X,Y coordinates of the graphics screen.\r
149 see definition of Print to find rules for constructing Fmt.\r
150\r
151 @param[in] X Row to start printing at\r
152 @param[in] Y Column to start printing at\r
2f50ef83 153 @param[in] ForeGround Foreground color\r
65e3009c 154 @param[in] BackGround background color\r
7d582d6b 155 @param[in] Fmt Print format sting. See definition of Print\r
156 @param[in] ... Argumnet stream defined by Fmt string\r
157\r
7d9333a9 158 @return Number of Characters printed.\r
bf231ea6
A
159\r
160**/\r
00c4901b 161UINTN\r
162EFIAPI\r
163PrintXY (\r
164 IN UINTN X,\r
165 IN UINTN Y,\r
2f50ef83 166 IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL *ForeGround, OPTIONAL\r
65e3009c 167 IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL *BackGround, OPTIONAL\r
00c4901b 168 IN CHAR16 *Fmt,\r
169 ...\r
bf231ea6 170 );\r
00c4901b 171\r
172\r
173#endif\r