mirror of https://github.com/acidanthera/audk.git
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>
This commit is contained in:
parent
65de2ef54f
commit
a5ece62d79
|
@ -17,6 +17,8 @@
|
||||||
|
|
||||||
#include <IndustryStandard/Pci.h>
|
#include <IndustryStandard/Pci.h>
|
||||||
|
|
||||||
|
#include <Protocol/PciRootBridgeIo.h>
|
||||||
|
|
||||||
#include <Library/BaseMemoryLib.h>
|
#include <Library/BaseMemoryLib.h>
|
||||||
#include <Library/DebugLib.h>
|
#include <Library/DebugLib.h>
|
||||||
#include <Library/MemoryAllocationLib.h>
|
#include <Library/MemoryAllocationLib.h>
|
||||||
|
@ -71,6 +73,15 @@ InitRootBridge (
|
||||||
|
|
||||||
RootBus->Segment = 0;
|
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;
|
return EFI_OUT_OF_RESOURCES;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue