]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/PciSegmentLibSegmentInfo/PciSegmentLibCommon.c
MdePkg/PciSegmentLibSegmentInfo: fix typo in PciSegmentBitFieldAnd*()
[mirror_edk2.git] / 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