X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=MdeModulePkg%2FBus%2FPci%2FPciBusDxe%2FPciDeviceSupport.c;h=e76c8f00468a87e9db7d6b014b3cffa257cd2a89;hb=dc080d3b61e570e7a3163fc24afa6f8388d0c0bf;hp=97bb971a5966a2d869d8da42b47cb4e5be386f27;hpb=8315563285719f09f13e69a408f34558fc41c822;p=mirror_edk2.git diff --git a/MdeModulePkg/Bus/Pci/PciBusDxe/PciDeviceSupport.c b/MdeModulePkg/Bus/Pci/PciBusDxe/PciDeviceSupport.c index 97bb971a59..e76c8f0046 100644 --- a/MdeModulePkg/Bus/Pci/PciBusDxe/PciDeviceSupport.c +++ b/MdeModulePkg/Bus/Pci/PciBusDxe/PciDeviceSupport.c @@ -1,7 +1,7 @@ /** @file Supporting functions implementaion for PCI devices management. -Copyright (c) 2006 - 2017, Intel Corporation. All rights reserved.
+Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -711,12 +711,7 @@ StartPciDevicesOnBridge ( 0, &Supports ); - // - // By default every bridge's IO and MMIO spaces are enabled. - // Bridge's Bus Master will be enabled when any device behind it requests - // to enable Bus Master. - // - Supports &= (UINT64) (EFI_PCI_IO_ATTRIBUTE_IO | EFI_PCI_IO_ATTRIBUTE_MEMORY); + Supports &= (UINT64)EFI_PCI_DEVICE_ENABLE; PciIoDevice->PciIo.Attributes ( &(PciIoDevice->PciIo), EfiPciIoAttributeOperationEnable, @@ -768,12 +763,7 @@ StartPciDevicesOnBridge ( 0, &Supports ); - // - // By default every bridge's IO and MMIO spaces are enabled. - // Bridge's Bus Master will be enabled when any device behind it requests - // to enable Bus Master. - // - Supports &= (UINT64) (EFI_PCI_IO_ATTRIBUTE_IO | EFI_PCI_IO_ATTRIBUTE_MEMORY); + Supports &= (UINT64)EFI_PCI_DEVICE_ENABLE; PciIoDevice->PciIo.Attributes ( &(PciIoDevice->PciIo), EfiPciIoAttributeOperationEnable,