]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdePkg: Add UEFI 2.7 defined GUID and structure for KMS protocol.
authorFu Siyuan <siyuan.fu@intel.com>
Wed, 19 Jul 2017 06:24:22 +0000 (14:24 +0800)
committerFu Siyuan <siyuan.fu@intel.com>
Wed, 26 Jul 2017 06:50:45 +0000 (14:50 +0800)
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Fu Siyuan <siyuan.fu@intel.com>
Reviewed-by: Ye Ting <ting.ye@intel.com>
MdePkg/Include/Protocol/Kms.h

index da27096e44be403f9e23d223c2d912f7d0c00e00..1d2dcc64f8ed75136c72b04ee0490b0db65288b4 100644 (file)
@@ -8,7 +8,7 @@
   server over the network, or to a Hardware Security Module (HSM) attached to the system it\r
   runs on, or anything else that is capable of providing the key management service.\r
 \r
-  Copyright (c) 2011, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2011 - 2017, 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
@@ -80,6 +80,10 @@ typedef struct _EFI_KMS_PROTOCOL EFI_KMS_PROTOCOL;
   { \\r
     0xb9237513, 0x6c44, 0x4411, {0xa9, 0x90, 0x21, 0xe5, 0x56, 0xe0, 0x5a, 0xde } \\r
   }\r
+#define EFI_KMS_FORMAT_GENERIC_DYNAMIC_GUID \\r
+  { \\r
+    0x2156e996, 0x66de, 0x4b27, {0x9c, 0xc9, 0xb0, 0x9f, 0xac, 0x4d, 0x2, 0xbe } \\r
+  }\r
 ///@}\r
 \r
 ///\r
@@ -175,6 +179,17 @@ typedef struct _EFI_KMS_PROTOCOL EFI_KMS_PROTOCOL;
 #define EFI_KMS_ATTRIBUTE_TYPE_STRUCTURE        0x0A\r
 #define EFI_KMS_ATTRIBUTE_TYPE_DYNAMIC          0x0B\r
 \r
+typedef struct {\r
+  ///\r
+  /// Length in bytes of the KeyData.\r
+  ///\r
+  UINT32        KeySize;\r
+  ///\r
+  /// The data of the key.\r
+  ///\r
+  UINT8         KeyData[1];\r
+} EFI_KMS_FORMAT_GENERIC_DYNAMIC;\r
+\r
 typedef struct {\r
   ///\r
   /// The size in bytes for the client identifier.\r