]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Include/Guid/CapsuleReport.h
MdePkg: UEFI JSON Capsule Support
[mirror_edk2.git] / MdePkg / Include / Guid / CapsuleReport.h
index 93d2bb75a50b68c886c33fe0a7cf9024ed51929a..cd91e6d8cd38780e8994acdc5334499f72b33517 100644 (file)
@@ -93,6 +93,35 @@ typedef struct {
   ///\r
 } EFI_CAPSULE_RESULT_VARIABLE_FMP;\r
 \r
+typedef struct {\r
+\r
+  ///\r
+  /// Version of this structure, currently 0x00000001\r
+  ///\r
+  UINT32    Version;\r
+\r
+  ///\r
+  /// The unique identifier of the capsule whose processing result is recorded in this variable.\r
+  /// 0x00000000 - 0xEFFFFFFF - Implementation Reserved\r
+  /// 0xF0000000 - 0xFFFFFFFF - Specification Reserved\r
+  /// #define REDFISH_DEFINED_JSON_SCHEMA 0xF000000\r
+  /// The JSON payload shall conform to a Redfish-defined JSON schema, see DMTF-Redfish\r
+  /// Specification.\r
+  ///\r
+  UINT32 CapsuleId;\r
+\r
+  ///\r
+  /// The length of Resp in bytes.\r
+  ///\r
+  UINT32 RespLength;\r
+\r
+  ///\r
+  /// Variable length buffer containing the replied JSON payload to the caller who delivered JSON\r
+  /// capsule to system. The definition of the JSON schema used in the replied payload is beyond\r
+  /// the scope of this specification.\r
+  ///\r
+  UINT8 Resp[];\r
+ } EFI_CAPSULE_RESULT_VARIABLE_JSON;\r
 \r
 extern EFI_GUID gEfiCapsuleReportGuid;\r
 \r