]> 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 957eb4fc77ad83ff660b8f9dc58c84744160e19d..1db788670f548c622bc34049b1c6532e1342be28 100644 (file)
@@ -1,7 +1,7 @@
 /*++\r
 \r
-Copyright (c) 2007, Intel Corporation                                                         \r
-All rights reserved. This program and the accompanying materials                          \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
 http://opensource.org/licenses/bsd-license.php                                            \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