diff options
author | xli24 <xli24@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-11-24 05:55:41 +0000 |
---|---|---|
committer | xli24 <xli24@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-11-24 05:55:41 +0000 |
commit | e43e4b3e8cb381cffa146ac8c0f329bbb4c4b593 (patch) | |
tree | c9a0a97fc0ba22542e50e8046c4c73ae742bb138 /MdePkg/Library/DxePciSegmentLibPciRootBridgeIo/PciSegmentLib.h | |
parent | 519f076a478a7da9ff4b9d5327a993b1fc2968e8 (diff) | |
download | edk2-platforms-e43e4b3e8cb381cffa146ac8c0f329bbb4c4b593.tar.xz |
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
Diffstat (limited to 'MdePkg/Library/DxePciSegmentLibPciRootBridgeIo/PciSegmentLib.h')
-rw-r--r-- | MdePkg/Library/DxePciSegmentLibPciRootBridgeIo/PciSegmentLib.h | 6 |
1 files changed, 3 insertions, 3 deletions
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
|