diff options
author | Oleksiy Yakovlev <oleksiyy@ami.com> | 2020-05-14 03:52:48 +0800 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2020-05-15 05:05:52 +0000 |
commit | 154e243a994b7009b7a7a3346dbdfc975c7d9101 (patch) | |
tree | e3d7a10de8e0d781bed37e0c17ed89280778fbb0 /MdePkg/Include/Guid/CapsuleReport.h | |
parent | 2552fd58f51e1475785c11f4ea8e4e9063882bbe (diff) | |
download | edk2-154e243a994b7009b7a7a3346dbdfc975c7d9101.tar.gz edk2-154e243a994b7009b7a7a3346dbdfc975c7d9101.tar.bz2 edk2-154e243a994b7009b7a7a3346dbdfc975c7d9101.zip |
MdePkg: UEFI JSON Capsule Support
Added Guids and structures, that defines the work flow to perform
capsule update using JSON objects.
(UEFI 2.8 mantis 1935)
Signed-off-by: Oleksiy Yakovlev <oleksiyy@ami.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Zhiguang Liu <zhiguang.liu@intel.com>
Diffstat (limited to 'MdePkg/Include/Guid/CapsuleReport.h')
-rw-r--r-- | MdePkg/Include/Guid/CapsuleReport.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/MdePkg/Include/Guid/CapsuleReport.h b/MdePkg/Include/Guid/CapsuleReport.h index 93d2bb75a5..cd91e6d8cd 100644 --- a/MdePkg/Include/Guid/CapsuleReport.h +++ b/MdePkg/Include/Guid/CapsuleReport.h @@ -93,6 +93,35 @@ typedef struct { ///
} EFI_CAPSULE_RESULT_VARIABLE_FMP;
+typedef struct {
+
+ ///
+ /// Version of this structure, currently 0x00000001
+ ///
+ UINT32 Version;
+
+ ///
+ /// The unique identifier of the capsule whose processing result is recorded in this variable.
+ /// 0x00000000 - 0xEFFFFFFF - Implementation Reserved
+ /// 0xF0000000 - 0xFFFFFFFF - Specification Reserved
+ /// #define REDFISH_DEFINED_JSON_SCHEMA 0xF000000
+ /// The JSON payload shall conform to a Redfish-defined JSON schema, see DMTF-Redfish
+ /// Specification.
+ ///
+ UINT32 CapsuleId;
+
+ ///
+ /// The length of Resp in bytes.
+ ///
+ UINT32 RespLength;
+
+ ///
+ /// Variable length buffer containing the replied JSON payload to the caller who delivered JSON
+ /// capsule to system. The definition of the JSON schema used in the replied payload is beyond
+ /// the scope of this specification.
+ ///
+ UINT8 Resp[];
+ } EFI_CAPSULE_RESULT_VARIABLE_JSON;
extern EFI_GUID gEfiCapsuleReportGuid;
|