VirtualBox

source: vbox/trunk/src/VBox/Devices/EFI/FirmwareNew/MdeModulePkg/Include/Library/ResetSystemLib.h@ 109091

Last change on this file since 109091 was 99404, checked in by vboxsync, 2 years ago

Devices/EFI/FirmwareNew: Update to edk2-stable202302 and make it build, bugref:4643

  • Property svn:eol-style set to native
File size: 2.7 KB
Line 
1/** @file
2 System reset Library Services. This library class defines a set of
3 methods that reset the whole system.
4
5Copyright (c) 2005 - 2019, Intel Corporation. All rights reserved.<BR>
6SPDX-License-Identifier: BSD-2-Clause-Patent
7
8**/
9
10#ifndef __RESET_SYSTEM_LIB_H__
11#define __RESET_SYSTEM_LIB_H__
12
13#include <Uefi/UefiBaseType.h>
14#include <Uefi/UefiMultiPhase.h>
15
16/**
17 This function causes a system-wide reset (cold reset), in which
18 all circuitry within the system returns to its initial state. This type of reset
19 is asynchronous to system operation and operates without regard to
20 cycle boundaries.
21
22 If this function returns, it means that the system does not support cold reset.
23**/
24VOID
25EFIAPI
26ResetCold (
27 VOID
28 );
29
30/**
31 This function causes a system-wide initialization (warm reset), in which all processors
32 are set to their initial state. Pending cycles are not corrupted.
33
34 If this function returns, it means that the system does not support warm reset.
35**/
36VOID
37EFIAPI
38ResetWarm (
39 VOID
40 );
41
42/**
43 This function causes the system to enter a power state equivalent
44 to the ACPI G2/S5 or G3 states.
45
46 If this function returns, it means that the system does not support shutdown reset.
47**/
48VOID
49EFIAPI
50ResetShutdown (
51 VOID
52 );
53
54/**
55 This function causes a systemwide reset. The exact type of the reset is
56 defined by the EFI_GUID that follows the Null-terminated Unicode string passed
57 into ResetData. If the platform does not recognize the EFI_GUID in ResetData
58 the platform must pick a supported reset type to perform.The platform may
59 optionally log the parameters from any non-normal reset that occurs.
60
61 @param[in] DataSize The size, in bytes, of ResetData.
62 @param[in] ResetData The data buffer starts with a Null-terminated string,
63 followed by the EFI_GUID.
64**/
65VOID
66EFIAPI
67ResetPlatformSpecific (
68 IN UINTN DataSize,
69 IN VOID *ResetData
70 );
71
72/**
73 The ResetSystem function resets the entire platform.
74
75 @param[in] ResetType The type of reset to perform.
76 @param[in] ResetStatus The status code for the reset.
77 @param[in] DataSize The size, in bytes, of ResetData.
78 @param[in] ResetData For a ResetType of EfiResetCold, EfiResetWarm, or EfiResetShutdown
79 the data buffer starts with a Null-terminated string, optionally
80 followed by additional binary data. The string is a description
81 that the caller may use to further indicate the reason for the
82 system reset.
83**/
84VOID
85EFIAPI
86ResetSystem (
87 IN EFI_RESET_TYPE ResetType,
88 IN EFI_STATUS ResetStatus,
89 IN UINTN DataSize,
90 IN VOID *ResetData OPTIONAL
91 );
92
93#endif
Note: See TracBrowser for help on using the repository browser.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette