Add Microsoft UX capsule GUID & layout into IndustryStandard

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Chao Zhang <chao.b.zh...@intel.com>
---
 MdePkg/Include/IndustryStandard/WindowsUxCapsule.h | 46 ++++++++++++++++++++++
 MdePkg/MdePkg.dec                                  |  6 +++
 2 files changed, 52 insertions(+)
 create mode 100644 MdePkg/Include/IndustryStandard/WindowsUxCapsule.h

diff --git a/MdePkg/Include/IndustryStandard/WindowsUxCapsule.h 
b/MdePkg/Include/IndustryStandard/WindowsUxCapsule.h
new file mode 100644
index 0000000..3d893c7
--- /dev/null
+++ b/MdePkg/Include/IndustryStandard/WindowsUxCapsule.h
@@ -0,0 +1,46 @@
+/** @file   
+  Defines Windows UX Capsule GUID and layout defined at Microsoft
+  Windows UEFI Firmware Update Platform specification
+
+  Copyright (c) 2015, Intel Corporation. All rights reserved.<BR>
+  This program and the accompanying materials 
+  are licensed and made available under the terms and conditions of the BSD 
License
+  which accompanies this distribution.  The full text of the license may be 
found at
+  http://opensource.org/licenses/bsd-license.php
+
+  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
+
+--*/
+
+#ifndef _WINDOWS_UX_CAPSULE_GUID_H
+#define _WINDOWS_UX_CAPSULE_GUID_H
+
+#pragma pack(1)
+
+typedef struct {
+   UINT8  Version;
+   UINT8  Checksum;
+   UINT8  ImageType;
+   UINT8  Reserved;
+   UINT32 Mode;
+   UINT32 OffsetX;
+   UINT32 OffsetY;
+   //UINT8  Image[];
+} DISPLAY_DISPLAY_PAYLOAD;
+
+typedef struct {
+  EFI_CAPSULE_HEADER       CapsuleHeader;
+  DISPLAY_DISPLAY_PAYLOAD  ImagePayload;
+} EFI_DISPLAY_CAPSULE;
+
+#pragma pack()
+
+#define WINDOWS_UX_CAPSULE_GUID \
+  { \
+    0x3b8c8162, 0x188c, 0x46a4, { 0xae, 0xc9, 0xbe, 0x43, 0xf1, 0xd6, 0x56, 
0x97}  \
+  }
+
+extern EFI_GUID gWindowsUxCapsuleGuid;
+
+#endif
diff --git a/MdePkg/MdePkg.dec b/MdePkg/MdePkg.dec
index b0d2460..fbcf401 100644
--- a/MdePkg/MdePkg.dec
+++ b/MdePkg/MdePkg.dec
@@ -693,6 +693,12 @@
   ## Include/Protocol/DiskInfo.h
   gEfiDiskInfoUfsInterfaceGuid   = { 0x4b3029cc, 0x6b98, 0x47fb, { 0xbc, 0x96, 
0x76, 0xdc, 0xb8, 0x4, 0x41, 0xf0 }}
 
+  #
+  # GUID defined in Windows UEFI Firmware Update Platform doc
+  #
+  ## Include/IndustryStandard/WindowsUxCapsule.h
+  gWindowsUxCapsuleGuid          = { 0x3b8c8162, 0x188c, 0x46a4, { 0xae, 0xc9, 
0xbe, 0x43, 0xf1, 0xd6, 0x56, 0x97}}
+
 [Guids.IA32, Guids.X64]
   ## Include/Guid/Cper.h
   gEfiIa32X64ErrorTypeCacheCheckGuid = { 0xA55701F5, 0xE3EF, 0x43de, { 0xAC, 
0x72, 0x24, 0x9B, 0x57, 0x3F, 0xAD, 0x2C }}
-- 
1.9.5.msysgit.1


------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to