summaryrefslogtreecommitdiff
path: root/Platform/Intel/Vlv2TbltDevicePkg/PlatformPei/Platform.h
diff options
context:
space:
mode:
authorMichael D Kinney <michael.d.kinney@intel.com>2019-07-15 21:15:21 -0700
committerMichael D Kinney <michael.d.kinney@intel.com>2019-07-23 09:49:56 -0700
commit2d907e497182fcdf5179f1ccc3f855e9ea888e3d (patch)
tree4e38616aa4b639431b02bc0a94e1515ce6b3f5d8 /Platform/Intel/Vlv2TbltDevicePkg/PlatformPei/Platform.h
parentb22cc238aae052123bfab72db2f5f69823714562 (diff)
Vlv2TbltDevicePkg/PlatformPei: Add boot mode detection
Add boot mode detection back into PlatformPei that was inadvertently removed in the following commit: https://github.com/tianocore/edk2-platforms/commit/d6211390793fbd0a89b14001c43e0ef942c85425 Boot mode detection at this point is required to detect the boot mode of BOOT_ON_FLASH_UPDATE that is required to detect, coalesce, and process UEFI Capsules. Cc: Zailiang Sun <zailiang.sun@intel.com> Cc: Yi Qian <yi.qian@intel.com> Cc: Gary Lin <glin@suse.com> Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com> Reviewed-by: Zailiang Sun <zailiang.sun@intel.com> Tested-by: Gary Lin <glin@suse.com>
Diffstat (limited to 'Platform/Intel/Vlv2TbltDevicePkg/PlatformPei/Platform.h')
-rw-r--r--Platform/Intel/Vlv2TbltDevicePkg/PlatformPei/Platform.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/Platform/Intel/Vlv2TbltDevicePkg/PlatformPei/Platform.h b/Platform/Intel/Vlv2TbltDevicePkg/PlatformPei/Platform.h
index 4f71e519..e2e07dc4 100644
--- a/Platform/Intel/Vlv2TbltDevicePkg/PlatformPei/Platform.h
+++ b/Platform/Intel/Vlv2TbltDevicePkg/PlatformPei/Platform.h
@@ -22,6 +22,23 @@ typedef struct {
#define STALL_PEIM_FROM_THIS(a) CR (a, STALL_CALLBACK_STATE_INFORMATION, StallNotify, STALL_PEIM_SIGNATURE)
/**
+ Peform the boot mode determination logic
+ If the box is closed, then
+ 1. If it's first time to boot, it's boot with full config .
+ 2. If the ChassisIntrution is selected, force to be a boot with full config
+ 3. Otherwise it's boot with no change.
+
+ @param PeiServices General purpose services available to every PEIM.
+ @param BootMode The detected boot mode.
+
+ @retval EFI_SUCCESS if the boot mode could be set
+**/
+EFI_STATUS
+UpdateBootMode (
+ IN CONST EFI_PEI_SERVICES **PeiServices
+ );
+
+/**
This function reset the entire platform, including all processor and devices, and
reboots the system.