]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdePkg/SystemResourceTable.h: Add vendor range values
authorMichael Kubacki <michael.kubacki@microsoft.com>
Mon, 19 Oct 2020 23:59:34 +0000 (07:59 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Wed, 28 Oct 2020 06:05:52 +0000 (06:05 +0000)
Adds the following macros to define the unsuccessful vendor range
min and max (defined in UEFI Specification 2.8):
  1. LAST_ATTEMPT_STATUS_ERROR_UNSUCCESSFUL_VENDOR_RANGE_MIN
  2. LAST_ATTEMPT_STATUS_ERROR_UNSUCCESSFUL_VENDOR_RANGE_MAX

Cc: Liming Gao <gaoliming@byosoft.com.cn>
Cc: Michael D Kinney <michael.d.kinney@intel.com>
Cc: Guomin Jiang <guomin.jiang@intel.com>
Cc: Wei6 Xu <wei6.xu@intel.com>
Cc: Zhiguang Liu <zhiguang.liu@intel.com>
Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com>
Acked-by: Liming Gao <gaoliming@byosoft.com.cn>
Reviewed-by: Wei6 Xu <wei6.xu@intel.com>
Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>
MdePkg/Include/Guid/SystemResourceTable.h

index 418b8c8d055a7db90907a06c1bc1b853f145f28f..c330fd80a6934103afcba8cb6f04d6578b74a162 100644 (file)
@@ -2,6 +2,7 @@
   Guid & data structure used for EFI System Resource Table (ESRT)\r
 \r
   Copyright (c) 2015 - 2020, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) Microsoft Corporation.<BR>\r
   SPDX-License-Identifier: BSD-2-Clause-Patent\r
 \r
   @par Revision Reference:\r
 #define LAST_ATTEMPT_STATUS_ERROR_PWR_EVT_BATT              0x00000007\r
 #define LAST_ATTEMPT_STATUS_ERROR_UNSATISFIED_DEPENDENCIES  0x00000008\r
 \r
+///\r
+/// LAST_ATTEMPT_STATUS_ERROR_UNSUCCESSFUL_VENDOR_RANGE_MAX is defined as\r
+/// 0x4000 as of UEFI Specification 2.8B. This will be modified in the\r
+/// future to the correct value 0x3FFF. To ensure correct implementation,\r
+/// this change is preemptively made in the value defined below.\r
+///\r
+/// When the UEFI Specification is updated, this comment block can be\r
+/// removed.\r
+///\r
+#define LAST_ATTEMPT_STATUS_ERROR_UNSUCCESSFUL_VENDOR_RANGE_MIN 0x00001000\r
+#define LAST_ATTEMPT_STATUS_ERROR_UNSUCCESSFUL_VENDOR_RANGE_MAX 0x00003FFF\r
+\r
 typedef struct {\r
   ///\r
   /// The firmware class field contains a GUID that identifies a firmware component\r