]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdeModulePkg: Define Boot Logo protocol to convey information of Logo dispayed during...
authorxdu2 <xdu2@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 4 Nov 2011 08:27:53 +0000 (08:27 +0000)
committerxdu2 <xdu2@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 4 Nov 2011 08:27:53 +0000 (08:27 +0000)
Signed-off-by: xdu2
Reviewed-by: mdkinney
Reviewed-by: lgao4
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12663 6f19259b-4bc3-4df7-8a09-765794883524

MdeModulePkg/Include/Protocol/BootLogo.h [new file with mode: 0644]
MdeModulePkg/MdeModulePkg.dec

diff --git a/MdeModulePkg/Include/Protocol/BootLogo.h b/MdeModulePkg/Include/Protocol/BootLogo.h
new file mode 100644 (file)
index 0000000..1eba47a
--- /dev/null
@@ -0,0 +1,65 @@
+/** @file\r
+  Boot Logo protocol is used to convey information of Logo dispayed during boot.\r
+\r
+Copyright (c) 2011, 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
+http://opensource.org/licenses/bsd-license.php.\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+\r
+**/\r
+\r
+#ifndef _BOOT_LOGO_H_\r
+#define _BOOT_LOGO_H_\r
+\r
+#include <Protocol/GraphicsOutput.h>\r
+\r
+#define EFI_BOOT_LOGO_PROTOCOL_GUID \\r
+  { \\r
+    0xcdea2bd3, 0xfc25, 0x4c1c, { 0xb9, 0x7c, 0xb3, 0x11, 0x86, 0x6, 0x49, 0x90 } \\r
+  }\r
+\r
+//\r
+// Forward reference for pure ANSI compatability\r
+//\r
+typedef struct _EFI_BOOT_LOGO_PROTOCOL  EFI_BOOT_LOGO_PROTOCOL;\r
+\r
+/**\r
+  Update information of logo image drawn on screen.\r
+\r
+  @param  This           The pointer to the Boot Logo protocol instance.\r
+  @param  BltBuffer      The BLT buffer for logo drawn on screen. If BltBuffer\r
+                         is set to NULL, it indicates that logo image is no\r
+                         longer on the screen.\r
+  @param  DestinationX   X coordinate of destination for the BltBuffer.\r
+  @param  DestinationY   Y coordinate of destination for the BltBuffer.\r
+  @param  Width          Width of rectangle in BltBuffer in pixels.\r
+  @param  Height         Hight of rectangle in BltBuffer in pixels.\r
+\r
+  @retval EFI_SUCCESS             The boot logo information was updated.\r
+  @retval EFI_INVALID_PARAMETER   One of the parameters has an invalid value.\r
+  @retval EFI_OUT_OF_RESOURCES    The logo information was not updated due to\r
+                                  insufficient memory resources.\r
+\r
+**/\r
+typedef\r
+EFI_STATUS\r
+(EFIAPI *EFI_SET_BOOT_LOGO)(\r
+  IN EFI_BOOT_LOGO_PROTOCOL            *This,\r
+  IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL     *BltBuffer       OPTIONAL,\r
+  IN UINTN                             DestinationX,\r
+  IN UINTN                             DestinationY,\r
+  IN UINTN                             Width,\r
+  IN UINTN                             Height\r
+  );\r
+\r
+struct _EFI_BOOT_LOGO_PROTOCOL {\r
+  EFI_SET_BOOT_LOGO        SetBootLogo;\r
+};\r
+\r
+extern EFI_GUID gEfiBootLogoProtocolGuid;\r
+\r
+#endif\r
index dc9ec5b9b1ecf7abf538d59a4729382a3260313a..27268d33f9ed8df536c91691777a0224dd401118 100644 (file)
 \r
   ## Include/Protocol/EbcSimpleDebugger.h\r
   gEfiEbcSimpleDebuggerProtocolGuid = { 0x2a72d11e, 0x7376, 0x40f6, { 0x9c, 0x68, 0x23, 0xfa, 0x2f, 0xe3, 0x63, 0xf1 } }\r
 \r
   ## Include/Protocol/EbcSimpleDebugger.h\r
   gEfiEbcSimpleDebuggerProtocolGuid = { 0x2a72d11e, 0x7376, 0x40f6, { 0x9c, 0x68, 0x23, 0xfa, 0x2f, 0xe3, 0x63, 0xf1 } }\r
+\r
+  ## Include/Protocol/BootLogo.h\r
+  gEfiBootLogoProtocolGuid = { 0xcdea2bd3, 0xfc25, 0x4c1c, { 0xb9, 0x7c, 0xb3, 0x11, 0x86, 0x6, 0x49, 0x90 } }\r
+\r
 [PcdsFeatureFlag]\r
   ## Indicate whether platform can support update capsule across a system reset\r
   gEfiMdeModulePkgTokenSpaceGuid.PcdSupportUpdateCapsuleReset|FALSE|BOOLEAN|0x0001001d\r
 [PcdsFeatureFlag]\r
   ## Indicate whether platform can support update capsule across a system reset\r
   gEfiMdeModulePkgTokenSpaceGuid.PcdSupportUpdateCapsuleReset|FALSE|BOOLEAN|0x0001001d\r