diff options
author | Laszlo Ersek <lersek@redhat.com> | 2016-01-25 23:47:19 +0100 |
---|---|---|
committer | Laszlo Ersek <lersek@redhat.com> | 2016-03-03 18:18:39 +0100 |
commit | a5ece62d79b73cc108110fe98d04d5c08c7c4304 (patch) | |
tree | 0fcd9b41dd7284a7413b4195686e430f3ee701a9 /OvmfPkg/Library/PciHostBridgeLib | |
parent | 65de2ef54ffe8936b9d60ea3a4782798ef47f6c9 (diff) | |
download | edk2-a5ece62d79b73cc108110fe98d04d5c08c7c4304.tar.gz edk2-a5ece62d79b73cc108110fe98d04d5c08c7c4304.tar.bz2 edk2-a5ece62d79b73cc108110fe98d04d5c08c7c4304.zip |
OvmfPkg: PciHostBridgeLib: set supported and initial attributes in RootBus
These settings are copied from the RootBridgeConstructor() function, file
"OvmfPkg/PciHostBridgeDxe/PciRootBridgeIo.c".
Cc: Jordan Justen <jordan.l.justen@intel.com>
Cc: Ruiyu Ni <ruiyu.ni@intel.com>
Cc: Marcel Apfelbaum <marcel@redhat.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Diffstat (limited to 'OvmfPkg/Library/PciHostBridgeLib')
-rw-r--r-- | OvmfPkg/Library/PciHostBridgeLib/PciHostBridgeLib.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/OvmfPkg/Library/PciHostBridgeLib/PciHostBridgeLib.c b/OvmfPkg/Library/PciHostBridgeLib/PciHostBridgeLib.c index 39dc2b5acb..db260291b8 100644 --- a/OvmfPkg/Library/PciHostBridgeLib/PciHostBridgeLib.c +++ b/OvmfPkg/Library/PciHostBridgeLib/PciHostBridgeLib.c @@ -17,6 +17,8 @@ #include <IndustryStandard/Pci.h>
+#include <Protocol/PciRootBridgeIo.h>
+
#include <Library/BaseMemoryLib.h>
#include <Library/DebugLib.h>
#include <Library/MemoryAllocationLib.h>
@@ -71,6 +73,15 @@ InitRootBridge ( RootBus->Segment = 0;
+ RootBus->Supports = EFI_PCI_ATTRIBUTE_IDE_PRIMARY_IO |
+ EFI_PCI_ATTRIBUTE_IDE_SECONDARY_IO |
+ EFI_PCI_ATTRIBUTE_ISA_IO_16 |
+ EFI_PCI_ATTRIBUTE_ISA_MOTHERBOARD_IO |
+ EFI_PCI_ATTRIBUTE_VGA_MEMORY |
+ EFI_PCI_ATTRIBUTE_VGA_IO_16 |
+ EFI_PCI_ATTRIBUTE_VGA_PALETTE_IO_16;
+ RootBus->Attributes = RootBus->Supports;
+
return EFI_OUT_OF_RESOURCES;
}
|