summaryrefslogtreecommitdiff
path: root/OvmfPkg/Library/AcpiTimerLib/AcpiTimerLib.c
diff options
context:
space:
mode:
authorjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>2012-09-12 07:19:04 +0000
committerjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>2012-09-12 07:19:04 +0000
commit5a624588eb2f36a149b0d3be8ab47604e7524215 (patch)
tree5cd7ee0a101ee8d85e050e11d31eac3a5d4b5d1b /OvmfPkg/Library/AcpiTimerLib/AcpiTimerLib.c
parenta1eff44b5ef7ef4cd96ecc54960dcfb18a455fb8 (diff)
downloadedk2-platforms-5a624588eb2f36a149b0d3be8ab47604e7524215.tar.xz
OvmfPkg: use PCI_COMMAND_OFFSET/EFI_PCI_COMMAND_IO_SPACE in AcpiTimerLib
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com> git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13721 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'OvmfPkg/Library/AcpiTimerLib/AcpiTimerLib.c')
-rw-r--r--OvmfPkg/Library/AcpiTimerLib/AcpiTimerLib.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/OvmfPkg/Library/AcpiTimerLib/AcpiTimerLib.c b/OvmfPkg/Library/AcpiTimerLib/AcpiTimerLib.c
index 8f4a5b3d1e..201ef48d2d 100644
--- a/OvmfPkg/Library/AcpiTimerLib/AcpiTimerLib.c
+++ b/OvmfPkg/Library/AcpiTimerLib/AcpiTimerLib.c
@@ -21,6 +21,7 @@
#include <Library/PciLib.h>
#include <Library/DebugLib.h>
#include <Library/PcdLib.h>
+#include <IndustryStandard/Pci22.h>
//
// PIIX4 Power Management Base Address
@@ -61,7 +62,10 @@ AcpiTimerLibConstructor (
PciAndThenOr32 (PCI_LIB_ADDRESS (0,Device,3,0x40),
(UINT32) ~0xFFC0, mPmba);
- PciOr8 (PCI_LIB_ADDRESS (0,Device,3,0x04), 0x01);
+ PciOr8 (
+ PCI_LIB_ADDRESS (0, Device, 3, PCI_COMMAND_OFFSET),
+ EFI_PCI_COMMAND_IO_SPACE
+ );
}
//