]>
Commit | Line | Data |
---|---|---|
064d5de3 | 1 | /** @file\r |
2 | Null Reset System Library instance that only generates ASSERT() conditions.\r | |
3 | \r | |
eeef069d | 4 | Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>\r |
cd5ebaa0 | 5 | This program and the accompanying materials\r |
064d5de3 | 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 | #include <Base.h>\r | |
16 | \r | |
17 | #include <Library/ResetSystemLib.h>\r | |
18 | #include <Library/DebugLib.h>\r | |
19 | \r | |
20 | /**\r | |
21 | This function causes a system-wide reset (cold reset), in which\r | |
22 | all circuitry within the system returns to its initial state. This type of reset \r | |
23 | is asynchronous to system operation and operates without regard to\r | |
24 | cycle boundaries.\r | |
25 | \r | |
26 | If this function returns, it means that the system does not support cold reset. \r | |
27 | **/\r | |
28 | VOID\r | |
29 | EFIAPI\r | |
30 | ResetCold (\r | |
31 | VOID\r | |
32 | )\r | |
33 | {\r | |
34 | ASSERT (FALSE);\r | |
35 | }\r | |
36 | \r | |
37 | /**\r | |
38 | This function causes a system-wide initialization (warm reset), in which all processors \r | |
39 | are set to their initial state. Pending cycles are not corrupted.\r | |
40 | \r | |
41 | If this function returns, it means that the system does not support warm reset.\r | |
42 | **/\r | |
43 | VOID\r | |
44 | EFIAPI\r | |
45 | ResetWarm (\r | |
46 | VOID\r | |
47 | )\r | |
48 | {\r | |
49 | ASSERT (FALSE);\r | |
50 | }\r | |
51 | \r | |
52 | /**\r | |
53 | This function causes the system to enter a power state equivalent \r | |
54 | to the ACPI G2/S5 or G3 states.\r | |
55 | \r | |
56 | If this function returns, it means that the system does not support shut down reset.\r | |
57 | **/\r | |
58 | VOID\r | |
59 | EFIAPI\r | |
60 | ResetShutdown (\r | |
61 | VOID\r | |
62 | )\r | |
63 | {\r | |
64 | ASSERT (FALSE);\r | |
65 | }\r | |
66 | \r | |
67 | /**\r | |
68 | This function causes the system to enter S3 and then wake up immediately.\r | |
69 | \r | |
70 | If this function returns, it means that the system does not support S3 feature.\r | |
71 | **/\r | |
72 | VOID\r | |
73 | EFIAPI\r | |
74 | EnterS3WithImmediateWake (\r | |
75 | VOID\r | |
76 | )\r | |
77 | {\r | |
78 | ASSERT (FALSE);\r | |
79 | }\r | |
eeef069d RN |
80 | \r |
81 | /**\r | |
82 | This function causes a systemwide reset. The exact type of the reset is\r | |
83 | defined by the EFI_GUID that follows the Null-terminated Unicode string passed\r | |
84 | into ResetData. If the platform does not recognize the EFI_GUID in ResetData\r | |
85 | the platform must pick a supported reset type to perform.The platform may\r | |
86 | optionally log the parameters from any non-normal reset that occurs.\r | |
87 | \r | |
88 | @param[in] DataSize The size, in bytes, of ResetData.\r | |
89 | @param[in] ResetData The data buffer starts with a Null-terminated string,\r | |
90 | followed by the EFI_GUID.\r | |
91 | **/\r | |
92 | VOID\r | |
93 | EFIAPI\r | |
94 | ResetPlatformSpecific (\r | |
95 | IN UINTN DataSize,\r | |
96 | IN VOID *ResetData\r | |
97 | )\r | |
98 | {\r | |
99 | ResetCold ();\r | |
100 | }\r |