summaryrefslogtreecommitdiffstats
path: root/MdeModulePkg/Bus/Pci/PciBusDxe/PciBus.h
diff options
context:
space:
mode:
authorRuiyu Ni <ruiyu.ni@intel.com>2016-04-01 16:14:07 +0800
committerRuiyu Ni <ruiyu.ni@intel.com>2016-05-23 13:49:41 +0800
commit05070c1b471b0d2af759f582e3c305859cd36b23 (patch)
tree50799f8a35b2437291fcde39d0f758a146df982c /MdeModulePkg/Bus/Pci/PciBusDxe/PciBus.h
parentea669c1ba3313e9192a0dcee2dd7e4e6da75eddf (diff)
downloadedk2-05070c1b471b0d2af759f582e3c305859cd36b23.tar.gz
edk2-05070c1b471b0d2af759f582e3c305859cd36b23.tar.bz2
edk2-05070c1b471b0d2af759f582e3c305859cd36b23.zip
MdeModulePkg/PciBus: do not improperly degrade resource
PciBus driver originally always degrade (64->32) the MMIO resource for PCI BAR when the PCI device contains option ROM. But the degrade causes the PCI device can only use resource below 4GB which makes the resource allocation fails when the PCI device wants very big MMIO. The patch follows the PI spec (ECR 1529) to honor the granularity setting for PCI BAR from IncompatiblePciDeviceSupport so that even for PCI device which contains option ROM, the degrade doesn't happen if IncompatiblePciDeviceSupport returns 64 as granularity. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com> Reviewed-by: Jeff Fan <jeff.fan@intel.com> Tested-by: Laszlo Ersek <lersek@redhat.com>
Diffstat (limited to 'MdeModulePkg/Bus/Pci/PciBusDxe/PciBus.h')
-rw-r--r--MdeModulePkg/Bus/Pci/PciBusDxe/PciBus.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/MdeModulePkg/Bus/Pci/PciBusDxe/PciBus.h b/MdeModulePkg/Bus/Pci/PciBusDxe/PciBus.h
index 2226b1b052..b12d7ec503 100644
--- a/MdeModulePkg/Bus/Pci/PciBusDxe/PciBus.h
+++ b/MdeModulePkg/Bus/Pci/PciBusDxe/PciBus.h
@@ -1,7 +1,7 @@
/** @file
Header files and data structures needed by PCI Bus module.
-Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
@@ -102,6 +102,7 @@ struct _PCI_BAR {
UINT64 Length;
UINT64 Alignment;
PCI_BAR_TYPE BarType;
+ BOOLEAN BarTypeFixed;
UINT16 Offset;
};