diff options
author | yshang1 <yshang1@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-05-22 09:36:28 +0000 |
---|---|---|
committer | yshang1 <yshang1@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-05-22 09:36:28 +0000 |
commit | e0c3e486e022e34a67887e84434e64b45e997b05 (patch) | |
tree | 27cecb7b15ffa125b9cc1439110790f649eb799f /MdePkg/Library/BasePciCf8Lib | |
parent | 3df952e152e529fbb8cbcc779754acf0405abb8b (diff) | |
download | edk2-e0c3e486e022e34a67887e84434e64b45e997b05.tar.gz edk2-e0c3e486e022e34a67887e84434e64b45e997b05.tar.bz2 edk2-e0c3e486e022e34a67887e84434e64b45e997b05.zip |
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@232 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg/Library/BasePciCf8Lib')
-rw-r--r-- | MdePkg/Library/BasePciCf8Lib/PciLib.c | 4 |
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.
|