4 Copyright (c) 2006 - 2008, Intel Corporation.<BR>
5 All rights reserved. This program and the accompanying materials
6 are licensed and made available under the terms and conditions of the BSD License
7 which accompanies this distribution. The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
15 #ifndef __EFI_GRAPHICS_LIB_H__
16 #define __EFI_GRAPHICS_LIB_H__
18 #include <Protocol/GraphicsOutput.h>
22 Return the graphics image file named FileNameGuid into Image and return it's
23 size in ImageSize. All Firmware Volumes (FV) in the system are searched for the
26 @param[in] FileNameGuid File Name of graphics file in the FV(s).
27 @param[out] Image Pointer to pointer to return graphics image. If NULL, a
28 buffer will be allocated.
29 @param[out] ImageSize Size of the graphics Image in bytes. Zero if no image found.
31 @retval EFI_INVALID_PARAMETER invalid parameter
32 @retval EFI_UNSUPPORTED Range can not be erased
33 @retval EFI_SUCCESS Image and ImageSize are valid.
34 @retval EFI_BUFFER_TOO_SMALL Image not big enough. ImageSize has required size
35 @retval EFI_NOT_FOUND FileNameGuid not found
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_INVALID_PARAMETER invalid parameter
60 @retval EFI_UNSUPPORTED Range can not be erased
61 @retval EFI_SUCCESS Image and ImageSize are valid.
62 @retval EFI_BUFFER_TOO_SMALL Image not big enough. ImageSize has required size
63 @retval EFI_NOT_FOUND FileNameGuid not found
68 GetGraphicsBitMapFromFVEx (
69 IN EFI_HANDLE ImageHandle
,
70 IN EFI_GUID
*FileNameGuid
,
77 Use Console Control to turn off UGA based Simple Text Out consoles from going
78 to the UGA device. Put up LogoFile on every UGA device that is a console
80 @param[in] LogoFile File name of logo to display on the center of the screen.
82 @retval EFI_SUCCESS ConsoleControl has been flipped to graphics and logo displayed.
83 @retval EFI_UNSUPPORTED Logo not found
93 Use Console Control to turn off GOP/UGA based Simple Text Out consoles from going
94 to the UGA device. Put up LogoFile on every UGA device that is a console
96 @param LogoFile File name of logo to display on the center of the screen.
97 @param ImageHandle The driver image handle of the caller. The parameter is used to
98 optimize the loading of the logo file so that the FV from which
99 the driver image is loaded will be tried first.
101 @retval EFI_SUCCESS ConsoleControl has been flipped to graphics and logo displayed.
102 @retval EFI_UNSUPPORTED Logo not found
108 IN EFI_GUID
*LogoFile
,
109 IN EFI_HANDLE ImageHandle
114 Use Console Control to turn on UGA based Simple Text Out consoles. The UGA
115 Simple Text Out screens will now be synced up with all non UGA output devices
117 @retval EFI_SUCCESS UGA devices are back in text mode and synced up.
128 Use Console Control Protocol to lock the Console In Spliter virtual handle.
129 This is the ConInHandle and ConIn handle in the EFI system table. All key
130 presses will be ignored until the Password is typed in. The only way to
131 disable the password is to type it in to a ConIn device.
133 @param[in] Password Password used to lock ConIn device.
135 @retval EFI_SUCCESS ConsoleControl has been flipped to graphics and logo
137 @retval EFI_UNSUPPORTED Password not found
148 Print to graphics screen at the given X,Y coordinates of the graphics screen.
149 see definition of Print to find rules for constructing Fmt.
151 @param[in] X Row to start printing at
152 @param[in] Y Column to start printing at
153 @param[in] ForeGround Foreground color
154 @param[in] BackGround background color
155 @param[in] Fmt Print format sting. See definition of Print
156 @param[in] ... Argumnet stream defined by Fmt string
158 @return Number of Characters printed.
166 IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL
*ForeGround
, OPTIONAL
167 IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL
*BackGround
, OPTIONAL