TianoCore EDK2  master
Logo.c File Reference

Go to the source code of this file.

Data Structures

struct  LOGO_ENTRY
 

Functions

EFI_STATUS EFIAPI GetImage (IN EDKII_PLATFORM_LOGO_PROTOCOL *This, IN OUT UINT32 *Instance, OUT EFI_IMAGE_INPUT *Image, OUT EDKII_PLATFORM_LOGO_DISPLAY_ATTRIBUTE *Attribute, OUT INTN *OffsetX, OUT INTN *OffsetY)
 
EFI_STATUS EFIAPI InitializeLogo (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
 

Variables

EFI_HII_IMAGE_EX_PROTOCOLmHiiImageEx
 
EFI_HII_HANDLE mHiiHandle
 
LOGO_ENTRY mLogos []
 
EDKII_PLATFORM_LOGO_PROTOCOL mPlatformLogo
 

Detailed Description

Logo DXE Driver, install Edkii Platform Logo protocol.

Copyright (c) 2016 - 2017, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file Logo.c.

Function Documentation

◆ GetImage()

EFI_STATUS EFIAPI GetImage ( IN EDKII_PLATFORM_LOGO_PROTOCOL This,
IN OUT UINT32 Instance,
OUT EFI_IMAGE_INPUT Image,
OUT EDKII_PLATFORM_LOGO_DISPLAY_ATTRIBUTE *  Attribute,
OUT INTN OffsetX,
OUT INTN OffsetY 
)

Load a platform logo image and return its data and attributes.

Parameters
ThisThe pointer to this protocol instance.
InstanceThe visible image instance is found.
ImagePoints to the image.
AttributeThe display attributes of the image returned.
OffsetXThe X offset of the image regarding the Attribute.
OffsetYThe Y offset of the image regarding the Attribute.
Return values
EFI_SUCCESSThe image was fetched successfully.
EFI_NOT_FOUNDThe specified image could not be found.

Definition at line 50 of file Logo.c.

◆ InitializeLogo()

EFI_STATUS EFIAPI InitializeLogo ( IN EFI_HANDLE  ImageHandle,
IN EFI_SYSTEM_TABLE SystemTable 
)

Entrypoint of this module.

This function is the entrypoint of this module. It installs the Edkii Platform Logo protocol.

Parameters
ImageHandleThe firmware allocated handle for the EFI image.
SystemTableA pointer to the EFI System Table.
Return values
EFI_SUCCESSThe entry point is executed successfully.

Definition at line 95 of file Logo.c.

Variable Documentation

◆ mLogos

LOGO_ENTRY mLogos[]
Initial value:
= {
{
IMAGE_TOKEN (IMG_LOGO),
EdkiiPlatformLogoDisplayAttributeCenter,
0,
0
}
}
#define IMAGE_TOKEN(t)

Definition at line 26 of file Logo.c.

◆ mPlatformLogo

Initial value:
= {
}
EFI_STATUS EFIAPI GetImage(IN EDKII_PLATFORM_LOGO_PROTOCOL *This, IN OUT UINT32 *Instance, OUT EFI_IMAGE_INPUT *Image, OUT EDKII_PLATFORM_LOGO_DISPLAY_ATTRIBUTE *Attribute, OUT INTN *OffsetX, OUT INTN *OffsetY)
Definition: Logo.c:50

Definition at line 77 of file Logo.c.