]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Include/Protocol/PlatformLogo.h
MdeModulePkg: Add AtaAtapiPolicy protocol definition
[mirror_edk2.git] / MdeModulePkg / Include / Protocol / PlatformLogo.h
index 9ac87f1748d36ff7c798d70042e4835faa5312fc..c25e7b04cbd62b5d95c538fdac7ab40590f37822 100644 (file)
@@ -2,7 +2,7 @@
   The Platform Logo Protocol defines the interface to get the Platform logo\r
   image with the display attribute.\r
 \r
-Copyright (c) 2015, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2015 - 2018, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials are licensed and made available under \r
 the terms and conditions of the BSD License that accompanies this distribution.  \r
 The full text of the license may be found at\r
@@ -16,22 +16,16 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 #ifndef __PLATFORM_LOGO_H__\r
 #define __PLATFORM_LOGO_H__\r
 \r
+#include <Protocol/HiiImage.h>\r
+\r
 //\r
 // GUID for EDKII Platform Logo Protocol\r
 //\r
 #define EDKII_PLATFORM_LOGO_PROTOCOL_GUID \\r
-  { 0x9b517978, 0xeba1, 0x44e7, { 0xba, 0x65, 0x7c, 0x2c, 0xd0, 0x8b, 0xf8, 0xe9 } }\r
+  { 0x53cd299f, 0x2bc1, 0x40c0, { 0x8c, 0x07, 0x23, 0xf6, 0x4f, 0xdb, 0x30, 0xe0 } }\r
 \r
 typedef struct _EDKII_PLATFORM_LOGO_PROTOCOL EDKII_PLATFORM_LOGO_PROTOCOL;\r
 \r
-typedef enum {\r
-  ImageFormatUnknown,\r
-  ImageFormatBmp,\r
-  ImageFormatJpeg,\r
-  ImageFormatTiff,\r
-  ImageFormatGif\r
-} IMAGE_FORMAT;\r
-\r
 typedef enum {\r
   EdkiiPlatformLogoDisplayAttributeLeftTop,\r
   EdkiiPlatformLogoDisplayAttributeCenterTop,\r
@@ -45,35 +39,28 @@ typedef enum {
 } EDKII_PLATFORM_LOGO_DISPLAY_ATTRIBUTE;\r
 \r
 /**\r
-\r
   Load a platform logo image and return its data and attributes.\r
 \r
   @param This              The pointer to this protocol instance.\r
   @param Instance          The visible image instance is found.\r
-  @param Format            The format of the image. Examples: BMP, JPEG.\r
-  @param ImageData         The image data for the badge file. Currently only \r
-                           supports the .bmp file format. \r
-  @param ImageSize         The size of the image returned.\r
+  @param Image             Points to the image.\r
   @param Attribute         The display attributes of the image returned.\r
-  @param CoordinateX       The X coordinate of the image.\r
-  @param CoordinateY       The Y coordinate of the image.\r
+  @param OffsetX           The X offset of the image regarding the Attribute.\r
+  @param OffsetY           The Y offset of the image regarding the Attribute.\r
 \r
   @retval EFI_SUCCESS      The image was fetched successfully.\r
   @retval EFI_NOT_FOUND    The specified image could not be found.\r
-\r
 **/\r
 typedef\r
 EFI_STATUS\r
 (EFIAPI *EDKII_PLATFORM_LOGO_GET_IMAGE)(\r
   IN     EDKII_PLATFORM_LOGO_PROTOCOL          *This,\r
   IN OUT UINT32                                *Instance,\r
-     OUT IMAGE_FORMAT                          *Format,\r
-     OUT UINT8                                 **ImageData,\r
-     OUT UINTN                                 *ImageSize,\r
+     OUT EFI_IMAGE_INPUT                       *Image,\r
      OUT EDKII_PLATFORM_LOGO_DISPLAY_ATTRIBUTE *Attribute,\r
-     OUT UINTN                                 *CoordinateX,\r
-     OUT UINTN                                 *CoordinateY\r
-);\r
+     OUT INTN                                  *OffsetX,\r
+     OUT INTN                                  *OffsetY\r
+  );\r
 \r
 \r
 struct _EDKII_PLATFORM_LOGO_PROTOCOL {\r