mirror of https://github.com/acidanthera/audk.git
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
This commit is contained in:
parent
a1eff44b5e
commit
5a624588eb
|
@ -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
|
||||
);
|
||||
}
|
||||
|
||||
//
|
||||
|
|
Loading…
Reference in New Issue