X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=MdeModulePkg%2FBus%2FPci%2FPciBusDxe%2FPciEnumeratorSupport.c;h=81171c82d9e21500ceaf25464d78d196904b02b2;hp=f73756a31ecd9dcf40b1011bc85d2083d814ca06;hb=a8035b908655afd59321173752b29970ae61601b;hpb=8315563285719f09f13e69a408f34558fc41c822 diff --git a/MdeModulePkg/Bus/Pci/PciBusDxe/PciEnumeratorSupport.c b/MdeModulePkg/Bus/Pci/PciBusDxe/PciEnumeratorSupport.c index f73756a31e..81171c82d9 100644 --- a/MdeModulePkg/Bus/Pci/PciBusDxe/PciEnumeratorSupport.c +++ b/MdeModulePkg/Bus/Pci/PciBusDxe/PciEnumeratorSupport.c @@ -1218,12 +1218,11 @@ DetermineDeviceAttribute ( return Status; } // - // Assume the PCI Root Bridge supports DAC and Bus Master. + // Assume the PCI Root Bridge supports DAC // PciIoDevice->Supports |= (UINT64)(EFI_PCI_IO_ATTRIBUTE_EMBEDDED_DEVICE | EFI_PCI_IO_ATTRIBUTE_EMBEDDED_ROM | - EFI_PCI_IO_ATTRIBUTE_DUAL_ADDRESS_CYCLE | - EFI_PCI_IO_ATTRIBUTE_BUS_MASTER); + EFI_PCI_IO_ATTRIBUTE_DUAL_ADDRESS_CYCLE); } else { @@ -1234,16 +1233,9 @@ DetermineDeviceAttribute ( // Command = EFI_PCI_COMMAND_IO_SPACE | EFI_PCI_COMMAND_MEMORY_SPACE | + EFI_PCI_COMMAND_BUS_MASTER | EFI_PCI_COMMAND_VGA_PALETTE_SNOOP; - // - // Per PCI-to-PCI Bridge Architecture all PCI-to-PCI bridges are Bus Master capable. - // So only test the Bus Master capability for PCI devices. - // - if (!IS_PCI_BRIDGE(&PciIoDevice->Pci)) { - Command |= EFI_PCI_COMMAND_BUS_MASTER; - } - BridgeControl = EFI_PCI_BRIDGE_CONTROL_ISA | EFI_PCI_BRIDGE_CONTROL_VGA | EFI_PCI_BRIDGE_CONTROL_VGA_16; // @@ -1253,11 +1245,7 @@ DetermineDeviceAttribute ( // // Set the supported attributes for specified PCI device - // Per PCI-to-PCI Bridge Architecture all PCI-to-PCI bridges are Bus Master capable. // - if (IS_PCI_BRIDGE(&PciIoDevice->Pci)) { - Command |= EFI_PCI_COMMAND_BUS_MASTER; - } PciSetDeviceAttribute (PciIoDevice, Command, BridgeControl, EFI_SET_SUPPORTS); //