]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Move OEMBadging protocol from MdeModulePkg to IntelFrameworkModulePkg
authorklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 26 Feb 2009 04:36:27 +0000 (04:36 +0000)
committerklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 26 Feb 2009 04:36:27 +0000 (04:36 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7701 6f19259b-4bc3-4df7-8a09-765794883524

IntelFrameworkModulePkg/Include/Protocol/OEMBadging.h [new file with mode: 0644]
IntelFrameworkModulePkg/IntelFrameworkModulePkg.dec

diff --git a/IntelFrameworkModulePkg/Include/Protocol/OEMBadging.h b/IntelFrameworkModulePkg/Include/Protocol/OEMBadging.h
new file mode 100644 (file)
index 0000000..c274dab
--- /dev/null
@@ -0,0 +1,87 @@
+/** @file\r
+  The OEM Badging Protocol defines the interface to get the OEM badging \r
+  image with the dispaly attribute. This protocol can be produced based on OEM badging images.\r
+\r
+Copyright (c) 2006 - 2008, Intel Corporation. <BR>\r
+All rights reserved. This program and the accompanying materials\r
+are licensed and made available under the terms and conditions of the BSD License\r
+which accompanies this distribution.  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 __EFI_OEM_BADGING_H__\r
+#define __EFI_OEM_BADGING_H__\r
+\r
+//\r
+// GUID for EFI OEM Badging Protocol\r
+//\r
+#define EFI_OEM_BADGING_PROTOCOL_GUID \\r
+  { 0x170e13c0, 0xbf1b, 0x4218, {0x87, 0x1d, 0x2a, 0xbd, 0xc6, 0xf8, 0x87, 0xbc } }\r
+\r
+\r
+typedef struct _EFI_OEM_BADGING_PROTOCOL EFI_OEM_BADGING_PROTOCOL;\r
+\r
+typedef enum {\r
+  EfiBadgingFormatBMP,\r
+  EfiBadgingFormatJPEG,\r
+  EfiBadgingFormatTIFF,\r
+  EfiBadgingFormatGIF,\r
+  EfiBadgingFormatUnknown\r
+} EFI_BADGING_FORMAT;\r
+\r
+typedef enum {\r
+  EfiBadgingDisplayAttributeLeftTop,\r
+  EfiBadgingDisplayAttributeCenterTop,\r
+  EfiBadgingDisplayAttributeRightTop,\r
+  EfiBadgingDisplayAttributeCenterRight,\r
+  EfiBadgingDisplayAttributeRightBottom,\r
+  EfiBadgingDisplayAttributeCenterBottom,\r
+  EfiBadgingDisplayAttributeLeftBottom,\r
+  EfiBadgingDisplayAttributeCenterLeft,\r
+  EfiBadgingDisplayAttributeCenter,\r
+  EfiBadgingDisplayAttributeCustomized\r
+} EFI_BADGING_DISPLAY_ATTRIBUTE;\r
+\r
+/**\r
+\r
+  Load an OEM badge image and return its data as well as attributes.\r
+\r
+  @param This              Pointer to this protocol instance.\r
+  @param Instance          The visiable image instance is found.\r
+  @param Format            Format of the image such as BMP,JPEG,etc.\r
+  @param ImageData         Image data returned.\r
+  @param ImageSize         Size of the image returned.\r
+  @param Attribute         Display attributes of the image returned.\r
+  @param CoordinateX       X coordinate of the image.\r
+  @param CoordinateY       Y coordinate of the image.\r
+\r
+  @retval EFI_SUCCESS      Image has been fetched successfully.\r
+  @retval EFI_NOT_FOUND    The specified image could not be found.\r
+\r
+**/\r
+typedef\r
+EFI_STATUS\r
+(EFIAPI *EFI_BADGING_GET_IMAGE)(\r
+  IN     EFI_OEM_BADGING_PROTOCOL          *This,\r
+  IN OUT UINT32                            *Instance,\r
+     OUT EFI_BADGING_FORMAT                *Format,\r
+     OUT UINT8                             **ImageData,\r
+     OUT UINTN                             *ImageSize,\r
+     OUT EFI_BADGING_DISPLAY_ATTRIBUTE     *Attribute,\r
+     OUT UINTN                             *CoordinateX,\r
+     OUT UINTN                             *CoordinateY\r
+);\r
+\r
+\r
+struct _EFI_OEM_BADGING_PROTOCOL {\r
+  EFI_BADGING_GET_IMAGE       GetImage;\r
+};\r
+\r
+\r
+extern EFI_GUID gEfiOEMBadgingProtocolGuid;\r
+\r
+#endif\r
index 4f014aa5a43d133e8faa4a16dab05dd0b5888536..c6a7094e4c45971debba79fee3fe2605c32fa146 100644 (file)
   ## Include/Protocol/DiskInfo.h\r
   gEfiDiskInfoProtocolGuid       = { 0xD432A67F, 0x14DC, 0x484B, { 0xB3, 0xBB, 0x3F, 0x02, 0x91, 0x84, 0x93, 0x27 }}\r
 \r
+  ## OEM Badging Protocol defines the interface to get the OEM badging image with the dispaly attribute.\r
+  ## Include/Protocol/OEMBadging.h\r
+  gEfiOEMBadgingProtocolGuid     = { 0x170E13C0, 0xBF1B, 0x4218, { 0x87, 0x1D, 0x2A, 0xBD, 0xC6, 0xF8, 0x87, 0xBC }}\r
+\r
 [PcdsDynamic.common]\r
   gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdStatusCodeMemorySize|1|UINT16|0x00010025\r
   gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdStatusCodeRuntimeMemorySize|128|UINT16|0x0001002e\r