From ed1a2d42d5d54b6096b6e5121b0e5b7410b24108 Mon Sep 17 00:00:00 2001 From: Laszlo Ersek Date: Tue, 21 Feb 2017 14:43:00 +0100 Subject: OvmfPkg/QemuFwCfg: introduce FW_CFG_IO_DMA_ADDRESS, adapt the package Introduce the FW_CFG_IO_DMA_ADDRESS macro for IO Ports 0x514 and 0x518 (most significant and least significant halves of the DMA Address Register, respectively), and update all references in OvmfPkg. Cc: Jordan Justen Suggested-by: Jordan Justen Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen --- OvmfPkg/AcpiPlatformDxe/BootScript.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'OvmfPkg/AcpiPlatformDxe') diff --git a/OvmfPkg/AcpiPlatformDxe/BootScript.c b/OvmfPkg/AcpiPlatformDxe/BootScript.c index 1ad468e2f8..bff42ad8b9 100644 --- a/OvmfPkg/AcpiPlatformDxe/BootScript.c +++ b/OvmfPkg/AcpiPlatformDxe/BootScript.c @@ -317,7 +317,7 @@ TransferS3ContextToBootScript ( S3SaveState, // This EFI_BOOT_SCRIPT_IO_WRITE_OPCODE, // OpCode EfiBootScriptWidthUint32, // Width - (UINT64)0x514, // Address + (UINT64)FW_CFG_IO_DMA_ADDRESS, // Address (UINTN)2, // Count &BigEndianAddressOfAccess // Buffer ); @@ -376,7 +376,7 @@ TransferS3ContextToBootScript ( S3SaveState, // This EFI_BOOT_SCRIPT_IO_WRITE_OPCODE, // OpCode EfiBootScriptWidthUint32, // Width - (UINT64)0x514, // Address + (UINT64)FW_CFG_IO_DMA_ADDRESS, // Address (UINTN)2, // Count &BigEndianAddressOfAccess // Buffer ); -- cgit v1.2.3