]> git.proxmox.com Git - mirror_edk2.git/blame - MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystem.h
Remove unused CapsuleReset() in MdeModulePkg\Universal\ResetSystemRuntimeDxe\ResetSys...
[mirror_edk2.git] / MdeModulePkg / Universal / ResetSystemRuntimeDxe / ResetSystem.h
CommitLineData
51a0c5f2 1/** @file\r
2\r
7a0c1361 3 Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR>\r
51a0c5f2 4\r
5 This program and the accompanying materials\r
6 are licensed and made available under the terms and conditions of the BSD License\r
7 which accompanies this distribution. The full text of the license may be found at\r
8 http://opensource.org/licenses/bsd-license.php\r
9\r
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
12\r
13**/\r
14\r
15#ifndef _RESET_SYSTEM_H_\r
16#define _RESET_SYSTEM_H_\r
17\r
18\r
19#include <PiDxe.h>\r
20\r
21#include <Protocol/Reset.h>\r
22#include <Guid/CapsuleVendor.h>\r
23\r
24#include <Library/BaseLib.h>\r
25#include <Library/DebugLib.h>\r
26#include <Library/UefiLib.h>\r
27#include <Library/IoLib.h>\r
28#include <Library/UefiDriverEntryPoint.h>\r
29#include <Library/UefiBootServicesTableLib.h>\r
30#include <Library/UefiRuntimeLib.h>\r
31#include <Library/UefiRuntimeServicesTableLib.h>\r
32#include <Library/ResetSystemLib.h>\r
33\r
34/**\r
35 The driver's entry point.\r
36\r
37 It initializes the Reset Architectural Protocol.\r
38\r
39 @param[in] ImageHandle The firmware allocated handle for the EFI image. \r
40 @param[in] SystemTable A pointer to the EFI System Table.\r
41 \r
42 @retval EFI_SUCCESS The entry point is executed successfully.\r
43 @retval other Cannot install ResetArch protocol.\r
44\r
45**/\r
46EFI_STATUS\r
47EFIAPI\r
48InitializeResetSystem (\r
49 IN EFI_HANDLE ImageHandle,\r
50 IN EFI_SYSTEM_TABLE *SystemTable\r
51 );\r
52\r
53/**\r
54 Resets the entire platform.\r
55\r
56 @param[in] ResetType The type of reset to perform.\r
57 @param[in] ResetStatus The status code for the reset.\r
58 @param[in] DataSize The size, in bytes, of WatchdogData.\r
59 @param[in] ResetData For a ResetType of EfiResetCold, EfiResetWarm, or\r
60 EfiResetShutdown the data buffer starts with a Null-terminated\r
61 string, optionally followed by additional binary data.\r
62\r
63**/\r
64VOID\r
65EFIAPI\r
66ResetSystem (\r
67 IN EFI_RESET_TYPE ResetType,\r
68 IN EFI_STATUS ResetStatus,\r
69 IN UINTN DataSize,\r
70 IN VOID *ResetData OPTIONAL\r
71 );\r
72\r
51a0c5f2 73#endif\r