TianoCore EDK2 master
Loading...
Searching...
No Matches
ResetSystemAcpiGed.c File Reference

Go to the source code of this file.

Functions

STATIC VOID AcpiGedReset (VOID)
 
STATIC VOID AcpiGedShutdown (VOID)
 
VOID EFIAPI ResetCold (VOID)
 
VOID EFIAPI ResetWarm (VOID)
 
VOID EFIAPI ResetPlatformSpecific (IN UINTN DataSize, IN VOID *ResetData)
 
VOID EFIAPI ResetShutdown (VOID)
 

Variables

POWER_MANAGER mPowerManager
 

Detailed Description

ResetSystem library implementation.

Copyright (c) 2024 Loongson Technology Corporation Limited. All rights reserved.

SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file ResetSystemAcpiGed.c.

Function Documentation

◆ AcpiGedReset()

STATIC VOID AcpiGedReset ( VOID  )

Calling this function causes a system-wide reset. This sets all circuitry within the system to its initial state. This type of reset is asynchronous to system operation and operates without regard to cycle boundaries.

System reset should not return, if it returns, it means the system does not support cold reset.

Definition at line 28 of file ResetSystemAcpiGed.c.

◆ AcpiGedShutdown()

STATIC VOID AcpiGedShutdown ( VOID  )

This function causes the system to enter a power state equivalent to the ACPI S5 states.

Definition at line 46 of file ResetSystemAcpiGed.c.

◆ ResetCold()

VOID EFIAPI ResetCold ( VOID  )

This function causes a system-wide reset (cold reset), in which all circuitry within the system returns to its initial state. This type of reset is asynchronous to system operation and operates without regard to cycle boundaries.

If this function returns, it means that the system does not support cold reset.

Definition at line 69 of file ResetSystemAcpiGed.c.

◆ ResetPlatformSpecific()

VOID EFIAPI ResetPlatformSpecific ( IN UINTN  DataSize,
IN VOID *  ResetData 
)

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.

Parameters
[in]DataSizeThe size, in bytes, of ResetData.
[in]ResetDataThe data buffer starts with a Null-terminated string, followed by the EFI_GUID.

Definition at line 104 of file ResetSystemAcpiGed.c.

◆ ResetShutdown()

VOID EFIAPI ResetShutdown ( VOID  )

This function causes the system to enter a power state equivalent to the ACPI G2/S5 or G3 states.

If this function returns, it means that the system does not support shut down reset.

Definition at line 120 of file ResetSystemAcpiGed.c.

◆ ResetWarm()

VOID EFIAPI ResetWarm ( VOID  )

This function causes a system-wide initialization (warm reset), in which all processors are set to their initial state. Pending cycles are not corrupted.

If this function returns, it means that the system does not support warm reset.

Definition at line 84 of file ResetSystemAcpiGed.c.

Variable Documentation

◆ mPowerManager

POWER_MANAGER mPowerManager

Definition at line 16 of file ResetSystemAcpiGed.c.