34 UINT16 AcpiPmBaseAddress;
35 UINT16 HostBridgeDevId;
37 AcpiPmBaseAddress = 0;
38 HostBridgeDevId =
PciRead16 (OVMF_HOSTBRIDGE_DID);
39 switch (HostBridgeDevId) {
40 case INTEL_82441_DEVICE_ID:
41 AcpiPmBaseAddress = PIIX4_PMBA_VALUE;
43 case INTEL_Q35_MCH_DEVICE_ID:
44 AcpiPmBaseAddress = ICH9_PMBASE_VALUE;
54 .Reason = XEN_SHED_SHUTDOWN_POWEROFF,
56 ReturnCode = XenHypercallSchedOp (XEN_SCHEDOP_SHUTDOWN, ShutdownOp);
57 ASSERT (ReturnCode == 0);
63 IoOr16 (AcpiPmBaseAddress + 4, BIT13);
VOID EFIAPI CpuDeadLoop(VOID)
VOID EFIAPI ResetShutdown(VOID)
UINT16 EFIAPI IoOr16(IN UINTN Port, IN UINT16 OrData)
UINT16 EFIAPI IoBitFieldWrite16(IN UINTN Port, IN UINTN StartBit, IN UINTN EndBit, IN UINT16 Value)
UINT16 EFIAPI PciRead16(IN UINTN Address)