diff options
author | Ruiyu Ni <ruiyu.ni@intel.com> | 2016-08-10 13:21:47 +0800 |
---|---|---|
committer | Ruiyu Ni <ruiyu.ni@intel.com> | 2016-09-02 10:07:14 +0800 |
commit | d4283a78154395612af7db4500015f38716dc04d (patch) | |
tree | 9949c6f8237541ec9dc0661becf3dbeed70bc254 /MdeModulePkg/Include | |
parent | e963b7468f8e739fda38ec9ed8c66ac5e5ad46bf (diff) | |
download | edk2-d4283a78154395612af7db4500015f38716dc04d.tar.gz edk2-d4283a78154395612af7db4500015f38716dc04d.tar.bz2 edk2-d4283a78154395612af7db4500015f38716dc04d.zip |
MdeModulePkg: Add API ResetPlatformSpecific() to ResetSystemLib.h
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Feng Tian <feng.tian@intel.com>
Cc: Amy Chan <amy.chan@intel.com>
Diffstat (limited to 'MdeModulePkg/Include')
-rw-r--r-- | MdeModulePkg/Include/Library/ResetSystemLib.h | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/MdeModulePkg/Include/Library/ResetSystemLib.h b/MdeModulePkg/Include/Library/ResetSystemLib.h index f95293470b..f98c9a6549 100644 --- a/MdeModulePkg/Include/Library/ResetSystemLib.h +++ b/MdeModulePkg/Include/Library/ResetSystemLib.h @@ -2,7 +2,7 @@ System reset Library Services. This library class defines a set of
methods that reset the whole system.
-Copyright (c) 2005 - 2010, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2005 - 2016, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials are licensed and made available under
the terms and conditions of the BSD License that accompanies this distribution.
The full text of the license may be found at
@@ -64,5 +64,23 @@ EFIAPI EnterS3WithImmediateWake (
VOID
);
-
+
+/**
+ This function causes a systemwide reset. The exact type of the reset is
+ defined by the EFI_GUID that follows the Null-terminated Unicode string passed
+ into ResetData. If the platform does not recognize the EFI_GUID in ResetData
+ the platform must pick a supported reset type to perform.The platform may
+ optionally log the parameters from any non-normal reset that occurs.
+
+ @param[in] DataSize The size, in bytes, of ResetData.
+ @param[in] ResetData The data buffer starts with a Null-terminated string,
+ followed by the EFI_GUID.
+**/
+VOID
+EFIAPI
+ResetPlatformSpecific (
+ IN UINTN DataSize,
+ IN VOID *ResetData
+ );
+
#endif
|