summaryrefslogtreecommitdiffstats
path: root/MdeModulePkg
diff options
context:
space:
mode:
authorrsun3 <rsun3@6f19259b-4bc3-4df7-8a09-765794883524>2011-10-18 03:33:03 +0000
committerrsun3 <rsun3@6f19259b-4bc3-4df7-8a09-765794883524>2011-10-18 03:33:03 +0000
commit5a3a6aa787dacb4d1c34a2ece72effc72e45ac21 (patch)
treefb732664116faf8dd41640e8b1d41edd433ebe85 /MdeModulePkg
parent515327a3e3f39f201da09a4916e8c820a104c3c4 (diff)
downloadedk2-5a3a6aa787dacb4d1c34a2ece72effc72e45ac21.tar.gz
edk2-5a3a6aa787dacb4d1c34a2ece72effc72e45ac21.tar.bz2
edk2-5a3a6aa787dacb4d1c34a2ece72effc72e45ac21.zip
MdeModulePkg PciBusDxe: Allows PCI device drivers to set the EFI_PCI_IO_ATTRIBUTE_DUAL_ADDRESS_CYCLE attribute for a PCI device.
Signed-off-by: rsun3 Reviewed-by: mdkinney git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12545 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg')
-rw-r--r--MdeModulePkg/Bus/Pci/PciBusDxe/PciEnumeratorSupport.c6
-rw-r--r--MdeModulePkg/Bus/Pci/PciBusDxe/PciIo.c6
2 files changed, 8 insertions, 4 deletions
diff --git a/MdeModulePkg/Bus/Pci/PciBusDxe/PciEnumeratorSupport.c b/MdeModulePkg/Bus/Pci/PciBusDxe/PciEnumeratorSupport.c
index 620933779c..ccec37b287 100644
--- a/MdeModulePkg/Bus/Pci/PciBusDxe/PciEnumeratorSupport.c
+++ b/MdeModulePkg/Bus/Pci/PciBusDxe/PciEnumeratorSupport.c
@@ -1130,8 +1130,12 @@ DetermineDeviceAttribute (
if (EFI_ERROR (Status)) {
return Status;
}
+ //
+ // Assume the PCI Root Bridge supports DAC
+ //
PciIoDevice->Supports |= (EFI_PCI_IO_ATTRIBUTE_EMBEDDED_DEVICE |
- EFI_PCI_IO_ATTRIBUTE_EMBEDDED_ROM);
+ EFI_PCI_IO_ATTRIBUTE_EMBEDDED_ROM |
+ EFI_PCI_IO_ATTRIBUTE_DUAL_ADDRESS_CYCLE);
} else {
diff --git a/MdeModulePkg/Bus/Pci/PciBusDxe/PciIo.c b/MdeModulePkg/Bus/Pci/PciBusDxe/PciIo.c
index e4bde1ebe9..64f1f1b7c8 100644
--- a/MdeModulePkg/Bus/Pci/PciBusDxe/PciIo.c
+++ b/MdeModulePkg/Bus/Pci/PciBusDxe/PciIo.c
@@ -1305,11 +1305,11 @@ ModifyRootBridgeAttributes (
}
//
- // Mask off EFI_PCI_IO_ATTRIBUTE_EMBEDDED_DEVICE &
- // EFI_PCI_IO_ATTRIBUTE_EMBEDDED_ROM, which are not supported by PCI root bridge.
+ // Mask off attributes not supported by PCI root bridge.
//
Attributes &= ~(UINT64)(EFI_PCI_IO_ATTRIBUTE_EMBEDDED_DEVICE |
- EFI_PCI_IO_ATTRIBUTE_EMBEDDED_ROM);
+ EFI_PCI_IO_ATTRIBUTE_EMBEDDED_ROM |
+ EFI_PCI_IO_ATTRIBUTE_DUAL_ADDRESS_CYCLE);
//
// Record the new attribute of the Root Bridge