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

Go to the source code of this file.

Functions

STATIC VOID * GetFwCfgData (CONST CHAR8 *Name)
 
STATIC EFI_STATUS GetPowerManagerByParseAcpiInfo (VOID)
 
EFI_STATUS EFI_API ResetSystemLibConstructor (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
 

Detailed Description

Base ResetSystem library implementation.

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

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

Definition in file BaseResetSystemAcpiGed.c.

Function Documentation

◆ GetFwCfgData()

STATIC VOID * GetFwCfgData ( CONST CHAR8 *  Name)

Get configuration item data by the firmware configuration file name.

Parameters
[in]Name- Name of file to look up.
Returns
VOID* The Pointer of Value of Firmware Configuration item read.

Definition at line 24 of file BaseResetSystemAcpiGed.c.

◆ GetPowerManagerByParseAcpiInfo()

STATIC EFI_STATUS GetPowerManagerByParseAcpiInfo ( VOID  )

Find the power manager related info from ACPI table

Return values
EFI_SUCCESSSuccessfully find out all the required information.
EFI_NOT_FOUNDFailed to find the required info.

Definition at line 58 of file BaseResetSystemAcpiGed.c.

◆ ResetSystemLibConstructor()

EFI_STATUS EFI_API ResetSystemLibConstructor ( IN EFI_HANDLE  ImageHandle,
IN EFI_SYSTEM_TABLE SystemTable 
)

The constructor function to initialize mPowerManager.

Return values
EFI_SUCCESSInitialize mPowerManager success.
EFI_NOT_FOUNDFailed to initialize mPowerManager.

Definition at line 134 of file BaseResetSystemAcpiGed.c.