31 UINT16 AcpiPmBaseAddress;
32 UINT16 HostBridgeDevId;
34 AcpiPmBaseAddress = 0;
35 HostBridgeDevId =
PciRead16 (OVMF_HOSTBRIDGE_DID);
36 switch (HostBridgeDevId) {
37 case INTEL_82441_DEVICE_ID:
38 AcpiPmBaseAddress = PIIX4_PMBA_VALUE;
40 case INTEL_Q35_MCH_DEVICE_ID:
41 AcpiPmBaseAddress = ICH9_PMBASE_VALUE;
43 case CLOUDHV_DEVICE_ID:
44 IoWrite8 (CLOUDHV_ACPI_SHUTDOWN_IO_ADDRESS, 5 << 2 | 1 << 5);
52 IoOr16 (AcpiPmBaseAddress + 4, BIT13);
VOID EFIAPI CpuDeadLoop(VOID)
VOID EFIAPI ResetShutdown(VOID)
UINT8 EFIAPI IoWrite8(IN UINTN Port, IN UINT8 Value)
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)