Import ResetSystemLib.
authoryshang1 <yshang1@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 28 Aug 2007 03:01:58 +0000 (03:01 +0000)
committeryshang1 <yshang1@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 28 Aug 2007 03:01:58 +0000 (03:01 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3720 6f19259b-4bc3-4df7-8a09-765794883524

MdeModulePkg/Include/Library/ResetSystemLib.h [new file with mode: 0644]
MdeModulePkg/MdeModulePkg.dec

diff --git a/MdeModulePkg/Include/Library/ResetSystemLib.h b/MdeModulePkg/Include/Library/ResetSystemLib.h
new file mode 100644 (file)
index 0000000..fd92135
--- /dev/null
@@ -0,0 +1,72 @@
+/** @file\r
+  System reset Library Services.  This library class defines a set of\r
+  methods to reset whole system.\r
+\r
+  Copyright (c) 2005 - 2007, Intel Corporation\r
+  All rights reserved. This program and the accompanying materials\r
+  are licensed and made available under the terms and conditions of the BSD License\r
+  which accompanies this distribution.  The full text of the license may be found at\r
+  http://opensource.org/licenses/bsd-license.php\r
+  \r
+  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+\r
+**/\r
+\r
+#ifndef __RESET_SYSTEM_LIB_H__\r
+#define __RESET_SYSTEM_LIB_H__\r
+\r
+/**\r
+  Calling this function causes a system-wide reset. This sets\r
+  all circuitry within the system to its initial state. This type of reset \r
+  is asynchronous to system operation and operates without regard to \r
+  cycle boundaries.\r
+\r
+  System reset should not return, if it returns, it means the system does \r
+  not support cold reset.\r
+**/\r
+VOID\r
+EFIAPI\r
+ResetCold (\r
+  VOID\r
+  );\r
+\r
+/**\r
+  Calling this function causes a system-wide initialization. The processors \r
+  are set to their initial state, and pending cycles are not corrupted.\r
+\r
+  System reset should not return, if it returns, it means the system does \r
+  not support warm reset.\r
+**/\r
+VOID\r
+EFIAPI\r
+ResetWarm (\r
+  VOID\r
+  );\r
+\r
+/**\r
+  Calling this function causes the system to enter a power state equivalent \r
+  to the ACPI G2/S5 or G3 states.\r
+  \r
+  System shutdown should not return, if it returns, it means the system does \r
+  not support shut down reset.\r
+**/\r
+VOID\r
+EFIAPI\r
+ResetShutdown (\r
+  VOID\r
+  );\r
+\r
+/**\r
+  Calling this function causes the system to enter S3 and then\r
+  wake up immediately.\r
+  \r
+  Reset update should not return, if it returns, it means the\r
+  library does not the feature.\r
+**/\r
+VOID\r
+EFIAPI\r
+EnterS3WithImmediateWake (\r
+  VOID\r
+  );\r
+#endif\r
index e6a93479694714f92dd8ed7eb49ae49747ce5fac..170910a203df012a11d1522db9d38753264a7b6a 100644 (file)
 [Includes.common]\r
   Include\r
 \r
+\r
+[LibraryClasses.common]\r
+  IpIoLib|Include/Library/IpIoLib.h\r
+  NetLib|Include/Library/NetLib.h  \r
+  PeCoffLoaderLib|Include/Library/PeCoffLoaderLib.h  \r
+  ResetSystemLib|Include/Library/ResetSystemLib.h  \r
+  UdpIoLib|Include/Library/UdpIoLib.h\r
+\r
 [Guids.common]\r
 \r
   gPcdDataBaseHobGuid            = { 0xEA296D92, 0x0B69, 0x423C, { 0x8C, 0x28, 0x33, 0xB4, 0xE0, 0xA9, 0x12, 0x68 }}\r