[edk2-devel] [PATCH 27/79] MdePkg/Library/Pci: Fix various typos

Michael D Kinney michael.d.kinney at intel.com
Wed Dec 4 01:25:13 UTC 2019


Reviewed-by: Michael D Kinney <michael.d.kinney at intel.com>

> -----Original Message-----
> From: devel at edk2.groups.io <devel at edk2.groups.io> On
> Behalf Of Philippe Mathieu-Daudé
> Sent: Tuesday, December 3, 2019 8:15 AM
> To: devel at edk2.groups.io
> Cc: Antoine Coeur <coeur at gmx.fr>; Kinney, Michael D
> <michael.d.kinney at intel.com>; Gao, Liming
> <liming.gao at intel.com>; Philippe Mathieu-Daude
> <philmd at redhat.com>
> Subject: [edk2-devel] [PATCH 27/79] MdePkg/Library/Pci:
> Fix various typos
> 
> From: Antoine Coeur <coeur at gmx.fr>
> 
> Fix various typos in comments and documentation.
> 
> Cc: Michael D Kinney <michael.d.kinney at intel.com>
> Cc: Liming Gao <liming.gao at intel.com>
> Reviewed-by: Philippe Mathieu-Daude <philmd at redhat.com>
> Signed-off-by: Philippe Mathieu-Daude
> <philmd at redhat.com>
> ---
>  MdePkg/Include/Library/PciCf8Lib.h
> | 4 ++--
>  MdePkg/Include/Library/PciExpressLib.h
> | 4 ++--
>  MdePkg/Include/Library/PciLib.h
> | 4 ++--
>  MdePkg/Include/Library/PciSegmentLib.h
> | 4 ++--
> 
> MdePkg/Library/PciSegmentLibSegmentInfo/DxeRuntimePciSe
> gmentLib.c | 2 +-
> 
> MdePkg/Library/PciSegmentLibSegmentInfo/PciSegmentLibCo
> mmon.c     | 4 ++--
>  6 files changed, 11 insertions(+), 11 deletions(-)
> 
> diff --git a/MdePkg/Include/Library/PciCf8Lib.h
> b/MdePkg/Include/Library/PciCf8Lib.h
> index 41558dabddc2..7e22a527a80e 100644
> --- a/MdePkg/Include/Library/PciCf8Lib.h
> +++ b/MdePkg/Include/Library/PciCf8Lib.h
> @@ -1027,7 +1027,7 @@ PciCf8BitFieldAndThenOr32 (
>    Size into the buffer specified by Buffer. This
> function only allows the PCI
>    configuration registers from a single PCI function
> to be read. Size is
>    returned. When possible 32-bit PCI configuration
> read cycles are used to read
> -  from StartAdress to StartAddress + Size. Due to
> alignment restrictions, 8-bit
> +  from StartAddress to StartAddress + Size. Due to
> alignment restrictions, 8-bit
>    and 16-bit PCI configuration read cycles may be used
> at the beginning and the
>    end of the range.
> 
> @@ -1060,7 +1060,7 @@ PciCf8ReadBuffer (
>    Size from the buffer specified by Buffer. This
> function only allows the PCI
>    configuration registers from a single PCI function
> to be written. Size is
>    returned. When possible 32-bit PCI configuration
> write cycles are used to
> -  write from StartAdress to StartAddress + Size. Due
> to alignment restrictions,
> +  write from StartAddress to StartAddress + Size. Due
> to alignment restrictions,
>    8-bit and 16-bit PCI configuration write cycles may
> be used at the beginning
>    and the end of the range.
> 
> diff --git a/MdePkg/Include/Library/PciExpressLib.h
> b/MdePkg/Include/Library/PciExpressLib.h
> index aec2b5f3777d..826fdcf7db6c 100644
> --- a/MdePkg/Include/Library/PciExpressLib.h
> +++ b/MdePkg/Include/Library/PciExpressLib.h
> @@ -997,7 +997,7 @@ PciExpressBitFieldAndThenOr32 (
>    Size into the buffer specified by Buffer. This
> function only allows the PCI
>    configuration registers from a single PCI function
> to be read. Size is
>    returned. When possible 32-bit PCI configuration
> read cycles are used to read
> -  from StartAdress to StartAddress + Size. Due to
> alignment restrictions, 8-bit
> +  from StartAddress to StartAddress + Size. Due to
> alignment restrictions, 8-bit
>    and 16-bit PCI configuration read cycles may be used
> at the beginning and the
>    end of the range.
> 
> @@ -1029,7 +1029,7 @@ PciExpressReadBuffer (
>    Size from the buffer specified by Buffer. This
> function only allows the PCI
>    configuration registers from a single PCI function
> to be written. Size is
>    returned. When possible 32-bit PCI configuration
> write cycles are used to
> -  write from StartAdress to StartAddress + Size. Due
> to alignment restrictions,
> +  write from StartAddress to StartAddress + Size. Due
> to alignment restrictions,
>    8-bit and 16-bit PCI configuration write cycles may
> be used at the beginning
>    and the end of the range.
> 
> diff --git a/MdePkg/Include/Library/PciLib.h
> b/MdePkg/Include/Library/PciLib.h
> index 7a7d42050f0a..836494b6c1d7 100644
> --- a/MdePkg/Include/Library/PciLib.h
> +++ b/MdePkg/Include/Library/PciLib.h
> @@ -997,7 +997,7 @@ PciBitFieldAndThenOr32 (
>    Size into the buffer specified by Buffer. This
> function only allows the PCI
>    configuration registers from a single PCI function
> to be read. Size is
>    returned. When possible 32-bit PCI configuration
> read cycles are used to read
> -  from StartAdress to StartAddress + Size. Due to
> alignment restrictions, 8-bit
> +  from StartAddress to StartAddress + Size. Due to
> alignment restrictions, 8-bit
>    and 16-bit PCI configuration read cycles may be used
> at the beginning and the
>    end of the range.
> 
> @@ -1029,7 +1029,7 @@ PciReadBuffer (
>    Size from the buffer specified by Buffer. This
> function only allows the PCI
>    configuration registers from a single PCI function
> to be written. Size is
>    returned. When possible 32-bit PCI configuration
> write cycles are used to
> -  write from StartAdress to StartAddress + Size. Due
> to alignment restrictions,
> +  write from StartAddress to StartAddress + Size. Due
> to alignment restrictions,
>    8-bit and 16-bit PCI configuration write cycles may
> be used at the beginning
>    and the end of the range.
> 
> diff --git a/MdePkg/Include/Library/PciSegmentLib.h
> b/MdePkg/Include/Library/PciSegmentLib.h
> index bd31f05a23fe..fcd98dbfd8df 100644
> --- a/MdePkg/Include/Library/PciSegmentLib.h
> +++ b/MdePkg/Include/Library/PciSegmentLib.h
> @@ -984,7 +984,7 @@ PciSegmentBitFieldAndThenOr32 (
>    Size into the buffer specified by Buffer. This
> function only allows the PCI
>    configuration registers from a single PCI function
> to be read. Size is
>    returned. When possible 32-bit PCI configuration
> read cycles are used to read
> -  from StartAdress to StartAddress + Size. Due to
> alignment restrictions, 8-bit
> +  from StartAddress to StartAddress + Size. Due to
> alignment restrictions, 8-bit
>    and 16-bit PCI configuration read cycles may be used
> at the beginning and the
>    end of the range.
> 
> @@ -1016,7 +1016,7 @@ PciSegmentReadBuffer (
>    Size from the buffer specified by Buffer. This
> function only allows the PCI
>    configuration registers from a single PCI function
> to be written. Size is
>    returned. When possible 32-bit PCI configuration
> write cycles are used to
> -  write from StartAdress to StartAddress + Size. Due
> to alignment restrictions,
> +  write from StartAddress to StartAddress + Size. Due
> to alignment restrictions,
>    8-bit and 16-bit PCI configuration write cycles may
> be used at the beginning
>    and the end of the range.
> 
> diff --git
> a/MdePkg/Library/PciSegmentLibSegmentInfo/DxeRuntimePci
> SegmentLib.c
> b/MdePkg/Library/PciSegmentLibSegmentInfo/DxeRuntimePci
> SegmentLib.c
> index 2f503ecffe05..36b0b632c124 100644
> ---
> a/MdePkg/Library/PciSegmentLibSegmentInfo/DxeRuntimePci
> SegmentLib.c
> +++
> b/MdePkg/Library/PciSegmentLibSegmentInfo/DxeRuntimePci
> SegmentLib.c
> @@ -211,7 +211,7 @@ PciSegmentRegisterForRuntimeAccess
> (
>    Address = (UINTN)EcamAddress;
> 
>    //
> -  // See if Address has already been registerd for
> runtime access
> +  // See if Address has already been registered for
> runtime access
>    //
>    for (Index = 0; Index <
> mDxeRuntimePciSegmentLibNumberOfRuntimeRanges; Index++)
> {
>      if
> (mDxeRuntimePciSegmentLibRegistrationTable[Index].Physi
> calAddress == Address) {
> diff --git
> a/MdePkg/Library/PciSegmentLibSegmentInfo/PciSegmentLib
> Common.c
> b/MdePkg/Library/PciSegmentLibSegmentInfo/PciSegmentLib
> Common.c
> index 1b42481123c9..a76e9d9adf07 100644
> ---
> a/MdePkg/Library/PciSegmentLibSegmentInfo/PciSegmentLib
> Common.c
> +++
> b/MdePkg/Library/PciSegmentLibSegmentInfo/PciSegmentLib
> Common.c
> @@ -1169,7 +1169,7 @@ PciSegmentBitFieldAndThenOr32 (
>    Size into the buffer specified by Buffer. This
> function only allows the PCI
>    configuration registers from a single PCI function
> to be read. Size is
>    returned. When possible 32-bit PCI configuration
> read cycles are used to read
> -  from StartAdress to StartAddress + Size. Due to
> alignment restrictions, 8-bit
> +  from StartAddress to StartAddress + Size. Due to
> alignment restrictions, 8-bit
>    and 16-bit PCI configuration read cycles may be used
> at the beginning and the
>    end of the range.
> 
> @@ -1272,7 +1272,7 @@ PciSegmentReadBuffer (
>    Size from the buffer specified by Buffer. This
> function only allows the PCI
>    configuration registers from a single PCI function
> to be written. Size is
>    returned. When possible 32-bit PCI configuration
> write cycles are used to
> -  write from StartAdress to StartAddress + Size. Due
> to alignment restrictions,
> +  write from StartAddress to StartAddress + Size. Due
> to alignment restrictions,
>    8-bit and 16-bit PCI configuration write cycles may
> be used at the beginning
>    and the end of the range.
> 
> --
> 2.21.0
> 
> 
> 


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.

View/Reply Online (#51701): https://edk2.groups.io/g/devel/message/51701
Mute This Topic: https://groups.io/mt/65773629/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub  [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-





More information about the edk2-devel-archive mailing list