2007-08-28 05:01:58 +02:00
|
|
|
/** @file
|
|
|
|
System reset Library Services. This library class defines a set of
|
2009-06-11 16:17:23 +02:00
|
|
|
methods that reset the whole system.
|
2007-08-28 05:01:58 +02:00
|
|
|
|
2019-02-21 01:59:39 +01:00
|
|
|
Copyright (c) 2005 - 2019, Intel Corporation. All rights reserved.<BR>
|
2019-04-04 01:05:13 +02:00
|
|
|
SPDX-License-Identifier: BSD-2-Clause-Patent
|
2007-08-28 05:01:58 +02:00
|
|
|
|
|
|
|
**/
|
|
|
|
|
|
|
|
#ifndef __RESET_SYSTEM_LIB_H__
|
|
|
|
#define __RESET_SYSTEM_LIB_H__
|
|
|
|
|
2019-02-21 01:59:39 +01:00
|
|
|
#include <Uefi/UefiBaseType.h>
|
|
|
|
#include <Uefi/UefiMultiPhase.h>
|
|
|
|
|
2007-08-28 05:01:58 +02:00
|
|
|
/**
|
2009-06-11 16:17:23 +02:00
|
|
|
This function causes a system-wide reset (cold reset), in which
|
2018-06-27 15:08:52 +02:00
|
|
|
all circuitry within the system returns to its initial state. This type of reset
|
|
|
|
is asynchronous to system operation and operates without regard to
|
2007-08-28 05:01:58 +02:00
|
|
|
cycle boundaries.
|
|
|
|
|
2018-06-27 15:08:52 +02:00
|
|
|
If this function returns, it means that the system does not support cold reset.
|
2007-08-28 05:01:58 +02:00
|
|
|
**/
|
|
|
|
VOID
|
|
|
|
EFIAPI
|
|
|
|
ResetCold (
|
|
|
|
VOID
|
|
|
|
);
|
|
|
|
|
|
|
|
/**
|
2018-06-27 15:08:52 +02:00
|
|
|
This function causes a system-wide initialization (warm reset), in which all processors
|
2009-06-11 16:17:23 +02:00
|
|
|
are set to their initial state. Pending cycles are not corrupted.
|
2007-08-28 05:01:58 +02:00
|
|
|
|
2009-06-11 16:17:23 +02:00
|
|
|
If this function returns, it means that the system does not support warm reset.
|
2007-08-28 05:01:58 +02:00
|
|
|
**/
|
|
|
|
VOID
|
|
|
|
EFIAPI
|
|
|
|
ResetWarm (
|
|
|
|
VOID
|
|
|
|
);
|
|
|
|
|
|
|
|
/**
|
2018-06-27 15:08:52 +02:00
|
|
|
This function causes the system to enter a power state equivalent
|
2007-08-28 05:01:58 +02:00
|
|
|
to the ACPI G2/S5 or G3 states.
|
2018-06-27 15:08:52 +02:00
|
|
|
|
2010-03-17 21:48:52 +01:00
|
|
|
If this function returns, it means that the system does not support shutdown reset.
|
2007-08-28 05:01:58 +02:00
|
|
|
**/
|
|
|
|
VOID
|
|
|
|
EFIAPI
|
|
|
|
ResetShutdown (
|
|
|
|
VOID
|
|
|
|
);
|
|
|
|
|
2016-08-10 07:21:47 +02:00
|
|
|
/**
|
|
|
|
This function causes a systemwide reset. The exact type of the reset is
|
|
|
|
defined by the EFI_GUID that follows the Null-terminated Unicode string passed
|
|
|
|
into ResetData. If the platform does not recognize the EFI_GUID in ResetData
|
|
|
|
the platform must pick a supported reset type to perform.The platform may
|
|
|
|
optionally log the parameters from any non-normal reset that occurs.
|
|
|
|
|
|
|
|
@param[in] DataSize The size, in bytes, of ResetData.
|
|
|
|
@param[in] ResetData The data buffer starts with a Null-terminated string,
|
|
|
|
followed by the EFI_GUID.
|
|
|
|
**/
|
|
|
|
VOID
|
|
|
|
EFIAPI
|
|
|
|
ResetPlatformSpecific (
|
2021-12-05 23:54:02 +01:00
|
|
|
IN UINTN DataSize,
|
|
|
|
IN VOID *ResetData
|
2016-08-10 07:21:47 +02:00
|
|
|
);
|
|
|
|
|
2019-02-21 01:59:39 +01:00
|
|
|
/**
|
|
|
|
The ResetSystem function resets the entire platform.
|
|
|
|
|
|
|
|
@param[in] ResetType The type of reset to perform.
|
|
|
|
@param[in] ResetStatus The status code for the reset.
|
|
|
|
@param[in] DataSize The size, in bytes, of ResetData.
|
|
|
|
@param[in] ResetData For a ResetType of EfiResetCold, EfiResetWarm, or EfiResetShutdown
|
|
|
|
the data buffer starts with a Null-terminated string, optionally
|
|
|
|
followed by additional binary data. The string is a description
|
|
|
|
that the caller may use to further indicate the reason for the
|
2019-02-27 07:14:43 +01:00
|
|
|
system reset.
|
2019-02-21 01:59:39 +01:00
|
|
|
**/
|
|
|
|
VOID
|
|
|
|
EFIAPI
|
|
|
|
ResetSystem (
|
2021-12-05 23:54:02 +01:00
|
|
|
IN EFI_RESET_TYPE ResetType,
|
|
|
|
IN EFI_STATUS ResetStatus,
|
|
|
|
IN UINTN DataSize,
|
|
|
|
IN VOID *ResetData OPTIONAL
|
2019-02-21 01:59:39 +01:00
|
|
|
);
|
|
|
|
|
2007-08-28 05:01:58 +02:00
|
|
|
#endif
|