]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdePkg/PciSegmentLibSegmentInfo: fix typo in PciSegmentBitFieldAnd*()
authorRuiyu Ni <ruiyu.ni@intel.com>
Tue, 5 Sep 2017 14:49:37 +0000 (22:49 +0800)
committerRuiyu Ni <ruiyu.ni@intel.com>
Wed, 6 Sep 2017 02:43:53 +0000 (10:43 +0800)
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
MdePkg/Library/PciSegmentLibSegmentInfo/PciSegmentLibCommon.c

index 7b7324d6737b260e2dd35df53173e1c922e9aa05..e0bdb169117f65c16e93b66b78c95492a3719816 100644 (file)
@@ -381,7 +381,7 @@ PciSegmentBitFieldAnd8 (
   PCI_SEGMENT_INFO             *SegmentInfo;\r
 \r
   SegmentInfo = GetPciSegmentInfo (&Count);\r
-  return MmioBitFieldOr8 (PciSegmentLibGetEcamAddress (Address, SegmentInfo, Count), StartBit, EndBit, AndData);\r
+  return MmioBitFieldAnd8 (PciSegmentLibGetEcamAddress (Address, SegmentInfo, Count), StartBit, EndBit, AndData);\r
 }\r
 \r
 /**\r
@@ -752,7 +752,7 @@ PciSegmentBitFieldAnd16 (
   PCI_SEGMENT_INFO             *SegmentInfo;\r
 \r
   SegmentInfo = GetPciSegmentInfo (&Count);\r
-  return MmioBitFieldOr16 (PciSegmentLibGetEcamAddress (Address, SegmentInfo, Count), StartBit, EndBit, AndData);\r
+  return MmioBitFieldAnd16 (PciSegmentLibGetEcamAddress (Address, SegmentInfo, Count), StartBit, EndBit, AndData);\r
 }\r
 \r
 /**\r
@@ -1119,7 +1119,7 @@ PciSegmentBitFieldAnd32 (
   PCI_SEGMENT_INFO             *SegmentInfo;\r
 \r
   SegmentInfo = GetPciSegmentInfo (&Count);\r
-  return MmioBitFieldOr32 (PciSegmentLibGetEcamAddress (Address, SegmentInfo, Count), StartBit, EndBit, AndData);\r
+  return MmioBitFieldAnd32 (PciSegmentLibGetEcamAddress (Address, SegmentInfo, Count), StartBit, EndBit, AndData);\r
 }\r
 \r
 /**\r