TianoCore EDK2
master
Loading...
Searching...
No Matches
BaseResetShutdownBhyve.c
Go to the documentation of this file.
1
11
#include <Base.h>
// BIT13
12
13
#include <
IndustryStandard/Bhyve.h
>
// BHYVE_PM_REG
14
#include <
Library/BaseLib.h
>
// CpuDeadLoop()
15
#include <
Library/IoLib.h
>
// IoOr16()
16
#include <
Library/ResetSystemLib.h
>
// ResetShutdown()
17
25
VOID
26
EFIAPI
27
ResetShutdown
(
28
VOID
29
)
30
{
31
IoBitFieldWrite16
(BHYVE_PM_REG, 10, 13, 5);
32
IoOr16
(BHYVE_PM_REG, BIT13);
33
CpuDeadLoop
();
34
}
BaseLib.h
CpuDeadLoop
VOID EFIAPI CpuDeadLoop(VOID)
Definition:
CpuDeadLoop.c:25
ResetShutdown
VOID EFIAPI ResetShutdown(VOID)
Definition:
BaseResetShutdownBhyve.c:27
Bhyve.h
IoLib.h
IoOr16
UINT16 EFIAPI IoOr16(IN UINTN Port, IN UINT16 OrData)
Definition:
IoHighLevel.c:325
IoBitFieldWrite16
UINT16 EFIAPI IoBitFieldWrite16(IN UINTN Port, IN UINTN StartBit, IN UINTN EndBit, IN UINT16 Value)
Definition:
IoHighLevel.c:453
ResetSystemLib.h
OvmfPkg
Library
ResetSystemLib
BaseResetShutdownBhyve.c
Generated on Fri Nov 15 2024 18:01:21 for TianoCore EDK2 by
1.9.6