]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ArmVirtualizationPkg/PciHostBridgeDxe: ECAM enables 4KB config space
authorLaszlo Ersek <lersek@redhat.com>
Mon, 23 Feb 2015 16:03:02 +0000 (16:03 +0000)
committerlersek <lersek@Edk2>
Mon, 23 Feb 2015 16:03:02 +0000 (16:03 +0000)
The Enhanced Configuration Access Mechanism provides access to 4096
register bytes per PCIe B/D/F. The MAX_PCI_REG_ADDRESS macro that we're
changing here is used by RootBridgeIoCheckParameter() for verifying config
space boundaries in EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL.Pci.Read() and
.Write().

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Olivier Martin <Olivier.Martin@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16896 6f19259b-4bc3-4df7-8a09-765794883524

ArmPlatformPkg/ArmVirtualizationPkg/PciHostBridgeDxe/PciHostBridge.h

index f9ef7d8c1cd81ea7674c27eafca997b11f0dc7c8..b69b832c9c3bdf49d88ccbd051a92fc664a23d5e 100644 (file)
@@ -45,7 +45,7 @@
 \r
 #define MAX_PCI_DEVICE_NUMBER      31\r
 #define MAX_PCI_FUNCTION_NUMBER    7\r
-#define MAX_PCI_REG_ADDRESS        0xFF\r
+#define MAX_PCI_REG_ADDRESS        (SIZE_4KB - 1)\r
 \r
 typedef enum {\r
   IoOperation,\r