]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdePkg/StatusCodeDataTypeId.h: Add new definition per PI1.7 Spec
authorDandan Bi <dandan.bi@intel.com>
Thu, 14 Feb 2019 08:49:12 +0000 (16:49 +0800)
committerLiming Gao <liming.gao@intel.com>
Tue, 19 Feb 2019 08:15:05 +0000 (16:15 +0800)
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1398

According to PI1.7 Spec, add the new definition
EFI_RETURN_STATUS_EXTENDED_DATA in StatusCodeDataTypeId.h

Cc: Michael D Kinney <michael.d.kinney@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Cc: Laszlo Ersek <lersek@redhat.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Dandan Bi <dandan.bi@intel.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Ray Ni <ray.ni@intel.com>
MdePkg/Include/Guid/StatusCodeDataTypeId.h

index 22cf8e5aae0737794f1455dc3b64092ed2117087..b01999581b56e6f98ca39d72bdcbf6e6f8fed60a 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   GUID used to identify id for the caller who is initiating the Status Code.\r
 \r
-  Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2006 - 2019, Intel Corporation. All rights reserved.<BR>\r
   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
@@ -118,6 +118,7 @@ extern EFI_GUID gEfiStatusCodeDataTypeStringGuid;
 ///   - EFI_STATUS_CODE_EXCEP_EXTENDED_DATA\r
 ///   - EFI_STATUS_CODE_START_EXTENDED_DATA\r
 ///   - EFI_LEGACY_OPROM_EXTENDED_DATA\r
+///   - EFI_RETURN_STATUS_EXTENDED_DATA\r
 ///\r
 #define EFI_STATUS_CODE_SPECIFIC_DATA_GUID \\r
   { 0x335984bd, 0xe805, 0x409a, { 0xb8, 0xf8, 0xd2, 0x7e, 0xce, 0x5f, 0xf7, 0xa6 } }\r
@@ -784,6 +785,25 @@ typedef struct {
   EFI_PHYSICAL_ADDRESS  RomImageBase;\r
 } EFI_LEGACY_OPROM_EXTENDED_DATA;\r
 \r
+///\r
+/// This structure defines extended data describing an EFI_STATUS return value that stands for a\r
+/// failed function call (such as a UEFI boot service).\r
+///\r
+typedef struct {\r
+  ///\r
+  /// The data header identifying the data:\r
+  /// DataHeader.HeaderSize should be sizeof(EFI_STATUS_CODE_DATA),\r
+  /// DataHeader.Size should be sizeof(EFI_RETURN_STATUS_EXTENDED_DATA) - HeaderSize,\r
+  /// DataHeader.Type should be EFI_STATUS_CODE_SPECIFIC_DATA_GUID.\r
+  ///\r
+  EFI_STATUS_CODE_DATA DataHeader;\r
+  ///\r
+  /// The EFI_STATUS return value of the service or function whose failure triggered the\r
+  /// reporting of the status code (generally an error code or a debug code).\r
+  ///\r
+  EFI_STATUS           ReturnStatus;\r
+} EFI_RETURN_STATUS_EXTENDED_DATA;\r
+\r
 extern EFI_GUID gEfiStatusCodeSpecificDataGuid;\r
 \r
 #endif\r