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
|
||||
PCI resouces support functions implemntation for PCI Bus module.
|
||||
PCI resources support 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
|
||||
@@ -134,11 +134,11 @@ InsertResourceNode (
|
||||
|
||||
/**
|
||||
This routine is used to merge two different resource trees in need of
|
||||
resoure degradation.
|
||||
resource degradation.
|
||||
|
||||
For example, if an upstream PPB doesn't support,
|
||||
prefetchable memory decoding, the PCI bus driver will choose to call this function
|
||||
to merge prefectchable memory resource list into normal memory list.
|
||||
to merge prefetchable memory resource list into normal memory list.
|
||||
|
||||
If the TypeMerge is TRUE, Res resource type is changed to the type of destination resource
|
||||
type.
|
||||
@@ -335,7 +335,7 @@ CalculateApertureIo16 (
|
||||
This function is used to calculate the resource aperture
|
||||
for a given bridge device.
|
||||
|
||||
@param Bridge PCI resouce node for given bridge device.
|
||||
@param Bridge PCI resource node for given bridge device.
|
||||
|
||||
**/
|
||||
VOID
|
||||
@@ -413,7 +413,7 @@ CalculateResourceAperture (
|
||||
}
|
||||
|
||||
/**
|
||||
Get IO/Memory resource infor for given PCI device.
|
||||
Get IO/Memory resource info for given PCI device.
|
||||
|
||||
@param PciDev Pci device instance.
|
||||
@param IoNode Resource info node for IO .
|
||||
@@ -832,7 +832,7 @@ CreateResourceMap (
|
||||
);
|
||||
|
||||
//
|
||||
// Recursively create resouce map on this bridge
|
||||
// Recursively create resource map on this bridge
|
||||
//
|
||||
CreateResourceMap (
|
||||
Temp,
|
||||
@@ -1195,10 +1195,10 @@ BridgeSupportResourceDecode (
|
||||
This function is used to program the resource allocated
|
||||
for each resource node under specified bridge.
|
||||
|
||||
@param Base Base address of resource to be progammed.
|
||||
@param Base Base address of resource to be programmed.
|
||||
@param Bridge PCI resource node for the bridge device.
|
||||
|
||||
@retval EFI_SUCCESS Successfully to program all resouces
|
||||
@retval EFI_SUCCESS Successfully to program all resources
|
||||
on given PCI bridge device.
|
||||
@retval EFI_OUT_OF_RESOURCES Base is all one.
|
||||
|
||||
@@ -1257,8 +1257,8 @@ ProgramResource (
|
||||
/**
|
||||
Program Bar register for PCI device.
|
||||
|
||||
@param Base Base address for PCI device resource to be progammed.
|
||||
@param Node Point to resoure node structure.
|
||||
@param Base Base address for PCI device resource to be programmed.
|
||||
@param Node Point to resource node structure.
|
||||
|
||||
**/
|
||||
VOID
|
||||
@@ -1354,8 +1354,8 @@ ProgramBar (
|
||||
/**
|
||||
Program IOV VF Bar register for PCI device.
|
||||
|
||||
@param Base Base address for PCI device resource to be progammed.
|
||||
@param Node Point to resoure node structure.
|
||||
@param Base Base address for PCI device resource to be programmed.
|
||||
@param Node Point to resource node structure.
|
||||
|
||||
**/
|
||||
EFI_STATUS
|
||||
@@ -1438,10 +1438,10 @@ ProgramVfBar (
|
||||
}
|
||||
|
||||
/**
|
||||
Program PCI-PCI bridge apperture.
|
||||
Program PCI-PCI bridge aperture.
|
||||
|
||||
@param Base Base address for resource.
|
||||
@param Node Point to resoure node structure.
|
||||
@param Node Point to resource node structure.
|
||||
|
||||
**/
|
||||
VOID
|
||||
@@ -1457,7 +1457,7 @@ ProgramPpbApperture (
|
||||
Address = 0;
|
||||
//
|
||||
// If no device resource of this PPB, return anyway
|
||||
// Apperture is set default in the initialization code
|
||||
// Aperture is set default in the initialization code
|
||||
//
|
||||
if (Node->Length == 0 || Node->ResourceUsage == PciResUsagePadding) {
|
||||
//
|
||||
@@ -1649,13 +1649,13 @@ ProgramPpbApperture (
|
||||
/**
|
||||
Program parent bridge for Option Rom.
|
||||
|
||||
@param PciDevice Pci deivce instance.
|
||||
@param OptionRomBase Base address for Optiona Rom.
|
||||
@param PciDevice Pci device instance.
|
||||
@param OptionRomBase Base address for Option Rom.
|
||||
@param Enable Enable or disable PCI memory.
|
||||
|
||||
**/
|
||||
VOID
|
||||
ProgrameUpstreamBridgeForRom (
|
||||
ProgramUpstreamBridgeForRom (
|
||||
IN PCI_IO_DEVICE *PciDevice,
|
||||
IN UINT32 OptionRomBase,
|
||||
IN BOOLEAN Enable
|
||||
@@ -1682,7 +1682,7 @@ ProgrameUpstreamBridgeForRom (
|
||||
Node.Offset = 0;
|
||||
|
||||
//
|
||||
// Program PPB to only open a single <= 16MB apperture
|
||||
// Program PPB to only open a single <= 16MB aperture
|
||||
//
|
||||
if (Enable) {
|
||||
//
|
||||
@@ -1763,7 +1763,7 @@ InitializeResourcePool (
|
||||
}
|
||||
|
||||
/**
|
||||
Destory given resource tree.
|
||||
Destroy given resource tree.
|
||||
|
||||
@param Bridge PCI resource root node of resource tree.
|
||||
|
||||
@@ -1820,7 +1820,7 @@ ResourcePaddingForCardBusBridge (
|
||||
|
||||
//
|
||||
// Memory Base/Limit Register 0
|
||||
// Bar 1 denodes memory range 0
|
||||
// Bar 1 decodes memory range 0
|
||||
//
|
||||
Node = CreateResourceNode (
|
||||
PciDev,
|
||||
@@ -1838,7 +1838,7 @@ ResourcePaddingForCardBusBridge (
|
||||
|
||||
//
|
||||
// Memory Base/Limit Register 1
|
||||
// Bar 2 denodes memory range1
|
||||
// Bar 2 decodes memory range1
|
||||
//
|
||||
Node = CreateResourceNode (
|
||||
PciDev,
|
||||
@@ -1856,7 +1856,7 @@ ResourcePaddingForCardBusBridge (
|
||||
|
||||
//
|
||||
// Io Base/Limit
|
||||
// Bar 3 denodes io range 0
|
||||
// Bar 3 decodes io range 0
|
||||
//
|
||||
Node = CreateResourceNode (
|
||||
PciDev,
|
||||
@@ -1874,7 +1874,7 @@ ResourcePaddingForCardBusBridge (
|
||||
|
||||
//
|
||||
// Io Base/Limit
|
||||
// Bar 4 denodes io range 0
|
||||
// Bar 4 decodes io range 0
|
||||
//
|
||||
Node = CreateResourceNode (
|
||||
PciDev,
|
||||
@@ -1978,7 +1978,7 @@ ProgramP2C (
|
||||
|
||||
} else {
|
||||
//
|
||||
// Set pre-fetchable bit
|
||||
// Set prefetchable bit
|
||||
//
|
||||
PciIo->Pci.Read (
|
||||
PciIo,
|
||||
@@ -2048,7 +2048,7 @@ ProgramP2C (
|
||||
} else {
|
||||
|
||||
//
|
||||
// Set pre-fetchable bit
|
||||
// Set prefetchable bit
|
||||
//
|
||||
PciIo->Pci.Read (
|
||||
PciIo,
|
||||
@@ -2181,7 +2181,7 @@ ApplyResourcePadding (
|
||||
if (Ptr->AddrSpaceGranularity == 32) {
|
||||
|
||||
//
|
||||
// prefechable
|
||||
// prefetchable
|
||||
//
|
||||
if (Ptr->SpecificFlag == 0x6) {
|
||||
if (Ptr->AddrLen != 0) {
|
||||
@@ -2204,7 +2204,7 @@ ApplyResourcePadding (
|
||||
}
|
||||
|
||||
//
|
||||
// Non-prefechable
|
||||
// Non-prefetchable
|
||||
//
|
||||
if (Ptr->SpecificFlag == 0) {
|
||||
if (Ptr->AddrLen != 0) {
|
||||
@@ -2230,7 +2230,7 @@ ApplyResourcePadding (
|
||||
if (Ptr->AddrSpaceGranularity == 64) {
|
||||
|
||||
//
|
||||
// prefechable
|
||||
// prefetchable
|
||||
//
|
||||
if (Ptr->SpecificFlag == 0x6) {
|
||||
if (Ptr->AddrLen != 0) {
|
||||
@@ -2253,7 +2253,7 @@ ApplyResourcePadding (
|
||||
}
|
||||
|
||||
//
|
||||
// Non-prefechable
|
||||
// Non-prefetchable
|
||||
//
|
||||
if (Ptr->SpecificFlag == 0) {
|
||||
if (Ptr->AddrLen != 0) {
|
||||
|
Reference in New Issue
Block a user