TianoCore EDK2 master
Loading...
Searching...
No Matches
DxeResetShutdown.c File Reference
#include <Base.h>
#include <Library/BaseLib.h>
#include <Library/DebugLib.h>
#include <Library/IoLib.h>
#include <Library/PcdLib.h>
#include <Library/ResetSystemLib.h>
#include <OvmfPlatforms.h>

Go to the source code of this file.

Functions

EFI_STATUS EFIAPI DxeResetInit (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
 
VOID EFIAPI ResetShutdown (VOID)
 

Variables

STATIC UINT16 mAcpiPmBaseAddress
 
STATIC UINT16 mAcpiHwReducedSleepCtl
 

Detailed Description

DXE Reset System Library Shutdown API implementation for OVMF.

Copyright (C) 2020, Red Hat, Inc. Copyright (c) 2006 - 2019, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file DxeResetShutdown.c.

Function Documentation

◆ DxeResetInit()

EFI_STATUS EFIAPI DxeResetInit ( IN EFI_HANDLE  ImageHandle,
IN EFI_SYSTEM_TABLE SystemTable 
)

Definition at line 23 of file DxeResetShutdown.c.

◆ ResetShutdown()

VOID EFIAPI ResetShutdown ( VOID  )

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

System shutdown should not return, if it returns, it means the system does not support shut down reset.

Definition at line 59 of file DxeResetShutdown.c.

Variable Documentation

◆ mAcpiHwReducedSleepCtl

STATIC UINT16 mAcpiHwReducedSleepCtl

Definition at line 19 of file DxeResetShutdown.c.

◆ mAcpiPmBaseAddress

STATIC UINT16 mAcpiPmBaseAddress

Definition at line 18 of file DxeResetShutdown.c.