2 Library supports displaying graphical splash screen,
3 locking of keyboard input and printing character on
6 Copyright (c) 2006 - 2008, Intel Corporation.<BR>
7 All rights reserved. This program and the accompanying materials
8 are licensed and made available under the terms and conditions of the BSD License
9 which accompanies this distribution. The full text of the license may be found at
10 http://opensource.org/licenses/bsd-license.php
12 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
13 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
17 #ifndef __EFI_GRAPHICS_LIB_H__
18 #define __EFI_GRAPHICS_LIB_H__
21 Return the graphics image file named FileNameGuid into Image and return it's
22 size in ImageSize. All Firmware Volumes (FV) in the system are searched for the
25 @param[in] FileNameGuid File Name of graphics file in the FV(s).
26 @param[out] Image Pointer to pointer to return graphics image. If NULL, a
27 buffer will be allocated.
28 @param[out] ImageSize Size of the graphics Image in bytes. Zero if no image found.
30 @retval EFI_SUCCESS The image is found and data and size is returned.
31 @retval EFI_UNSUPPORTED FvHandle does not support EFI_FIRMWARE_VOLUME2_PROTOCOL.
32 @retval EFI_NOT_FOUND The image specified by NameGuid and SectionType can't be found.
33 @retval EFI_OUT_OF_RESOURCES There were not enough resources to allocate the output data buffer or complete the operations.
34 @retval EFI_DEVICE_ERROR A hardware error occurs during reading from the Firmware Volume.
35 @retval EFI_ACCESS_DENIED The firmware volume containing the searched Firmware File is configured to disallow reads.
40 GetGraphicsBitMapFromFV (
41 IN EFI_GUID
*FileNameGuid
,
47 Return the graphics image file named FileNameGuid into Image and return it's
48 size in ImageSize. All Firmware Volumes (FV) in the system are searched for the
51 @param[in] ImageHandle The driver image handle of the caller. The parameter is used to
52 optimize the loading of the image file so that the FV from which
53 the driver image is loaded will be tried first.
54 @param[in] FileNameGuid File Name of graphics file in the FV(s).
55 @param[out] Image Pointer to pointer to return graphics image. If NULL, a
56 buffer will be allocated.
57 @param[out] ImageSize Size of the graphics Image in bytes. Zero if no image found.
59 @retval EFI_SUCCESS The image is found and data and size is returned.
60 @retval EFI_UNSUPPORTED FvHandle does not support EFI_FIRMWARE_VOLUME2_PROTOCOL.
61 @retval EFI_NOT_FOUND The image specified by NameGuid and SectionType can't be found.
62 @retval EFI_OUT_OF_RESOURCES There were not enough resources to allocate the output data buffer or complete the operations.
63 @retval EFI_DEVICE_ERROR A hardware error occurs during reading from the Firmware Volume.
64 @retval EFI_ACCESS_DENIED The firmware volume containing the searched Firmware File is configured to disallow reads.
69 GetGraphicsBitMapFromFVEx (
70 IN EFI_HANDLE ImageHandle
,
71 IN EFI_GUID
*FileNameGuid
,
78 Use Console Control to turn off UGA based Simple Text Out consoles from going
79 to the UGA device. Put up LogoFile on every UGA device that is a console
81 @param[in] LogoFile File name of logo to display on the center of the screen.
83 @retval EFI_SUCCESS ConsoleControl has been flipped to graphics and logo displayed.
84 @retval EFI_UNSUPPORTED Logo not found
94 Use Console Control to turn off GOP/UGA based Simple Text Out consoles from going
95 to the UGA device. Put up LogoFile on every UGA device that is a console
97 @param LogoFile File name of logo to display on the center of the screen.
98 @param ImageHandle The driver image handle of the caller. The parameter is used to
99 optimize the loading of the logo file so that the FV from which
100 the driver image is loaded will be tried first.
102 @retval EFI_SUCCESS ConsoleControl has been flipped to graphics and logo displayed.
103 @retval EFI_UNSUPPORTED Logo not found
109 IN EFI_GUID
*LogoFile
,
110 IN EFI_HANDLE ImageHandle
115 Use Console Control to turn on UGA based Simple Text Out consoles. The UGA
116 Simple Text Out screens will now be synced up with all non UGA output devices
118 @retval EFI_SUCCESS UGA devices are back in text mode and synced up.
129 Use Console Control Protocol to lock the Console In Spliter virtual handle.
130 This is the ConInHandle and ConIn handle in the EFI system table. All key
131 presses will be ignored until the Password is typed in. The only way to
132 disable the password is to type it in to a ConIn device.
134 @param[in] Password Password used to lock ConIn device.
136 @retval EFI_SUCCESS lock the Console In Spliter virtual handle successfully.
137 @retval EFI_UNSUPPORTED Password not found