]> git.proxmox.com Git - mirror_edk2.git/blame - MdeModulePkg/Include/Protocol/PlatformLogo.h
UefiCpuPkg: Move AsmRelocateApLoopStart from Mpfuncs.nasm to AmdSev.nasm
[mirror_edk2.git] / MdeModulePkg / Include / Protocol / PlatformLogo.h
CommitLineData
6313eb25
RN
1/** @file\r
2 The Platform Logo Protocol defines the interface to get the Platform logo\r
3 image with the display attribute.\r
4\r
de707b08 5Copyright (c) 2015 - 2018, Intel Corporation. All rights reserved.<BR>\r
9d510e61 6SPDX-License-Identifier: BSD-2-Clause-Patent\r
6313eb25
RN
7\r
8**/\r
9\r
10#ifndef __PLATFORM_LOGO_H__\r
11#define __PLATFORM_LOGO_H__\r
12\r
e0ac9c8a
RN
13#include <Protocol/HiiImage.h>\r
14\r
6313eb25
RN
15//\r
16// GUID for EDKII Platform Logo Protocol\r
17//\r
18#define EDKII_PLATFORM_LOGO_PROTOCOL_GUID \\r
e0ac9c8a 19 { 0x53cd299f, 0x2bc1, 0x40c0, { 0x8c, 0x07, 0x23, 0xf6, 0x4f, 0xdb, 0x30, 0xe0 } }\r
6313eb25
RN
20\r
21typedef struct _EDKII_PLATFORM_LOGO_PROTOCOL EDKII_PLATFORM_LOGO_PROTOCOL;\r
22\r
6313eb25
RN
23typedef enum {\r
24 EdkiiPlatformLogoDisplayAttributeLeftTop,\r
25 EdkiiPlatformLogoDisplayAttributeCenterTop,\r
26 EdkiiPlatformLogoDisplayAttributeRightTop,\r
27 EdkiiPlatformLogoDisplayAttributeCenterRight,\r
28 EdkiiPlatformLogoDisplayAttributeRightBottom,\r
29 EdkiiPlatformLogoDisplayAttributeCenterBottom,\r
30 EdkiiPlatformLogoDisplayAttributeLeftBottom,\r
31 EdkiiPlatformLogoDisplayAttributeCenterLeft,\r
32 EdkiiPlatformLogoDisplayAttributeCenter\r
33} EDKII_PLATFORM_LOGO_DISPLAY_ATTRIBUTE;\r
34\r
35/**\r
6313eb25
RN
36 Load a platform logo image and return its data and attributes.\r
37\r
38 @param This The pointer to this protocol instance.\r
39 @param Instance The visible image instance is found.\r
de707b08 40 @param Image Points to the image.\r
6313eb25 41 @param Attribute The display attributes of the image returned.\r
c25be72e
RN
42 @param OffsetX The X offset of the image regarding the Attribute.\r
43 @param OffsetY The Y offset of the image regarding the Attribute.\r
6313eb25
RN
44\r
45 @retval EFI_SUCCESS The image was fetched successfully.\r
46 @retval EFI_NOT_FOUND The specified image could not be found.\r
6313eb25
RN
47**/\r
48typedef\r
49EFI_STATUS\r
50(EFIAPI *EDKII_PLATFORM_LOGO_GET_IMAGE)(\r
51 IN EDKII_PLATFORM_LOGO_PROTOCOL *This,\r
52 IN OUT UINT32 *Instance,\r
1436aea4
MK
53 OUT EFI_IMAGE_INPUT *Image,\r
54 OUT EDKII_PLATFORM_LOGO_DISPLAY_ATTRIBUTE *Attribute,\r
55 OUT INTN *OffsetX,\r
56 OUT INTN *OffsetY\r
e0ac9c8a 57 );\r
6313eb25 58\r
6313eb25 59struct _EDKII_PLATFORM_LOGO_PROTOCOL {\r
1436aea4 60 EDKII_PLATFORM_LOGO_GET_IMAGE GetImage;\r
6313eb25
RN
61};\r
62\r
1436aea4 63extern EFI_GUID gEdkiiPlatformLogoProtocolGuid;\r
6313eb25
RN
64\r
65#endif\r