19 EDKII_PLATFORM_LOGO_DISPLAY_ATTRIBUTE Attribute;
29 EdkiiPlatformLogoDisplayAttributeCenter,
52 IN OUT UINT32 *Instance,
54 OUT EDKII_PLATFORM_LOGO_DISPLAY_ATTRIBUTE *Attribute,
61 if ((Instance ==
NULL) || (Image ==
NULL) ||
62 (Attribute ==
NULL) || (OffsetX ==
NULL) || (OffsetY ==
NULL))
64 return EFI_INVALID_PARAMETER;
73 *Attribute = mLogos[Current].Attribute;
74 *OffsetX = mLogos[Current].OffsetX;
75 *OffsetY = mLogos[Current].OffsetY;
76 return mHiiImageEx->GetImageEx (mHiiImageEx, mHiiHandle, mLogos[Current].ImageId, Image);
107 Status =
gBS->LocateProtocol (
108 &gEfiHiiDatabaseProtocolGuid,
110 (VOID **)&HiiDatabase
114 Status =
gBS->LocateProtocol (
115 &gEfiHiiImageExProtocolGuid,
117 (VOID **)&mHiiImageEx
124 Status =
gBS->OpenProtocol (
126 &gEfiHiiPackageListProtocolGuid,
127 (VOID **)&PackageList,
130 EFI_OPEN_PROTOCOL_GET_PROTOCOL
132 if (EFI_ERROR (Status)) {
133 DEBUG ((DEBUG_ERROR,
"HII Image Package with logo not found in PE/COFF resource section\n"));
140 Status = HiiDatabase->NewPackageList (
146 if (!EFI_ERROR (Status)) {
148 Status =
gBS->InstallMultipleProtocolInterfaces (
150 &gEdkiiPlatformLogoProtocolGuid,
EFI_STATUS EFIAPI InitializeLogo(IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
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)
#define ARRAY_SIZE(Array)
#define ASSERT_EFI_ERROR(StatusParameter)
#define DEBUG(Expression)