MdeModulePkg/PciBus: Correct typos
Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ray Ni <ray.ni@intel.com> Reviewed-by: Hao Wu <hao.a.wu@intel.com>
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
/** @file
|
||||
EFI PCI IO protocol functions implementation for PCI Bus module.
|
||||
|
||||
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2006 - 2019, Intel Corporation. All rights reserved.<BR>
|
||||
This program and the accompanying materials
|
||||
are licensed and made available under the terms and conditions of the BSD License
|
||||
which accompanies this distribution. The full text of the license may be found at
|
||||
@@ -1316,7 +1316,7 @@ CheckBarType (
|
||||
@param Operation Set or Disable.
|
||||
|
||||
@retval EFI_UNSUPPORTED If root bridge does not support change attribute.
|
||||
@retval EFI_SUCCESS Successfully set new attributs.
|
||||
@retval EFI_SUCCESS Successfully set new attributes.
|
||||
|
||||
**/
|
||||
EFI_STATUS
|
||||
@@ -1419,7 +1419,7 @@ SupportPaletteSnoopAttributes (
|
||||
|
||||
if (Temp == NULL) {
|
||||
//
|
||||
// If there is no VGA device on the segement, set
|
||||
// If there is no VGA device on the segment, set
|
||||
// this graphics card to decode the palette range
|
||||
//
|
||||
return EFI_SUCCESS;
|
||||
@@ -1588,7 +1588,7 @@ PciIoAttributes (
|
||||
//
|
||||
// Just a trick for ENABLE attribute
|
||||
// EFI_PCI_DEVICE_ENABLE is not defined in UEFI spec, which is the internal usage.
|
||||
// So, this logic doesn't confrom to UEFI spec, which should be removed.
|
||||
// So, this logic doesn't conform to UEFI spec, which should be removed.
|
||||
// But this trick logic is still kept for some binary drivers that depend on it.
|
||||
//
|
||||
if ((Attributes & EFI_PCI_DEVICE_ENABLE) == EFI_PCI_DEVICE_ENABLE) {
|
||||
@@ -1725,7 +1725,7 @@ PciIoAttributes (
|
||||
Command |= EFI_PCI_COMMAND_BUS_MASTER;
|
||||
}
|
||||
//
|
||||
// The upstream bridge should be also set to revelant attribute
|
||||
// The upstream bridge should be also set to relevant attribute
|
||||
// expect for IO, Mem and BusMaster
|
||||
//
|
||||
UpStreamAttributes = Attributes &
|
||||
@@ -1911,7 +1911,7 @@ PciIoGetBarAttributes (
|
||||
|
||||
case PciBarTypePMem32:
|
||||
//
|
||||
// prefechable
|
||||
// prefetchable
|
||||
//
|
||||
Descriptor->SpecificFlag = EFI_ACPI_MEMORY_RESOURCE_SPECIFIC_FLAG_CACHEABLE_PREFETCHABLE;
|
||||
//
|
||||
@@ -1930,7 +1930,7 @@ PciIoGetBarAttributes (
|
||||
|
||||
case PciBarTypePMem64:
|
||||
//
|
||||
// prefechable
|
||||
// prefetchable
|
||||
//
|
||||
Descriptor->SpecificFlag = EFI_ACPI_MEMORY_RESOURCE_SPECIFIC_FLAG_CACHEABLE_PREFETCHABLE;
|
||||
//
|
||||
@@ -2042,7 +2042,7 @@ PciIoSetBarAttributes (
|
||||
return EFI_UNSUPPORTED;
|
||||
}
|
||||
//
|
||||
// Attributes must be supported. Make sure the BAR range describd by BarIndex, Offset, and
|
||||
// Attributes must be supported. Make sure the BAR range described by BarIndex, Offset, and
|
||||
// Length are valid for this PCI device.
|
||||
//
|
||||
NonRelativeOffset = *Offset;
|
||||
|
Reference in New Issue
Block a user