3 Copyright (c) 2017 - 2019, Intel Corporation. All rights reserved.<BR>
4 SPDX-License-Identifier: BSD-2-Clause-Patent
8 #include <Library/DebugLib.h>
9 #include <Library/WinNtLib.h>
12 This function causes a system-wide reset (cold reset), in which
13 all circuitry within the system returns to its initial state. This type of reset
14 is asynchronous to system operation and operates without regard to
17 If this function returns, it means that the system does not support cold reset.
25 gWinNt
->ExitProcess (0);
30 This function causes a system-wide initialization (warm reset), in which all processors
31 are set to their initial state. Pending cycles are not corrupted.
33 If this function returns, it means that the system does not support warm reset.
45 This function causes the system to enter a power state equivalent
46 to the ACPI G2/S5 or G3 states.
48 If this function returns, it means that the system does not support shut down reset.
60 This function causes the system to enter S3 and then wake up immediately.
62 If this function returns, it means that the system does not support S3 feature.
66 EnterS3WithImmediateWake (
74 This function causes a systemwide reset. The exact type of the reset is
75 defined by the EFI_GUID that follows the Null-terminated Unicode string passed
76 into ResetData. If the platform does not recognize the EFI_GUID in ResetData
77 the platform must pick a supported reset type to perform.The platform may
78 optionally log the parameters from any non-normal reset that occurs.
80 @param[in] DataSize The size, in bytes, of ResetData.
81 @param[in] ResetData The data buffer starts with a Null-terminated string,
82 followed by the EFI_GUID.
86 ResetPlatformSpecific (
95 The ResetSystem function resets the entire platform.
97 @param[in] ResetType The type of reset to perform.
98 @param[in] ResetStatus The status code for the reset.
99 @param[in] DataSize The size, in bytes, of ResetData.
100 @param[in] ResetData For a ResetType of EfiResetCold, EfiResetWarm, or EfiResetShutdown
101 the data buffer starts with a Null-terminated string, optionally
102 followed by additional binary data. The string is a description
103 that the caller may use to further indicate the reason for the
109 IN EFI_RESET_TYPE ResetType
,
110 IN EFI_STATUS ResetStatus
,
112 IN VOID
*ResetData OPTIONAL
124 case EfiResetShutdown
:
128 case EfiResetPlatformSpecific
:
129 ResetPlatformSpecific (DataSize
, ResetData
);