diff options
author | vanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-06-18 03:03:59 +0000 |
---|---|---|
committer | vanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-06-18 03:03:59 +0000 |
commit | 94b9d5c6da117747458b25b02787b5c2f446297d (patch) | |
tree | d6279fd7e8a2daca1a078b926533858203b71dd6 /IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciIo.c | |
parent | 432bdae1f55464b672dfccce567666517a1d34d5 (diff) | |
download | edk2-platforms-94b9d5c6da117747458b25b02787b5c2f446297d.tar.xz |
1. used PciPlatfromProtocolGuid to get VgaIo and IsaIo supported capability.
2. Fixed ECC issues.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8591 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciIo.c')
-rw-r--r-- | IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciIo.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciIo.c b/IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciIo.c index 7975505328..f2cc373b98 100644 --- a/IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciIo.c +++ b/IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciIo.c @@ -1230,7 +1230,7 @@ SupportPaletteSnoopAttributes ( //
if (Temp->Parent == PciIoDevice->Parent) {
- PciReadCommandRegister (Temp, &VGACommand);
+ PCI_READ_COMMAND_REGISTER (Temp, &VGACommand);
//
// If they are on the same bus, either one can
@@ -1266,7 +1266,7 @@ SupportPaletteSnoopAttributes ( // GFX should be set to decode
//
if (Operation == EfiPciIoAttributeOperationDisable) {
- PciEnableCommandRegister (Temp, EFI_PCI_COMMAND_VGA_PALETTE_SNOOP);
+ PCI_ENABLE_COMMAND_REGISTER (Temp, EFI_PCI_COMMAND_VGA_PALETTE_SNOOP);
Temp->Attributes |= EFI_PCI_COMMAND_VGA_PALETTE_SNOOP;
} else {
return EFI_UNSUPPORTED;
@@ -1277,7 +1277,7 @@ SupportPaletteSnoopAttributes ( // GFX should be set to snoop
//
if (Operation == EfiPciIoAttributeOperationEnable) {
- PciDisableCommandRegister (Temp, EFI_PCI_COMMAND_VGA_PALETTE_SNOOP);
+ PCI_DISABLE_COMMAND_REGISTER (Temp, EFI_PCI_COMMAND_VGA_PALETTE_SNOOP);
Temp->Attributes &= (~EFI_PCI_COMMAND_VGA_PALETTE_SNOOP);
} else {
return EFI_UNSUPPORTED;
@@ -1536,9 +1536,9 @@ PciIoAttributes ( //
// Enable relevant attributes to command register and bridge control register
//
- Status = PciEnableCommandRegister (PciIoDevice, Command);
+ Status = PCI_ENABLE_COMMAND_REGISTER (PciIoDevice, Command);
if (BridgeControl != 0) {
- Status = PciEnableBridgeControlRegister (PciIoDevice, BridgeControl);
+ Status = PCI_ENABLE_BRIDGE_CONTROL_REGISTER (PciIoDevice, BridgeControl);
}
PciIoDevice->Attributes |= Attributes;
@@ -1557,9 +1557,9 @@ PciIoAttributes ( //
// Disable relevant attributes to command register and bridge control register
//
- Status = PciDisableCommandRegister (PciIoDevice, Command);
+ Status = PCI_DISABLE_COMMAND_REGISTER (PciIoDevice, Command);
if (BridgeControl != 0) {
- Status = PciDisableBridgeControlRegister (PciIoDevice, BridgeControl);
+ Status = PCI_DISABLE_BRIDGE_CONTROL_REGISTER (PciIoDevice, BridgeControl);
}
PciIoDevice->Attributes &= (~Attributes);
|