]>
git.proxmox.com Git - mirror_edk2.git/blob - Nt32Pkg/Library/ResetSystemLib/ResetSystemLib.c
ed4129d46b788bc49d71cf18dae618498078cf0d
3 Copyright (c) 2017, 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 (