summaryrefslogtreecommitdiff
path: root/MdePkg/Library/BasePciCf8Lib/PciLib.c
diff options
context:
space:
mode:
authoryshang1 <yshang1@6f19259b-4bc3-4df7-8a09-765794883524>2006-05-22 09:36:28 +0000
committeryshang1 <yshang1@6f19259b-4bc3-4df7-8a09-765794883524>2006-05-22 09:36:28 +0000
commite0c3e486e022e34a67887e84434e64b45e997b05 (patch)
tree27cecb7b15ffa125b9cc1439110790f649eb799f /MdePkg/Library/BasePciCf8Lib/PciLib.c
parent3df952e152e529fbb8cbcc779754acf0405abb8b (diff)
downloadedk2-platforms-e0c3e486e022e34a67887e84434e64b45e997b05.tar.xz
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@232 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg/Library/BasePciCf8Lib/PciLib.c')
-rw-r--r--MdePkg/Library/BasePciCf8Lib/PciLib.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/MdePkg/Library/BasePciCf8Lib/PciLib.c b/MdePkg/Library/BasePciCf8Lib/PciLib.c
index c5880bdeee..0e536ce696 100644
--- a/MdePkg/Library/BasePciCf8Lib/PciLib.c
+++ b/MdePkg/Library/BasePciCf8Lib/PciLib.c
@@ -53,7 +53,9 @@
**/
#define PCI_TO_CF8_ADDRESS(A) \
- ((UINT32)(((A) >> 4) | ((A) & 0xfc) | 0x80000000))
+ ((UINT32) ((((A) >> 4) & 0xffffff00) | ((A) & 0xfc) | 0x80000000))
+
+
/**
Reads an 8-bit PCI configuration register.