2 Reset System Library functions for PCAT platforms
4 Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>
5 This program and the accompanying materials
6 are licensed and made available under the terms and conditions of the BSD License
7 which accompanies this distribution. The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
17 #include <Library/DebugLib.h>
18 #include <Library/IoLib.h>
21 Calling this function causes a system-wide reset. This sets
22 all circuitry within the system to its initial state. This type of reset
23 is asynchronous to system operation and operates without regard to
26 System reset should not return, if it returns, it means the system does
27 not support cold reset.
35 IoWrite8 ((UINTN
) PcdGet64 (PcdResetControlRegister
), PcdGet8 (PcdResetControlValueColdReset
));
39 Calling this function causes a system-wide initialization. The processors
40 are set to their initial state, and pending cycles are not corrupted.
42 System reset should not return, if it returns, it means the system does
43 not support warm reset.
51 IoWrite8 ((UINTN
) PcdGet64 (PcdResetControlRegister
), PcdGet8 (PcdResetControlValueColdReset
));
55 Calling this function causes the system to enter a power state equivalent
56 to the ACPI G2/S5 or G3 states.
58 System shutdown should not return, if it returns, it means the system does
59 not support shut down reset.
72 Calling this function causes the system to enter a power state for capsule
75 Reset update should not return, if it returns, it means the system does
76 not support capsule update.
81 EnterS3WithImmediateWake (
89 This function causes a systemwide reset. The exact type of the reset is
90 defined by the EFI_GUID that follows the Null-terminated Unicode string passed
91 into ResetData. If the platform does not recognize the EFI_GUID in ResetData
92 the platform must pick a supported reset type to perform.The platform may
93 optionally log the parameters from any non-normal reset that occurs.
95 @param[in] DataSize The size, in bytes, of ResetData.
96 @param[in] ResetData The data buffer starts with a Null-terminated string,
97 followed by the EFI_GUID.
101 ResetPlatformSpecific (