TianoCore EDK2 master
Loading...
Searching...
No Matches
Reset.c File Reference
#include "PeiMain.h"

Go to the source code of this file.

Functions

EFI_STATUS EFIAPI PeiResetSystem (IN CONST EFI_PEI_SERVICES **PeiServices)
 
VOID EFIAPI PeiResetSystem2 (IN EFI_RESET_TYPE ResetType, IN EFI_STATUS ResetStatus, IN UINTN DataSize, IN VOID *ResetData OPTIONAL)
 

Detailed Description

Pei Core Reset System Support

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

Definition in file Reset.c.

Function Documentation

◆ PeiResetSystem()

EFI_STATUS EFIAPI PeiResetSystem ( IN CONST EFI_PEI_SERVICES **  PeiServices)

Core version of the Reset System

Parameters
PeiServicesAn indirect pointer to the EFI_PEI_SERVICES table published by the PEI Foundation.
Return values
EFI_NOT_AVAILABLE_YETPPI not available yet.
EFI_DEVICE_ERRORDid not reset system. Otherwise, resets the system.

Definition at line 25 of file Reset.c.

◆ PeiResetSystem2()

VOID EFIAPI PeiResetSystem2 ( IN EFI_RESET_TYPE  ResetType,
IN EFI_STATUS  ResetStatus,
IN UINTN  DataSize,
IN VOID *ResetData  OPTIONAL 
)

Resets the entire platform.

Parameters
[in]ResetTypeThe type of reset to perform.
[in]ResetStatusThe status code for the reset.
[in]DataSizeThe size, in bytes, of ResetData.
[in]ResetDataFor 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 system reset.

Definition at line 80 of file Reset.c.