]> git.proxmox.com Git - mirror_edk2.git/blame - MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystem.h
Add missing status code in several modules.
[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
37623a5c 33#include <Library/ReportStatusCodeLib.h>\r
51a0c5f2 34\r
35/**\r
36 The driver's entry point.\r
37\r
38 It initializes the Reset Architectural Protocol.\r
39\r
40 @param[in] ImageHandle The firmware allocated handle for the EFI image. \r
41 @param[in] SystemTable A pointer to the EFI System Table.\r
42 \r
43 @retval EFI_SUCCESS The entry point is executed successfully.\r
44 @retval other Cannot install ResetArch protocol.\r
45\r
46**/\r
47EFI_STATUS\r
48EFIAPI\r
49InitializeResetSystem (\r
50 IN EFI_HANDLE ImageHandle,\r
51 IN EFI_SYSTEM_TABLE *SystemTable\r
52 );\r
53\r
54/**\r
55 Resets the entire platform.\r
56\r
57 @param[in] ResetType The type of reset to perform.\r
58 @param[in] ResetStatus The status code for the reset.\r
59 @param[in] DataSize The size, in bytes, of WatchdogData.\r
60 @param[in] ResetData For a ResetType of EfiResetCold, EfiResetWarm, or\r
61 EfiResetShutdown the data buffer starts with a Null-terminated\r
62 string, optionally followed by additional binary data.\r
63\r
64**/\r
65VOID\r
66EFIAPI\r
67ResetSystem (\r
68 IN EFI_RESET_TYPE ResetType,\r
69 IN EFI_STATUS ResetStatus,\r
70 IN UINTN DataSize,\r
71 IN VOID *ResetData OPTIONAL\r
72 );\r
73\r
51a0c5f2 74#endif\r