Revision: 13721
          http://edk2.svn.sourceforge.net/edk2/?rev=13721&view=rev
Author:   jljusten
Date:     2012-09-12 07:19:04 +0000 (Wed, 12 Sep 2012)
Log Message:
-----------
OvmfPkg: use PCI_COMMAND_OFFSET/EFI_PCI_COMMAND_IO_SPACE in AcpiTimerLib

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <[email protected]>
Reviewed-by: Jordan Justen <[email protected]>

Modified Paths:
--------------
    trunk/edk2/OvmfPkg/Library/AcpiTimerLib/AcpiTimerLib.c

Modified: trunk/edk2/OvmfPkg/Library/AcpiTimerLib/AcpiTimerLib.c
===================================================================
--- trunk/edk2/OvmfPkg/Library/AcpiTimerLib/AcpiTimerLib.c      2012-09-12 
07:18:50 UTC (rev 13720)
+++ trunk/edk2/OvmfPkg/Library/AcpiTimerLib/AcpiTimerLib.c      2012-09-12 
07:19:04 UTC (rev 13721)
@@ -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 @@
 
     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
+      );
   }
 
   //

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to