From: mdkinney Date: Fri, 16 Jul 2010 19:06:24 +0000 (+0000) Subject: Remove IO and MMIO GCD add operations from this generic PCI Hot Bridge drivers. X-Git-Tag: edk2-stable201903~15689 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=f5e004a3d0d9f9ccfef3ab8e5d4ff35baca43d63 Remove IO and MMIO GCD add operations from this generic PCI Hot Bridge drivers. A platform specific PEIm or DXE module is required to add the IO and MMIO resources to the GCD. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10658 6f19259b-4bc3-4df7-8a09-765794883524 --- diff --git a/PcAtChipsetPkg/PciHostBridgeDxe/PciHostBridge.c b/PcAtChipsetPkg/PciHostBridgeDxe/PciHostBridge.c index dc8e79b11a..b05b415349 100644 --- a/PcAtChipsetPkg/PciHostBridgeDxe/PciHostBridge.c +++ b/PcAtChipsetPkg/PciHostBridgeDxe/PciHostBridge.c @@ -14,17 +14,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. #include "PciHostBridge.h" -// -// Support 64 K IO space -// -#define RES_IO_BASE 0x1000 -#define RES_IO_LIMIT 0xFFFF -// -// Support 4G address space -// -#define RES_MEM_BASE_1 0xF8000000 -#define RES_MEM_LIMIT_1 (0xFEC00000 - 1) - // // Hard code: Root Bridge Number within the host bridge // Root Bridge's attribute @@ -100,8 +89,6 @@ InitializePciHostBridge ( UINTN Loop2; PCI_HOST_BRIDGE_INSTANCE *HostBridge; PCI_ROOT_BRIDGE_INSTANCE *PrivateData; - IN EFI_PHYSICAL_ADDRESS BaseAddress; - IN UINT64 Length; mDriverImageHandle = ImageHandle; @@ -162,29 +149,6 @@ InitializePciHostBridge ( } } - Status = gDS->AddIoSpace ( - EfiGcdIoTypeIo, - RES_IO_BASE, - RES_IO_LIMIT - RES_IO_BASE + 1 - ); - - // PCI memory space from 3.75Gbytes->(4GBytes - BIOSFWH local APIC etc) - Status = gDS->AddMemorySpace ( - EfiGcdMemoryTypeMemoryMappedIo, - RES_MEM_BASE_1, - (RES_MEM_LIMIT_1 - RES_MEM_BASE_1 + 1), - 0 - ); - - BaseAddress = 0x80000000; - Length = RES_MEM_BASE_1 - BaseAddress; - Status = gDS->AddMemorySpace ( - EfiGcdMemoryTypeMemoryMappedIo, - BaseAddress, - Length, - 0 - ); - return EFI_SUCCESS; }