/** @file\r
EFI PCI IO protocol functions implementation for PCI Bus module.\r
\r
-Copyright (c) 2006 - 2017, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
//\r
// If request is not aligned, then convert request to EfiPciIoWithXXXUint8\r
- // \r
+ //\r
if (FeaturePcdGet (PcdUnalignedPciIoEnable)) {\r
if ((Offset & ((1 << (Width & 0x03)) - 1)) != 0) {\r
Status = PciIoMemRead (This, Width, BarIndex, Offset, 1, Result);\r
} while (TRUE);\r
}\r
}\r
- \r
+\r
Status = PciIoDevice->PciRootBridgeIo->PollMem (\r
PciIoDevice->PciRootBridgeIo,\r
(EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL_WIDTH) Width,\r
\r
//\r
// If request is not aligned, then convert request to EfiPciIoWithXXXUint8\r
- // \r
+ //\r
if (FeaturePcdGet (PcdUnalignedPciIoEnable)) {\r
if ((Offset & ((1 << (Width & 0x03)) - 1)) != 0) {\r
Status = PciIoIoRead (This, Width, BarIndex, Offset, 1, Result);\r
} while (TRUE);\r
}\r
}\r
- \r
+\r
Status = PciIoDevice->PciRootBridgeIo->PollIo (\r
PciIoDevice->PciRootBridgeIo,\r
(EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL_WIDTH) Width,\r
\r
//\r
// If request is not aligned, then convert request to EfiPciIoWithXXXUint8\r
- // \r
+ //\r
if (FeaturePcdGet (PcdUnalignedPciIoEnable)) {\r
if ((Offset & ((1 << (Width & 0x03)) - 1)) != 0) {\r
Count *= (UINTN)(1 << (Width & 0x03));\r
Width = (EFI_PCI_IO_PROTOCOL_WIDTH) (Width & (~0x03));\r
}\r
- } \r
- \r
+ }\r
+\r
\r
Status = PciIoDevice->PciRootBridgeIo->Mem.Read (\r
PciIoDevice->PciRootBridgeIo,\r
\r
//\r
// If request is not aligned, then convert request to EfiPciIoWithXXXUint8\r
- // \r
+ //\r
if (FeaturePcdGet (PcdUnalignedPciIoEnable)) {\r
if ((Offset & ((1 << (Width & 0x03)) - 1)) != 0) {\r
Count *= (UINTN)(1 << (Width & 0x03));\r
\r
//\r
// If request is not aligned, then convert request to EfiPciIoWithXXXUint8\r
- // \r
+ //\r
if (FeaturePcdGet (PcdUnalignedPciIoEnable)) {\r
if ((Offset & ((1 << (Width & 0x03)) - 1)) != 0) {\r
Count *= (UINTN)(1 << (Width & 0x03));\r
Width = (EFI_PCI_IO_PROTOCOL_WIDTH) (Width & (~0x03));\r
}\r
- } \r
+ }\r
\r
Status = PciIoDevice->PciRootBridgeIo->Io.Read (\r
PciIoDevice->PciRootBridgeIo,\r
\r
//\r
// If request is not aligned, then convert request to EfiPciIoWithXXXUint8\r
- // \r
+ //\r
if (FeaturePcdGet (PcdUnalignedPciIoEnable)) {\r
if ((Offset & ((1 << (Width & 0x03)) - 1)) != 0) {\r
Count *= (UINTN)(1 << (Width & 0x03));\r
Width = (EFI_PCI_IO_PROTOCOL_WIDTH) (Width & (~0x03));\r
}\r
- } \r
+ }\r
\r
Status = PciIoDevice->PciRootBridgeIo->Io.Write (\r
PciIoDevice->PciRootBridgeIo,\r
if (EFI_ERROR (Status)) {\r
return Status;\r
}\r
- \r
+\r
//\r
// If request is not aligned, then convert request to EfiPciIoWithXXXUint8\r
- // \r
+ //\r
if (FeaturePcdGet (PcdUnalignedPciIoEnable)) {\r
if ((Offset & ((1 << (Width & 0x03)) - 1)) != 0) {\r
Count *= (UINTN)(1 << (Width & 0x03));\r
Width = (EFI_PCI_IO_PROTOCOL_WIDTH) (Width & (~0x03));\r
}\r
- } \r
+ }\r
\r
Status = PciIoDevice->PciRootBridgeIo->Pci.Read (\r
PciIoDevice->PciRootBridgeIo,\r
\r
//\r
// If request is not aligned, then convert request to EfiPciIoWithXXXUint8\r
- // \r
+ //\r
if (FeaturePcdGet (PcdUnalignedPciIoEnable)) {\r
if ((Offset & ((1 << (Width & 0x03)) - 1)) != 0) {\r
Count *= (UINTN)(1 << (Width & 0x03));\r
Width = (EFI_PCI_IO_PROTOCOL_WIDTH) (Width & (~0x03));\r
}\r
- } \r
- \r
+ }\r
+\r
Status = PciIoDevice->PciRootBridgeIo->Pci.Write (\r
PciIoDevice->PciRootBridgeIo,\r
(EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL_WIDTH) Width,\r
\r
//\r
// If request is not aligned, then convert request to EfiPciIoWithXXXUint8\r
- // \r
+ //\r
if (FeaturePcdGet (PcdUnalignedPciIoEnable)) {\r
if ((SrcOffset & ((1 << (Width & 0x03)) - 1)) != 0 || (DestOffset & ((1 << (Width & 0x03)) - 1)) != 0) {\r
Count *= (UINTN)(1 << (Width & 0x03));\r
Width = (EFI_PCI_IO_PROTOCOL_WIDTH) (Width & (~0x03));\r
}\r
- } \r
+ }\r
\r
Status = PciIoDevice->PciRootBridgeIo->CopyMem (\r
PciIoDevice->PciRootBridgeIo,\r
@param AddrRangeMin The base address of the MMIO.\r
@param AddrLen The length of the MMIO.\r
\r
- @retval The AddrTranslationOffset from RootBridgeIo for the \r
+ @retval The AddrTranslationOffset from RootBridgeIo for the\r
specified range, or (UINT64) -1 if the range is not\r
found in RootBridgeIo.\r
**/\r