3 Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
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
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.
15 #ifndef _RESET_SYSTEM_H_
16 #define _RESET_SYSTEM_H_
21 #include <Protocol/Reset.h>
22 #include <Guid/CapsuleVendor.h>
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>
35 The driver's entry point.
37 It initializes the Reset Architectural Protocol.
39 @param[in] ImageHandle The firmware allocated handle for the EFI image.
40 @param[in] SystemTable A pointer to the EFI System Table.
42 @retval EFI_SUCCESS The entry point is executed successfully.
43 @retval other Cannot install ResetArch protocol.
48 InitializeResetSystem (
49 IN EFI_HANDLE ImageHandle
,
50 IN EFI_SYSTEM_TABLE
*SystemTable
54 Resets the entire platform.
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.
67 IN EFI_RESET_TYPE ResetType
,
68 IN EFI_STATUS ResetStatus
,
70 IN VOID
*ResetData OPTIONAL
74 Reset system for capsule update.
76 @param[in] CapsuleDataPtr Pointer to the capsule block descriptors.
81 IN UINTN CapsuleDataPtr