OvmfPkg: PciHostBridgeDxe: eliminate nominal support for multiple host bridges
The entry point function of this driver, InitializePciHostBridge(), and the static storage duration objects it relies on, are speculatively generic -- they nominally support more than one host bridges, but (a) the code hardwires the number of host bridges as 1, (b) it's very unlikely that we'd ever like to raise that number (especially by open-coding it). So let's just remove the the nominal support, and simplify the code. This patch is best viewed with "git show -b". Cc: Jordan Justen <jordan.l.justen@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek <lersek@redhat.com> Regression-tested-by: Gabriel Somlo <somlo@cmu.edu> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17955 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -37,12 +37,6 @@
|
||||
#include <Library/IoLib.h>
|
||||
#include <Library/PciLib.h>
|
||||
|
||||
//
|
||||
// Hard code the host bridge number in the platform.
|
||||
// In this chipset, there is only one host bridge.
|
||||
//
|
||||
#define HOST_BRIDGE_NUMBER 1
|
||||
|
||||
#define MAX_PCI_DEVICE_NUMBER 31
|
||||
#define MAX_PCI_FUNCTION_NUMBER 7
|
||||
#define MAX_PCI_REG_ADDRESS 0xFF
|
||||
|
Reference in New Issue
Block a user