]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EdkCompatibilityPkg/Foundation/Framework/Include/EfiPciCfg.h
Sync all bug fixes between EDK1.04 and EDK1.06 into EdkCompatibilityPkg.
[mirror_edk2.git] / EdkCompatibilityPkg / Foundation / Framework / Include / EfiPciCfg.h
index c5c180d3376a50598699712dacc3651031771234..1db788670f548c622bc34049b1c6532e1342be28 100644 (file)
@@ -1,6 +1,6 @@
 /*++\r
 \r
-Copyright (c) 2007, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2007 - 2010, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials                          \r
 are licensed and made available under the terms and conditions of the BSD License         \r
 which accompanies this distribution.  The full text of the license may be found at        \r
@@ -50,11 +50,10 @@ typedef enum {
 } EFI_PEI_PCI_CFG_PPI_WIDTH;\r
 \r
 #define EFI_PEI_PCI_CFG_ADDRESS(bus, dev, func, reg)   \\r
-            (   ((bus) << 24)  | \\r
-                ((dev) << 16)  | \\r
-                ((func) << 8)  | \\r
-                ((reg) < 256 ? (reg): ((UINT64)(reg) << 32))) \r
-\r
+      (UINT64) ((((UINTN) (bus)) << 24) | \\r
+                (((UINTN) (dev)) << 16) | \\r
+                (((UINTN) (func)) << 8) | \\r
+                ((reg) < 256 ? ((UINTN) (reg)): ((UINT64) (reg) << 32)))\r
 \r
 #if (PI_SPECIFICATION_VERSION < 0x00010000)\r
 \r