From e43e4b3e8cb381cffa146ac8c0f329bbb4c4b593 Mon Sep 17 00:00:00 2001 From: xli24 Date: Mon, 24 Nov 2008 05:55:41 +0000 Subject: Refine new library instances according to review comments. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6692 6f19259b-4bc3-4df7-8a09-765794883524 --- MdePkg/Library/DxePciSegmentLibPciRootBridgeIo/PciSegmentLib.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'MdePkg/Library/DxePciSegmentLibPciRootBridgeIo/PciSegmentLib.h') diff --git a/MdePkg/Library/DxePciSegmentLibPciRootBridgeIo/PciSegmentLib.h b/MdePkg/Library/DxePciSegmentLibPciRootBridgeIo/PciSegmentLib.h index 2ed7dfe0a8..00129edea6 100644 --- a/MdePkg/Library/DxePciSegmentLibPciRootBridgeIo/PciSegmentLib.h +++ b/MdePkg/Library/DxePciSegmentLibPciRootBridgeIo/PciSegmentLib.h @@ -47,13 +47,13 @@ typedef struct { ASSERT (((A) & (0xf0000000 | (M))) == 0) /** - Translate PCI Lib address into format of PCI CFG2 PPI. + Translate PCI Lib address into format of PCI Root Bridge I/O Protocol @param A Address that encodes the PCI Bus, Device, Function and Register. **/ -#define PCI_TO_PCICFG2_ADDRESS(A) \ - (((A) << 4) & 0xff000000) | (((A) >> 4) & 0x00000700) | (((A) << 1) & 0x001f0000) | ((UINT64)((A) & 0xFFF) << 32) +#define PCI_TO_PCI_ROOT_BRIDGE_IO_ADDRESS(A) \ + ((((A) << 4) & 0xff000000) | (((A) >> 4) & 0x00000700) | (((A) << 1) & 0x001f0000) | (LShiftU64((A) & 0xfff, 32))) #endif -- cgit v1.2.3