audk/MdeModulePkg
Ruiyu Ni 6474f1f156 MdeModulePkg/PciHostBridge: Don't assume resources are fully NonExistent
The patch removes the assumption that the resources claimed by root
bridges should not exist. Because resources might have been added:
1. by platform modules either in PEI through resource HOB, or in DXE,
   before the PCI host bridge driver runs.
2. Resources claimed by different root bridges may overlap so that
   resource adding operation for latter root bridges may fail if
   we assume the resource should not exist.

In real world, this patch is to fit OVMF platform needs because
different root bridges in OVMF platform shares the same resources.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
[lersek@redhat.com: intersection-based implementation]
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Cc: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
2016-02-26 13:31:51 +01:00
..
Application MdeModulePkg: Add sample help information for HelloWorld application. 2016-02-24 15:11:14 +08:00
Bus MdeModulePkg/PciHostBridge: Don't assume resources are fully NonExistent 2016-02-26 13:31:51 +01:00
Core MdeModulePkg: Add ASSERT to make sure pointer 'MemoryMap' is not NULL. 2016-02-26 14:59:22 +08:00
Include MdeModulePkg: Define a general function to create DNS QName 2016-02-18 13:07:56 +08:00
Library MdeModulePkg: Add ASSERT to make sure pointer 'OptionalData' not be NULL 2016-02-26 16:47:07 +08:00
Logo MdeModulePkg: Convert all .uni files to utf-8 2015-12-15 04:56:23 +00:00
Universal MdeModulePkg: Add submitted callback test case in DriverSample 2016-02-25 14:42:25 +08:00
Contributions.txt */Contributions.txt: Update example email address 2015-02-03 17:29:14 +00:00
License.txt Update copyright format 2012-04-24 06:49:39 +00:00
MdeModulePkg.dec MdeModulePkg: AcpiTableDxe: make 4 GB table allocation limit optional 2016-02-24 09:18:44 +01:00
MdeModulePkg.dsc MdeModulePkg: Add NOOPT target in MdeModulePkg.dsc 2016-01-19 04:05:51 +00:00
MdeModulePkg.uni MdeModulePkg: Fix 'accroding' typos in MdeModulePkg.dec/.uni 2016-01-06 01:13:07 +00:00
MdeModulePkgExtra.uni MdeModulePkg: Convert all .uni files to utf-8 2015-12-15 04:56:23 +00:00