#include <Library/BaseLib.h>\r
#include <Library/DebugLib.h>\r
#include <Library/IoLib.h>\r
-#include <Library/PcdLib.h>\r
#include <Library/TimerLib.h>\r
\r
+#include <OvmfPlatforms.h>\r
+\r
VOID\r
AcpiPmControl (\r
UINTN SuspendType\r
{\r
ASSERT (SuspendType < 6);\r
\r
- IoBitFieldWrite16 (PcdGet16 (PcdAcpiPmBaseAddress) + 4, 10, 13, (UINT16) SuspendType);\r
- IoOr16 (PcdGet16 (PcdAcpiPmBaseAddress) + 4, BIT13);\r
+ IoBitFieldWrite16 (PIIX4_PMBA_VALUE + 4, 10, 13, (UINT16) SuspendType);\r
+ IoOr16 (PIIX4_PMBA_VALUE + 4, BIT13);\r
CpuDeadLoop ();\r
}\r
\r