VirtualBox

source: vbox/trunk/src/VBox/Devices/EFI/Firmware/MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystem.h@ 48674

最後變更 在這個檔案從48674是 48674,由 vboxsync 提交於 11 年 前

EFI: Export newly imported tinaocore UEFI sources to OSE.

  • 屬性 svn:eol-style 設為 native
檔案大小: 2.3 KB
 
1/** @file
2
3 Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
4
5 This program and the accompanying materials
6 are licensed and made available under the terms and conditions of the BSD License
7 which accompanies this distribution. The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php
9
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
12
13**/
14
15#ifndef _RESET_SYSTEM_H_
16#define _RESET_SYSTEM_H_
17
18
19#include <PiDxe.h>
20
21#include <Protocol/Reset.h>
22#include <Guid/CapsuleVendor.h>
23
24#include <Library/BaseLib.h>
25#include <Library/DebugLib.h>
26#include <Library/UefiLib.h>
27#include <Library/IoLib.h>
28#include <Library/UefiDriverEntryPoint.h>
29#include <Library/UefiBootServicesTableLib.h>
30#include <Library/UefiRuntimeLib.h>
31#include <Library/UefiRuntimeServicesTableLib.h>
32#include <Library/ResetSystemLib.h>
33
34/**
35 The driver's entry point.
36
37 It initializes the Reset Architectural Protocol.
38
39 @param[in] ImageHandle The firmware allocated handle for the EFI image.
40 @param[in] SystemTable A pointer to the EFI System Table.
41
42 @retval EFI_SUCCESS The entry point is executed successfully.
43 @retval other Cannot install ResetArch protocol.
44
45**/
46EFI_STATUS
47EFIAPI
48InitializeResetSystem (
49 IN EFI_HANDLE ImageHandle,
50 IN EFI_SYSTEM_TABLE *SystemTable
51 );
52
53/**
54 Resets the entire platform.
55
56 @param[in] ResetType The type of reset to perform.
57 @param[in] ResetStatus The status code for the reset.
58 @param[in] DataSize The size, in bytes, of WatchdogData.
59 @param[in] ResetData For a ResetType of EfiResetCold, EfiResetWarm, or
60 EfiResetShutdown the data buffer starts with a Null-terminated
61 string, optionally followed by additional binary data.
62
63**/
64VOID
65EFIAPI
66ResetSystem (
67 IN EFI_RESET_TYPE ResetType,
68 IN EFI_STATUS ResetStatus,
69 IN UINTN DataSize,
70 IN VOID *ResetData OPTIONAL
71 );
72
73/**
74 Reset system for capsule update.
75
76 @param[in] CapsuleDataPtr Pointer to the capsule block descriptors.
77
78**/
79VOID
80CapsuleReset (
81 IN UINTN CapsuleDataPtr
82 );
83
84#endif
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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