TianoCore EDK2 master
Loading...
Searching...
No Matches
ResetSystemAcpiGed.c
Go to the documentation of this file.
1
10#include <Library/BaseLib.h> // CpuDeadLoop()
11#include <Library/DebugLib.h>
12#include <Library/IoLib.h>
13#include <Library/ResetSystemLib.h> // ResetCold()
14#include "ResetSystemAcpiGed.h"
15
16POWER_MANAGER mPowerManager;
17
27STATIC VOID
29 VOID
30 )
31{
33 (UINTN)mPowerManager.ResetRegAddr,
34 mPowerManager.ResetValue
35 );
36
37 CpuDeadLoop ();
38}
39
45STATIC VOID
47 VOID
48 )
49{
51 (UINTN)mPowerManager.SleepControlRegAddr,
52 (1 << 5) /* enable bit */ |
53 (5 << 2) /* typ == S5 */
54 );
55
56 CpuDeadLoop ();
57}
58
68VOID EFIAPI
70 VOID
71 )
72{
73 AcpiGedReset ();
74}
75
83VOID EFIAPI
85 VOID
86 )
87{
88 AcpiGedReset ();
89}
90
102VOID
103EFIAPI
105 IN UINTN DataSize,
106 IN VOID *ResetData
107 )
108{
109 AcpiGedReset ();
110}
111
119VOID EFIAPI
121 VOID
122 )
123{
125}
UINT64 UINTN
VOID EFIAPI CpuDeadLoop(VOID)
Definition: CpuDeadLoop.c:25
UINT8 EFIAPI MmioWrite8(IN UINTN Address, IN UINT8 Value)
Definition: IoLib.c:126
#define STATIC
Definition: Base.h:264
#define IN
Definition: Base.h:279
VOID EFIAPI ResetWarm(VOID)
VOID EFIAPI ResetShutdown(VOID)
VOID EFIAPI ResetPlatformSpecific(IN UINTN DataSize, IN VOID *ResetData)
STATIC VOID AcpiGedShutdown(VOID)
VOID EFIAPI ResetCold(VOID)
STATIC VOID AcpiGedReset(VOID)